google-api-client 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +11 -2
  4. data/api_names.yaml +76 -43
  5. data/api_names_out.yaml +3853 -3508
  6. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +151 -151
  7. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +2785 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1033 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1378 -0
  11. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +79 -79
  12. data/generated/google/apis/admin_datatransfer_v1/classes.rb +26 -26
  13. data/generated/google/apis/admin_directory_v1/classes.rb +374 -374
  14. data/generated/google/apis/admin_reports_v1/classes.rb +63 -63
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4/classes.rb +145 -143
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1/classes.rb +95 -92
  19. data/generated/google/apis/analytics_v3/classes.rb +582 -582
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +132 -132
  22. data/generated/google/apis/androidenterprise_v1/service.rb +9 -8
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +122 -122
  24. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  25. data/generated/google/apis/appengine_v1beta4/classes.rb +195 -142
  26. data/generated/google/apis/appengine_v1beta4/representations.rb +16 -0
  27. data/generated/google/apis/appengine_v1beta4/service.rb +3 -2
  28. data/generated/google/apis/appengine_v1beta5.rb +35 -0
  29. data/generated/google/apis/appengine_v1beta5/classes.rb +1523 -0
  30. data/generated/google/apis/appengine_v1beta5/representations.rb +525 -0
  31. data/generated/google/apis/appengine_v1beta5/service.rb +478 -0
  32. data/generated/google/apis/appsactivity_v1/classes.rb +34 -34
  33. data/generated/google/apis/appstate_v1.rb +1 -1
  34. data/generated/google/apis/appstate_v1/classes.rb +12 -12
  35. data/generated/google/apis/autoscaler_v1beta2/classes.rb +82 -82
  36. data/generated/google/apis/bigquery_v2.rb +1 -1
  37. data/generated/google/apis/bigquery_v2/classes.rb +266 -265
  38. data/generated/google/apis/blogger_v3/classes.rb +145 -145
  39. data/generated/google/apis/books_v1.rb +1 -1
  40. data/generated/google/apis/books_v1/classes.rb +431 -431
  41. data/generated/google/apis/books_v1/service.rb +3 -12
  42. data/generated/google/apis/calendar_v3.rb +1 -1
  43. data/generated/google/apis/calendar_v3/classes.rb +180 -180
  44. data/generated/google/apis/civicinfo_v2/classes.rb +125 -125
  45. data/generated/google/apis/classroom_v1/classes.rb +42 -42
  46. data/generated/google/apis/cloudbilling_v1/classes.rb +11 -11
  47. data/generated/google/apis/{mapsengine_v1.rb → cloudbuild_v1.rb} +11 -14
  48. data/generated/google/apis/cloudbuild_v1/classes.rb +521 -0
  49. data/generated/google/apis/cloudbuild_v1/representations.rb +190 -0
  50. data/generated/google/apis/cloudbuild_v1/service.rb +278 -0
  51. data/generated/google/apis/clouddebugger_v2/classes.rb +81 -81
  52. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  53. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  54. data/generated/google/apis/cloudlatencytest_v2/representations.rb +113 -0
  55. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  56. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  57. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +55 -55
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +26 -26
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +13 -13
  60. data/generated/google/apis/clouduseraccounts_beta/classes.rb +85 -85
  61. data/generated/google/apis/compute_beta.rb +1 -1
  62. data/generated/google/apis/compute_beta/classes.rb +1051 -998
  63. data/generated/google/apis/compute_beta/representations.rb +1 -0
  64. data/generated/google/apis/compute_beta/service.rb +426 -366
  65. data/generated/google/apis/compute_v1.rb +1 -1
  66. data/generated/google/apis/compute_v1/classes.rb +1332 -946
  67. data/generated/google/apis/compute_v1/representations.rb +108 -0
  68. data/generated/google/apis/compute_v1/service.rb +686 -318
  69. data/generated/google/apis/container_v1/classes.rb +43 -43
  70. data/generated/google/apis/content_v2.rb +1 -1
  71. data/generated/google/apis/content_v2/classes.rb +767 -639
  72. data/generated/google/apis/content_v2/representations.rb +40 -0
  73. data/generated/google/apis/coordinate_v1/classes.rb +66 -66
  74. data/generated/google/apis/customsearch_v1/classes.rb +96 -96
  75. data/generated/google/apis/dataproc_v1.rb +43 -0
  76. data/generated/google/apis/dataproc_v1/classes.rb +175 -0
  77. data/generated/google/apis/dataproc_v1/representations.rb +84 -0
  78. data/generated/google/apis/dataproc_v1/service.rb +142 -0
  79. data/generated/google/apis/datastore_v1beta2/classes.rb +105 -105
  80. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  81. data/generated/google/apis/deploymentmanager_v2/classes.rb +183 -112
  82. data/generated/google/apis/deploymentmanager_v2/representations.rb +28 -0
  83. data/generated/google/apis/deploymentmanager_v2/service.rb +42 -37
  84. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  85. data/generated/google/apis/dfareporting_v2_3/classes.rb +10830 -0
  86. data/generated/google/apis/dfareporting_v2_3/representations.rb +3443 -0
  87. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  88. data/generated/google/apis/discovery_v1/classes.rb +106 -106
  89. data/generated/google/apis/dns_v1/classes.rb +39 -39
  90. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  91. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +155 -69
  92. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +31 -0
  93. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +33 -0
  94. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  95. data/generated/google/apis/doubleclicksearch_v2/classes.rb +106 -104
  96. data/generated/google/apis/drive_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2/classes.rb +308 -308
  98. data/generated/google/apis/drive_v2/service.rb +44 -0
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +178 -178
  101. data/generated/google/apis/drive_v3/service.rb +2 -1
  102. data/generated/google/apis/fitness_v1/classes.rb +74 -74
  103. data/generated/google/apis/fusiontables_v2/classes.rb +108 -108
  104. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  105. data/generated/google/apis/games_configuration_v1configuration/classes.rb +52 -52
  106. data/generated/google/apis/games_management_v1management.rb +2 -2
  107. data/generated/google/apis/games_management_v1management/classes.rb +55 -46
  108. data/generated/google/apis/games_management_v1management/representations.rb +1 -0
  109. data/generated/google/apis/games_v1.rb +2 -2
  110. data/generated/google/apis/games_v1/classes.rb +484 -475
  111. data/generated/google/apis/games_v1/representations.rb +1 -0
  112. data/generated/google/apis/gan_v1beta1/classes.rb +187 -187
  113. data/generated/google/apis/genomics_v1.rb +2 -2
  114. data/generated/google/apis/genomics_v1/classes.rb +441 -232
  115. data/generated/google/apis/genomics_v1/representations.rb +85 -0
  116. data/generated/google/apis/genomics_v1/service.rb +1 -1
  117. data/generated/google/apis/gmail_v1/classes.rb +73 -73
  118. data/generated/google/apis/groupsmigration_v1/classes.rb +2 -2
  119. data/generated/google/apis/groupssettings_v1/classes.rb +28 -28
  120. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  121. data/generated/google/apis/identitytoolkit_v3/classes.rb +232 -166
  122. data/generated/google/apis/identitytoolkit_v3/representations.rb +10 -0
  123. data/generated/google/apis/kgsearch_v1/classes.rb +3 -3
  124. data/generated/google/apis/licensing_v1/classes.rb +11 -11
  125. data/generated/google/apis/logging_v2beta1.rb +47 -0
  126. data/generated/google/apis/logging_v2beta1/classes.rb +990 -0
  127. data/generated/google/apis/logging_v2beta1/representations.rb +337 -0
  128. data/generated/google/apis/logging_v2beta1/service.rb +547 -0
  129. data/generated/google/apis/manager_v1beta2/classes.rb +125 -125
  130. data/generated/google/apis/mirror_v1/classes.rb +101 -101
  131. data/generated/google/apis/oauth2_v2.rb +2 -2
  132. data/generated/google/apis/oauth2_v2/classes.rb +27 -27
  133. data/generated/google/apis/pagespeedonline_v2/classes.rb +62 -62
  134. data/generated/google/apis/partners_v2/classes.rb +87 -87
  135. data/generated/google/apis/people_v1.rb +59 -0
  136. data/generated/google/apis/people_v1/classes.rb +1594 -0
  137. data/generated/google/apis/people_v1/representations.rb +593 -0
  138. data/generated/google/apis/people_v1/service.rb +193 -0
  139. data/generated/google/apis/plus_domains_v1.rb +2 -2
  140. data/generated/google/apis/plus_domains_v1/classes.rb +274 -274
  141. data/generated/google/apis/plus_v1.rb +2 -2
  142. data/generated/google/apis/plus_v1/classes.rb +215 -215
  143. data/generated/google/apis/prediction_v1_6/classes.rb +73 -73
  144. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +45 -45
  145. data/generated/google/apis/pubsub_v1/classes.rb +36 -36
  146. data/generated/google/apis/qpx_express_v1/classes.rb +135 -135
  147. data/generated/google/apis/replicapool_v1beta2/classes.rb +63 -63
  148. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +76 -76
  149. data/generated/google/apis/reseller_v1.rb +1 -1
  150. data/generated/google/apis/reseller_v1/classes.rb +55 -55
  151. data/generated/google/apis/reseller_v1/service.rb +1 -1
  152. data/generated/google/apis/resourceviews_v1beta2/classes.rb +68 -68
  153. data/generated/google/apis/script_v1/classes.rb +18 -18
  154. data/generated/google/apis/site_verification_v1/classes.rb +12 -12
  155. data/generated/google/apis/sqladmin_v1beta4/classes.rb +203 -203
  156. data/generated/google/apis/storage_v1.rb +1 -1
  157. data/generated/google/apis/storage_v1/classes.rb +130 -130
  158. data/generated/google/apis/storagetransfer_v1/classes.rb +84 -84
  159. data/generated/google/apis/tagmanager_v1/classes.rb +154 -154
  160. data/generated/google/apis/taskqueue_v1beta2/classes.rb +24 -24
  161. data/generated/google/apis/tasks_v1/classes.rb +32 -32
  162. data/generated/google/apis/translate_v2/classes.rb +10 -10
  163. data/generated/google/apis/urlshortener_v1/classes.rb +24 -24
  164. data/generated/google/apis/webmasters_v3/classes.rb +49 -49
  165. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1/classes.rb +49 -49
  167. data/generated/google/apis/youtube_v3.rb +1 -1
  168. data/generated/google/apis/youtube_v3/classes.rb +882 -895
  169. data/generated/google/apis/youtube_v3/representations.rb +2 -13
  170. data/generated/google/apis/youtubereporting_v1/classes.rb +19 -19
  171. data/lib/google/apis/core/api_command.rb +1 -1
  172. data/lib/google/apis/core/upload.rb +1 -1
  173. data/lib/google/apis/generator/templates/_class.tmpl +1 -1
  174. data/lib/google/apis/version.rb +1 -1
  175. data/samples/cli/lib/base_cli.rb +2 -1
  176. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  177. data/script/generate +17 -13
  178. metadata +35 -6
  179. data/generated/google/apis/mapsengine_v1/classes.rb +0 -2873
  180. data/generated/google/apis/mapsengine_v1/representations.rb +0 -1235
  181. data/generated/google/apis/mapsengine_v1/service.rb +0 -3388
