google-cloud-logging 1.9.5 → 1.10.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: 91218db71bcf0f6192d7f93d9727fbfdfdc1e93a178d699f339af36c66762b4b
4
- data.tar.gz: 3f06add4df2396e67067ef4a08c429fe8cb4ddb7a75ab337697a8ba2c1a17d8a
3
+ metadata.gz: f907333eb71ca0574dea284bd95c437fa9f2faa1b3737dd230079c5a736e5852
4
+ data.tar.gz: 95583c9ce2da5d19514b7a05853e485c0b0d0929c0f8370f0612a31803bdc5b8
5
5
  SHA512:
6
- metadata.gz: b304bd0c18732eb582d3a0f083da1400d1b4d60620a9d3f649df38459763023b048c67df3aa0276cea41c004016e1dc328318c4ca6fe0bdb83394ced32a7fc66
7
- data.tar.gz: ed07fdc87513ee53070dd2245748b100f2f7d5b6486badcae4128aa0e049938f4dd3e9caa4d6e52336f8039367bb608bac71f8a3f98e2dc94b5d4f098674cce7
6
+ metadata.gz: 0d1cb61244ff92539afaac04e52e147374d09aa294f63ae35aec878210838cc359b5ea33bc1b8f27c2ec7f7cfaee720b66a2f4a3249741a432e38bbb7ec18df8
7
+ data.tar.gz: 9dc94fd5183d3c1e4b29a11f88bf644f33971a9680e3c68c9fba79c9bb95297557ed555b23a6053ca4efbd929f65054f3eca878935cc159cc1fa1e28ed4c8ac6
@@ -1,5 +1,29 @@
1
1
  # Release History
2
2
 
3
+ ### 1.10.0 / 2020-03-16
4
+
5
+ #### Features
6
+
7
+ * support separate project setting for quota/billing
8
+
9
+ #### Low-level interface updates
10
+
11
+ * Add LogBucket
12
+ * Add ConfigServiceV2Client#list_buckets
13
+ * Add ConfigServiceV2Client#get_bucket
14
+ * Add ConfigServiceV2Client#update_bucket
15
+ * Add LifecycleState enum
16
+ * Change name to positional param in ConfigServiceV2Client#get_cmek_settings
17
+ * Change name and cmek_settings to positional params in ConfigServiceV2Client#update_cmek_settings
18
+ * Remove billing, folder, and organization path helpers from ConfigServiceV2Client
19
+ * Remove LogEntry#metadata
20
+ * Remove previously deprecated project_ids from LoggingServiceV2Client#list_log_entries
21
+ * Remove log_path helpers from LoggingServiceV2Client
22
+ * Rename ConfigServiceV2Client#billing_path to #billing_account_path
23
+ * Rename LoggingServiceV2Client#billing_path to #billing_account_path
24
+ * Rename MetricsServiceV2Client#metric_path to #log_metric_path
25
+ * Update network configuration settings
26
+
3
27
  ### 1.9.5 / 2020-02-24
4
28
 
5
29
  #### Documentation
@@ -25,10 +25,7 @@ module Google
25
25
  # a sink, new log entries are exported. Stackdriver Logging does not send
26
26
  # previously-ingested log entries to the sink's destination.
27
27
  #
28
- # A logs filter controls which log entries are exported. Sinks can have a
29
- # start time and an end time; these can be used to place log entries from
30
- # an exact time range into a particular destination. If both `start_at`
31
- # and `end_at` are present, then `start_at` must be less than `end_at`.
28
+ # A logs filter controls which log entries are exported.
32
29
  #
33
30
  # Before creating the sink, ensure that you have granted
34
31
  # `cloud-logs@google.com` permission to write logs to the destination. See
@@ -53,6 +53,10 @@ module Google
53
53
  DEFAULT_TIMEOUT = 30
54
54
 
