Skip to content

Commit 6e4a22f

Browse files
feat: Automated regeneration of logging v2 client (#10948)
Auto-created at 2022-07-03 11:49:01 +0000 using the toys pull request generator.
1 parent 70e6454 commit 6e4a22f

File tree

6 files changed

+117
-105
lines changed

6 files changed

+117
-105
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161821,6 +161821,8 @@
161821161821
"/logging:v2/logging.billingAccounts.locations.buckets.create/parent": parent
161822161822
"/logging:v2/logging.billingAccounts.locations.buckets.delete": delete_billing_account_location_bucket
161823161823
"/logging:v2/logging.billingAccounts.locations.buckets.delete/name": name
161824+
"/logging:v2/logging.billingAccounts.locations.buckets.get": get_billing_account_location_bucket
161825+
"/logging:v2/logging.billingAccounts.locations.buckets.get/name": name
161824161826
"/logging:v2/logging.billingAccounts.locations.buckets.list": list_billing_account_location_buckets
161825161827
"/logging:v2/logging.billingAccounts.locations.buckets.list/pageSize": page_size
161826161828
"/logging:v2/logging.billingAccounts.locations.buckets.list/pageToken": page_token
@@ -161835,6 +161837,8 @@
161835161837
"/logging:v2/logging.billingAccounts.locations.buckets.views.create/viewId": view_id
161836161838
"/logging:v2/logging.billingAccounts.locations.buckets.views.delete": delete_billing_account_location_bucket_view
161837161839
"/logging:v2/logging.billingAccounts.locations.buckets.views.delete/name": name
161840+
"/logging:v2/logging.billingAccounts.locations.buckets.views.get": get_billing_account_location_bucket_view
161841+
"/logging:v2/logging.billingAccounts.locations.buckets.views.get/name": name
161838161842
"/logging:v2/logging.billingAccounts.locations.buckets.views.list": list_billing_account_location_bucket_views
161839161843
"/logging:v2/logging.billingAccounts.locations.buckets.views.list/pageSize": page_size
161840161844
"/logging:v2/logging.billingAccounts.locations.buckets.views.list/pageToken": page_token
@@ -161856,6 +161860,8 @@
161856161860
"/logging:v2/logging.billingAccounts.locations.list/pageToken": page_token
161857161861
"/logging:v2/logging.billingAccounts.locations.operations.cancel": cancel_billing_account_location_operation
161858161862
"/logging:v2/logging.billingAccounts.locations.operations.cancel/name": name
161863+
"/logging:v2/logging.billingAccounts.locations.operations.get": get_billing_account_location_operation
161864+
"/logging:v2/logging.billingAccounts.locations.operations.get/name": name
161859161865
"/logging:v2/logging.billingAccounts.locations.operations.list": list_billing_account_location_operations
161860161866
"/logging:v2/logging.billingAccounts.locations.operations.list/filter": filter
161861161867
"/logging:v2/logging.billingAccounts.locations.operations.list/name": name

generated/google-apis-logging_v2/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-logging_v2
22

3+
### v0.32.0 (2022-07-03)
4+
5+
* Regenerated from discovery document revision 20220624
6+
* Regenerated using generator version 0.8.0
7+
38
### v0.31.0 (2022-06-18)
49

510
* Regenerated using generator version 0.7.0

generated/google-apis-logging_v2/google-apis-logging_v2.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ Gem::Specification.new do |gem|
2929
gem.require_paths = ["lib"]
3030

3131
gem.required_ruby_version = '>= 2.5'
32-
gem.add_runtime_dependency "google-apis-core", ">= 0.6", "< 2.a"
32+
gem.add_runtime_dependency "google-apis-core", ">= 0.7", "< 2.a"
3333
end

generated/google-apis-logging_v2/lib/google/apis/logging_v2/classes.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2777,9 +2777,10 @@ class WriteLogEntriesRequest
27772777
# Optional. Whether a batch's valid entries should be written even if some other
27782778
# entry failed due to a permanent error such as INVALID_ARGUMENT or
27792779
# 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.
2780+
# response status of one of the failed entries. The response will include error
2781+
# details in WriteLogEntriesPartialErrors.log_entry_errors keyed by the entries'
2782+
# zero-based index in the entries. Failed requests for which no entries are
2783+
# written will not include per-entry errors.
27832784
# Corresponds to the JSON property `partialSuccess`
27842785
# @return [Boolean]
27852786
attr_accessor :partial_success

generated/google-apis-logging_v2/lib/google/apis/logging_v2/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module LoggingV2
1818
# Version of the google-apis-logging_v2 gem
19-
GEM_VERSION = "0.31.0"
19+
GEM_VERSION = "0.32.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.7.0"
22+
GENERATOR_VERSION = "0.8.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20220527"
25+
REVISION = "20220624"
2626
end
2727
end
2828
end

generated/google-apis-logging_v2/lib/google/apis/logging_v2/service.rb

Lines changed: 98 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -132,73 +132,6 @@ def get_billing_account_settings(name, fields: nil, quota_user: nil, options: ni
132132
execute_or_queue_command(command, &block)
133133
end
134134

135-
# Gets a log bucket.
136-
# @param [String] name
137-
# Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
138-
# LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
139-
# LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
140-
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
141-
# LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/
142-
# global/buckets/my-bucket"
143-
# @param [String] fields
144-
# Selector specifying which fields to include in a partial response.
145-
# @param [String] quota_user
146-
# Available to use for quota purposes for server-side applications. Can be any
147-
# arbitrary string assigned to a user, but should not exceed 40 characters.
148-
# @param [Google::Apis::RequestOptions] options
149-
# Request-specific options
150-
#
151-
# @yield [result, err] Result & error if block supplied
152-
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
153-
# @yieldparam err [StandardError] error object if request failed
154-
#
155-
# @return [Google::Apis::LoggingV2::LogBucket]
156-
#
157-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
158-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
159-
# @raise [Google::Apis::AuthorizationError] Authorization is required
160-
def get_billing_account_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
161-
command = make_simple_command(:get, 'v2/{+name}', options)
162-
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
163-
command.response_class = Google::Apis::LoggingV2::LogBucket
164-
command.params['name'] = name unless name.nil?
165-
command.query['fields'] = fields unless fields.nil?
166-
command.query['quotaUser'] = quota_user unless quota_user.nil?
167-
execute_or_queue_command(command, &block)
168-
end
169-
170-
# Gets a view on a log bucket..
171-
# @param [String] name
172-
# Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
173-
# LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"projects/my-
174-
# project/locations/global/buckets/my-bucket/views/my-view"
175-
# @param [String] fields
176-
# Selector specifying which fields to include in a partial response.
177-
# @param [String] quota_user
178-
# Available to use for quota purposes for server-side applications. Can be any
179-
# arbitrary string assigned to a user, but should not exceed 40 characters.
180-
# @param [Google::Apis::RequestOptions] options
181-
# Request-specific options
182-
#
183-
# @yield [result, err] Result & error if block supplied
184-
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
185-
# @yieldparam err [StandardError] error object if request failed
186-
#
187-
# @return [Google::Apis::LoggingV2::LogView]
188-
#
189-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
190-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
191-
# @raise [Google::Apis::AuthorizationError] Authorization is required
192-
def get_billing_account_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
193-
command = make_simple_command(:get, 'v2/{+name}', options)
194-
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
195-
command.response_class = Google::Apis::LoggingV2::LogView
196-
command.params['name'] = name unless name.nil?
197-
command.query['fields'] = fields unless fields.nil?
198-
command.query['quotaUser'] = quota_user unless quota_user.nil?
199-
execute_or_queue_command(command, &block)
200-
end
201-
202135
# Creates a new exclusion in the _Default sink in a specified parent resource.
203136
# Only log entries belonging to that resource can be excluded. You can have up
204137
# to 10 exclusions in a resource.
@@ -544,6 +477,41 @@ def delete_billing_account_location_bucket(name, fields: nil, quota_user: nil, o
544477
execute_or_queue_command(command, &block)
545478
end
546479

480+
# Gets a log bucket.
481+
# @param [String] name
482+
# Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
483+
# LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
484+
# LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
485+
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
486+
# LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/
487+
# global/buckets/my-bucket"
488+
# @param [String] fields
489+
# Selector specifying which fields to include in a partial response.
490+
# @param [String] quota_user
491+
# Available to use for quota purposes for server-side applications. Can be any
492+
# arbitrary string assigned to a user, but should not exceed 40 characters.
493+
# @param [Google::Apis::RequestOptions] options
494+
# Request-specific options
495+
#
496+
# @yield [result, err] Result & error if block supplied
497+
# @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
498+
# @yieldparam err [StandardError] error object if request failed
499+
#
500+
# @return [Google::Apis::LoggingV2::LogBucket]
501+
#
502+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
503+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
504+
# @raise [Google::Apis::AuthorizationError] Authorization is required
505+
def get_billing_account_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
506+
command = make_simple_command(:get, 'v2/{+name}', options)
507+
command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
508+
command.response_class = Google::Apis::LoggingV2::LogBucket
509+
command.params['name'] = name unless name.nil?
510+
command.query['fields'] = fields unless fields.nil?
511+
command.query['quotaUser'] = quota_user unless quota_user.nil?
512+
execute_or_queue_command(command, &block)
513+
end
514+
547515
# Lists log buckets.
548516
# @param [String] parent
549517
# Required. The parent resource whose buckets are to be listed: "projects/[
@@ -753,6 +721,38 @@ def delete_billing_account_location_bucket_view(name, fields: nil, quota_user: n
753721
execute_or_queue_command(command, &block)
754722
end
755723

724+
# Gets a view on a log bucket..
725+
# @param [String] name
726+
# Required. The resource name of the policy: "projects/[PROJECT_ID]/locations/[
727+
# LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"projects/my-
728+
# project/locations/global/buckets/my-bucket/views/my-view"
729+
# @param [String] fields
730+
# Selector specifying which fields to include in a partial response.
731+
# @param [String] quota_user
732+
# Available to use for quota purposes for server-side applications. Can be any
733+
# arbitrary string assigned to a user, but should not exceed 40 characters.
734+
# @param [Google::Apis::RequestOptions] options
735+
# Request-specific options
736+
#
737+
# @yield [result, err] Result & error if block supplied
738+
# @yieldparam result [Google::Apis::LoggingV2::LogView] parsed result object
739+
# @yieldparam err [StandardError] error object if request failed
740+
#
741+
# @return [Google::Apis::LoggingV2::LogView]
742+
#
743+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
744+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
745+
# @raise [Google::Apis::AuthorizationError] Authorization is required
746+
def get_billing_account_location_bucket_view(name, fields: nil, quota_user: nil, options: nil, &block)
747+
command = make_simple_command(:get, 'v2/{+name}', options)
748+
command.response_representation = Google::Apis::LoggingV2::LogView::Representation
749+
command.response_class = Google::Apis::LoggingV2::LogView
750+
command.params['name'] = name unless name.nil?
751+
command.query['fields'] = fields unless fields.nil?
752+
command.query['quotaUser'] = quota_user unless quota_user.nil?
753+
execute_or_queue_command(command, &block)
754+
end
755+
756756
# Lists views on a log bucket.
757757
# @param [String] parent
758758
# Required. The bucket whose views are to be listed: "projects/[PROJECT_ID]/
@@ -934,6 +934,37 @@ def cancel_billing_account_location_operation(name, cancel_operation_request_obj
934934
execute_or_queue_command(command, &block)
935935
end
936936

937+
# Gets the latest state of a long-running operation. Clients can use this method
938+
# to poll the operation result at intervals as recommended by the API service.
939+
# @param [String] name
940+
# The name of the operation resource.
941+
# @param [String] fields
942+
# Selector specifying which fields to include in a partial response.
943+
# @param [String] quota_user
944+
# Available to use for quota purposes for server-side applications. Can be any
945+
# arbitrary string assigned to a user, but should not exceed 40 characters.
946+
# @param [Google::Apis::RequestOptions] options
947+
# Request-specific options
948+
#
949+
# @yield [result, err] Result & error if block supplied
950+
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
951+
# @yieldparam err [StandardError] error object if request failed
952+
#
953+
# @return [Google::Apis::LoggingV2::Operation]
954+
#
955+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
956+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
957+
# @raise [Google::Apis::AuthorizationError] Authorization is required
958+
def get_billing_account_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
959+
command = make_simple_command(:get, 'v2/{+name}', options)
960+
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
961+
command.response_class = Google::Apis::LoggingV2::Operation
962+
command.params['name'] = name unless name.nil?
963+
command.query['fields'] = fields unless fields.nil?
964+
command.query['quotaUser'] = quota_user unless quota_user.nil?
965+
execute_or_queue_command(command, &block)
966+
end
967+
937968
# Lists operations that match the specified filter in the request. If the server
938969
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
939970
# allows API services to override the binding to use different resource name
@@ -1072,37 +1103,6 @@ def list_billing_account_logs(parent, page_size: nil, page_token: nil, resource_
10721103
execute_or_queue_command(command, &block)
10731104
end
10741105

1075-
# Gets the latest state of a long-running operation. Clients can use this method
1076-
# to poll the operation result at intervals as recommended by the API service.
1077-
# @param [String] name
1078-
# The name of the operation resource.
1079-
# @param [String] fields
1080-
# Selector specifying which fields to include in a partial response.
1081-
# @param [String] quota_user
1082-
# Available to use for quota purposes for server-side applications. Can be any
1083-
# arbitrary string assigned to a user, but should not exceed 40 characters.
1084-
# @param [Google::Apis::RequestOptions] options
1085-
# Request-specific options
1086-
#
1087-
# @yield [result, err] Result & error if block supplied
1088-
# @yieldparam result [Google::Apis::LoggingV2::Operation] parsed result object
1089-
# @yieldparam err [StandardError] error object if request failed
1090-
#
1091-
# @return [Google::Apis::LoggingV2::Operation]
1092-
#
1093-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1094-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1095-
# @raise [Google::Apis::AuthorizationError] Authorization is required
1096-
def get_billing_account_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1097-
command = make_simple_command(:get, 'v2/{+name}', options)
1098-
command.response_representation = Google::Apis::LoggingV2::Operation::Representation
1099-
command.response_class = Google::Apis::LoggingV2::Operation
1100-
command.params['name'] = name unless name.nil?
1101-
command.query['fields'] = fields unless fields.nil?
1102-
command.query['quotaUser'] = quota_user unless quota_user.nil?
1103-
execute_or_queue_command(command, &block)
1104-
end
1105-
11061106
# Creates a sink that exports specified log entries to a destination. The export
11071107
# of newly-ingested log entries begins immediately, unless the sink's
11081108
# writer_identity is not permitted to write to the destination. A sink can

0 commit comments

Comments
 (0)