google-api-client 0.46.2 → 0.47.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/trampoline.sh +0 -0
  3. data/CHANGELOG.md +370 -192
  4. data/Gemfile +1 -0
  5. data/Rakefile +31 -3
  6. data/generated/google/apis/accessapproval_v1.rb +1 -1
  7. data/generated/google/apis/accessapproval_v1/classes.rb +13 -15
  8. data/generated/google/apis/admob_v1.rb +1 -1
  9. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  10. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +26 -12
  11. data/generated/google/apis/analyticsdata_v1alpha/service.rb +3 -1
  12. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  13. data/generated/google/apis/androidmanagement_v1/classes.rb +29 -26
  14. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  15. data/generated/google/apis/androidpublisher_v3/classes.rb +2 -1
  16. data/generated/google/apis/apigee_v1.rb +1 -1
  17. data/generated/google/apis/apigee_v1/classes.rb +16 -54
  18. data/generated/google/apis/apigee_v1/representations.rb +1 -18
  19. data/generated/google/apis/apigee_v1/service.rb +21 -13
  20. data/generated/google/apis/area120tables_v1alpha1.rb +46 -0
  21. data/generated/google/apis/area120tables_v1alpha1/classes.rb +423 -0
  22. data/generated/google/apis/area120tables_v1alpha1/representations.rb +248 -0
  23. data/generated/google/apis/area120tables_v1alpha1/service.rb +381 -0
  24. data/generated/google/apis/bigquery_v2.rb +1 -1
  25. data/generated/google/apis/bigquery_v2/classes.rb +72 -0
  26. data/generated/google/apis/bigquery_v2/representations.rb +33 -0
  27. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  28. data/generated/google/apis/binaryauthorization_v1/classes.rb +2 -2
  29. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  30. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +2 -2
  31. data/generated/google/apis/books_v1.rb +1 -1
  32. data/generated/google/apis/books_v1/service.rb +52 -52
  33. data/generated/google/apis/chat_v1.rb +1 -1
  34. data/generated/google/apis/chat_v1/classes.rb +8 -0
  35. data/generated/google/apis/chat_v1/representations.rb +1 -0
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbilling_v1/classes.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +2 -1
  40. data/generated/google/apis/cloudbuild_v1/service.rb +10 -2
  41. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  42. data/generated/google/apis/cloudresourcemanager_v2/service.rb +7 -7
  43. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  44. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +7 -7
  45. data/generated/google/apis/compute_v1.rb +1 -1
  46. data/generated/google/apis/compute_v1/classes.rb +15 -8
  47. data/generated/google/apis/content_v2.rb +2 -3
  48. data/generated/google/apis/content_v2/classes.rb +508 -1216
  49. data/generated/google/apis/content_v2/service.rb +373 -646
  50. data/generated/google/apis/dataproc_v1.rb +1 -1
  51. data/generated/google/apis/dataproc_v1/classes.rb +15 -3
  52. data/generated/google/apis/dataproc_v1/representations.rb +1 -0
  53. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  54. data/generated/google/apis/dataproc_v1beta2/classes.rb +15 -3
  55. data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
  56. data/generated/google/apis/dialogflow_v2.rb +1 -1
  57. data/generated/google/apis/dialogflow_v2/classes.rb +651 -374
  58. data/generated/google/apis/dialogflow_v2/representations.rb +284 -185
  59. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  60. data/generated/google/apis/dialogflow_v2beta1/classes.rb +651 -374
  61. data/generated/google/apis/dialogflow_v2beta1/representations.rb +288 -189
  62. data/generated/google/apis/dialogflow_v2beta1/service.rb +2 -2
  63. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  64. data/generated/google/apis/dialogflow_v3beta1/classes.rb +682 -374
  65. data/generated/google/apis/dialogflow_v3beta1/representations.rb +303 -188
  66. data/generated/google/apis/dialogflow_v3beta1/service.rb +1 -1
  67. data/generated/google/apis/dlp_v2.rb +1 -1
  68. data/generated/google/apis/dlp_v2/classes.rb +29 -29
  69. data/generated/google/apis/dns_v1.rb +2 -2
  70. data/generated/google/apis/dns_v1/service.rb +1 -1
  71. data/generated/google/apis/dns_v1beta2.rb +2 -2
  72. data/generated/google/apis/dns_v1beta2/classes.rb +1 -1
  73. data/generated/google/apis/dns_v1beta2/service.rb +1 -1
  74. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  75. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +3 -2
  76. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  77. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +3 -2
  78. data/generated/google/apis/eventarc_v1beta1.rb +34 -0
  79. data/generated/google/apis/eventarc_v1beta1/classes.rb +933 -0
  80. data/generated/google/apis/eventarc_v1beta1/representations.rb +379 -0
  81. data/generated/google/apis/eventarc_v1beta1/service.rb +579 -0
  82. data/generated/google/apis/games_v1.rb +1 -1
  83. data/generated/google/apis/healthcare_v1.rb +1 -1
  84. data/generated/google/apis/healthcare_v1/service.rb +2 -1
  85. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  86. data/generated/google/apis/healthcare_v1beta1/classes.rb +79 -0
  87. data/generated/google/apis/healthcare_v1beta1/representations.rb +31 -0
  88. data/generated/google/apis/healthcare_v1beta1/service.rb +53 -11
  89. data/generated/google/apis/licensing_v1.rb +1 -1
  90. data/generated/google/apis/licensing_v1/service.rb +2 -2
  91. data/generated/google/apis/localservices_v1.rb +1 -1
  92. data/generated/google/apis/localservices_v1/classes.rb +7 -0
  93. data/generated/google/apis/localservices_v1/representations.rb +2 -0
  94. data/generated/google/apis/logging_v2.rb +1 -1
  95. data/generated/google/apis/logging_v2/classes.rb +4 -5
  96. data/generated/google/apis/ml_v1.rb +1 -1
  97. data/generated/google/apis/ml_v1/classes.rb +238 -77
  98. data/generated/google/apis/ml_v1/representations.rb +17 -0
  99. data/generated/google/apis/monitoring_v3.rb +1 -1
  100. data/generated/google/apis/monitoring_v3/classes.rb +11 -5
  101. data/generated/google/apis/monitoring_v3/service.rb +50 -1
  102. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  103. data/generated/google/apis/pubsub_v1.rb +1 -1
  104. data/generated/google/apis/pubsub_v1/service.rb +2 -2
  105. data/generated/google/apis/recommender_v1.rb +1 -1
  106. data/generated/google/apis/recommender_v1/classes.rb +1 -1
  107. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  108. data/generated/google/apis/recommender_v1beta1/classes.rb +1 -1
  109. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  110. data/generated/google/apis/sasportal_v1alpha1/service.rb +109 -0
  111. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  112. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +5 -63
  113. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -18
  114. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  115. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +5 -63
  116. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +0 -18
  117. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  118. data/generated/google/apis/servicecontrol_v1/classes.rb +32 -2
  119. data/generated/google/apis/servicecontrol_v1/representations.rb +4 -0
  120. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  121. data/generated/google/apis/servicecontrol_v2/classes.rb +17 -0
  122. data/generated/google/apis/servicecontrol_v2/representations.rb +2 -0
  123. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  124. data/generated/google/apis/servicemanagement_v1/classes.rb +4 -3
  125. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  126. data/generated/google/apis/servicenetworking_v1/classes.rb +78 -60
  127. data/generated/google/apis/servicenetworking_v1/representations.rb +29 -14
  128. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  129. data/generated/google/apis/servicenetworking_v1beta/classes.rb +32 -60
  130. data/generated/google/apis/servicenetworking_v1beta/representations.rb +12 -14
  131. data/generated/google/apis/serviceusage_v1.rb +1 -1
  132. data/generated/google/apis/serviceusage_v1/classes.rb +5 -63
  133. data/generated/google/apis/serviceusage_v1/representations.rb +0 -18
  134. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  135. data/generated/google/apis/serviceusage_v1beta1/classes.rb +5 -63
  136. data/generated/google/apis/serviceusage_v1beta1/representations.rb +0 -18
  137. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  138. data/generated/google/apis/storagetransfer_v1/classes.rb +29 -29
  139. data/generated/google/apis/tagmanager_v2.rb +1 -1
  140. data/generated/google/apis/tagmanager_v2/classes.rb +12 -0
  141. data/generated/google/apis/tagmanager_v2/representations.rb +3 -0
  142. data/generated/google/apis/testing_v1.rb +1 -1
  143. data/generated/google/apis/testing_v1/classes.rb +45 -33
  144. data/generated/google/apis/testing_v1/representations.rb +1 -0
  145. data/generated/google/apis/testing_v1/service.rb +4 -4
  146. data/generated/google/apis/videointelligence_v1.rb +1 -1
  147. data/generated/google/apis/videointelligence_v1/service.rb +0 -62
  148. data/generated/google/apis/youtube_v3.rb +1 -1
  149. data/generated/google/apis/youtube_v3/service.rb +2 -2
  150. data/google-api-client.gemspec +25 -25
  151. data/lib/google/apis/core/http_command.rb +2 -1
  152. data/lib/google/apis/options.rb +8 -5
  153. data/lib/google/apis/version.rb +1 -1
  154. metadata +12 -8
  155. data/generated/google/apis/safebrowsing_v4.rb +0 -35
  156. data/generated/google/apis/safebrowsing_v4/classes.rb +0 -909
  157. data/generated/google/apis/safebrowsing_v4/representations.rb +0 -445
  158. data/generated/google/apis/safebrowsing_v4/service.rb +0 -286