55
55
  PAGE_DESCRIPTORS = {
56
+ "list_buckets" => Google::Gax::PageDescriptor.new(
57
+ "page_token",
58
+ "next_page_token",
59
+ "buckets"),
56
60
  "list_sinks" => Google::Gax::PageDescriptor.new(
57
61
  "page_token",
58
62
  "next_page_token",
@@ -76,29 +80,11 @@ module Google
76
80
  ].freeze
77
81
 
78
82
 
79
- BILLING_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
83
+ BILLING_ACCOUNT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
80
84
  "billingAccounts/{billing_account}"
81
85
  )
82
86
 
83
- private_constant :BILLING_PATH_TEMPLATE
84
-
85
- BILLING_EXCLUSION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
86
- "billingAccounts/{billing_account}/exclusions/{exclusion}"
87
- )
88
-
89
- private_constant :BILLING_EXCLUSION_PATH_TEMPLATE
90
-
91
- BILLING_SINK_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
92
- "billingAccounts/{billing_account}/sinks/{sink}"
93
- )
94
-
95
- private_constant :BILLING_SINK_PATH_TEMPLATE
96
-
97
- EXCLUSION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
98
- "projects/{project}/exclusions/{exclusion}"
99
- )
100
-
101
- private_constant :EXCLUSION_PATH_TEMPLATE
87
+ private_constant :BILLING_ACCOUNT_PATH_TEMPLATE
102
88
 
103
89
  FOLDER_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
104
90
  "folders/{folder}"
@@ -106,90 +92,27 @@ module Google
106
92
 
107
93
  private_constant :FOLDER_PATH_TEMPLATE
108
94
 
109
- FOLDER_EXCLUSION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
110
- "folders/{folder}/exclusions/{exclusion}"
111
- )
112
-
113
- private_constant :FOLDER_EXCLUSION_PATH_TEMPLATE
114
-
115
- FOLDER_SINK_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
116
- "folders/{folder}/sinks/{sink}"
117
- )
118
-
119
- private_constant :FOLDER_SINK_PATH_TEMPLATE
120
-
121
95
  ORGANIZATION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
122
96
  "organizations/{organization}"
123
97
  )
124
98
 
125
99
  private_constant :ORGANIZATION_PATH_TEMPLATE
126
100
 
127
- ORGANIZATION_EXCLUSION_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
128
- "organizations/{organization}/exclusions/{exclusion}"
129
- )
130
-
131
- private_constant :ORGANIZATION_EXCLUSION_PATH_TEMPLATE
132
-
133
- ORGANIZATION_SINK_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
134
- "organizations/{organization}/sinks/{sink}"
135
- )
136
-
137
- private_constant :ORGANIZATION_SINK_PATH_TEMPLATE
138
-
139
101
  PROJECT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
140
102
  "projects/{project}"
141
103
  )
142
104
 
143
105
  private_constant :PROJECT_PATH_TEMPLATE
144
106
 
145
- SINK_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
146
- "projects/{project}/sinks/{sink}"
147
- )
148
-
149
- private_constant :SINK_PATH_TEMPLATE
150
-
151
- # Returns a fully-qualified billing resource name string.
107
+ # Returns a fully-qualified billing_account resource name string.
152
108
  # @param billing_account [String]
153
109
  # @return [String]
