google-area120-tables-v1alpha1 0.2.0 → 0.2.4

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: 7d63ce77369987c2edced3c2176d123cabe9d81bdaa3b1151271a4eb926e2968
4
- data.tar.gz: 9c7f2cf37b4ba98fd4bb4ac14b7c03fd8fc8b350786f5b74a75ac192d90e62a7
3
+ metadata.gz: fa0f24ee8f55473757562542fa5797a9da51d64ab1e38a9b28b1969e4c945075
4
+ data.tar.gz: 48b11f9d93cc9175c8bdbd1c8b61a55d40f26dea7d0ce1f4835e4fc3e8c57dd3
5
5
  SHA512:
6
- metadata.gz: 6c0f5e4e788fe56db0093e85b23c252467903b8d5c6921ed0b80457a9739be38671031dff3dafe5518c16b07bd0f084569b7b74fc464191415d27b3275de03da
7
- data.tar.gz: 35cfb78fbaaab2fef8e5af82db39d9760ec993e37d0e8ef89bb2f4df43a8796d94a9e47dd4c0b95bb5839d55fd5a5f325a522e40e37bbef87d98cc624fc6c881
6
+ metadata.gz: 0da663232bbadfa2ca9fb9caed6e6be2d475be806a7a3edb55d65719060fc0e09ab18cf7587679a5ad1a6c5cd5809ad3a22c04804323f5d2f61da640ea5d5b67
7
+ data.tar.gz: '008007db3876ae18daae6c3b8dc0db11ec38e21bc3912d9303ac9ae4abdf929d502e1a8cc16255fb971b183db8bc84bd4f7d7985cafac1995e4be16c78117dd6'
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-area120-tables-v1alpha1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Area120::Tables::V1alpha1::TablesService::Credentials}):
68
68
 
69
- 1. `AREA120_TABLES_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `AREA120_TABLES_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `AREA120_TABLES_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `AREA120_TABLES_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/area120/tables/v1alpha1"
@@ -82,8 +82,8 @@ client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/area120/tables/v1alpha1"
@@ -93,7 +93,7 @@ client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |conf
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/area120/tables/v1alpha1"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/area120/tables/v1alpha1"
34
34
 
35
35
  client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Area120::Tables::V1alpha1::GetTableRequest.new # (request fields as keyword arguments...)
37
37
  response = client.get_table request