@@ -742,12 +742,6 @@ module Google
742
742
  include Google::Apis::Core::JsonObjectSupport
743
743
  end
744
744
 
745
- class GoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange
746
- class Representation < Google::Apis::Core::JsonRepresentation; end
747
-
748
- include Google::Apis::Core::JsonObjectSupport
749
- end
750
-
751
745
  class GoogleCloudApigeeV1Schema
752
746
  class Representation < Google::Apis::Core::JsonRepresentation; end
753
747
 
@@ -2001,6 +1995,7 @@ module Google
2001
1995
  property :project_id, as: 'projectId'
2002
1996
  property :properties, as: 'properties', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Properties, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1Properties::Representation
2003
1997
 
1998
+ property :runtime_database_encryption_key_name, as: 'runtimeDatabaseEncryptionKeyName'
2004
1999
  property :runtime_type, as: 'runtimeType'
2005
2000
  property :subscription_type, as: 'subscriptionType'
2006
2001
  property :type, as: 'type'
@@ -2263,23 +2258,11 @@ module Google
2263
2258
  class GoogleCloudApigeeV1RuntimeTraceSamplingConfig
2264
2259
  # @private
2265
2260
  class Representation < Google::Apis::Core::JsonRepresentation
2266
- collection :error_sources, as: 'errorSources'
2267
- collection :response_code_ranges, as: 'responseCodeRanges', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange::Representation
2268
-
2269
- collection :response_codes, as: 'responseCodes'
2270
2261
  property :sampler, as: 'sampler'