@@ -0,0 +1,43 @@
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/dataproc_v1/service.rb'
16
+ require 'google/apis/dataproc_v1/classes.rb'
17
+ require 'google/apis/dataproc_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Cloud Dataproc API
22
+ #
23
+ # An API for managing Hadoop-based clusters and jobs on Google Cloud Platform.
24
+ #
25
+ # @see https://cloud.google.com/dataproc/
26
+ module DataprocV1
27
+ VERSION = 'V1'
28
+ REVISION = '20151209'
29
+
30
+ # View and manage your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+
33
+ # Administrate log data for your projects
34
+ AUTH_LOGGING_ADMIN = 'https://www.googleapis.com/auth/logging.admin'
35
+
36
+ # View log data for your projects
37
+ AUTH_LOGGING_READ = 'https://www.googleapis.com/auth/logging.read'
38
+
39
+ # Submit log data for your projects
40
+ AUTH_LOGGING_WRITE = 'https://www.googleapis.com/auth/logging.write'
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,175 @@
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 DataprocV1
24
+
25
+ # Media resource.
26
+ class Media
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Name of the media resource.
30
+ # Corresponds to the JSON property `resourceName`
31
+ # @return [String]
32
+ attr_accessor :resource_name
33
+
34
+ def initialize(**args)
35
+ update!(**args)
36
+ end
37
+
38
+ # Update properties of this object
39
+ def update!(**args)
40
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
41
+ end
42
+ end
43
+
44
+ # The location where output from diagnostic command can be found.
45
+ class DiagnoseClusterOutputLocation
46
+ include Google::Apis::Core::Hashable
47
+
48
+ # [Output-only] The Google Cloud Storage URI of the diagnostic output. This will
49
+ # be a plain text file with summary of collected diagnostics.
50
+ # Corresponds to the JSON property `outputUri`
51
+ # @return [String]
52
+ attr_accessor :output_uri
53
+
54
+ def initialize(**args)
55
+ update!(**args)
56
+ end
57
+
58
+ # Update properties of this object
59
+ def update!(**args)
60
+ @output_uri = args[:output_uri] if args.key?(:output_uri)
61
+ end
62
+ end
63
+
64
+ # Metadata describing the operation.
65
+ class OperationMetadata
66
+ include Google::Apis::Core::Hashable
67
+
68
+ # A message containing the operation state.
69
+ # Corresponds to the JSON property `state`
70
+ # @return [String]
71
+ attr_accessor :state
72
+
73
+ # A message containing the detailed operation state.
74
+ # Corresponds to the JSON property `innerState`
75
+ # @return [String]
76
+ attr_accessor :inner_state
77
+
78
+ # A message containing any operation metadata details.
79
+ # Corresponds to the JSON property `details`
80
+ # @return [String]
81
+ attr_accessor :details
82
+
83
+ # The time that the operation was requested.
84
+ # Corresponds to the JSON property `insertTime`
85
+ # @return [String]
86
+ attr_accessor :insert_time
87
+
88
+ # The time that the operation was started by the server.
89
+ # Corresponds to the JSON property `startTime`
90
+ # @return [String]
91
+ attr_accessor :start_time
92
+
93
+ # The time that the operation completed.
94
+ # Corresponds to the JSON property `endTime`
95
+ # @return [String]
96
+ attr_accessor :end_time
97
+
98
+ # Name of the cluster for the operation.
99
+ # Corresponds to the JSON property `clusterName`
100
+ # @return [String]
101
+ attr_accessor :cluster_name
102
+
103
+ # Cluster UUId for the operation.
104
+ # Corresponds to the JSON property `clusterUuid`
105
+ # @return [String]
106
+ attr_accessor :cluster_uuid
107
+
108
+ # The status of the operation.
109
+ # Corresponds to the JSON property `status`
110
+ # @return [Google::Apis::DataprocV1::OperationStatus]
111
+ attr_accessor :status
112
+
113
+ # [Output-only] Previous operation status.
114
+ # Corresponds to the JSON property `statusHistory`
115
+ # @return [Array<Google::Apis::DataprocV1::OperationStatus>]
116
+ attr_accessor :status_history
117
+
118
+ def initialize(**args)
119
+ update!(**args)
120
+ end
121
+
122
+ # Update properties of this object
123
+ def update!(**args)
124
+ @state = args[:state] if args.key?(:state)
125
+ @inner_state = args[:inner_state] if args.key?(:inner_state)
126
+ @details = args[:details] if args.key?(:details)
127
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
128
+ @start_time = args[:start_time] if args.key?(:start_time)
129
+ @end_time = args[:end_time] if args.key?(:end_time)
130
+ @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
131
+ @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
132
+ @status = args[:status] if args.key?(:status)
133
+ @status_history = args[:status_history] if args.key?(:status_history)
134
+ end
135
+ end
136
+
137
+ # The status of the operation.
138
+ class OperationStatus
139
+ include Google::Apis::Core::Hashable
140
+
141
+ # A message containing the operation state.
142
+ # Corresponds to the JSON property `state`
143
+ # @return [String]
144
+ attr_accessor :state
145
+
146
+ # A message containing the detailed operation state.
147
+ # Corresponds to the JSON property `innerState`
148
+ # @return [String]
149
+ attr_accessor :inner_state
150
+
151
+ # A message containing any operation metadata details.
152
+ # Corresponds to the JSON property `details`
153
+ # @return [String]
154
+ attr_accessor :details
155
+
156
+ # The time this state was entered.
157
+ # Corresponds to the JSON property `stateStartTime`
158
+ # @return [String]
159
+ attr_accessor :state_start_time
160
+
161
+ def initialize(**args)
162
+ update!(**args)
163
+ end
164
+
165
+ # Update properties of this object
166
+ def update!(**args)
167
+ @state = args[:state] if args.key?(:state)
168
+ @inner_state = args[:inner_state] if args.key?(:inner_state)
169
+ @details = args[:details] if args.key?(:details)
170
+ @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
171
+ end
172
+ end
173
+ end
174
+ end
175
+ end
@@ -0,0 +1,84 @@
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 DataprocV1
24
+
25
+ class Media
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+ end
28
+
29
+ class DiagnoseClusterOutputLocation
30
+ class Representation < Google::Apis::Core::JsonRepresentation; end
31
+ end
32
+
33
+ class OperationMetadata
34
+ class Representation < Google::Apis::Core::JsonRepresentation; end
35
+ end
36
+
37
+ class OperationStatus
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+ end
40
+
41
+ class Media
42
+ # @private
43
+ class Representation < Google::Apis::Core::JsonRepresentation
44
+ property :resource_name, as: 'resourceName'
45
+ end
46
+ end
47
+
48
+ class DiagnoseClusterOutputLocation
49
+ # @private
50
+ class Representation < Google::Apis::Core::JsonRepresentation
51
+ property :output_uri, as: 'outputUri'
52
+ end
53
+ end
54
+
55
+ class OperationMetadata
56
+ # @private
57
+ class Representation < Google::Apis::Core::JsonRepresentation
58
+ property :state, as: 'state'
59
+ property :inner_state, as: 'innerState'
60
+ property :details, as: 'details'
61
+ property :insert_time, as: 'insertTime'
62
+ property :start_time, as: 'startTime'
63
+ property :end_time, as: 'endTime'
64
+ property :cluster_name, as: 'clusterName'
65
+ property :cluster_uuid, as: 'clusterUuid'
66
+ property :status, as: 'status', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation
67
+
68
+ collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation
69
+
70
+ end
71
+ end
72
+
73
+ class OperationStatus
74
+ # @private
75
+ class Representation < Google::Apis::Core::JsonRepresentation
76
+ property :state, as: 'state'
77
+ property :inner_state, as: 'innerState'
78
+ property :details, as: 'details'
79
+ property :state_start_time, as: 'stateStartTime'
80
+ end
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,142 @@
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/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module DataprocV1
23
+ # Google Cloud Dataproc API
24
+ #
25
+ # An API for managing Hadoop-based clusters and jobs on Google Cloud Platform.
26
+ #
27
+ # @example
28
+ # require 'google/apis/dataproc_v1'
29
+ #
30
+ # Dataproc = Google::Apis::DataprocV1 # Alias the module
31
+ # service = Dataproc::DataprocService.new
32
+ #
33
+ # @see https://cloud.google.com/dataproc/
34
+ class DataprocService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://dataproc.googleapis.com/', '')
47
+ end
48
+
49
+ # Method for media upload. Upload is supported on the URI `/upload/v1/media/`+
50
+ # name``.
51
+ # @param [String] resource_name
52
+ # Name of the media that is being downloaded. See [][ByteStream.ReadRequest.
53
+ # resource_name].
54
+ # @param [Google::Apis::DataprocV1::Media] media_object
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [IO, String] upload_source
61
+ # IO stream or filename containing content to upload
62
+ # @param [String] content_type
63
+ # Content type of the uploaded content.
64
+ # @param [Google::Apis::RequestOptions] options
65
+ # Request-specific options
66
+ #
67
+ # @yield [result, err] Result & error if block supplied
68
+ # @yieldparam result [Google::Apis::DataprocV1::Media] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::DataprocV1::Media]
72
+ #
73
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
76
+ def upload_medium(resource_name, media_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
77
+ if upload_source.nil?
78
+ command = make_simple_command(:post, 'v1/media/{+resourceName}', options)
79
+ else
80
+ command = make_upload_command(:post, 'v1/media/{+resourceName}', options)
81
+ command.upload_source = upload_source
82
+ command.upload_content_type = content_type
83
+ end
84
+ command.request_representation = Google::Apis::DataprocV1::Media::Representation
85
+ command.request_object = media_object
86
+ command.response_representation = Google::Apis::DataprocV1::Media::Representation
87
+ command.response_class = Google::Apis::DataprocV1::Media
88
+ command.params['resourceName'] = resource_name unless resource_name.nil?
89
+ command.query['fields'] = fields unless fields.nil?
90
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
91
+ execute_or_queue_command(command, &block)
92
+ end
93
+
94
+ # Method for media download. Download is supported on the URI `/v1/media/`+name`?
95
+ # alt=media`.
96
+ # @param [String] resource_name
97
+ # Name of the media that is being downloaded. See [][ByteStream.ReadRequest.
98
+ # resource_name].
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # @param [IO, String] download_dest
105
+ # IO stream or filename to receive content download
106
+ # @param [Google::Apis::RequestOptions] options
107
+ # Request-specific options
108
+ #
109
+ # @yield [result, err] Result & error if block supplied
110
+ # @yieldparam result [Google::Apis::DataprocV1::Media] parsed result object
111
+ # @yieldparam err [StandardError] error object if request failed
112
+ #
113
+ # @return [Google::Apis::DataprocV1::Media]
114
+ #
115
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
116
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
117
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
118
+ def download_medium(resource_name, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
119
+ if download_dest.nil?
120
+ command = make_simple_command(:get, 'v1/media/{+resourceName}', options)
121
+ else
122
+ command = make_download_command(:get, 'v1/media/{+resourceName}', options)
123
+ command.download_dest = download_dest
124
+ end
125
+ command.response_representation = Google::Apis::DataprocV1::Media::Representation
126
+ command.response_class = Google::Apis::DataprocV1::Media
127
+ command.params['resourceName'] = resource_name unless resource_name.nil?
128
+ command.query['fields'] = fields unless fields.nil?
129
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
130
+ execute_or_queue_command(command, &block)
131
+ end
132
+
133
+ protected
134
+
135
+ def apply_command_defaults(command)
136
+ command.query['key'] = key unless key.nil?
137
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
138
+ end
139
+ end
140
+ end
141
+ end
142
+ end
@@ -38,7 +38,7 @@ module Google
38
38
 
39
39
  # Update properties of this object
40
40
  def update!(**args)
41
- @keys = args[:keys] unless args[:keys].nil?
41
+ @keys = args[:keys] if args.key?(:keys)
42
42
  end
43
43
  end
44
44
 
@@ -63,8 +63,8 @@ module Google
63
63
 
64
64
  # Update properties of this object
65
65
  def update!(**args)
66
- @header = args[:header] unless args[:header].nil?
67
- @keys = args[:keys] unless args[:keys].nil?
66
+ @header = args[:header] if args.key?(:header)
67
+ @keys = args[:keys] if args.key?(:keys)
68
68
  end
69
69
  end
70
70
 
@@ -88,7 +88,7 @@ module Google
88
88
 
89
89
  # Update properties of this object
90
90
  def update!(**args)
91
- @isolation_level = args[:isolation_level] unless args[:isolation_level].nil?
91
+ @isolation_level = args[:isolation_level] if args.key?(:isolation_level)
92
92
  end
93
93
  end
94
94
 
@@ -112,8 +112,8 @@ module Google
112
112
 
113
113
  # Update properties of this object
114
114
  def update!(**args)
115
- @header = args[:header] unless args[:header].nil?
116
- @transaction = args[:transaction] unless args[:transaction].nil?
115
+ @header = args[:header] if args.key?(:header)
116
+ @transaction = args[:transaction] if args.key?(:transaction)
117
117
  end
118
118
  end
119
119
 
@@ -149,10 +149,10 @@ module Google
149
149
 
150
150
  # Update properties of this object
151
151
  def update!(**args)
152
- @ignore_read_only = args[:ignore_read_only] unless args[:ignore_read_only].nil?
153
- @mode = args[:mode] unless args[:mode].nil?
154
- @mutation = args[:mutation] unless args[:mutation].nil?
155
- @transaction = args[:transaction] unless args[:transaction].nil?
152
+ @ignore_read_only = args[:ignore_read_only] if args.key?(:ignore_read_only)
153
+ @mode = args[:mode] if args.key?(:mode)
154
+ @mutation = args[:mutation] if args.key?(:mutation)
155
+ @transaction = args[:transaction] if args.key?(:transaction)
156
156
  end
157
157
  end
158
158
 
@@ -176,8 +176,8 @@ module Google
176
176
 
177
177
  # Update properties of this object
178
178
  def update!(**args)
179
- @header = args[:header] unless args[:header].nil?
180
- @mutation_result = args[:mutation_result] unless args[:mutation_result].nil?
179
+ @header = args[:header] if args.key?(:header)
180
+ @mutation_result = args[:mutation_result] if args.key?(:mutation_result)
181
181
  end
182
182
  end
183
183
 
@@ -201,8 +201,8 @@ module Google
201
201
 
202
202
  # Update properties of this object
203
203
  def update!(**args)
204
- @filters = args[:filters] unless args[:filters].nil?
205
- @operator = args[:operator] unless args[:operator].nil?
204
+ @filters = args[:filters] if args.key?(:filters)
205
+ @operator = args[:operator] if args.key?(:operator)
206
206
  end
207
207
  end
208
208
 
@@ -226,8 +226,8 @@ module Google
226
226
 
227
227
  # Update properties of this object
228
228
  def update!(**args)
229
- @key = args[:key] unless args[:key].nil?
230
- @properties = args[:properties] unless args[:properties].nil?
229
+ @key = args[:key] if args.key?(:key)
230
+ @properties = args[:properties] if args.key?(:properties)
231
231
  end
232
232
  end
233
233
 
@@ -246,7 +246,7 @@ module Google
246
246
 
247
247
  # Update properties of this object
248
248
  def update!(**args)
249
- @entity = args[:entity] unless args[:entity].nil?
249
+ @entity = args[:entity] if args.key?(:entity)
250
250
  end
251
251
  end
252
252
 
@@ -270,8 +270,8 @@ module Google
270
270
 
271
271
  # Update properties of this object
272
272
  def update!(**args)
273
- @composite_filter = args[:composite_filter] unless args[:composite_filter].nil?
274
- @property_filter = args[:property_filter] unless args[:property_filter].nil?
273
+ @composite_filter = args[:composite_filter] if args.key?(:composite_filter)
274
+ @property_filter = args[:property_filter] if args.key?(:property_filter)
275
275
  end
276
276
  end
277
277
 
@@ -312,10 +312,10 @@ module Google
312
312
 
313
313
  # Update properties of this object
314
314
  def update!(**args)
315
- @allow_literal = args[:allow_literal] unless args[:allow_literal].nil?
316
- @name_args = args[:name_args] unless args[:name_args].nil?
317
- @number_args = args[:number_args] unless args[:number_args].nil?
318
- @query_string = args[:query_string] unless args[:query_string].nil?
315
+ @allow_literal = args[:allow_literal] if args.key?(:allow_literal)
316
+ @name_args = args[:name_args] if args.key?(:name_args)
317
+ @number_args = args[:number_args] if args.key?(:number_args)
318
+ @query_string = args[:query_string] if args.key?(:query_string)
319
319
  end
320
320
  end
321
321
 
@@ -346,9 +346,9 @@ module Google
346
346
 
347
347
  # Update properties of this object
348
348
  def update!(**args)
349
- @cursor = args[:cursor] unless args[:cursor].nil?
350
- @name = args[:name] unless args[:name].nil?
351
- @value = args[:value] unless args[:value].nil?
349
+ @cursor = args[:cursor] if args.key?(:cursor)
350
+ @name = args[:name] if args.key?(:name)
351
+ @value = args[:value] if args.key?(:value)
352
352
  end
353
353
  end
354
354
 
@@ -383,8 +383,8 @@ module Google
383
383
 
384
384
  # Update properties of this object
385
385
  def update!(**args)
386
- @partition_id = args[:partition_id] unless args[:partition_id].nil?
387
- @path = args[:path] unless args[:path].nil?
386
+ @partition_id = args[:partition_id] if args.key?(:partition_id)
387
+ @path = args[:path] if args.key?(:path)
388
388
  end
389
389
  end
390
390
 
@@ -418,9 +418,9 @@ module Google
418
418
 
419
419
  # Update properties of this object
420
420
  def update!(**args)
421
- @id = args[:id] unless args[:id].nil?
422
- @kind = args[:kind] unless args[:kind].nil?
423
- @name = args[:name] unless args[:name].nil?
421
+ @id = args[:id] if args.key?(:id)
422
+ @kind = args[:kind] if args.key?(:kind)
423
+ @name = args[:name] if args.key?(:name)
424
424
  end
425
425
  end
426
426
 
@@ -439,7 +439,7 @@ module Google
439
439
 
440
440
  # Update properties of this object
441
441
  def update!(**args)
442
- @name = args[:name] unless args[:name].nil?
442
+ @name = args[:name] if args.key?(:name)
443
443
  end
444
444
  end
445
445
 
@@ -463,8 +463,8 @@ module Google
463
463
 
464
464
  # Update properties of this object
465
465
  def update!(**args)
466
- @keys = args[:keys] unless args[:keys].nil?
467
- @read_options = args[:read_options] unless args[:read_options].nil?
466
+ @keys = args[:keys] if args.key?(:keys)
467
+ @read_options = args[:read_options] if args.key?(:read_options)
468
468
  end
469
469
  end
470
470
 
@@ -498,10 +498,10 @@ module Google
498
498
 
499
499
  # Update properties of this object
500
500
  def update!(**args)
501
- @deferred = args[:deferred] unless args[:deferred].nil?
502
- @found = args[:found] unless args[:found].nil?
503
- @header = args[:header] unless args[:header].nil?
504
- @missing = args[:missing] unless args[:missing].nil?
501
+ @deferred = args[:deferred] if args.key?(:deferred)
502
+ @found = args[:found] if args.key?(:found)
503
+ @header = args[:header] if args.key?(:header)
504
+ @missing = args[:missing] if args.key?(:missing)
505
505
  end
506
506
  end
507
507
 
@@ -551,12 +551,12 @@ module Google
551
551
 
552
552
  # Update properties of this object
553
553
  def update!(**args)
554
- @delete = args[:delete] unless args[:delete].nil?
555
- @force = args[:force] unless args[:force].nil?
556
- @insert = args[:insert] unless args[:insert].nil?
557
- @insert_auto_id = args[:insert_auto_id] unless args[:insert_auto_id].nil?
558
- @update = args[:update] unless args[:update].nil?
559
- @upsert = args[:upsert] unless args[:upsert].nil?
554
+ @delete = args[:delete] if args.key?(:delete)
555
+ @force = args[:force] if args.key?(:force)
556
+ @insert = args[:insert] if args.key?(:insert)
557
+ @insert_auto_id = args[:insert_auto_id] if args.key?(:insert_auto_id)
558
+ @update = args[:update] if args.key?(:update)
559
+ @upsert = args[:upsert] if args.key?(:upsert)
560
560
  end
561
561
  end
562
562
 
@@ -581,8 +581,8 @@ module Google
581
581
 
582
582
  # Update properties of this object
583
583
  def update!(**args)
584
- @index_updates = args[:index_updates] unless args[:index_updates].nil?
585
- @insert_auto_id_keys = args[:insert_auto_id_keys] unless args[:insert_auto_id_keys].nil?
584
+ @index_updates = args[:index_updates] if args.key?(:index_updates)
585
+ @insert_auto_id_keys = args[:insert_auto_id_keys] if args.key?(:insert_auto_id_keys)
586
586
  end
587
587
  end
588
588
 
@@ -608,8 +608,8 @@ module Google
608
608
 
609
609
  # Update properties of this object
610
610
  def update!(**args)
611
- @dataset_id = args[:dataset_id] unless args[:dataset_id].nil?
612
- @namespace = args[:namespace] unless args[:namespace].nil?
611
+ @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
612
+ @namespace = args[:namespace] if args.key?(:namespace)
613
613
  end
614
614
  end
615
615
 
@@ -694,18 +694,18 @@ module Google
694
694
 
695
695
  # Update properties of this object
696
696
  def update!(**args)
697
- @blob_key_value = args[:blob_key_value] unless args[:blob_key_value].nil?
698
- @blob_value = args[:blob_value] unless args[:blob_value].nil?
699
- @boolean_value = args[:boolean_value] unless args[:boolean_value].nil?
700
- @date_time_value = args[:date_time_value] unless args[:date_time_value].nil?
701
- @double_value = args[:double_value] unless args[:double_value].nil?
702
- @entity_value = args[:entity_value] unless args[:entity_value].nil?
703
- @indexed = args[:indexed] unless args[:indexed].nil?
704
- @integer_value = args[:integer_value] unless args[:integer_value].nil?
705
- @key_value = args[:key_value] unless args[:key_value].nil?
706
- @list_value = args[:list_value] unless args[:list_value].nil?
707
- @meaning = args[:meaning] unless args[:meaning].nil?
708
- @string_value = args[:string_value] unless args[:string_value].nil?
697
+ @blob_key_value = args[:blob_key_value] if args.key?(:blob_key_value)
698
+ @blob_value = args[:blob_value] if args.key?(:blob_value)
699
+ @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
700
+ @date_time_value = args[:date_time_value] if args.key?(:date_time_value)
701
+ @double_value = args[:double_value] if args.key?(:double_value)
702
+ @entity_value = args[:entity_value] if args.key?(:entity_value)
703
+ @indexed = args[:indexed] if args.key?(:indexed)
704
+ @integer_value = args[:integer_value] if args.key?(:integer_value)
705
+ @key_value = args[:key_value] if args.key?(:key_value)
706
+ @list_value = args[:list_value] if args.key?(:list_value)
707
+ @meaning = args[:meaning] if args.key?(:meaning)
708
+ @string_value = args[:string_value] if args.key?(:string_value)
709
709
  end
710
710
  end
711
711
 
@@ -732,8 +732,8 @@ module Google
732
732
 
733
733
  # Update properties of this object
734
734
  def update!(**args)
735
- @aggregation_function = args[:aggregation_function] unless args[:aggregation_function].nil?
736
- @property = args[:property] unless args[:property].nil?
735
+ @aggregation_function = args[:aggregation_function] if args.key?(:aggregation_function)
736
+ @property = args[:property] if args.key?(:property)
737
737
  end
738
738
  end
739
739
 
@@ -764,9 +764,9 @@ module Google
764
764
 
765
765
  # Update properties of this object
766
766
  def update!(**args)
767
- @operator = args[:operator] unless args[:operator].nil?
768
- @property = args[:property] unless args[:property].nil?
769
- @value = args[:value] unless args[:value].nil?
767
+ @operator = args[:operator] if args.key?(:operator)
768
+ @property = args[:property] if args.key?(:property)
769
+ @value = args[:value] if args.key?(:value)
770
770
  end
771
771
  end
772
772
 
@@ -791,8 +791,8 @@ module Google
791
791
 
792
792
  # Update properties of this object
793
793
  def update!(**args)
794
- @direction = args[:direction] unless args[:direction].nil?
795
- @property = args[:property] unless args[:property].nil?
794
+ @direction = args[:direction] if args.key?(:direction)
795
+ @property = args[:property] if args.key?(:property)
796
796
  end
797
797
  end
798
798
 
@@ -811,7 +811,7 @@ module Google
811
811
 
812
812
  # Update properties of this object
813
813
  def update!(**args)
814
- @name = args[:name] unless args[:name].nil?
814
+ @name = args[:name] if args.key?(:name)
815
815
  end
816
816
  end
817
817
 
@@ -875,15 +875,15 @@ module Google
875
875
 
876
876
  # Update properties of this object
877
877
  def update!(**args)
878
- @end_cursor = args[:end_cursor] unless args[:end_cursor].nil?
879
- @filter = args[:filter] unless args[:filter].nil?
880
- @group_by = args[:group_by] unless args[:group_by].nil?
881
- @kinds = args[:kinds] unless args[:kinds].nil?
882
- @limit = args[:limit] unless args[:limit].nil?
883
- @offset = args[:offset] unless args[:offset].nil?
884
- @order = args[:order] unless args[:order].nil?
885
- @projection = args[:projection] unless args[:projection].nil?
886
- @start_cursor = args[:start_cursor] unless args[:start_cursor].nil?
878
+ @end_cursor = args[:end_cursor] if args.key?(:end_cursor)
879
+ @filter = args[:filter] if args.key?(:filter)
880
+ @group_by = args[:group_by] if args.key?(:group_by)
881
+ @kinds = args[:kinds] if args.key?(:kinds)
882
+ @limit = args[:limit] if args.key?(:limit)
883
+ @offset = args[:offset] if args.key?(:offset)
884
+ @order = args[:order] if args.key?(:order)
885
+ @projection = args[:projection] if args.key?(:projection)
886
+ @start_cursor = args[:start_cursor] if args.key?(:start_cursor)
887
887
  end
888
888
  end
889
889
 
@@ -927,11 +927,11 @@ module Google
927
927
 
928
928
  # Update properties of this object
929
929
  def update!(**args)
930
- @end_cursor = args[:end_cursor] unless args[:end_cursor].nil?
931
- @entity_result_type = args[:entity_result_type] unless args[:entity_result_type].nil?
932
- @entity_results = args[:entity_results] unless args[:entity_results].nil?
933
- @more_results = args[:more_results] unless args[:more_results].nil?
934
- @skipped_results = args[:skipped_results] unless args[:skipped_results].nil?
930
+ @end_cursor = args[:end_cursor] if args.key?(:end_cursor)
931
+ @entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
932
+ @entity_results = args[:entity_results] if args.key?(:entity_results)
933
+ @more_results = args[:more_results] if args.key?(:more_results)
934
+ @skipped_results = args[:skipped_results] if args.key?(:skipped_results)
935
935
  end
936
936
  end
937
937
 
@@ -958,8 +958,8 @@ module Google
958
958
 
959
959
  # Update properties of this object
960
960
  def update!(**args)
961
- @read_consistency = args[:read_consistency] unless args[:read_consistency].nil?
962
- @transaction = args[:transaction] unless args[:transaction].nil?
961
+ @read_consistency = args[:read_consistency] if args.key?(:read_consistency)
962
+ @transaction = args[:transaction] if args.key?(:transaction)
963
963
  end
964
964
  end
965
965
 
@@ -979,7 +979,7 @@ module Google
979
979
 
980
980
  # Update properties of this object
981
981
  def update!(**args)
982
- @kind = args[:kind] unless args[:kind].nil?
982
+ @kind = args[:kind] if args.key?(:kind)
983
983
  end
984
984
  end
985
985
 
@@ -998,7 +998,7 @@ module Google
998
998
 
999
999
  # Update properties of this object
1000
1000
  def update!(**args)
1001
- @transaction = args[:transaction] unless args[:transaction].nil?
1001
+ @transaction = args[:transaction] if args.key?(:transaction)
1002
1002
  end
1003
1003
  end
1004
1004
 
@@ -1017,7 +1017,7 @@ module Google
1017
1017
 
1018
1018
  # Update properties of this object
1019
1019
  def update!(**args)
1020
- @header = args[:header] unless args[:header].nil?
1020
+ @header = args[:header] if args.key?(:header)
1021
1021
  end
1022
1022
  end
1023
1023
 
@@ -1053,10 +1053,10 @@ module Google
1053
1053
 
1054
1054
  # Update properties of this object
1055
1055
  def update!(**args)
1056
- @gql_query = args[:gql_query] unless args[:gql_query].nil?
1057
- @partition_id = args[:partition_id] unless args[:partition_id].nil?
1058
- @query = args[:query] unless args[:query].nil?
1059
- @read_options = args[:read_options] unless args[:read_options].nil?
1056
+ @gql_query = args[:gql_query] if args.key?(:gql_query)
1057
+ @partition_id = args[:partition_id] if args.key?(:partition_id)
1058
+ @query = args[:query] if args.key?(:query)
1059
+ @read_options = args[:read_options] if args.key?(:read_options)
1060
1060
  end
1061
1061
  end
1062
1062
 
@@ -1080,8 +1080,8 @@ module Google
1080
1080
 
1081
1081
  # Update properties of this object
1082
1082
  def update!(**args)
1083
- @batch = args[:batch] unless args[:batch].nil?
1084
- @header = args[:header] unless args[:header].nil?
1083
+ @batch = args[:batch] if args.key?(:batch)
1084
+ @header = args[:header] if args.key?(:header)
1085
1085
  end
1086
1086
  end
1087
1087
 
@@ -1167,18 +1167,18 @@ module Google
1167
1167
 
1168
1168
  # Update properties of this object
1169
1169
  def update!(**args)
1170
- @blob_key_value = args[:blob_key_value] unless args[:blob_key_value].nil?
1171
- @blob_value = args[:blob_value] unless args[:blob_value].nil?
1172
- @boolean_value = args[:boolean_value] unless args[:boolean_value].nil?
1173
- @date_time_value = args[:date_time_value] unless args[:date_time_value].nil?
1174
- @double_value = args[:double_value] unless args[:double_value].nil?
1175
- @entity_value = args[:entity_value] unless args[:entity_value].nil?
1176
- @indexed = args[:indexed] unless args[:indexed].nil?
1177
- @integer_value = args[:integer_value] unless args[:integer_value].nil?
1178
- @key_value = args[:key_value] unless args[:key_value].nil?
1179
- @list_value = args[:list_value] unless args[:list_value].nil?
1180
- @meaning = args[:meaning] unless args[:meaning].nil?
1181
- @string_value = args[:string_value] unless args[:string_value].nil?
1170
+ @blob_key_value = args[:blob_key_value] if args.key?(:blob_key_value)
1171
+ @blob_value = args[:blob_value] if args.key?(:blob_value)
1172
+ @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
1173
+ @date_time_value = args[:date_time_value] if args.key?(:date_time_value)
1174
+ @double_value = args[:double_value] if args.key?(:double_value)
1175
+ @entity_value = args[:entity_value] if args.key?(:entity_value)
1176
+ @indexed = args[:indexed] if args.key?(:indexed)
1177
+ @integer_value = args[:integer_value] if args.key?(:integer_value)
1178
+ @key_value = args[:key_value] if args.key?(:key_value)
1179
+ @list_value = args[:list_value] if args.key?(:list_value)
1180
+ @meaning = args[:meaning] if args.key?(:meaning)
1181
+ @string_value = args[:string_value] if args.key?(:string_value)
1182
1182
  end
1183
1183
  end
1184
1184
  end