154
- def self.billing_path billing_account
155
- BILLING_PATH_TEMPLATE.render(
110
+ def self.billing_account_path billing_account
111
+ BILLING_ACCOUNT_PATH_TEMPLATE.render(
156
112
  :"billing_account" => billing_account
157
113
  )
158
114
  end
159
115
 
160
- # Returns a fully-qualified billing_exclusion resource name string.
161
- # @param billing_account [String]
162
- # @param exclusion [String]
163
- # @return [String]
164
- def self.billing_exclusion_path billing_account, exclusion
165
- BILLING_EXCLUSION_PATH_TEMPLATE.render(
166
- :"billing_account" => billing_account,
167
- :"exclusion" => exclusion
168
- )
169
- end
170
-
171
- # Returns a fully-qualified billing_sink resource name string.
172
- # @param billing_account [String]
173
- # @param sink [String]
174
- # @return [String]
175
- def self.billing_sink_path billing_account, sink
176
- BILLING_SINK_PATH_TEMPLATE.render(
177
- :"billing_account" => billing_account,
178
- :"sink" => sink
179
- )
180
- end
181
-
182
- # Returns a fully-qualified exclusion resource name string.
183
- # @param project [String]
184
- # @param exclusion [String]
185
- # @return [String]
186
- def self.exclusion_path project, exclusion
187
- EXCLUSION_PATH_TEMPLATE.render(
188
- :"project" => project,
189
- :"exclusion" => exclusion
190
- )
191
- end
192
-
193
116
  # Returns a fully-qualified folder resource name string.
194
117
  # @param folder [String]
195
118
  # @return [String]
@@ -199,28 +122,6 @@ module Google
199
122
  )
200
123
  end
201
124
 
202
- # Returns a fully-qualified folder_exclusion resource name string.
203
- # @param folder [String]
204
- # @param exclusion [String]
205
- # @return [String]
206
- def self.folder_exclusion_path folder, exclusion
207
- FOLDER_EXCLUSION_PATH_TEMPLATE.render(
208
- :"folder" => folder,
209
- :"exclusion" => exclusion
210
- )
211
- end
212
-
213
- # Returns a fully-qualified folder_sink resource name string.
214
- # @param folder [String]
215
- # @param sink [String]
216
- # @return [String]
217
- def self.folder_sink_path folder, sink
218
- FOLDER_SINK_PATH_TEMPLATE.render(
219
- :"folder" => folder,
220
- :"sink" => sink
221
- )
222
- end
223
-
224
125
  # Returns a fully-qualified organization resource name string.
225
126
  # @param organization [String]
226
127
  # @return [String]
@@ -230,28 +131,6 @@ module Google
230
131
  )
231
132
  end
232
133
 
233
- # Returns a fully-qualified organization_exclusion resource name string.
234
- # @param organization [String]
235
- # @param exclusion [String]
236
- # @return [String]
237
- def self.organization_exclusion_path organization, exclusion
238
- ORGANIZATION_EXCLUSION_PATH_TEMPLATE.render(
239
- :"organization" => organization,
240
- :"exclusion" => exclusion
241
- )
242
- end
243
-
244
- # Returns a fully-qualified organization_sink resource name string.
245
- # @param organization [String]
246
- # @param sink [String]
247
- # @return [String]
248
- def self.organization_sink_path organization, sink
249
- ORGANIZATION_SINK_PATH_TEMPLATE.render(
250
- :"organization" => organization,
251
- :"sink" => sink
252
- )
253
- end
254
-
255
134
  # Returns a fully-qualified project resource name string.
256
135
  # @param project [String]
257
136
  # @return [String]
@@ -261,17 +140,6 @@ module Google
261
140
  )
262
141
  end
263
142
 
264
- # Returns a fully-qualified sink resource name string.
265
- # @param project [String]
266
- # @param sink [String]
267
- # @return [String]
268
- def self.sink_path project, sink
269
- SINK_PATH_TEMPLATE.render(
270
- :"project" => project,
271
- :"sink" => sink
272
- )
273
- end
274
-
275
143
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
276
144
  # Provides the means for authenticating requests made by the client. This parameter can
277
145
  # be many types.
@@ -349,6 +217,9 @@ module Google
349
217
  google_api_client.freeze
350
218
 
351
219
  headers = { :"x-goog-api-client" => google_api_client }
220
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
221
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
222
+ end
352
223
  headers.merge!(metadata) unless metadata.nil?
353
224
  client_config_file = Pathname.new(__dir__).join(
354
225
  "config_service_v2_client_config.json"
@@ -381,6 +252,30 @@ module Google
381
252
  &Google::Logging::V2::ConfigServiceV2::Stub.method(:new)
382
253
  )
383
254
 