2271
2262
  property :sampling_rate, as: 'samplingRate'
2272
2263
  end
2273
2264
  end
2274
2265
 
2275
- class GoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange
2276
- # @private
2277
- class Representation < Google::Apis::Core::JsonRepresentation
2278
- property :first_response_code, as: 'firstResponseCode'
2279
- property :last_response_code, as: 'lastResponseCode'
2280
- end
2281
- end
2282
-
2283
2266
  class GoogleCloudApigeeV1Schema
2284
2267
  # @private
2285
2268
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4259,11 +4259,13 @@ module Google
4259
4259
  # controlled by the `format` query parameter: * `keycertfile` - Separate PEM-
4260
4260
  # encoded key and certificate files are uploaded. The request must have `Content-
4261
4261
  # Type: multipart/form-data` and include fields `keyFile` and `certFile`. If
4262
- # uploading to a truststore, omit `keyFile`. * `pkcs12` - A PKCS12 file is
4263
- # uploaded. The request must have `Content-Type: multipart/form-data` with the
4264
- # file provided in the only field. * `selfsignedcert` - A new private key and
4265
- # certificate are generated. The request must have `Content-Type: application/
4266
- # json` and a body of CertificateGenerationSpec.
4262
+ # uploading to a truststore, omit `keyFile`. A `password` field should be
4263
+ # provided for encrypted keys. * `pkcs12` - A PKCS12 file is uploaded. The
4264
+ # request must have `Content-Type: multipart/form-data` with the file provided
4265
+ # in the `file` field and a `password` field if the file is encrypted. * `
4266
+ # selfsignedcert` - A new private key and certificate are generated. The request
4267
+ # must have `Content-Type: application/json` and a body of
4268
+ # CertificateGenerationSpec.
4267
4269
  # @param [String] parent
