google-area120-tables-v1alpha1 0.2.1 → 0.2.5

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: c06d90ff2cb2dce84c6d2d3cf49d98e37ccf5a8c35266b53634965763185cd9d
4
- data.tar.gz: d3537ec025991267aa584a25b839db34dd2aa136685cc2829f9aaa66c0e41f2b
3
+ metadata.gz: b44c7675451cadcd4af1fc3ab6ee52c6b73f20837961af4e3af7e65bef5c0bbf
4
+ data.tar.gz: d8c10ebe6ffb39ee3a4039c94960cea456dd456ee9c3ac8d946411befcbd70be
5
5
  SHA512:
6
- metadata.gz: 5a6ec69d5d6247c2f7328e040b20abe1b5bb5599369ed9ede49417c46a62d300a3daacf897e74aef03ee833c3570e6dc97b079bb4d2b6681747ce5373096b373
7
- data.tar.gz: 2ab5fdf9455c4b37a50630225e2b2da4d52af5c16a58a28c434f3fb3619fe62a506c7f0dbcbaaf69b21ff56bc0a0acf8f646a79edb9d5b81e0bb4d126619e38e
6
+ metadata.gz: a2dce45d575bd45836c78ff610f0f8d3c98f09c3580870401dfa476ce7f33bbd170c66cf3a4e087f8e990ab44d7f735f62bb7c576b11059bd3ed91e1d591d8c4
7
+ data.tar.gz: 9aa2f9411aafbc162ec554a7279118b233056d26a0e7403257c5cc2f0579c18d36edef8867db183f8fe19e4f4620ec96c1f6d139b701c7fb0a1bb97d450b18ff
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Area 120 Tables V1alpha1 API
2
+ --title="Area 120 Tables V1alpha1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
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"
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Area120
22
22
  module Tables
23
23
  module V1alpha1
24
- VERSION = "0.2.1"
24
+ VERSION = "0.2.5"
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
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-area120-tables-v1alpha1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.5
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-06-17 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0'
206
206
  requirements: []
207
- rubygems_version: 3.2.17
207
+ rubygems_version: 3.3.4
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: API Client library for the Area 120 Tables V1alpha1 API