google-area120-tables-v1alpha1 0.2.3 → 0.3.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: 8bdbd011dd4ed53256374b66246d86684df74bf9f7e3eca80c4cc496fa25d46d
4
- data.tar.gz: 9db53a244886f9918f137feb13d8aaf6f7e4ded596f2b3a17ecdd596743d4987
3
+ metadata.gz: d0c5d8147e334baa7238257ca0a7b7d02b89d6a2642871792c19dafbea9e6f99
4
+ data.tar.gz: 936e0a77f49dec88d13457b3c0bd476880b67fe8e224dd4f4bd33535296cbc0a
5
5
  SHA512:
6
- metadata.gz: 05f6c95e01c7134987bffdc615d4f1ef0cfa8adb2fece5467ac65609de185275bb71827cd400e5964bf095ab373d9d45050af4ef6c2909dcaedbfe70c9c73732
7
- data.tar.gz: f7d959c52bd996421a85fa13796616d34ea3bd7fbd23fcba312147097003b2dc42f37a0fa4d83a316dae25492595fa13f224011fc7a76571f868665060397d64
6
+ metadata.gz: c9526d9cdaf4a555479d58e8babc7e9e4fc5649064dd1c120737784c4abc871e3320229b6b5af137614a0636c9d1157403ae0340a544a6d9cbd6c20375b2fd6d
7
+ data.tar.gz: b9061c1a15dbd93b42dec6a9e41bc5f1bf34f5625e5439692c22935c518999ac4ddfbf98e9c3f048af8c7dc712ff7c1c15b27613b7ee027752b204e6e7169c22
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
@@ -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
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -10,6 +10,7 @@ require 'google/api/resource_pb'
10
10
  require 'google/protobuf/empty_pb'
11
11
  require 'google/protobuf/field_mask_pb'
12
12
  require 'google/protobuf/struct_pb'
13
+
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/area120/tables/v1alpha1/tables.proto", :syntax => :proto3) do
15
16
  add_message "google.area120.tables.v1alpha1.GetTableRequest" do
@@ -214,6 +214,21 @@ module Google
214
214
  #
215
215
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
216
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
+ #
217
232
  def get_table request, options = nil
218
233
  raise ::ArgumentError, "request must be provided" if request.nil?
219
234
 
@@ -231,9 +246,11 @@ module Google
231
246
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
232
247
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
233
248
 
234
- header_params = {
235
- "name" => request.name
236
- }
249
+ header_params = {}
250
+ if request.name
251
+ header_params["name"] = request.name
252
+ end
253
+
237
254
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
238
255
  metadata[:"x-goog-request-params"] ||= request_params_header
239
256
 
@@ -292,6 +309,27 @@ module Google
292
309
  #
293
310
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
294
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
+ #
295
333
  def list_tables request, options = nil
296
334
  raise ::ArgumentError, "request must be provided" if request.nil?
297
335
 
@@ -356,6 +394,21 @@ module Google
356
394
  #
357
395
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
358
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
+ #
359
412
  def get_workspace request, options = nil
360
413
  raise ::ArgumentError, "request must be provided" if request.nil?
361
414
 
@@ -373,9 +426,11 @@ module Google
373
426
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
374
427
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
375
428
 
376
- header_params = {
377
- "name" => request.name
378
- }
429
+ header_params = {}
430
+ if request.name
431
+ header_params["name"] = request.name
432
+ end
433
+
379
434
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
380
435
  metadata[:"x-goog-request-params"] ||= request_params_header
381
436
 
@@ -434,6 +489,27 @@ module Google
434
489
  #
435
490
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
436
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
+ #
437
513
  def list_workspaces request, options = nil
438
514
  raise ::ArgumentError, "request must be provided" if request.nil?
439
515
 
@@ -501,6 +577,21 @@ module Google
501
577
  #
502
578
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
503
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
+ #
504
595
  def get_row request, options = nil
505
596
  raise ::ArgumentError, "request must be provided" if request.nil?
506
597
 
@@ -518,9 +609,11 @@ module Google
518
609
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
519
610
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
520
611
 
521
- header_params = {
522
- "name" => request.name
523
- }
612
+ header_params = {}
613
+ if request.name
614
+ header_params["name"] = request.name
615
+ end
616
+
524
617
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
525
618
  metadata[:"x-goog-request-params"] ||= request_params_header
526
619
 
@@ -589,6 +682,27 @@ module Google
589
682
  #
590
683
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
591
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
+ #
592
706
  def list_rows request, options = nil
593
707
  raise ::ArgumentError, "request must be provided" if request.nil?
594
708
 
@@ -606,9 +720,11 @@ module Google
606
720
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
607
721
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
608
722
 
609
- header_params = {
610
- "parent" => request.parent
611
- }
723
+ header_params = {}
724
+ if request.parent
725
+ header_params["parent"] = request.parent
726
+ end
727
+
612
728
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
613
729
  metadata[:"x-goog-request-params"] ||= request_params_header
614
730
 
@@ -664,6 +780,21 @@ module Google
664
780
  #
665
781
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
666
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
+ #
667
798
  def create_row request, options = nil
668
799
  raise ::ArgumentError, "request must be provided" if request.nil?
669
800
 