4268
4270
  # Required. The name of the keystore. Must be of the form `organizations/`
4269
4271
  # organization`/environments/`environment`/keystores/`keystore``.
@@ -4936,7 +4938,8 @@ module Google
4936
4938
 
4937
4939
  # Creates a resource file. Specify the `Content-Type` as `application/octet-
4938
4940
  # stream` or `multipart/form-data`. For more information about resource files,
4939
- # see [Resource files](/api-platform/develop/resource-files).
4941
+ # see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/
4942
+ # resource-files).
4940
4943
  # @param [String] parent
4941
4944
  # Required. Name of the environment in which to create the resource file in the
4942
4945
  # following format: `organizations/`org`/environments/`env``.
@@ -4978,7 +4981,8 @@ module Google
4978
4981
  end
4979
4982
 
4980
4983
  # Deletes a resource file. For more information about resource files, see [
4981
- # Resource files](/api-platform/develop/resource-files).
4984
+ # Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/
4985
+ # resource-files).
4982
4986
  # @param [String] parent
4983
4987
  # Required. Name of the environment in the following format: `organizations/`org`
4984
4988
  # /environments/`env``.
@@ -5017,7 +5021,8 @@ module Google
5017
5021
  end
5018
5022
 
5019
5023
  # Gets the contents of a resource file. For more information about resource
5020
- # files, see [Resource files](/api-platform/develop/resource-files).
5024
+ # files, see [Resource files](https://cloud.google.com/apigee/docs/api-platform/
5025
+ # develop/resource-files).
5021
5026
  # @param [String] parent
5022
5027
  # Required. Name of the environment in the following format: `organizations/`org`
5023
5028
  # /environments/`env``.
@@ -5055,8 +5060,9 @@ module Google
5055
5060
  execute_or_queue_command(command, &block)
5056
5061
  end
5057
5062
 
5058
- # Lists all resource files. For more information about resource files, see [
5059
- # Resource files](/api-platform/develop/resource-files).
5063
+ # Lists all resource files, optionally filtering by type. For more information
5064
+ # about resource files, see [Resource files](https://cloud.google.com/apigee/
5065
+ # docs/api-platform/develop/resource-files).
5060
5066
  # @param [String] parent
5061
5067
  # Required. Name of the environment in which to list resource files in the
5062
5068
  # following format: `organizations/`org`/environments/`env``.
@@ -5090,8 +5096,9 @@ module Google
5090
5096
  execute_or_queue_command(command, &block)
5091
5097
  end
5092
5098
 
5093
- # Lists all resource files. For more information about resource files, see [
5094
- # Resource files](/api-platform/develop/resource-files).
5099
+ # Lists all resource files, optionally filtering by type. For more information
5100
+ # about resource files, see [Resource files](https://cloud.google.com/apigee/
5101
+ # docs/api-platform/develop/resource-files).
5095
5102
  # @param [String] parent