38
38
  ```
39
39
 
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/area120/tables/v1alpha1/tables.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
10
8
  require 'google/protobuf/empty_pb'
11
9
  require 'google/protobuf/field_mask_pb'
12
10
  require 'google/protobuf/struct_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/area120/tables/v1alpha1/tables.proto", :syntax => :proto3) do
15
15
  add_message "google.area120.tables.v1alpha1.GetTableRequest" do
@@ -52,13 +52,12 @@ module Google
52
52
  # See {::Google::Area120::Tables::V1alpha1::TablesService::Client::Configuration}
53
53
  # for a description of the configuration fields.
54
54
  #
55
- # ## Example
55
+ # @example
56
56
  #
57
- # To modify the configuration for all TablesService clients:
58
- #
59
- # ::Google::Area120::Tables::V1alpha1::TablesService::Client.configure do |config|
60
- # config.timeout = 10.0
61
- # end
57
+ # # Modify the configuration for all TablesService clients
58
+ # ::Google::Area120::Tables::V1alpha1::TablesService::Client.configure do |config|
59
+ # config.timeout = 10.0
60
+ # end
62
61
  #
63
62
  # @yield [config] Configure the Client client.
64
63
  # @yieldparam config [Client::Configuration]
@@ -78,10 +77,7 @@ module Google
78
77
 
79
78
  default_config.timeout = 60.0
80
79
  default_config.retry_policy = {
81
- initial_delay: 1.0,
82
- max_delay: 10.0,
83
- multiplier: 1.3,
84
- retry_codes: [14]
80
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
85
81
  }
86
82
 
87
83
  default_config.rpcs.get_table.timeout = 60.0
@@ -137,19 +133,15 @@ module Google
137
133
  ##
138
134
  # Create a new TablesService client object.
139
135
  #
140
- # ## Examples
141
- #
142
- # To create a new TablesService client with the default
143
- # configuration:
136
+ # @example
144
137
  #
145
- # client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new
138
+ # # Create a client using the default configuration
139
+ # client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new
146
140
  #
147
- # To create a new TablesService client with a custom
148
- # configuration:
149
- #
150
- # client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config|
151
- # config.timeout = 10.0
152
- # end
141
+ # # Create a client using a custom configuration
142
+ # client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config|
143
+ # config.timeout = 10.0
144
+ # end
153
145
  #
154
146
  # @yield [config] Configure the TablesService client.
155
147
  # @yieldparam config [Client::Configuration]
@@ -169,14 +161,13 @@ module Google
169
161
 
170
162
  # Create credentials
171
163
  credentials = @config.credentials
172
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
164
+ # Use self-signed JWT if the endpoint is unchanged from default,
173
165
  # but only if the default endpoint does not have a region prefix.
174
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
175
- @config.endpoint == Client.configure.endpoint &&
166
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
176
167
  !@config.endpoint.split(".").first.include?("-")
177
168
  credentials ||= Credentials.default scope: @config.scope,
178
169
  enable_self_signed_jwt: enable_self_signed_jwt
179
- if credentials.is_a?(String) || credentials.is_a?(Hash)
170
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
180
171
  credentials = Credentials.new credentials, scope: @config.scope
181
172
  end
182
173
  @quota_project_id = @config.quota_project
@@ -223,6 +214,21 @@ module Google
223
214
  #
224
215
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
225
216
  #
217
+ # @example Basic example
218
+ # require "google/area120/tables/v1alpha1"
219
+ #
220
+ # # Create a client object. The client can be reused for multiple calls.
221
+ # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new
222
+ #
223
+ # # Create a request. To set request fields, pass in keyword arguments.
224
+ # request = Google::Area120::Tables::V1alpha1::GetTableRequest.new
225
+ #
226
+ # # Call the get_table method.
227
+ # result = client.get_table request
228
+ #
229
+ # # The returned object is of type Google::Area120::Tables::V1alpha1::Table.
230
+ # p result
231
+ #
226
232
  def get_table request, options = nil
227
233
  raise ::ArgumentError, "request must be provided" if request.nil?
228
234
 
@@ -240,16 +246,20 @@ module Google
240
246
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
241
247
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
242
248
 
243
- header_params = {
244
- "name" => request.name
245
- }
249
+ header_params = {}
250
+ if request.name
251
+ header_params["name"] = request.name
252
+ end
253
+
246
254
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
247
255
  metadata[:"x-goog-request-params"] ||= request_params_header
248
256
 
249
257
  options.apply_defaults timeout: @config.rpcs.get_table.timeout,
250
258
  metadata: metadata,
251
259
  retry_policy: @config.rpcs.get_table.retry_policy
252
- options.apply_defaults metadata: @config.metadata,
260
+
261
+ options.apply_defaults timeout: @config.timeout,
262
+ metadata: @config.metadata,
253
263
  retry_policy: @config.retry_policy
254
264
 
255
265
  @tables_service_stub.call_rpc :get_table, request, options: options do |response, operation|
@@ -299,6 +309,27 @@ module Google
299
309
  #
300
310
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
301
311
  #
312
+ # @example Basic example
313
+ # require "google/area120/tables/v1alpha1"
314
+ #
315
+ # # Create a client object. The client can be reused for multiple calls.
316
+ # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new
317
+ #
318
+ # # Create a request. To set request fields, pass in keyword arguments.
319
+ # request = Google::Area120::Tables::V1alpha1::ListTablesRequest.new
320
+ #
321
+ # # Call the list_tables method.
322
+ # result = client.list_tables request
323
+ #
324
+ # # The returned object is of type Gapic::PagedEnumerable. You can
325
+ # # iterate over all elements by calling #each, and the enumerable
326
+ # # will lazily make API calls to fetch subsequent pages. Other
327
+ # # methods are also available for managing paging directly.
328
+ # result.each do |response|
329
+ # # Each element is of type ::Google::Area120::Tables::V1alpha1::Table.
330
+ # p response
331
+ # end
332
+ #
302
333
  def list_tables request, options = nil
303
334
  raise ::ArgumentError, "request must be provided" if request.nil?
304
335
 
@@ -319,7 +350,9 @@ module Google
319
350
  options.apply_defaults timeout: @config.rpcs.list_tables.timeout,
320
351
  metadata: metadata,
321
352
  retry_policy: @config.rpcs.list_tables.retry_policy
322
- options.apply_defaults metadata: @config.metadata,
353
+
354
+ options.apply_defaults timeout: @config.timeout,
355
+ metadata: @config.metadata,
323
356
  retry_policy: @config.retry_policy
324
357
 
325
358
  @tables_service_stub.call_rpc :list_tables, request, options: options do |response, operation|
@@ -361,6 +394,21 @@ module Google
361
394
  #
362
395
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
363
396
  #
397
+ # @example Basic example
398
+ # require "google/area120/tables/v1alpha1"
399
+ #
400
+ # # Create a client object. The client can be reused for multiple calls.
401
+ # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new
402
+ #
403
+ # # Create a request. To set request fields, pass in keyword arguments.
404
+ # request = Google::Area120::Tables::V1alpha1::GetWorkspaceRequest.new
405
+ #
406
+ # # Call the get_workspace method.
407
+ # result = client.get_workspace request
408
+ #
409
+ # # The returned object is of type Google::Area120::Tables::V1alpha1::Workspace.
410
+ # p result
411
+ #
364
412
  def get_workspace request, options = nil
365
413
  raise ::ArgumentError, "request must be provided" if request.nil?
366
414
 
@@ -378,16 +426,20 @@ module Google
378
426
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
379
427
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
380
428
 
381
- header_params = {
382
- "name" => request.name
383
- }
429
+ header_params = {}
430
+ if request.name
431
+ header_params["name"] = request.name
432
+ end
433
+
384
434
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
385
435
  metadata[:"x-goog-request-params"] ||= request_params_header
386
436
 
387
437
  options.apply_defaults timeout: @config.rpcs.get_workspace.timeout,
388
438
  metadata: metadata,
389
439
  retry_policy: @config.rpcs.get_workspace.retry_policy
390
- options.apply_defaults metadata: @config.metadata,
440
+
441
+ options.apply_defaults timeout: @config.timeout,
442
+ metadata: @config.metadata,
391
443
  retry_policy: @config.retry_policy
392
444
 
393
445
  @tables_service_stub.call_rpc :get_workspace, request, options: options do |response, operation|
@@ -437,6 +489,27 @@ module Google
437
489
  #
438
490
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
439
491
  #
492
+ # @example Basic example
493
+ # require "google/area120/tables/v1alpha1"
494
+ #
495
+ # # Create a client object. The client can be reused for multiple calls.
496
+ # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new
497
+ #
498
+ # # Create a request. To set request fields, pass in keyword arguments.
499
+ # request = Google::Area120::Tables::V1alpha1::ListWorkspacesRequest.new
500
+ #
501
+ # # Call the list_workspaces method.
502
+ # result = client.list_workspaces request
503
+ #
504
+ # # The returned object is of type Gapic::PagedEnumerable. You can
505
+ # # iterate over all elements by calling #each, and the enumerable
506
+ # # will lazily make API calls to fetch subsequent pages. Other
507
+ # # methods are also available for managing paging directly.
508
+ # result.each do |response|
509
+ # # Each element is of type ::Google::Area120::Tables::V1alpha1::Workspace.
510
+ # p response
511
+ # end
512
+ #
440
513
  def list_workspaces request, options = nil
441
514
  raise ::ArgumentError, "request must be provided" if request.nil?
442
515
 
@@ -457,7 +530,9 @@ module Google
457
530
  options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout,
458
531
  metadata: metadata,
459
532
  retry_policy: @config.rpcs.list_workspaces.retry_policy
460
- options.apply_defaults metadata: @config.metadata,
533
+
534
+ options.apply_defaults timeout: @config.timeout,
535
+ metadata: @config.metadata,
461
536
  retry_policy: @config.retry_policy
462
537
 
463
538
  @tables_service_stub.call_rpc :list_workspaces, request, options: options do |response, operation|
@@ -502,6 +577,21 @@ module Google
502
577
  #
503
578
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
504
579
  #
580
+ # @example Basic example
581
+ # require "google/area120/tables/v1alpha1"
582
+ #
583
+ # # Create a client object. The client can be reused for multiple calls.
584
+ # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new
585
+ #
586
+ # # Create a request. To set request fields, pass in keyword arguments.
587
+ # request = Google::Area120::Tables::V1alpha1::GetRowRequest.new
588
+ #
589
+ # # Call the get_row method.
590
+ # result = client.get_row request
591
+ #
592
+ # # The returned object is of type Google::Area120::Tables::V1alpha1::Row.
593
+ # p result
594
+ #
505
595
  def get_row request, options = nil
506
596
  raise ::ArgumentError, "request must be provided" if request.nil?
507
597
 
@@ -519,16 +609,20 @@ module Google
519
609
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
520
610
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
521
611
 
522
- header_params = {
523
- "name" => request.name
524
- }
612
+ header_params = {}
613
+ if request.name
614
+ header_params["name"] = request.name
615
+ end
616
+
525
617
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
526
618
  metadata[:"x-goog-request-params"] ||= request_params_header
527
619
 
528
620
  options.apply_defaults timeout: @config.rpcs.get_row.timeout,
529
621
  metadata: metadata,
530
622
  retry_policy: @config.rpcs.get_row.retry_policy
531
- options.apply_defaults metadata: @config.metadata,
623
+
624
+ options.apply_defaults timeout: @config.timeout,
625
+ metadata: @config.metadata,
532
626
  retry_policy: @config.retry_policy
533
627
 
534
628
  @tables_service_stub.call_rpc :get_row, request, options: options do |response, operation|
@@ -588,6 +682,27 @@ module Google
588
682
  #
589
683
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
590
684
  #
685
+ # @example Basic example
686
+ # require "google/area120/tables/v1alpha1"
687
+ #
688
+ # # Create a client object. The client can be reused for multiple calls.
689
+ # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new
690
+ #
691
+ # # Create a request. To set request fields, pass in keyword arguments.
692
+ # request = Google::Area120::Tables::V1alpha1::ListRowsRequest.new
693
+ #
694
+ # # Call the list_rows method.
695
+ # result = client.list_rows request
696
+ #
697
+ # # The returned object is of type Gapic::PagedEnumerable. You can
698
+ # # iterate over all elements by calling #each, and the enumerable
699
+ # # will lazily make API calls to fetch subsequent pages. Other
700
+ # # methods are also available for managing paging directly.
701
+ # result.each do |response|
702
+ # # Each element is of type ::Google::Area120::Tables::V1alpha1::Row.
703
+ # p response
704
+ # end
705
+ #
591
706
  def list_rows request, options = nil
592
707
  raise ::ArgumentError, "request must be provided" if request.nil?
593
708
 
@@ -605,16 +720,20 @@ module Google
605
720
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
606
721
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
607
722
 
608
- header_params = {
609
- "parent" => request.parent
610
- }
723
+ header_params = {}
724
+ if request.parent
725
+ header_params["parent"] = request.parent
726
+ end
727
+
611
728
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
612
729
  metadata[:"x-goog-request-params"] ||= request_params_header
613
730
 
614
731
  options.apply_defaults timeout: @config.rpcs.list_rows.timeout,
615
732
  metadata: metadata,
616
733
  retry_policy: @config.rpcs.list_rows.retry_policy
617
- options.apply_defaults metadata: @config.metadata,
734
+
735
+ options.apply_defaults timeout: @config.timeout,
736
+ metadata: @config.metadata,
618
737
  retry_policy: @config.retry_policy
619
738
 
620
739
  @tables_service_stub.call_rpc :list_rows, request, options: options do |response, operation|
@@ -661,6 +780,21 @@ module Google
661
780
  #
662
781
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
663
782
  #
783
+ # @example Basic example
784
+ # require "google/area120/tables/v1alpha1"
785
+ #
786
+ # # Create a client object. The client can be reused for multiple calls.
787
+ # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new
788
+ #
789
+ # # Create a request. To set request fields, pass in keyword arguments.
790
+ # request = Google::Area120::Tables::V1alpha1::CreateRowRequest.new
791
+ #
792
+ # # Call the create_row method.
793
+ # result = client.create_row request
794
+ #
795
+ # # The returned object is of type Google::Area120::Tables::V1alpha1::Row.
796
+ # p result
797
+ #
664
798
  def create_row request, options = nil
665
799
  raise ::ArgumentError, "request must be provided" if request.nil?
666
800
 
@@ -678,16 +812,20 @@ module Google
678
812
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
679
813
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
680
814
 
681
- header_params = {
682
- "parent" => request.parent
683
- }
815
+ header_params = {}
816
+ if request.parent
817
+ header_params["parent"] = request.parent
818
+ end
819
+
684
820
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
685
821
  metadata[:"x-goog-request-params"] ||= request_params_header
686
822
 
687
823
  options.apply_defaults timeout: @config.rpcs.create_row.timeout,
688
824
  metadata: metadata,
689
825
  retry_policy: @config.rpcs.create_row.retry_policy
690
- options.apply_defaults metadata: @config.metadata,
826
+
827
+ options.apply_defaults timeout: @config.timeout,
828
+ metadata: @config.metadata,
691
829
  retry_policy: @config.retry_policy
692
830
 
693
831
  @tables_service_stub.call_rpc :create_row, request, options: options do |response, operation|
@@ -732,6 +870,21 @@ module Google
732
870
  #
733
871
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
734
872
  #
873
+ # @example Basic example
874
+ # require "google/area120/tables/v1alpha1"
875
+ #
876
+ # # Create a client object. The client can be reused for multiple calls.
877
+ # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new
878
+ #
879
+ # # Create a request. To set request fields, pass in keyword arguments.
880
+ # request = Google::Area120::Tables::V1alpha1::BatchCreateRowsRequest.new
881
+ #
882
+ # # Call the batch_create_rows method.
883
+ # result = client.batch_create_rows request
884
+ #
885
+ # # The returned object is of type Google::Area120::Tables::V1alpha1::BatchCreateRowsResponse.
886
+ # p result
887
+ #
735
888
  def batch_create_rows request, options = nil
736
889
  raise ::ArgumentError, "request must be provided" if request.nil?
737
890
 
@@ -749,16 +902,20 @@ module Google
749
902
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
750
903
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
751
904
 
752
- header_params = {
753
- "parent" => request.parent
754
- }
905
+ header_params = {}
906
+ if request.parent
907
+ header_params["parent"] = request.parent
908
+ end
909
+
755
910
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
756
911
  metadata[:"x-goog-request-params"] ||= request_params_header
757
912
 
758
913
  options.apply_defaults timeout: @config.rpcs.batch_create_rows.timeout,
759
914
  metadata: metadata,
760
915
  retry_policy: @config.rpcs.batch_create_rows.retry_policy
761
- options.apply_defaults metadata: @config.metadata,
916
+
917
+ options.apply_defaults timeout: @config.timeout,
918
+ metadata: @config.metadata,
762
919
  retry_policy: @config.retry_policy
763
920
 
764
921
  @tables_service_stub.call_rpc :batch_create_rows, request, options: options do |response, operation|
@@ -803,6 +960,21 @@ module Google
803
960
  #
804
961
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
805
962
  #
963
+ # @example Basic example
964
+ # require "google/area120/tables/v1alpha1"
965
+ #
966
+ # # Create a client object. The client can be reused for multiple calls.
967
+ # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new
968
+ #
969
+ # # Create a request. To set request fields, pass in keyword arguments.
970
+ # request = Google::Area120::Tables::V1alpha1::UpdateRowRequest.new
971
+ #
972
+ # # Call the update_row method.
973
+ # result = client.update_row request
974
+ #
975
+ # # The returned object is of type Google::Area120::Tables::V1alpha1::Row.
976
+ # p result
977
+ #
806
978
  def update_row request, options = nil
807
979
  raise ::ArgumentError, "request must be provided" if request.nil?
808
980
 
@@ -820,16 +992,20 @@ module Google
820
992
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
821
993
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
822
994
 
823
- header_params = {
824
- "row.name" => request.row.name
825
- }
995
+ header_params = {}
996
+ if request.row&.name
997
+ header_params["row.name"] = request.row.name
998
+ end
999
+
826
1000
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
827
1001
  metadata[:"x-goog-request-params"] ||= request_params_header
828
1002
 
829
1003
  options.apply_defaults timeout: @config.rpcs.update_row.timeout,
830
1004
  metadata: metadata,
831
1005
  retry_policy: @config.rpcs.update_row.retry_policy
832
- options.apply_defaults metadata: @config.metadata,
1006
+
1007
+ options.apply_defaults timeout: @config.timeout,
1008
+ metadata: @config.metadata,
833
1009
  retry_policy: @config.retry_policy
834
1010
 
835
1011
  @tables_service_stub.call_rpc :update_row, request, options: options do |response, operation|
@@ -874,6 +1050,21 @@ module Google
874
1050
  #
875
1051
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
876
1052
  #
1053
+ # @example Basic example
1054
+ # require "google/area120/tables/v1alpha1"
1055
+ #
1056
+ # # Create a client object. The client can be reused for multiple calls.
1057
+ # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new
1058
+ #
1059
+ # # Create a request. To set request fields, pass in keyword arguments.
1060
+ # request = Google::Area120::Tables::V1alpha1::BatchUpdateRowsRequest.new
1061
+ #
1062
+ # # Call the batch_update_rows method.
1063
+ # result = client.batch_update_rows request
1064
+ #
1065
+ # # The returned object is of type Google::Area120::Tables::V1alpha1::BatchUpdateRowsResponse.
1066
+ # p result
1067
+ #
877
1068
  def batch_update_rows request, options = nil
878
1069
  raise ::ArgumentError, "request must be provided" if request.nil?
879
1070
 
@@ -891,16 +1082,20 @@ module Google
891
1082
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
892
1083
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
893
1084
 
894
- header_params = {
895
- "parent" => request.parent
896
- }
1085
+ header_params = {}
1086
+ if request.parent
1087
+ header_params["parent"] = request.parent
1088
+ end
1089
+
897
1090
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
898
1091
  metadata[:"x-goog-request-params"] ||= request_params_header
899
1092
 
900
1093
  options.apply_defaults timeout: @config.rpcs.batch_update_rows.timeout,
901
1094
  metadata: metadata,
902
1095
  retry_policy: @config.rpcs.batch_update_rows.retry_policy
903
- options.apply_defaults metadata: @config.metadata,
1096
+
1097
+ options.apply_defaults timeout: @config.timeout,
1098
+ metadata: @config.metadata,
904
1099
  retry_policy: @config.retry_policy
905
1100
 
906
1101
  @tables_service_stub.call_rpc :batch_update_rows, request, options: options do |response, operation|
@@ -941,6 +1136,21 @@ module Google
941
1136
  #
942
1137
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
943
1138
  #
1139
+ # @example Basic example
1140
+ # require "google/area120/tables/v1alpha1"
1141
+ #
1142
+ # # Create a client object. The client can be reused for multiple calls.
1143
+ # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new
1144
+ #
1145
+ # # Create a request. To set request fields, pass in keyword arguments.
1146
+ # request = Google::Area120::Tables::V1alpha1::DeleteRowRequest.new
1147
+ #
1148
+ # # Call the delete_row method.
1149
+ # result = client.delete_row request
1150
+ #
1151
+ # # The returned object is of type Google::Protobuf::Empty.
1152
+ # p result
1153
+ #
944
1154
  def delete_row request, options = nil
945
1155
  raise ::ArgumentError, "request must be provided" if request.nil?
946
1156
 
@@ -958,16 +1168,20 @@ module Google
958
1168
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
959
1169
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
960
1170
 
961
- header_params = {
962
- "name" => request.name
963
- }
1171
+ header_params = {}
1172
+ if request.name
1173
+ header_params["name"] = request.name
1174
+ end
1175
+
964
1176
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
965
1177
  metadata[:"x-goog-request-params"] ||= request_params_header
966
1178
 
967
1179
  options.apply_defaults timeout: @config.rpcs.delete_row.timeout,
968
1180
  metadata: metadata,
969
1181
  retry_policy: @config.rpcs.delete_row.retry_policy
970
- options.apply_defaults metadata: @config.metadata,
1182
+
1183
+ options.apply_defaults timeout: @config.timeout,
1184
+ metadata: @config.metadata,
971
1185
  retry_policy: @config.retry_policy
972
1186
 
973
1187
  @tables_service_stub.call_rpc :delete_row, request, options: options do |response, operation|
@@ -1013,6 +1227,21 @@ module Google
1013
1227
  #
1014
1228
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1015
1229
  #
1230
+ # @example Basic example
1231
+ # require "google/area120/tables/v1alpha1"
1232
+ #
1233
+ # # Create a client object. The client can be reused for multiple calls.
1234
+ # client = Google::Area120::Tables::V1alpha1::TablesService::Client.new
1235
+ #
1236
+ # # Create a request. To set request fields, pass in keyword arguments.
1237
+ # request = Google::Area120::Tables::V1alpha1::BatchDeleteRowsRequest.new
1238
+ #
1239
+ # # Call the batch_delete_rows method.
1240
+ # result = client.batch_delete_rows request
1241
+ #
1242
+ # # The returned object is of type Google::Protobuf::Empty.
1243
+ # p result
1244
+ #
1016
1245
  def batch_delete_rows request, options = nil
1017
1246
  raise ::ArgumentError, "request must be provided" if request.nil?
1018
1247
 
@@ -1030,16 +1259,20 @@ module Google
1030
1259
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
1031
1260
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1032
1261
 
1033
- header_params = {
1034
- "parent" => request.parent
1035
- }
1262
+ header_params = {}
1263
+ if request.parent
1264
+ header_params["parent"] = request.parent
1265
+ end
1266
+
1036
1267
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1037
1268
  metadata[:"x-goog-request-params"] ||= request_params_header
1038
1269
 
1039
1270
  options.apply_defaults timeout: @config.rpcs.batch_delete_rows.timeout,
1040
1271
  metadata: metadata,
1041
1272
  retry_policy: @config.rpcs.batch_delete_rows.retry_policy
1042
- options.apply_defaults metadata: @config.metadata,
1273
+
1274
+ options.apply_defaults timeout: @config.timeout,
1275
+ metadata: @config.metadata,
1043
1276
  retry_policy: @config.retry_policy
1044
1277
 
1045
1278
  @tables_service_stub.call_rpc :batch_delete_rows, request, options: options do |response, operation|
@@ -1063,22 +1296,21 @@ module Google
1063
1296
  # Configuration can be applied globally to all clients, or to a single client
1064
1297
  # on construction.
1065
1298
  #
1066
- # # Examples
1067
- #
1068
- # To modify the global config, setting the timeout for get_table
1069
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1070
- #
1071
- # ::Google::Area120::Tables::V1alpha1::TablesService::Client.configure do |config|
1072
- # config.timeout = 10.0
1073
- # config.rpcs.get_table.timeout = 20.0
1074
- # end
1075
- #
1076
- # To apply the above configuration only to a new client:
1077
- #
1078
- # client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config|
1079
- # config.timeout = 10.0
1080
- # config.rpcs.get_table.timeout = 20.0
1081
- # end
1299
+ # @example
1300
+ #
1301
+ # # Modify the global config, setting the timeout for
1302
+ # # get_table to 20 seconds,
1303
+ # # and all remaining timeouts to 10 seconds.
1304
+ # ::Google::Area120::Tables::V1alpha1::TablesService::Client.configure do |config|
1305
+ # config.timeout = 10.0
1306
+ # config.rpcs.get_table.timeout = 20.0
1307
+ # end
1308
+ #
1309
+ # # Apply the above configuration only to a new client.
1310
+ # client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new do |config|
1311
+ # config.timeout = 10.0
1312
+ # config.rpcs.get_table.timeout = 20.0
1313
+ # end
1082
1314
  #
1083
1315
  # @!attribute [rw] endpoint
1084
1316
  # The hostname or hostname:port of the service endpoint.
@@ -38,7 +38,7 @@ module Google
38
38
  # resources, named `workspaces/*`.
39
39
  class Service
40
40
 
41
- include GRPC::GenericService
41
+ include ::GRPC::GenericService
42
42
 
43
43
  self.marshal_class_method = :encode
44
44
  self.unmarshal_class_method = :decode
@@ -21,7 +21,7 @@ module Google
21
21
  module Area120
22
22
  module Tables
23
23
  module V1alpha1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.4"
25
25
  end
26
26
  end
27
27
  end
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
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
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-area120-tables-v1alpha1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-08 00:00:00.000000000 Z
11
+ date: 2021-11-08 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.7'
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.7'
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
@@ -198,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
204
  - !ruby/object:Gem::Version
199
205
  version: '0'
200
206
  requirements: []
201
- rubygems_version: 3.2.13
207
+ rubygems_version: 3.2.17
202
208
  signing_key:
203
209
  specification_version: 4
204
210
  summary: API Client library for the Area 120 Tables V1alpha1 API