feat(gensupport): per-chunk transfer timeout configs (#2865)

feat(gensupport): per-chunk transfer timeout configs

Allow users to configure the per-chunk transfer timeout for retries
that's used during resumable uploads.

Needs to be exposed via the manual layer for storage.

Tested the feature(with default timeout and with some random value) with storagetestbench server emulator.
5 files changed
tree: 635fbf74193ccb51cd0d379741f2e2e6dca61dae
  1. .github/
  2. abusiveexperiencereport/
  3. acceleratedmobilepageurl/
  4. accessapproval/
  5. accesscontextmanager/
  6. acmedns/
  7. addressvalidation/
  8. adexchangebuyer/
  9. adexchangebuyer2/
  10. adexchangeseller/
  11. adexperiencereport/
  12. admin/
  13. admob/
  14. adsense/
  15. adsensehost/
  16. adsenseplatform/
  17. advisorynotifications/
  18. aiplatform/
  19. airquality/
  20. alertcenter/
  21. alloydb/
  22. analytics/
  23. analyticsadmin/
  24. analyticsdata/
  25. analyticshub/
  26. analyticsreporting/
  27. androiddeviceprovisioning/
  28. androidenterprise/
  29. androidmanagement/
  30. androidpublisher/
  31. apigateway/
  32. apigee/
  33. apigeeregistry/
  34. apikeys/
  35. apim/
  36. appengine/
  37. apphub/
  38. appsactivity/
  39. appstate/
  40. area120tables/
  41. artifactregistry/
  42. assuredworkloads/
  43. authorizedbuyersmarketplace/
  44. backupdr/
  45. baremetalsolution/
  46. batch/
  47. beyondcorp/
  48. biglake/
  49. bigquery/
  50. bigqueryconnection/
  51. bigquerydatapolicy/
  52. bigquerydatatransfer/
  53. bigqueryreservation/
  54. bigtableadmin/
  55. billingbudgets/
  56. binaryauthorization/
  57. blockchainnodeengine/
  58. blogger/
  59. books/
  60. businessprofileperformance/
  61. calendar/
  62. certificatemanager/
  63. chat/
  64. checks/
  65. chromemanagement/
  66. chromepolicy/
  67. chromeuxreport/
  68. civicinfo/
  69. classroom/
  70. cloudasset/
  71. cloudbilling/
  72. cloudbuild/
  73. cloudchannel/
  74. cloudcommerceprocurement/
  75. cloudcontrolspartner/
  76. clouddebugger/
  77. clouddeploy/
  78. clouderrorreporting/
  79. cloudfunctions/
  80. cloudidentity/
  81. cloudiot/
  82. cloudkms/
  83. cloudprivatecatalog/
  84. cloudprivatecatalogproducer/
  85. cloudprofiler/
  86. cloudresourcemanager/
  87. cloudscheduler/
  88. cloudsearch/
  89. cloudshell/
  90. cloudsupport/
  91. cloudtasks/
  92. cloudtrace/
  93. commentanalyzer/
  94. composer/
  95. compute/
  96. config/
  97. connectors/
  98. consumersurveys/
  99. contactcenteraiplatform/
  100. contactcenterinsights/
  101. container/
  102. containeranalysis/
  103. content/
  104. contentwarehouse/
  105. css/
  106. customsearch/
  107. datacatalog/
  108. dataflow/
  109. dataform/
  110. datafusion/
  111. datalabeling/
  112. datalineage/
  113. datamigration/
  114. datapipelines/
  115. dataplex/
  116. dataportability/
  117. dataproc/
  118. datastore/
  119. datastream/
  120. deploymentmanager/
  121. developerconnect/
  122. dfareporting/
  123. dialogflow/
  124. digitalassetlinks/
  125. discovery/
  126. discoveryengine/
  127. displayvideo/
  128. dlp/
  129. dns/
  130. docs/
  131. documentai/
  132. domains/
  133. domainsrdap/
  134. doubleclickbidmanager/
  135. doubleclicksearch/
  136. drive/
  137. driveactivity/
  138. drivelabels/
  139. essentialcontacts/
  140. eventarc/
  141. examples/
  142. factchecktools/
  143. fcm/
  144. fcmdata/
  145. file/
  146. firebase/
  147. firebaseappcheck/
  148. firebaseappdistribution/
  149. firebasedatabase/
  150. firebasedataconnect/
  151. firebasedynamiclinks/
  152. firebasehosting/
  153. firebaseml/
  154. firebaseremoteconfig/
  155. firebaserules/
  156. firebasestorage/
  157. firestore/
  158. fitness/
  159. forms/
  160. fusiontables/
  161. games/
  162. gamesconfiguration/
  163. gameservices/
  164. gamesmanagement/
  165. genomics/
  166. gkebackup/
  167. gkehub/
  168. gkeonprem/
  169. gmail/
  170. gmailpostmastertools/
  171. google-api-go-generator/
  172. googleapi/
  173. groupsmigration/
  174. groupssettings/
  175. healthcare/
  176. homegraph/
  177. iam/
  178. iamcredentials/
  179. iap/
  180. ideahub/
  181. identitytoolkit/
  182. ids/
  183. idtoken/
  184. impersonate/
  185. indexing/
  186. integration-tests/
  187. integrations/
  188. internal/
  189. iterator/
  190. jobs/
  191. keep/
  192. kgsearch/
  193. kmsinventory/
  194. language/
  195. lib/
  196. libraryagent/
  197. licensing/
  198. lifesciences/
  199. localservices/
  200. logging/
  201. looker/
  202. managedidentities/
  203. manufacturers/
  204. marketingplatformadmin/
  205. meet/
  206. memcache/
  207. merchantapi/
  208. metastore/
  209. migrationcenter/
  210. mirror/
  211. ml/
  212. monitoring/
  213. mybusinessaccountmanagement/
  214. mybusinessbusinesscalls/
  215. mybusinessbusinessinformation/
  216. mybusinesslodging/
  217. mybusinessnotifications/
  218. mybusinessplaceactions/
  219. mybusinessqanda/
  220. mybusinessverifications/
  221. netapp/
  222. networkconnectivity/
  223. networkmanagement/
  224. networksecurity/
  225. networkservices/
  226. notebooks/
  227. oauth2/
  228. ondemandscanning/
  229. option/
  230. oracledatabase/
  231. orgpolicy/
  232. osconfig/
  233. oslogin/
  234. pagespeedonline/
  235. partners/
  236. paymentsresellersubscription/
  237. people/
  238. places/
  239. playablelocations/
  240. playcustomapp/
  241. playdeveloperreporting/
  242. playgrouping/
  243. playintegrity/
  244. playmoviespartner/
  245. plus/
  246. plusdomains/
  247. policyanalyzer/
  248. policysimulator/
  249. policytroubleshooter/
  250. pollen/
  251. poly/
  252. privateca/
  253. prod_tt_sasportal/
  254. proximitybeacon/
  255. publicca/
  256. pubsub/
  257. pubsublite/
  258. qpxexpress/
  259. rapidmigrationassessment/
  260. readerrevenuesubscriptionlinking/
  261. realtimebidding/
  262. recaptchaenterprise/
  263. recommendationengine/
  264. recommender/
  265. redis/
  266. remotebuildexecution/
  267. replicapool/
  268. replicapoolupdater/
  269. reseller/
  270. resourcesettings/
  271. retail/
  272. run/
  273. runtimeconfig/
  274. safebrowsing/
  275. sasportal/
  276. script/
  277. searchads360/
  278. searchconsole/
  279. secretmanager/
  280. securitycenter/
  281. servicebroker/
  282. serviceconsumermanagement/
  283. servicecontrol/
  284. servicedirectory/
  285. servicemanagement/
  286. servicenetworking/
  287. serviceusage/
  288. serviceuser/
  289. sheets/
  290. siteverification/
  291. slides/
  292. smartdevicemanagement/
  293. solar/
  294. sourcerepo/
  295. spanner/
  296. spectrum/
  297. speech/
  298. sql/
  299. sqladmin/
  300. storage/
  301. storagetransfer/
  302. streetviewpublish/
  303. sts/
  304. support/
  305. surveys/
  306. tagmanager/
  307. tasks/
  308. testing/
  309. texttospeech/
  310. toolresults/
  311. tpu/
  312. tracing/
  313. trafficdirector/
  314. transcoder/
  315. translate/
  316. transport/
  317. travelimpactmodel/
  318. urlshortener/
  319. vault/
  320. vectortile/
  321. verifiedaccess/
  322. versionhistory/
  323. videointelligence/
  324. vision/
  325. vmmigration/
  326. vmwareengine/
  327. vpcaccess/
  328. walletobjects/
  329. webfonts/
  330. webmasters/
  331. webrisk/
  332. websecurityscanner/
  333. workflowexecutions/
  334. workflows/
  335. workloadmanager/
  336. workspaceevents/
  337. workstations/
  338. youtube/
  339. youtubeanalytics/
  340. youtubereporting/
  341. .gitignore
  342. .hgtags
  343. api-list.json
  344. AUTHORS
  345. CHANGES.md
  346. CODE_OF_CONDUCT.md
  347. CONTRIBUTING.md
  348. CONTRIBUTORS
  349. doc.go
  350. GettingStarted.md
  351. go.mod
  352. go.sum
  353. go.work
  354. go.work.sum
  355. header_test.go
  356. LICENSE
  357. NOTES
  358. README.md
  359. RELEASING.md
  360. SECURITY.md
  361. testing.md
  362. TODO
README.md

Google APIs Client Library for Go

Getting Started

$ go get google.golang.org/api/tasks/v1
$ go get google.golang.org/api/moderator/v1
$ go get google.golang.org/api/urlshortener/v1
... etc ...

and using:

package main

import (
        "context"
        "net/http"

        "google.golang.org/api/urlshortener/v1"
)

func main() {
        ctx := context.Background()
        svc, err := urlshortener.NewService(ctx)
        // ...
}

Status

Go Reference

These are auto-generated Go libraries from the Google Discovery Service's JSON description files.

Due to the auto-generated nature of this collection of libraries they may contain breaking changes from one release to the next. The generator itself and the code it produces are considered beta for this reason.

These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

If you're working with Google Cloud Platform APIs such as Datastore or Pub/Sub, please use the Cloud Client Libraries for Go instead. These are the new and idiomatic Go libraries targeted specifically at Google Cloud Platform Services.

Authorization

By default, each API will use Google Application Default Credentials for authorization credentials used in calling the API endpoints. This will allow your application to run in many environments without requiring explicit configuration.

// import "google.golang.org/api/sheets/v4"
client, err := sheets.NewService(ctx)

To authorize using a JSON key file, pass option.WithCredentialsFile to the NewService function of the desired package. For example:

client, err := sheets.NewService(ctx, option.WithCredentialsFile("path/to/keyfile.json"))

You can exert more control over authorization by using the golang.org/x/oauth2 package to create an oauth2.TokenSource. Then pass option.WithTokenSource to the NewService function:

tokenSource := ...
svc, err := sheets.NewService(ctx, option.WithTokenSource(tokenSource))

More information

For some more information related to all of the generated clients please read through our package documentation.