5096
5103
  # Required. Name of the environment in which to list resource files in the
5097
5104
  # following format: `organizations/`org`/environments/`env``.
@@ -5127,7 +5134,8 @@ module Google
5127
5134
 
5128
5135
  # Updates a resource file. Specify the `Content-Type` as `application/octet-
5129
5136
  # stream` or `multipart/form-data`. For more information about resource files,
5130
- # see [Resource files](/api-platform/develop/resource-files).
5137
+ # see [Resource files](https://cloud.google.com/apigee/docs/api-platform/develop/
5138
+ # resource-files).
5131
5139
  # @param [String] parent
5132
5140
  # Required. Name of the environment in the following format: `organizations/`org`
5133
5141
  # /environments/`env``.
@@ -0,0 +1,46 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/area120tables_v1alpha1/service.rb'
16
+ require 'google/apis/area120tables_v1alpha1/classes.rb'
17
+ require 'google/apis/area120tables_v1alpha1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Area120 Tables API
22
+ #
23
+ #
24
+ #
25
+ # @see https://tables.area120.google.com
26
+ module Area120tablesV1alpha1
27
+ VERSION = 'V1alpha1'
28
+ REVISION = '20201021'
29
+
30
+ # See, edit, create, and delete all of your Google Drive files
31
+ AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
32
+
33
+ # View and manage Google Drive files and folders that you have opened or created with this app
34
+ AUTH_DRIVE_FILE = 'https://www.googleapis.com/auth/drive.file'
35
+
36
+ # See and download all your Google Drive files
37
+ AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
38
+
39
+ # See, edit, create, and delete your spreadsheets in Google Drive
40
+ AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
41
+
42
+ # View your Google Spreadsheets
43
+ AUTH_SPREADSHEETS_READONLY = 'https://www.googleapis.com/auth/spreadsheets.readonly'
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,423 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module Area120tablesV1alpha1
24
+
25
+ # Request message for TablesService.BatchCreateRows.
26
+ class BatchCreateRowsRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Required. The request message specifying the rows to create. A maximum of 500
30
+ # rows can be created in a single batch.
31
+ # Corresponds to the JSON property `requests`
32
+ # @return [Array<Google::Apis::Area120tablesV1alpha1::CreateRowRequest>]
33
+ attr_accessor :requests
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ @requests = args[:requests] if args.key?(:requests)
42
+ end
43
+ end
44
+
45
+ # Response message for TablesService.BatchCreateRows.
46
+ class BatchCreateRowsResponse
47
+ include Google::Apis::Core::Hashable
48
+
49
+ # The created rows.
50
+ # Corresponds to the JSON property `rows`
51
+ # @return [Array<Google::Apis::Area120tablesV1alpha1::Row>]
52
+ attr_accessor :rows
53
+
54
+ def initialize(**args)
55
+ update!(**args)
56
+ end
57
+
58
+ # Update properties of this object
59
+ def update!(**args)
60
+ @rows = args[:rows] if args.key?(:rows)
61
+ end
62
+ end
63
+
64
+ # Request message for TablesService.BatchUpdateRows.
65
+ class BatchUpdateRowsRequest
66
+ include Google::Apis::Core::Hashable
67
+
68
+ # Required. The request messages specifying the rows to update. A maximum of 500
69
+ # rows can be modified in a single batch.
70
+ # Corresponds to the JSON property `requests`
71
+ # @return [Array<Google::Apis::Area120tablesV1alpha1::UpdateRowRequest>]
72
+ attr_accessor :requests
73
+
74
+ def initialize(**args)
75
+ update!(**args)
76
+ end
77
+
78
+ # Update properties of this object
79
+ def update!(**args)
80
+ @requests = args[:requests] if args.key?(:requests)
81
+ end
82
+ end
83
+
84
+ # Response message for TablesService.BatchUpdateRows.
85
+ class BatchUpdateRowsResponse
86
+ include Google::Apis::Core::Hashable
87
+
88
+ # The updated rows.
89
+ # Corresponds to the JSON property `rows`
90
+ # @return [Array<Google::Apis::Area120tablesV1alpha1::Row>]
91
+ attr_accessor :rows
92
+
93
+ def initialize(**args)
94
+ update!(**args)
95
+ end
96
+
97
+ # Update properties of this object
98
+ def update!(**args)
99
+ @rows = args[:rows] if args.key?(:rows)
100
+ end
101
+ end
102
+
103
+ # Details on a column in the table.
104
+ class ColumnDescription
105
+ include Google::Apis::Core::Hashable
106
+
107
+ # Data type of the column Supported types are auto_id, boolean, boolean_list,
108
+ # creator, create_timestamp, date, dropdown, location, integer, integer_list,
109
+ # number, number_list, person, person_list, tags, check_list, text, text_list,
110
+ # update_timestamp, updater, relationship, file_attachment_list. These types
111
+ # directly map to the column types supported on Tables website.
112
+ # Corresponds to the JSON property `dataType`
113
+ # @return [String]
114
+ attr_accessor :data_type
115
+
116
+ # Internal id for a column.
117
+ # Corresponds to the JSON property `id`
118
+ # @return [String]
119
+ attr_accessor :id
120
+
121
+ # Optional. Range of labeled values for the column. Some columns like tags and
122
+ # drop-downs limit the values to a set of possible values. We return the range
123
+ # of values in such cases to help clients implement better user data validation.
124
+ # Corresponds to the JSON property `labels`
125
+ # @return [Array<Google::Apis::Area120tablesV1alpha1::LabeledItem>]
126
+ attr_accessor :labels
127
+
128
+ # Details about a lookup column whose value comes from the associated
129
+ # relationship.
130
+ # Corresponds to the JSON property `lookupDetails`
131
+ # @return [Google::Apis::Area120tablesV1alpha1::LookupDetails]
132
+ attr_accessor :lookup_details
133
+
134
+ # column name
135
+ # Corresponds to the JSON property `name`
136
+ # @return [String]
137
+ attr_accessor :name
138
+
139
+ # Details about a relationship column.
140
+ # Corresponds to the JSON property `relationshipDetails`
141
+ # @return [Google::Apis::Area120tablesV1alpha1::RelationshipDetails]
142
+ attr_accessor :relationship_details
143
+
144
+ def initialize(**args)
145
+ update!(**args)
146
+ end
147
+
148
+ # Update properties of this object
149
+ def update!(**args)
150
+ @data_type = args[:data_type] if args.key?(:data_type)
151
+ @id = args[:id] if args.key?(:id)
152
+ @labels = args[:labels] if args.key?(:labels)
153
+ @lookup_details = args[:lookup_details] if args.key?(:lookup_details)
154
+ @name = args[:name] if args.key?(:name)
155
+ @relationship_details = args[:relationship_details] if args.key?(:relationship_details)
156
+ end
157
+ end
158
+
159
+ # Request message for TablesService.CreateRow.
160
+ class CreateRowRequest
161
+ include Google::Apis::Core::Hashable
162
+
163
+ # Required. The parent table where this row will be created. Format: tables/`
164
+ # table`
165
+ # Corresponds to the JSON property `parent`
166
+ # @return [String]
167
+ attr_accessor :parent
168
+
169
+ # A single row in a table.
170
+ # Corresponds to the JSON property `row`
171
+ # @return [Google::Apis::Area120tablesV1alpha1::Row]
172
+ attr_accessor :row
173
+
174
+ # Optional. Column key to use for values in the row. Defaults to user entered
175
+ # name.
176
+ # Corresponds to the JSON property `view`
177
+ # @return [String]
178
+ attr_accessor :view
179
+
180
+ def initialize(**args)
181
+ update!(**args)
182
+ end
183
+
184
+ # Update properties of this object
185
+ def update!(**args)
186
+ @parent = args[:parent] if args.key?(:parent)
187
+ @row = args[:row] if args.key?(:row)
188
+ @view = args[:view] if args.key?(:view)
189
+ end
190
+ end
191
+
192
+ # A generic empty message that you can re-use to avoid defining duplicated empty
193
+ # messages in your APIs. A typical example is to use it as the request or the
194
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
195
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
196
+ # `Empty` is empty JSON object ````.
197
+ class Empty
198
+ include Google::Apis::Core::Hashable
199
+
200
+ def initialize(**args)
201
+ update!(**args)
202
+ end
203
+
204
+ # Update properties of this object
205
+ def update!(**args)
206
+ end
207
+ end
208
+
209
+ # A single item in a labeled column.
210
+ class LabeledItem
211
+ include Google::Apis::Core::Hashable
212
+
213
+ # Internal id associated with the item.
214
+ # Corresponds to the JSON property `id`
215
+ # @return [String]
216
+ attr_accessor :id
217
+
218
+ # Display string as entered by user.
219
+ # Corresponds to the JSON property `name`
220
+ # @return [String]
221
+ attr_accessor :name
222
+
223
+ def initialize(**args)
224
+ update!(**args)
225
+ end
226
+
227
+ # Update properties of this object
228
+ def update!(**args)
229
+ @id = args[:id] if args.key?(:id)
230
+ @name = args[:name] if args.key?(:name)
231
+ end
232
+ end
233
+
234
+ # Response message for TablesService.ListRows.
235
+ class ListRowsResponse
236
+ include Google::Apis::Core::Hashable
237
+
238
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
239
+ # field is empty, there are no subsequent pages.
240
+ # Corresponds to the JSON property `nextPageToken`
241
+ # @return [String]
242
+ attr_accessor :next_page_token
243
+
244
+ # The rows from the specified table.
245
+ # Corresponds to the JSON property `rows`
246
+ # @return [Array<Google::Apis::Area120tablesV1alpha1::Row>]
247
+ attr_accessor :rows
248
+
249
+ def initialize(**args)
250
+ update!(**args)
251
+ end
252
+
253
+ # Update properties of this object
254
+ def update!(**args)
255
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
256
+ @rows = args[:rows] if args.key?(:rows)
257
+ end
258
+ end
259
+
260
+ # Response message for TablesService.ListTables.
261
+ class ListTablesResponse
262
+ include Google::Apis::Core::Hashable
263
+
264
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
265
+ # field is empty, there are no subsequent pages.
266
+ # Corresponds to the JSON property `nextPageToken`
267
+ # @return [String]
268
+ attr_accessor :next_page_token
269
+
270
+ # The list of tables.
271
+ # Corresponds to the JSON property `tables`
272
+ # @return [Array<Google::Apis::Area120tablesV1alpha1::Table>]
273
+ attr_accessor :tables
274
+
275
+ def initialize(**args)
276
+ update!(**args)
277
+ end
278
+
279
+ # Update properties of this object
280
+ def update!(**args)
281
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
282
+ @tables = args[:tables] if args.key?(:tables)
283
+ end
284
+ end
285
+
286
+ # Details about a lookup column whose value comes from the associated
287
+ # relationship.
288
+ class LookupDetails
289
+ include Google::Apis::Core::Hashable
290
+
291
+ # The name of the relationship column associated with the lookup.
292
+ # Corresponds to the JSON property `relationshipColumn`
293
+ # @return [String]
294
+ attr_accessor :relationship_column
295
+
296
+ # The id of the relationship column.
297
+ # Corresponds to the JSON property `relationshipColumnId`
298
+ # @return [String]
299
+ attr_accessor :relationship_column_id
300
+
301
+ def initialize(**args)
302
+ update!(**args)
303
+ end
304
+
305
+ # Update properties of this object
306
+ def update!(**args)
307
+ @relationship_column = args[:relationship_column] if args.key?(:relationship_column)
308
+ @relationship_column_id = args[:relationship_column_id] if args.key?(:relationship_column_id)
309
+ end
310
+ end
311
+
312
+ # Details about a relationship column.
313
+ class RelationshipDetails
314
+ include Google::Apis::Core::Hashable
315
+
316
+ # The name of the table this relationship is linked to.
317
+ # Corresponds to the JSON property `linkedTable`
318
+ # @return [String]
319
+ attr_accessor :linked_table
320
+
321
+ def initialize(**args)
322
+ update!(**args)
323
+ end
324
+
325
+ # Update properties of this object
326
+ def update!(**args)
327
+ @linked_table = args[:linked_table] if args.key?(:linked_table)
328
+ end
329
+ end
330
+
331
+ # A single row in a table.
332
+ class Row
333
+ include Google::Apis::Core::Hashable
334
+
335
+ # The resource name of the row. Row names have the form `tables/`table`/rows/`
336
+ # row``. The name is ignored when creating a row.
337
+ # Corresponds to the JSON property `name`
338
+ # @return [String]
339
+ attr_accessor :name
340
+
341
+ # The values of the row. This is a map of column key to value. Key is user
342
+ # entered name(default) or the internal column id based on the view in the
343
+ # request.
344
+ # Corresponds to the JSON property `values`
345
+ # @return [Hash<String,Object>]
346
+ attr_accessor :values
347
+
348
+ def initialize(**args)
349
+ update!(**args)
350
+ end
351
+
352
+ # Update properties of this object
353
+ def update!(**args)
354
+ @name = args[:name] if args.key?(:name)
355
+ @values = args[:values] if args.key?(:values)
356
+ end
357
+ end
358
+
359
+ # A single table.
360
+ class Table
361
+ include Google::Apis::Core::Hashable
362
+
363
+ # List of columns in this table. Order of columns matches the display order.
364
+ # Corresponds to the JSON property `columns`
365
+ # @return [Array<Google::Apis::Area120tablesV1alpha1::ColumnDescription>]
366
+ attr_accessor :columns
367
+
368
+ # The human readable title of the table.
369
+ # Corresponds to the JSON property `displayName`
370
+ # @return [String]
371
+ attr_accessor :display_name
372
+
373
+ # The resource name of the table. Table names have the form `tables/`table``.
374
+ # Corresponds to the JSON property `name`
375
+ # @return [String]
376
+ attr_accessor :name
377
+
378
+ def initialize(**args)
379
+ update!(**args)
380
+ end
381
+
382
+ # Update properties of this object
383
+ def update!(**args)
384
+ @columns = args[:columns] if args.key?(:columns)
385
+ @display_name = args[:display_name] if args.key?(:display_name)
386
+ @name = args[:name] if args.key?(:name)
387
+ end
388
+ end
389
+
390
+ # Request message for TablesService.UpdateRow.
391
+ class UpdateRowRequest
392
+ include Google::Apis::Core::Hashable
393
+
394
+ # A single row in a table.
395
+ # Corresponds to the JSON property `row`
396
+ # @return [Google::Apis::Area120tablesV1alpha1::Row]
397
+ attr_accessor :row
398
+
399
+ # The list of fields to update.
400
+ # Corresponds to the JSON property `updateMask`
401
+ # @return [String]
402
+ attr_accessor :update_mask
403
+
404
+ # Optional. Column key to use for values in the row. Defaults to user entered
405
+ # name.
406
+ # Corresponds to the JSON property `view`
407
+ # @return [String]
408
+ attr_accessor :view
409
+
410
+ def initialize(**args)
411
+ update!(**args)
412
+ end
413
+
414
+ # Update properties of this object
415
+ def update!(**args)
416
+ @row = args[:row] if args.key?(:row)
417
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
418
+ @view = args[:view] if args.key?(:view)
419
+ end
420
+ end
421
+ end
422
+ end
423
+ end