255
+ @list_buckets = Google::Gax.create_api_call(
256
+ @config_service_v2_stub.method(:list_buckets),
257
+ defaults["list_buckets"],
258
+ exception_transformer: exception_transformer,
259
+ params_extractor: proc do |request|
260
+ {'parent' => request.parent}
261
+ end
262
+ )
263
+ @get_bucket = Google::Gax.create_api_call(
264
+ @config_service_v2_stub.method(:get_bucket),
265
+ defaults["get_bucket"],
266
+ exception_transformer: exception_transformer,
267
+ params_extractor: proc do |request|
268
+ {'name' => request.name}
269
+ end
270
+ )
271
+ @update_bucket = Google::Gax.create_api_call(
272
+ @config_service_v2_stub.method(:update_bucket),
273
+ defaults["update_bucket"],
274
+ exception_transformer: exception_transformer,
275
+ params_extractor: proc do |request|
276
+ {'name' => request.name}
277
+ end
278
+ )
384
279
  @list_sinks = Google::Gax.create_api_call(
385
280
  @config_service_v2_stub.method(:list_sinks),
386
281
  defaults["list_sinks"],
@@ -481,6 +376,188 @@ module Google
481
376
 
482
377
  # Service calls
483
378
 
379
+ # Lists buckets (Beta).
380
+ #
381
+ # @param parent [String]
382
+ # Required. The parent resource whose buckets are to be listed:
383
+ #
384
+ # "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
385
+ # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
386
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
387
+ # "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
388
+ #
389
+ # Note: The locations portion of the resource must be specified, but
390
+ # supplying the character `-` in place of [LOCATION_ID] will return all
391
+ # buckets.
392
+ # @param page_size [Integer]
393
+ # The maximum number of resources contained in the underlying API
394
+ # response. If page streaming is performed per-resource, this
395
+ # parameter does not affect the return value. If page streaming is
396
+ # performed per-page, this determines the maximum number of
397
+ # resources in a page.
398
+ # @param options [Google::Gax::CallOptions]
399
+ # Overrides the default settings for this call, e.g, timeout,
400
+ # retries, etc.
401
+ # @yield [result, operation] Access the result along with the RPC operation
402
+ # @yieldparam result [Google::Gax::PagedEnumerable<Google::Logging::V2::LogBucket>]
403
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
404
+ # @return [Google::Gax::PagedEnumerable<Google::Logging::V2::LogBucket>]
405
+ # An enumerable of Google::Logging::V2::LogBucket instances.
406
+ # See Google::Gax::PagedEnumerable documentation for other
407
+ # operations such as per-page iteration or access to the response
408
+ # object.
409
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
410
+ # @example
411
+ # require "google/cloud/logging/v2"
412
+ #
413
+ # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
414
+ #
415
+ # # TODO: Initialize `parent`:
416
+ # parent = ''
417
+ #
418
+ # # Iterate over all results.
419
+ # config_client.list_buckets(parent).each do |element|
420
+ # # Process element.
421
+ # end
422
+ #
423
+ # # Or iterate over results one page at a time.
424
+ # config_client.list_buckets(parent).each_page do |page|
425
+ # # Process each page at a time.
426
+ # page.each do |element|
427
+ # # Process element.
428
+ # end
429
+ # end
430
+
431
+ def list_buckets \
432
+ parent,
433
+ page_size: nil,
434
+ options: nil,
435
+ &block
436
+ req = {
437
+ parent: parent,
438
+ page_size: page_size
439
+ }.delete_if { |_, v| v.nil? }
440
+ req = Google::Gax::to_proto(req, Google::Logging::V2::ListBucketsRequest)
441
+ @list_buckets.call(req, options, &block)
442
+ end
443
+
444
+ # Gets a bucket (Beta).
445
+ #
446
+ # @param name [String]
447
+ # Required. The resource name of the bucket:
448
+ #
449
+ # "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
450
+ # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
451
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
452
+ # "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
453
+ #
454
+ # Example:
455
+ # `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
456
+ # @param options [Google::Gax::CallOptions]
457
+ # Overrides the default settings for this call, e.g, timeout,
458
+ # retries, etc.
459
+ # @yield [result, operation] Access the result along with the RPC operation
460
+ # @yieldparam result [Google::Logging::V2::LogBucket]
461
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
462
+ # @return [Google::Logging::V2::LogBucket]
463
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
464
+ # @example
465
+ # require "google/cloud/logging/v2"
466
+ #
467
+ # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
468
+ #
469
+ # # TODO: Initialize `name`:
470
+ # name = ''
471
+ # response = config_client.get_bucket(name)
472
+
473
+ def get_bucket \
474
+ name,
475
+ options: nil,
476
+ &block
477
+ req = {
478
+ name: name
479
+ }.delete_if { |_, v| v.nil? }
480
+ req = Google::Gax::to_proto(req, Google::Logging::V2::GetBucketRequest)
481
+ @get_bucket.call(req, options, &block)
482
+ end
483
+
484
+ # Updates a bucket. This method replaces the following fields in the
485
+ # existing bucket with values from the new bucket: `retention_period`
486
+ #
487
+ # If the retention period is decreased and the bucket is locked,
488
+ # FAILED_PRECONDITION will be returned.
489
+ #
490
+ # If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION
491
+ # will be returned.
492
+ #
493
+ # A buckets region may not be modified after it is created.
494
+ # This method is in Beta.
495
+ #
496
+ # @param name [String]
497
+ # Required. The full resource name of the bucket to update.
498
+ #
499
+ # "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
500
+ # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
501
+ # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
502
+ # "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
503
+ #
504
+ # Example:
505
+ # `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also
506
+ # requires permission "resourcemanager.projects.updateLiens" to set the
507
+ # locked property
508
+ # @param bucket [Google::Logging::V2::LogBucket | Hash]
509
+ # Required. The updated bucket.
510
+ # A hash of the same form as `Google::Logging::V2::LogBucket`
511
+ # can also be provided.
512
+ # @param update_mask [Google::Protobuf::FieldMask | Hash]
513
+ # Required. Field mask that specifies the fields in `bucket` that need an update. A
514
+ # bucket field will be overwritten if, and only if, it is in the update
515
+ # mask. `name` and output only fields cannot be updated.
516
+ #
517
+ # For a detailed `FieldMask` definition, see
518
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
519
+ #
520
+ # Example: `updateMask=retention_days`.
521
+ # A hash of the same form as `Google::Protobuf::FieldMask`
522
+ # can also be provided.
523
+ # @param options [Google::Gax::CallOptions]
524
+ # Overrides the default settings for this call, e.g, timeout,
525
+ # retries, etc.
526
+ # @yield [result, operation] Access the result along with the RPC operation
527
+ # @yieldparam result [Google::Logging::V2::LogBucket]
528
+ # @yieldparam operation [GRPC::ActiveCall::Operation]
529
+ # @return [Google::Logging::V2::LogBucket]
530
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
531
+ # @example
532
+ # require "google/cloud/logging/v2"
533
+ #
534
+ # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
535
+ #
536
+ # # TODO: Initialize `name`:
537
+ # name = ''
538
+ #
539
+ # # TODO: Initialize `bucket`:
540
+ # bucket = {}
541
+ #
542
+ # # TODO: Initialize `update_mask`:
543
+ # update_mask = {}
544
+ # response = config_client.update_bucket(name, bucket, update_mask)
545
+
546
+ def update_bucket \
547
+ name,
548
+ bucket,
549
+ update_mask,
550
+ options: nil,
551
+ &block
552
+ req = {
553
+ name: name,
554
+ bucket: bucket,
555
+ update_mask: update_mask
556
+ }.delete_if { |_, v| v.nil? }
557
+ req = Google::Gax::to_proto(req, Google::Logging::V2::UpdateBucketRequest)
558
+ @update_bucket.call(req, options, &block)
559
+ end
560
+
484
561
  # Lists sinks.
485
562
  #
486
563
  # @param parent [String]
@@ -563,8 +640,10 @@ module Google
563
640
  # require "google/cloud/logging/v2"
564
641
  #
565
642
  # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
566
- # formatted_sink_name = Google::Cloud::Logging::V2::ConfigServiceV2Client.sink_path("[PROJECT]", "[SINK]")
567
- # response = config_client.get_sink(formatted_sink_name)
643
+ #
644
+ # # TODO: Initialize `sink_name`:
645
+ # sink_name = ''
646
+ # response = config_client.get_sink(sink_name)
568
647
 
569
648
  def get_sink \
570
649
  sink_name,
@@ -648,8 +727,8 @@ module Google
648
727
  # `unique_writer_identity` field.
649
728
  #
650
729
  # @param sink_name [String]
651
- # Required. The full resource name of the sink to update, including the
652
- # parent resource and the sink identifier:
730
+ # Required. The full resource name of the sink to update, including the parent
731
+ # resource and the sink identifier:
653
732
  #
654
733
  # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
655
734
  # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
@@ -658,8 +737,8 @@ module Google
658
737
  #
659
738
  # Example: `"projects/my-project-id/sinks/my-sink-id"`.
660
739
  # @param sink [Google::Logging::V2::LogSink | Hash]
661
- # Required. The updated sink, whose name is the same identifier that appears
662
- # as part of `sink_name`.
740
+ # Required. The updated sink, whose name is the same identifier that appears as part
741
+ # of `sink_name`.
663
742
  # A hash of the same form as `Google::Logging::V2::LogSink`
664
743
  # can also be provided.
665
744
  # @param unique_writer_identity [true, false]
@@ -703,11 +782,13 @@ module Google
703
782
  # require "google/cloud/logging/v2"
704
783
  #
705
784
  # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
706
- # formatted_sink_name = Google::Cloud::Logging::V2::ConfigServiceV2Client.sink_path("[PROJECT]", "[SINK]")
785
+ #
786
+ # # TODO: Initialize `sink_name`:
787
+ # sink_name = ''
707
788
  #
708
789
  # # TODO: Initialize `sink`:
709
790
  # sink = {}
710
- # response = config_client.update_sink(formatted_sink_name, sink)
791
+ # response = config_client.update_sink(sink_name, sink)
711
792
 
712
793
  def update_sink \
713
794
  sink_name,
@@ -730,8 +811,8 @@ module Google
730
811
  # service account is also deleted.
731
812
  #
732
813
  # @param sink_name [String]
733
- # Required. The full resource name of the sink to delete, including the
734
- # parent resource and the sink identifier:
814
+ # Required. The full resource name of the sink to delete, including the parent
815
+ # resource and the sink identifier:
735
816
  #
736
817
  # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
737
818
  # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
@@ -750,8 +831,10 @@ module Google
750
831
  # require "google/cloud/logging/v2"
751
832
  #
752
833
  # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
753
- # formatted_sink_name = Google::Cloud::Logging::V2::ConfigServiceV2Client.sink_path("[PROJECT]", "[SINK]")
754
- # config_client.delete_sink(formatted_sink_name)
834
+ #
835
+ # # TODO: Initialize `sink_name`:
836
+ # sink_name = ''
837
+ # config_client.delete_sink(sink_name)
755
838
 
756
839
  def delete_sink \
757
840
  sink_name,
@@ -847,8 +930,10 @@ module Google
847
930
  # require "google/cloud/logging/v2"
848
931
  #
849
932
  # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
850
- # formatted_name = Google::Cloud::Logging::V2::ConfigServiceV2Client.exclusion_path("[PROJECT]", "[EXCLUSION]")
851
- # response = config_client.get_exclusion(formatted_name)
933
+ #
934
+ # # TODO: Initialize `name`:
935
+ # name = ''
936
+ # response = config_client.get_exclusion(name)
852
937
 
853
938
  def get_exclusion \
854
939
  name,
@@ -922,13 +1007,13 @@ module Google
922
1007
  #
923
1008
  # Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
924
1009
  # @param exclusion [Google::Logging::V2::LogExclusion | Hash]
925
- # Required. New values for the existing exclusion. Only the fields specified
926
- # in `update_mask` are relevant.
1010
+ # Required. New values for the existing exclusion. Only the fields specified in
1011
+ # `update_mask` are relevant.
927
1012
  # A hash of the same form as `Google::Logging::V2::LogExclusion`
928
1013
  # can also be provided.
929
1014
  # @param update_mask [Google::Protobuf::FieldMask | Hash]
930
- # Required. A non-empty list of fields to change in the existing exclusion.
931
- # New values for the fields are taken from the corresponding fields in the
1015
+ # Required. A non-empty list of fields to change in the existing exclusion. New values
1016
+ # for the fields are taken from the corresponding fields in the
932
1017
  # {Google::Logging::V2::LogExclusion LogExclusion} included in this request. Fields not mentioned in
933
1018
  # `update_mask` are not changed and are ignored in the request.
934
1019
  #
@@ -948,14 +1033,16 @@ module Google
948
1033
  # require "google/cloud/logging/v2"
949
1034
  #
950
1035
  # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
951
- # formatted_name = Google::Cloud::Logging::V2::ConfigServiceV2Client.exclusion_path("[PROJECT]", "[EXCLUSION]")
1036
+ #
1037
+ # # TODO: Initialize `name`:
1038
+ # name = ''
952
1039
  #
953
1040
  # # TODO: Initialize `exclusion`:
954
1041
  # exclusion = {}
955
1042
  #
956
1043
  # # TODO: Initialize `update_mask`:
957
1044
  # update_mask = {}
958
- # response = config_client.update_exclusion(formatted_name, exclusion, update_mask)
1045
+ # response = config_client.update_exclusion(name, exclusion, update_mask)
959
1046
 
960
1047
  def update_exclusion \
961
1048
  name,
@@ -994,8 +1081,10 @@ module Google
994
1081
  # require "google/cloud/logging/v2"
995
1082
  #
996
1083
  # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
997
- # formatted_name = Google::Cloud::Logging::V2::ConfigServiceV2Client.exclusion_path("[PROJECT]", "[EXCLUSION]")
998
- # config_client.delete_exclusion(formatted_name)
1084
+ #
1085
+ # # TODO: Initialize `name`:
1086
+ # name = ''
1087
+ # config_client.delete_exclusion(name)
999
1088
 
1000
1089
  def delete_exclusion \
1001
1090
  name,
@@ -1043,10 +1132,13 @@ module Google
1043
1132
  # require "google/cloud/logging/v2"
1044
1133
  #
1045
1134
  # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
1046
- # response = config_client.get_cmek_settings
1135
+ #
1136
+ # # TODO: Initialize `name`:
1137
+ # name = ''
1138
+ # response = config_client.get_cmek_settings(name)
1047
1139
 
1048
1140
  def get_cmek_settings \
1049
- name: nil,
1141
+ name,
1050
1142
  options: nil,
1051
1143
  &block
1052
1144
  req = {
@@ -1113,11 +1205,17 @@ module Google
1113
1205
  # require "google/cloud/logging/v2"
1114
1206
  #
1115
1207
  # config_client = Google::Cloud::Logging::V2::ConfigServiceV2Client.new
1116
- # response = config_client.update_cmek_settings
1208
+ #
1209
+ # # TODO: Initialize `name`:
1210
+ # name = ''
1211
+ #
1212
+ # # TODO: Initialize `cmek_settings`:
1213
+ # cmek_settings = {}
1214
+ # response = config_client.update_cmek_settings(name, cmek_settings)
1117
1215
 
1118
1216
  def update_cmek_settings \
1119
- name: nil,
1120
- cmek_settings: nil,
1217
+ name,
1218
+ cmek_settings,
1121
1219
  update_mask: nil,
1122
1220
  options: nil,
1123
1221
  &block