google-api-client 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -47,121 +47,18 @@ module Google
47
47
  super('https://storagetransfer.googleapis.com/', '')
48
48
  end
49
49
 
50
- # Returns the Google service account that is used by Storage Transfer Service to
51
- # access buckets in the project where transfers run or in other projects. Each
52
- # Google service account is associated with one Google Developers Console
53
- # project. Users should add this service account to the Google Cloud Storage
54
- # bucket ACLs to grant access to Storage Transfer Service. This service account
55
- # is created and owned by Storage Transfer Service and can only be used by
56
- # Storage Transfer Service.
57
- # @param [String] project_id
58
- # The ID of the Google Developers Console project that the Google service
59
- # account is associated with. Required.
60
- # @param [String] fields
61
- # Selector specifying which fields to include in a partial response.
62
- # @param [String] quota_user
63
- # Available to use for quota purposes for server-side applications. Can be any
64
- # arbitrary string assigned to a user, but should not exceed 40 characters.
65
- # @param [Google::Apis::RequestOptions] options
66
- # Request-specific options
67
- #
68
- # @yield [result, err] Result & error if block supplied
69
- # @yieldparam result [Google::Apis::StoragetransferV1::GoogleServiceAccount] parsed result object
70
- # @yieldparam err [StandardError] error object if request failed
71
- #
72
- # @return [Google::Apis::StoragetransferV1::GoogleServiceAccount]
73
- #
74
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
- # @raise [Google::Apis::AuthorizationError] Authorization is required
77
- def get_google_service_account(project_id, fields: nil, quota_user: nil, options: nil, &block)
78
- command = make_simple_command(:get, 'v1/googleServiceAccounts/{projectId}', options)
79
- command.response_representation = Google::Apis::StoragetransferV1::GoogleServiceAccount::Representation
80
- command.response_class = Google::Apis::StoragetransferV1::GoogleServiceAccount
81
- command.params['projectId'] = project_id unless project_id.nil?
82
- command.query['fields'] = fields unless fields.nil?
83
- command.query['quotaUser'] = quota_user unless quota_user.nil?
84
- execute_or_queue_command(command, &block)
85
- end
86
-
87
- # Returns the Google service account that is used by Storage Transfer Service to
88
- # access buckets in the project where transfers run or in other projects. Each
89
- # Google service account is associated with one Google Developers Console
90
- # project. Users should add this service account to the Google Cloud Storage
91
- # bucket ACLs to grant access to Storage Transfer Service. This service account
92
- # is created and owned by Storage Transfer Service and can only be used by
93
- # Storage Transfer Service.
94
- # @param [String] project_id
95
- # The ID of the Google Developers Console project that the Google service
96
- # account is associated with. Required.
97
- # @param [String] fields
98
- # Selector specifying which fields to include in a partial response.
99
- # @param [String] quota_user
100
- # Available to use for quota purposes for server-side applications. Can be any
101
- # arbitrary string assigned to a user, but should not exceed 40 characters.
102
- # @param [Google::Apis::RequestOptions] options
103
- # Request-specific options
104
- #
105
- # @yield [result, err] Result & error if block supplied
106
- # @yieldparam result [Google::Apis::StoragetransferV1::GoogleServiceAccount] parsed result object
107
- # @yieldparam err [StandardError] error object if request failed
108
- #
109
- # @return [Google::Apis::StoragetransferV1::GoogleServiceAccount]
110
- #
111
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
- # @raise [Google::Apis::AuthorizationError] Authorization is required
114
- def get_google_service_account_v1(project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
115
- command = make_simple_command(:get, 'v1:getGoogleServiceAccount', options)
116
- command.response_representation = Google::Apis::StoragetransferV1::GoogleServiceAccount::Representation
117
- command.response_class = Google::Apis::StoragetransferV1::GoogleServiceAccount
118
- command.query['projectId'] = project_id unless project_id.nil?
119
- command.query['fields'] = fields unless fields.nil?
120
- command.query['quotaUser'] = quota_user unless quota_user.nil?
121
- execute_or_queue_command(command, &block)
122
- end
123
-
124
- # Creates a transfer job that runs periodically.
125
- # @param [Google::Apis::StoragetransferV1::TransferJob] transfer_job_object
126
- # @param [String] fields
127
- # Selector specifying which fields to include in a partial response.
128
- # @param [String] quota_user
129
- # Available to use for quota purposes for server-side applications. Can be any
130
- # arbitrary string assigned to a user, but should not exceed 40 characters.
131
- # @param [Google::Apis::RequestOptions] options
132
- # Request-specific options
133
- #
134
- # @yield [result, err] Result & error if block supplied
135
- # @yieldparam result [Google::Apis::StoragetransferV1::TransferJob] parsed result object
136
- # @yieldparam err [StandardError] error object if request failed
137
- #
138
- # @return [Google::Apis::StoragetransferV1::TransferJob]
139
- #
140
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
141
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
142
- # @raise [Google::Apis::AuthorizationError] Authorization is required
143
- def create_transfer_job(transfer_job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
144
- command = make_simple_command(:post, 'v1/transferJobs', options)
145
- command.request_representation = Google::Apis::StoragetransferV1::TransferJob::Representation
146
- command.request_object = transfer_job_object
147
- command.response_representation = Google::Apis::StoragetransferV1::TransferJob::Representation
148
- command.response_class = Google::Apis::StoragetransferV1::TransferJob
149
- command.query['fields'] = fields unless fields.nil?
150
- command.query['quotaUser'] = quota_user unless quota_user.nil?
151
- execute_or_queue_command(command, &block)
152
- end
153
-
154
50
  # Updates a transfer job. Updating a job's transfer spec does not affect
155
- # transfer operations that are running already. Updating the scheduling of a job
156
- # is not allowed.
51
+ # transfer operations that are running already. Updating the scheduling
52
+ # of a job is not allowed.
157
53
  # @param [String] job_name
158
- # The name of job to update. Required.
54
+ # The name of job to update.
55
+ # Required.
159
56
  # @param [Google::Apis::StoragetransferV1::UpdateTransferJobRequest] update_transfer_job_request_object
160
- # @param [String] fields
161
- # Selector specifying which fields to include in a partial response.
162
57
  # @param [String] quota_user
163
58
  # Available to use for quota purposes for server-side applications. Can be any
164
59
  # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
165
62
  # @param [Google::Apis::RequestOptions] options
166
63
  # Request-specific options
167
64
  #
@@ -174,28 +71,30 @@ module Google
174
71
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
175
72
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
176
73
  # @raise [Google::Apis::AuthorizationError] Authorization is required
177
- def patch_transfer_job(job_name, update_transfer_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
+ def patch_transfer_job(job_name, update_transfer_job_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
178
75
  command = make_simple_command(:patch, 'v1/{+jobName}', options)
179
76
  command.request_representation = Google::Apis::StoragetransferV1::UpdateTransferJobRequest::Representation
180
77
  command.request_object = update_transfer_job_request_object
181
78
  command.response_representation = Google::Apis::StoragetransferV1::TransferJob::Representation
182
79
  command.response_class = Google::Apis::StoragetransferV1::TransferJob
183
80
  command.params['jobName'] = job_name unless job_name.nil?
184
- command.query['fields'] = fields unless fields.nil?
185
81
  command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ command.query['fields'] = fields unless fields.nil?
186
83
  execute_or_queue_command(command, &block)
187
84
  end
188
85
 
189
86
  # Gets a transfer job.
190
87
  # @param [String] job_name
191
- # The job to get. Required.
88
+ # The job to get.
89
+ # Required.
192
90
  # @param [String] project_id
193
- # The ID of the Google Developers Console project that owns the job. Required.
194
- # @param [String] fields
195
- # Selector specifying which fields to include in a partial response.
91
+ # The ID of the Google Cloud Platform Console project that owns the job.
92
+ # Required.
196
93
  # @param [String] quota_user
197
94
  # Available to use for quota purposes for server-side applications. Can be any
198
95
  # arbitrary string assigned to a user, but should not exceed 40 characters.
96
+ # @param [String] fields
97
+ # Selector specifying which fields to include in a partial response.
199
98
  # @param [Google::Apis::RequestOptions] options
200
99
  # Request-specific options
201
100
  #
@@ -208,35 +107,36 @@ module Google
208
107
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
209
108
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
210
109
  # @raise [Google::Apis::AuthorizationError] Authorization is required
211
- def get_transfer_job(job_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
110
+ def get_transfer_job(job_name, project_id: nil, quota_user: nil, fields: nil, options: nil, &block)
212
111
  command = make_simple_command(:get, 'v1/{+jobName}', options)
213
112
  command.response_representation = Google::Apis::StoragetransferV1::TransferJob::Representation
214
113
  command.response_class = Google::Apis::StoragetransferV1::TransferJob
215
114
  command.params['jobName'] = job_name unless job_name.nil?
216
115
  command.query['projectId'] = project_id unless project_id.nil?
217
- command.query['fields'] = fields unless fields.nil?
218
116
  command.query['quotaUser'] = quota_user unless quota_user.nil?
117
+ command.query['fields'] = fields unless fields.nil?
219
118
  execute_or_queue_command(command, &block)
220
119
  end
221
120
 
222
121
  # Lists transfer jobs.
223
122
  # @param [String] filter
224
- # A list of query parameters specified as JSON text in the form of `"`project_id`
225
- # ":"my_project_id", "`job_names`":["jobid1","jobid2",...], "`job_statuses`":["
226
- # status1","status2",...]`. Since `job_names` and `job_statuses` support
227
- # multiple values, their values must be specified with array notation. `
228
- # project_id` is required. `job_names` and `job_statuses` are optional. The
229
- # valid values for `job_statuses` are case-insensitive: `ENABLED`, `DISABLED`,
230
- # and `DELETED`.
231
- # @param [Fixnum] page_size
232
- # The list page size. The max allowed value is 256.
123
+ # A list of query parameters specified as JSON text in the form of
124
+ # `"project_id":"my_project_id",
125
+ # "job_names":["jobid1","jobid2",...],
126
+ # "job_statuses":["status1","status2",...]`.
127
+ # Since `job_names` and `job_statuses` support multiple values, their values
128
+ # must be specified with array notation. `project_id` is required. `job_names`
129
+ # and `job_statuses` are optional. The valid values for `job_statuses` are
130
+ # case-insensitive: `ENABLED`, `DISABLED`, and `DELETED`.
233
131
  # @param [String] page_token
234
132
  # The list page token.
235
- # @param [String] fields
236
- # Selector specifying which fields to include in a partial response.
133
+ # @param [Fixnum] page_size
134
+ # The list page size. The max allowed value is 256.
237
135
  # @param [String] quota_user
238
136
  # Available to use for quota purposes for server-side applications. Can be any
239
137
  # arbitrary string assigned to a user, but should not exceed 40 characters.
138
+ # @param [String] fields
139
+ # Selector specifying which fields to include in a partial response.
240
140
  # @param [Google::Apis::RequestOptions] options
241
141
  # Request-specific options
242
142
  #
@@ -249,60 +149,58 @@ module Google
249
149
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
250
150
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
251
151
  # @raise [Google::Apis::AuthorizationError] Authorization is required
252
- def list_transfer_jobs(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
152
+ def list_transfer_jobs(filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
253
153
  command = make_simple_command(:get, 'v1/transferJobs', options)
254
154
  command.response_representation = Google::Apis::StoragetransferV1::ListTransferJobsResponse::Representation
255
155
  command.response_class = Google::Apis::StoragetransferV1::ListTransferJobsResponse
256
156
  command.query['filter'] = filter unless filter.nil?
257
- command.query['pageSize'] = page_size unless page_size.nil?
258
157
  command.query['pageToken'] = page_token unless page_token.nil?
259
- command.query['fields'] = fields unless fields.nil?
158
+ command.query['pageSize'] = page_size unless page_size.nil?
260
159
  command.query['quotaUser'] = quota_user unless quota_user.nil?
160
+ command.query['fields'] = fields unless fields.nil?
261
161
  execute_or_queue_command(command, &block)
262
162
  end
263
163
 
264
- # Pauses a transfer operation.
265
- # @param [String] name
266
- # The name of the transfer operation. Required.
267
- # @param [Google::Apis::StoragetransferV1::PauseTransferOperationRequest] pause_transfer_operation_request_object
268
- # @param [String] fields
269
- # Selector specifying which fields to include in a partial response.
164
+ # Creates a transfer job that runs periodically.
165
+ # @param [Google::Apis::StoragetransferV1::TransferJob] transfer_job_object
270
166
  # @param [String] quota_user
271
167
  # Available to use for quota purposes for server-side applications. Can be any
272
168
  # arbitrary string assigned to a user, but should not exceed 40 characters.
169
+ # @param [String] fields
170
+ # Selector specifying which fields to include in a partial response.
273
171
  # @param [Google::Apis::RequestOptions] options
274
172
  # Request-specific options
275
173
  #
276
174
  # @yield [result, err] Result & error if block supplied
277
- # @yieldparam result [Google::Apis::StoragetransferV1::Empty] parsed result object
175
+ # @yieldparam result [Google::Apis::StoragetransferV1::TransferJob] parsed result object
278
176
  # @yieldparam err [StandardError] error object if request failed
279
177
  #
280
- # @return [Google::Apis::StoragetransferV1::Empty]
178
+ # @return [Google::Apis::StoragetransferV1::TransferJob]
281
179
  #
282
180
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
283
181
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
284
182
  # @raise [Google::Apis::AuthorizationError] Authorization is required
285
- def pause_transfer_operation(name, pause_transfer_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
286
- command = make_simple_command(:post, 'v1/{+name}:pause', options)
287
- command.request_representation = Google::Apis::StoragetransferV1::PauseTransferOperationRequest::Representation
288
- command.request_object = pause_transfer_operation_request_object
289
- command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
290
- command.response_class = Google::Apis::StoragetransferV1::Empty
291
- command.params['name'] = name unless name.nil?
292
- command.query['fields'] = fields unless fields.nil?
183
+ def create_transfer_job(transfer_job_object = nil, quota_user: nil, fields: nil, options: nil, &block)
184
+ command = make_simple_command(:post, 'v1/transferJobs', options)
185
+ command.request_representation = Google::Apis::StoragetransferV1::TransferJob::Representation
186
+ command.request_object = transfer_job_object
187
+ command.response_representation = Google::Apis::StoragetransferV1::TransferJob::Representation
188
+ command.response_class = Google::Apis::StoragetransferV1::TransferJob
293
189
  command.query['quotaUser'] = quota_user unless quota_user.nil?
190
+ command.query['fields'] = fields unless fields.nil?
294
191
  execute_or_queue_command(command, &block)
295
192
  end
296
193
 
297
194
  # Resumes a transfer operation that is paused.
298
195
  # @param [String] name
299
- # The name of the transfer operation. Required.
196
+ # The name of the transfer operation.
197
+ # Required.
300
198
  # @param [Google::Apis::StoragetransferV1::ResumeTransferOperationRequest] resume_transfer_operation_request_object
301
- # @param [String] fields
302
- # Selector specifying which fields to include in a partial response.
303
199
  # @param [String] quota_user
304
200
  # Available to use for quota purposes for server-side applications. Can be any
305
201
  # arbitrary string assigned to a user, but should not exceed 40 characters.
202
+ # @param [String] fields
203
+ # Selector specifying which fields to include in a partial response.
306
204
  # @param [Google::Apis::RequestOptions] options
307
205
  # Request-specific options
308
206
  #
@@ -315,100 +213,91 @@ module Google
315
213
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
316
214
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
317
215
  # @raise [Google::Apis::AuthorizationError] Authorization is required
318
- def resume_transfer_operation(name, resume_transfer_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
216
+ def resume_transfer_operation(name, resume_transfer_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
319
217
  command = make_simple_command(:post, 'v1/{+name}:resume', options)
320
218
  command.request_representation = Google::Apis::StoragetransferV1::ResumeTransferOperationRequest::Representation
321
219
  command.request_object = resume_transfer_operation_request_object
322
220
  command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
323
221
  command.response_class = Google::Apis::StoragetransferV1::Empty
324
222
  command.params['name'] = name unless name.nil?
325
- command.query['fields'] = fields unless fields.nil?
326
223
  command.query['quotaUser'] = quota_user unless quota_user.nil?
224
+ command.query['fields'] = fields unless fields.nil?
327
225
  execute_or_queue_command(command, &block)
328
226
  end
329
227
 
330
- # Gets the latest state of a long-running operation. Clients can use this method
331
- # to poll the operation result at intervals as recommended by the API service.
228
+ # Cancels a transfer. Use the get method to check whether the cancellation
229
+ # succeeded or whether the operation completed despite cancellation.
332
230
  # @param [String] name
333
- # The name of the operation resource.
334
- # @param [String] fields
335
- # Selector specifying which fields to include in a partial response.
231
+ # The name of the operation resource to be cancelled.
336
232
  # @param [String] quota_user
337
233
  # Available to use for quota purposes for server-side applications. Can be any
338
234
  # arbitrary string assigned to a user, but should not exceed 40 characters.
235
+ # @param [String] fields
236
+ # Selector specifying which fields to include in a partial response.
339
237
  # @param [Google::Apis::RequestOptions] options
340
238
  # Request-specific options
341
239
  #
342
240
  # @yield [result, err] Result & error if block supplied
343
- # @yieldparam result [Google::Apis::StoragetransferV1::Operation] parsed result object
241
+ # @yieldparam result [Google::Apis::StoragetransferV1::Empty] parsed result object
344
242
  # @yieldparam err [StandardError] error object if request failed
345
243
  #
346
- # @return [Google::Apis::StoragetransferV1::Operation]
244
+ # @return [Google::Apis::StoragetransferV1::Empty]
347
245
  #
348
246
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
349
247
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
350
248
  # @raise [Google::Apis::AuthorizationError] Authorization is required
351
- def get_transfer_operation(name, fields: nil, quota_user: nil, options: nil, &block)
352
- command = make_simple_command(:get, 'v1/{+name}', options)
353
- command.response_representation = Google::Apis::StoragetransferV1::Operation::Representation
354
- command.response_class = Google::Apis::StoragetransferV1::Operation
249
+ def cancel_transfer_operation(name, quota_user: nil, fields: nil, options: nil, &block)
250
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
251
+ command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
252
+ command.response_class = Google::Apis::StoragetransferV1::Empty
355
253
  command.params['name'] = name unless name.nil?
356
- command.query['fields'] = fields unless fields.nil?
357
254
  command.query['quotaUser'] = quota_user unless quota_user.nil?
255
+ command.query['fields'] = fields unless fields.nil?
358
256
  execute_or_queue_command(command, &block)
359
257
  end
360
258
 
361
- # Lists operations that match the specified filter in the request. If the server
362
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
363
- # binding below allows API services to override the binding to use different
364
- # resource name schemes, such as `users/*/operations`.
259
+ # Gets the latest state of a long-running operation. Clients can use this
260
+ # method to poll the operation result at intervals as recommended by the API
261
+ # service.
365
262
  # @param [String] name
366
- # The value `transferOperations`.
367
- # @param [String] filter
368
- # The standard list filter.
369
- # @param [Fixnum] page_size
370
- # The standard list page size.
371
- # @param [String] page_token
372
- # The standard list page token.
373
- # @param [String] fields
374
- # Selector specifying which fields to include in a partial response.
263
+ # The name of the operation resource.
375
264
  # @param [String] quota_user
376
265
  # Available to use for quota purposes for server-side applications. Can be any
377
266
  # arbitrary string assigned to a user, but should not exceed 40 characters.
267
+ # @param [String] fields
268
+ # Selector specifying which fields to include in a partial response.
378
269
  # @param [Google::Apis::RequestOptions] options
379
270
  # Request-specific options
380
271
  #
381
272
  # @yield [result, err] Result & error if block supplied
382
- # @yieldparam result [Google::Apis::StoragetransferV1::ListOperationsResponse] parsed result object
273
+ # @yieldparam result [Google::Apis::StoragetransferV1::Operation] parsed result object
383
274
  # @yieldparam err [StandardError] error object if request failed
384
275
  #
385
- # @return [Google::Apis::StoragetransferV1::ListOperationsResponse]
276
+ # @return [Google::Apis::StoragetransferV1::Operation]
386
277
  #
387
278
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
388
279
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
389
280
  # @raise [Google::Apis::AuthorizationError] Authorization is required
390
- def list_transfer_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
281
+ def get_transfer_operation(name, quota_user: nil, fields: nil, options: nil, &block)
391
282
  command = make_simple_command(:get, 'v1/{+name}', options)
392
- command.response_representation = Google::Apis::StoragetransferV1::ListOperationsResponse::Representation
393
- command.response_class = Google::Apis::StoragetransferV1::ListOperationsResponse
283
+ command.response_representation = Google::Apis::StoragetransferV1::Operation::Representation
284
+ command.response_class = Google::Apis::StoragetransferV1::Operation
394
285
  command.params['name'] = name unless name.nil?
395
- command.query['filter'] = filter unless filter.nil?
396
- command.query['pageSize'] = page_size unless page_size.nil?
397
- command.query['pageToken'] = page_token unless page_token.nil?
398
- command.query['fields'] = fields unless fields.nil?
399
286
  command.query['quotaUser'] = quota_user unless quota_user.nil?
287
+ command.query['fields'] = fields unless fields.nil?
400
288
  execute_or_queue_command(command, &block)
401
289
  end
402
290
 
403
- # Cancels a transfer. Use the get method to check whether the cancellation
404
- # succeeded or whether the operation completed despite cancellation.
291
+ # Pauses a transfer operation.
405
292
  # @param [String] name
406
- # The name of the operation resource to be cancelled.
407
- # @param [String] fields
408
- # Selector specifying which fields to include in a partial response.
293
+ # The name of the transfer operation.
294
+ # Required.
295
+ # @param [Google::Apis::StoragetransferV1::PauseTransferOperationRequest] pause_transfer_operation_request_object
409
296
  # @param [String] quota_user
410
297
  # Available to use for quota purposes for server-side applications. Can be any
411
298
  # arbitrary string assigned to a user, but should not exceed 40 characters.
299
+ # @param [String] fields
300
+ # Selector specifying which fields to include in a partial response.
412
301
  # @param [Google::Apis::RequestOptions] options
413
302
  # Request-specific options
414
303
  #
@@ -421,24 +310,26 @@ module Google
421
310
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
422
311
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
423
312
  # @raise [Google::Apis::AuthorizationError] Authorization is required
424
- def cancel_transfer_operation(name, fields: nil, quota_user: nil, options: nil, &block)
425
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
313
+ def pause_transfer_operation(name, pause_transfer_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
314
+ command = make_simple_command(:post, 'v1/{+name}:pause', options)
315
+ command.request_representation = Google::Apis::StoragetransferV1::PauseTransferOperationRequest::Representation
316
+ command.request_object = pause_transfer_operation_request_object
426
317
  command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
427
318
  command.response_class = Google::Apis::StoragetransferV1::Empty
428
319
  command.params['name'] = name unless name.nil?
429
- command.query['fields'] = fields unless fields.nil?
430
320
  command.query['quotaUser'] = quota_user unless quota_user.nil?
321
+ command.query['fields'] = fields unless fields.nil?
431
322
  execute_or_queue_command(command, &block)
432
323
  end
433
324
 
434
325
  # This method is not supported and the server returns `UNIMPLEMENTED`.
435
326
  # @param [String] name
436
327
  # The name of the operation resource to be deleted.
437
- # @param [String] fields
438
- # Selector specifying which fields to include in a partial response.
439
328
  # @param [String] quota_user
440
329
  # Available to use for quota purposes for server-side applications. Can be any
441
330
  # arbitrary string assigned to a user, but should not exceed 40 characters.
331
+ # @param [String] fields
332
+ # Selector specifying which fields to include in a partial response.
442
333
  # @param [Google::Apis::RequestOptions] options
443
334
  # Request-specific options
444
335
  #
@@ -451,13 +342,99 @@ module Google
451
342
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
452
343
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
453
344
  # @raise [Google::Apis::AuthorizationError] Authorization is required
454
- def delete_transfer_operation(name, fields: nil, quota_user: nil, options: nil, &block)
345
+ def delete_transfer_operation(name, quota_user: nil, fields: nil, options: nil, &block)
455
346
  command = make_simple_command(:delete, 'v1/{+name}', options)
456
347
  command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
457
348
  command.response_class = Google::Apis::StoragetransferV1::Empty
458
349
  command.params['name'] = name unless name.nil?
350
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
459
351
  command.query['fields'] = fields unless fields.nil?
352
+ execute_or_queue_command(command, &block)
353
+ end
354
+
355
+ # Lists operations that match the specified filter in the request. If the
356
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
357
+ # NOTE: the `name` binding below allows API services to override the binding
358
+ # to use different resource name schemes, such as `users/*/operations`.
359
+ # @param [String] name
360
+ # The value `transferOperations`.
361
+ # @param [String] filter
362
+ # A list of query parameters specified as JSON text in the form of `\"project_id\
363
+ # " : \"my_project_id\", \"job_names\" : [\"jobid1\", \"jobid2\",...], \"
364
+ # operation_names\" : [\"opid1\", \"opid2\",...], \"transfer_statuses\":[\"
365
+ # status1\", \"status2\",...]`. Since `job_names`, `operation_names`, and `
366
+ # transfer_statuses` support multiple values, they must be specified with array
367
+ # notation. `job_names`, `operation_names`, and `transfer_statuses` are optional.
368
+ # @param [String] page_token
369
+ # The list page token.
370
+ # @param [Fixnum] page_size
371
+ # The list page size. The max allowed value is 256.
372
+ # @param [String] quota_user
373
+ # Available to use for quota purposes for server-side applications. Can be any
374
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
375
+ # @param [String] fields
376
+ # Selector specifying which fields to include in a partial response.
377
+ # @param [Google::Apis::RequestOptions] options
378
+ # Request-specific options
379
+ #
380
+ # @yield [result, err] Result & error if block supplied
381
+ # @yieldparam result [Google::Apis::StoragetransferV1::ListOperationsResponse] parsed result object
382
+ # @yieldparam err [StandardError] error object if request failed
383
+ #
384
+ # @return [Google::Apis::StoragetransferV1::ListOperationsResponse]
385
+ #
386
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
387
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
388
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
389
+ def list_transfer_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
390
+ command = make_simple_command(:get, 'v1/{+name}', options)
391
+ command.response_representation = Google::Apis::StoragetransferV1::ListOperationsResponse::Representation
392
+ command.response_class = Google::Apis::StoragetransferV1::ListOperationsResponse
393
+ command.params['name'] = name unless name.nil?
394
+ command.query['filter'] = filter unless filter.nil?
395
+ command.query['pageToken'] = page_token unless page_token.nil?
396
+ command.query['pageSize'] = page_size unless page_size.nil?
397
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
398
+ command.query['fields'] = fields unless fields.nil?
399
+ execute_or_queue_command(command, &block)
400
+ end
401
+
402
+ # Returns the Google service account that is used by Storage Transfer
403
+ # Service to access buckets in the project where transfers
404
+ # run or in other projects. Each Google service account is associated
405
+ # with one Google Cloud Platform Console project. Users
406
+ # should add this service account to the Google Cloud Storage bucket
407
+ # ACLs to grant access to Storage Transfer Service. This service
408
+ # account is created and owned by Storage Transfer Service and can
409
+ # only be used by Storage Transfer Service.
410
+ # @param [String] project_id
411
+ # The ID of the Google Cloud Platform Console project that the Google service
412
+ # account is associated with.
413
+ # Required.
414
+ # @param [String] quota_user
415
+ # Available to use for quota purposes for server-side applications. Can be any
416
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
417
+ # @param [String] fields
418
+ # Selector specifying which fields to include in a partial response.
419
+ # @param [Google::Apis::RequestOptions] options
420
+ # Request-specific options
421
+ #
422
+ # @yield [result, err] Result & error if block supplied
423
+ # @yieldparam result [Google::Apis::StoragetransferV1::GoogleServiceAccount] parsed result object
424
+ # @yieldparam err [StandardError] error object if request failed
425
+ #
426
+ # @return [Google::Apis::StoragetransferV1::GoogleServiceAccount]
427
+ #
428
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
429
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
430
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
431
+ def get_google_service_account(project_id, quota_user: nil, fields: nil, options: nil, &block)
432
+ command = make_simple_command(:get, 'v1/googleServiceAccounts/{projectId}', options)
433
+ command.response_representation = Google::Apis::StoragetransferV1::GoogleServiceAccount::Representation
434
+ command.response_class = Google::Apis::StoragetransferV1::GoogleServiceAccount
435
+ command.params['projectId'] = project_id unless project_id.nil?
460
436
  command.query['quotaUser'] = quota_user unless quota_user.nil?
437
+ command.query['fields'] = fields unless fields.nil?
461
438
  execute_or_queue_command(command, &block)
462
439
  end
463
440