@@ -681,9 +812,11 @@ module Google
681
812
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
682
813
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
683
814
 
684
- header_params = {
685
- "parent" => request.parent
686
- }
815
+ header_params = {}
816
+ if request.parent
817
+ header_params["parent"] = request.parent
818
+ end
819
+
687
820
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
688
821
  metadata[:"x-goog-request-params"] ||= request_params_header
689
822
 
@@ -737,6 +870,21 @@ module Google
737
870
  #
738
871
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
739
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
+ #
740
888
  def batch_create_rows request, options = nil
741
889
  raise ::ArgumentError, "request must be provided" if request.nil?
742
890
 
@@ -754,9 +902,11 @@ module Google
754
902
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
755
903
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
756
904
 
757
- header_params = {
758
- "parent" => request.parent
759
- }
905
+ header_params = {}
906
+ if request.parent
907
+ header_params["parent"] = request.parent
908
+ end
909
+
760
910
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
761
911
  metadata[:"x-goog-request-params"] ||= request_params_header
762
912
 
@@ -810,6 +960,21 @@ module Google
810
960
  #
811
961
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
812
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
+ #
813
978
  def update_row request, options = nil
814
979
  raise ::ArgumentError, "request must be provided" if request.nil?
815
980
 
@@ -827,9 +992,11 @@ module Google
827
992
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
828
993
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
829
994
 
830
- header_params = {
831
- "row.name" => request.row.name
832
- }
995
+ header_params = {}
996
+ if request.row&.name
997
+ header_params["row.name"] = request.row.name
998
+ end
999
+
833
1000
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
834
1001
  metadata[:"x-goog-request-params"] ||= request_params_header
835
1002
 
@@ -883,6 +1050,21 @@ module Google
883
1050
  #
884
1051
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
885
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
+ #
886
1068
  def batch_update_rows request, options = nil
887
1069
  raise ::ArgumentError, "request must be provided" if request.nil?
888
1070
 
@@ -900,9 +1082,11 @@ module Google
900
1082
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
901
1083
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
902
1084
 
903
- header_params = {
904
- "parent" => request.parent
905
- }
1085
+ header_params = {}
1086
+ if request.parent
1087
+ header_params["parent"] = request.parent
1088
+ end
1089
+
906
1090
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
907
1091
  metadata[:"x-goog-request-params"] ||= request_params_header
908
1092
 
@@ -952,6 +1136,21 @@ module Google
952
1136
  #
953
1137
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
954
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
+ #
955
1154
  def delete_row request, options = nil
956
1155
  raise ::ArgumentError, "request must be provided" if request.nil?
957
1156
 
@@ -969,9 +1168,11 @@ module Google
969
1168
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
970
1169
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
971
1170
 
972
- header_params = {
973
- "name" => request.name
974
- }
1171
+ header_params = {}
1172
+ if request.name
1173
+ header_params["name"] = request.name
1174
+ end
1175
+
975
1176
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
976
1177
  metadata[:"x-goog-request-params"] ||= request_params_header
977
1178
 
@@ -1026,6 +1227,21 @@ module Google
1026
1227
  #
1027
1228
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1028
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
+ #
1029
1245
  def batch_delete_rows request, options = nil
1030
1246
  raise ::ArgumentError, "request must be provided" if request.nil?
1031
1247
 
@@ -1043,9 +1259,11 @@ module Google
1043
1259
  gapic_version: ::Google::Area120::Tables::V1alpha1::VERSION
1044
1260
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1045
1261
 
1046
- header_params = {
1047
- "parent" => request.parent
1048
- }
1262
+ header_params = {}
1263
+ if request.parent
1264
+ header_params["parent"] = request.parent
1265
+ end
1266
+
1049
1267
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1050
1268
  metadata[:"x-goog-request-params"] ||= request_params_header
1051
1269
 
@@ -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.3"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/area120/tables/v1alpha1"
29
31
  # client = ::Google::Area120::Tables::V1alpha1::TablesService::Client.new
30
32
  #
@@ -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
@@ -46,8 +46,8 @@ module Google
46
46
 
47
47
  # `Value` represents a dynamically typed value which can be either
48
48
  # null, a number, a string, a boolean, a recursive struct value, or a
49
- # list of values. A producer of value is expected to set one of that
50
- # variants, absence of any variant indicates an error.
49
+ # list of values. A producer of value is expected to set one of these
50
+ # variants. Absence of any variant indicates an error.
51
51
  #
52
52
  # The JSON representation for `Value` is JSON value.
53
53
  # @!attribute [rw] null_value
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.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2022-07-01 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.7'
19
+ version: '0.10'
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.7'
29
+ version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.25.1
53
+ version: 1.26.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.25.1
60
+ version: 1.26.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.14'
67
+ version: '5.16'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '5.14'
74
+ version: '5.16'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest-focus
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '12.0'
109
+ version: '13.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -197,14 +197,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - ">="
199
199
  - !ruby/object:Gem::Version
200
- version: '2.5'
200
+ version: '2.6'
201
201
  required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  requirements:
203
203
  - - ">="
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0'
206
206
  requirements: []
207
- rubygems_version: 3.2.17
207
+ rubygems_version: 3.3.14
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: API Client library for the Area 120 Tables V1alpha1 API