From f125912384fffaf76411442d94cf641b9793e9d5 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 9 Dec 2019 11:50:00 +0800 Subject: [PATCH] regenerate all crates --- gen/abusiveexperiencereport1-cli/Cargo.toml | 4 +- gen/abusiveexperiencereport1-cli/LICENSE.md | 2 +- gen/abusiveexperiencereport1-cli/README.md | 2 +- gen/abusiveexperiencereport1-cli/mkdocs.yml | 4 +- gen/abusiveexperiencereport1-cli/src/cmn.rs | 5 +- gen/abusiveexperiencereport1-cli/src/main.rs | 2 +- gen/abusiveexperiencereport1/Cargo.toml | 4 +- gen/abusiveexperiencereport1/LICENSE.md | 2 +- gen/abusiveexperiencereport1/README.md | 44 +-- gen/abusiveexperiencereport1/src/lib.rs | 6 +- gen/acceleratedmobilepageurl1-cli/Cargo.toml | 4 +- gen/acceleratedmobilepageurl1-cli/LICENSE.md | 2 +- gen/acceleratedmobilepageurl1-cli/README.md | 2 +- gen/acceleratedmobilepageurl1-cli/mkdocs.yml | 4 +- gen/acceleratedmobilepageurl1-cli/src/cmn.rs | 5 +- gen/acceleratedmobilepageurl1-cli/src/main.rs | 2 +- gen/acceleratedmobilepageurl1/Cargo.toml | 4 +- gen/acceleratedmobilepageurl1/LICENSE.md | 2 +- gen/acceleratedmobilepageurl1/README.md | 44 +-- gen/acceleratedmobilepageurl1/src/lib.rs | 6 +- gen/accessapproval1_beta1-cli/Cargo.toml | 4 +- gen/accessapproval1_beta1-cli/LICENSE.md | 2 +- gen/accessapproval1_beta1-cli/README.md | 2 +- gen/accessapproval1_beta1-cli/mkdocs.yml | 4 +- gen/accessapproval1_beta1-cli/src/cmn.rs | 5 +- gen/accessapproval1_beta1-cli/src/main.rs | 2 +- gen/accessapproval1_beta1/Cargo.toml | 4 +- gen/accessapproval1_beta1/LICENSE.md | 2 +- gen/accessapproval1_beta1/README.md | 46 +-- gen/accessapproval1_beta1/src/lib.rs | 6 +- gen/accesscontextmanager1-cli/Cargo.toml | 4 +- gen/accesscontextmanager1-cli/LICENSE.md | 2 +- gen/accesscontextmanager1-cli/README.md | 2 +- gen/accesscontextmanager1-cli/mkdocs.yml | 4 +- gen/accesscontextmanager1-cli/src/cmn.rs | 5 +- gen/accesscontextmanager1-cli/src/main.rs | 2 +- gen/accesscontextmanager1/Cargo.toml | 4 +- gen/accesscontextmanager1/LICENSE.md | 2 +- gen/accesscontextmanager1/README.md | 48 +-- gen/accesscontextmanager1/src/lib.rs | 6 +- gen/accesscontextmanager1_beta-cli/Cargo.toml | 4 +- gen/accesscontextmanager1_beta-cli/LICENSE.md | 2 +- gen/accesscontextmanager1_beta-cli/README.md | 2 +- gen/accesscontextmanager1_beta-cli/mkdocs.yml | 4 +- gen/accesscontextmanager1_beta-cli/src/cmn.rs | 5 +- .../src/main.rs | 2 +- gen/accesscontextmanager1_beta/Cargo.toml | 4 +- gen/accesscontextmanager1_beta/LICENSE.md | 2 +- gen/accesscontextmanager1_beta/README.md | 48 +-- gen/accesscontextmanager1_beta/src/lib.rs | 6 +- gen/adexchangebuyer1d3-cli/Cargo.toml | 4 +- gen/adexchangebuyer1d3-cli/LICENSE.md | 2 +- gen/adexchangebuyer1d3-cli/README.md | 2 +- gen/adexchangebuyer1d3-cli/mkdocs.yml | 4 +- gen/adexchangebuyer1d3-cli/src/cmn.rs | 5 +- gen/adexchangebuyer1d3-cli/src/main.rs | 2 +- gen/adexchangebuyer1d3/Cargo.toml | 4 +- gen/adexchangebuyer1d3/LICENSE.md | 2 +- gen/adexchangebuyer1d3/README.md | 68 ++--- gen/adexchangebuyer1d3/src/lib.rs | 6 +- gen/adexchangebuyer1d4-cli/Cargo.toml | 4 +- gen/adexchangebuyer1d4-cli/LICENSE.md | 2 +- gen/adexchangebuyer1d4-cli/README.md | 2 +- gen/adexchangebuyer1d4-cli/mkdocs.yml | 4 +- gen/adexchangebuyer1d4-cli/src/cmn.rs | 5 +- gen/adexchangebuyer1d4-cli/src/main.rs | 2 +- gen/adexchangebuyer1d4/Cargo.toml | 4 +- gen/adexchangebuyer1d4/LICENSE.md | 2 +- gen/adexchangebuyer1d4/README.md | 80 ++--- gen/adexchangebuyer1d4/src/lib.rs | 6 +- gen/adexchangebuyer2_v2_beta1-cli/Cargo.toml | 4 +- gen/adexchangebuyer2_v2_beta1-cli/LICENSE.md | 2 +- gen/adexchangebuyer2_v2_beta1-cli/README.md | 2 +- gen/adexchangebuyer2_v2_beta1-cli/mkdocs.yml | 4 +- gen/adexchangebuyer2_v2_beta1-cli/src/cmn.rs | 5 +- gen/adexchangebuyer2_v2_beta1-cli/src/main.rs | 2 +- gen/adexchangebuyer2_v2_beta1/Cargo.toml | 4 +- gen/adexchangebuyer2_v2_beta1/LICENSE.md | 2 +- gen/adexchangebuyer2_v2_beta1/README.md | 44 +-- gen/adexchangebuyer2_v2_beta1/src/lib.rs | 6 +- gen/adexchangeseller2-cli/Cargo.toml | 4 +- gen/adexchangeseller2-cli/LICENSE.md | 2 +- gen/adexchangeseller2-cli/README.md | 2 +- gen/adexchangeseller2-cli/mkdocs.yml | 4 +- gen/adexchangeseller2-cli/src/cmn.rs | 5 +- gen/adexchangeseller2-cli/src/main.rs | 2 +- gen/adexchangeseller2/Cargo.toml | 4 +- gen/adexchangeseller2/LICENSE.md | 2 +- gen/adexchangeseller2/README.md | 46 +-- gen/adexchangeseller2/src/lib.rs | 6 +- gen/adexperiencereport1-cli/Cargo.toml | 4 +- gen/adexperiencereport1-cli/LICENSE.md | 2 +- gen/adexperiencereport1-cli/README.md | 2 +- gen/adexperiencereport1-cli/mkdocs.yml | 4 +- gen/adexperiencereport1-cli/src/cmn.rs | 5 +- gen/adexperiencereport1-cli/src/main.rs | 2 +- gen/adexperiencereport1/Cargo.toml | 4 +- gen/adexperiencereport1/LICENSE.md | 2 +- gen/adexperiencereport1/README.md | 44 +-- gen/adexperiencereport1/src/lib.rs | 6 +- gen/admin1_directory-cli/Cargo.toml | 4 +- gen/admin1_directory-cli/LICENSE.md | 2 +- gen/admin1_directory-cli/README.md | 2 +- gen/admin1_directory-cli/mkdocs.yml | 4 +- gen/admin1_directory-cli/src/cmn.rs | 5 +- gen/admin1_directory-cli/src/main.rs | 2 +- gen/admin1_directory/Cargo.toml | 4 +- gen/admin1_directory/LICENSE.md | 2 +- gen/admin1_directory/README.md | 116 +++---- gen/admin1_directory/src/lib.rs | 6 +- gen/admin1_reports-cli/Cargo.toml | 4 +- gen/admin1_reports-cli/LICENSE.md | 2 +- gen/admin1_reports-cli/README.md | 2 +- gen/admin1_reports-cli/mkdocs.yml | 4 +- gen/admin1_reports-cli/src/cmn.rs | 5 +- gen/admin1_reports-cli/src/main.rs | 2 +- gen/admin1_reports/Cargo.toml | 4 +- gen/admin1_reports/LICENSE.md | 2 +- gen/admin1_reports/README.md | 58 ++-- gen/admin1_reports/src/lib.rs | 6 +- gen/adsense1d4-cli/Cargo.toml | 4 +- gen/adsense1d4-cli/LICENSE.md | 2 +- gen/adsense1d4-cli/README.md | 2 +- gen/adsense1d4-cli/mkdocs.yml | 4 +- gen/adsense1d4-cli/src/cmn.rs | 5 +- gen/adsense1d4-cli/src/main.rs | 2 +- gen/adsense1d4/Cargo.toml | 4 +- gen/adsense1d4/LICENSE.md | 2 +- gen/adsense1d4/README.md | 72 ++--- gen/adsense1d4/src/lib.rs | 6 +- gen/adsensehost4d1-cli/Cargo.toml | 4 +- gen/adsensehost4d1-cli/LICENSE.md | 2 +- gen/adsensehost4d1-cli/README.md | 2 +- gen/adsensehost4d1-cli/mkdocs.yml | 4 +- gen/adsensehost4d1-cli/src/cmn.rs | 5 +- gen/adsensehost4d1-cli/src/main.rs | 2 +- gen/adsensehost4d1/Cargo.toml | 4 +- gen/adsensehost4d1/LICENSE.md | 2 +- gen/adsensehost4d1/README.md | 56 ++-- gen/adsensehost4d1/src/lib.rs | 6 +- gen/alertcenter1_beta1-cli/Cargo.toml | 4 +- gen/alertcenter1_beta1-cli/LICENSE.md | 2 +- gen/alertcenter1_beta1-cli/README.md | 2 +- gen/alertcenter1_beta1-cli/mkdocs.yml | 4 +- gen/alertcenter1_beta1-cli/src/cmn.rs | 5 +- gen/alertcenter1_beta1-cli/src/main.rs | 2 +- gen/alertcenter1_beta1/Cargo.toml | 4 +- gen/alertcenter1_beta1/LICENSE.md | 2 +- gen/alertcenter1_beta1/README.md | 48 +-- gen/alertcenter1_beta1/src/lib.rs | 6 +- gen/analytics3-cli/Cargo.toml | 4 +- gen/analytics3-cli/LICENSE.md | 2 +- gen/analytics3-cli/README.md | 2 +- gen/analytics3-cli/mkdocs.yml | 4 +- gen/analytics3-cli/src/cmn.rs | 5 +- gen/analytics3-cli/src/main.rs | 2 +- gen/analytics3/Cargo.toml | 4 +- gen/analytics3/LICENSE.md | 2 +- gen/analytics3/README.md | 52 ++-- gen/analytics3/src/lib.rs | 6 +- gen/analyticsreporting4-cli/Cargo.toml | 4 +- gen/analyticsreporting4-cli/LICENSE.md | 2 +- gen/analyticsreporting4-cli/README.md | 2 +- gen/analyticsreporting4-cli/mkdocs.yml | 4 +- gen/analyticsreporting4-cli/src/cmn.rs | 5 +- gen/analyticsreporting4-cli/src/main.rs | 2 +- gen/analyticsreporting4/Cargo.toml | 4 +- gen/analyticsreporting4/LICENSE.md | 2 +- gen/analyticsreporting4/README.md | 46 +-- gen/analyticsreporting4/src/lib.rs | 6 +- gen/androiddeviceprovisioning1-cli/Cargo.toml | 4 +- gen/androiddeviceprovisioning1-cli/LICENSE.md | 2 +- gen/androiddeviceprovisioning1-cli/README.md | 2 +- gen/androiddeviceprovisioning1-cli/mkdocs.yml | 4 +- gen/androiddeviceprovisioning1-cli/src/cmn.rs | 5 +- .../src/main.rs | 2 +- gen/androiddeviceprovisioning1/Cargo.toml | 4 +- gen/androiddeviceprovisioning1/LICENSE.md | 2 +- gen/androiddeviceprovisioning1/README.md | 48 +-- gen/androiddeviceprovisioning1/src/lib.rs | 6 +- gen/androidenterprise1-cli/Cargo.toml | 4 +- gen/androidenterprise1-cli/LICENSE.md | 2 +- gen/androidenterprise1-cli/README.md | 2 +- gen/androidenterprise1-cli/mkdocs.yml | 4 +- gen/androidenterprise1-cli/src/cmn.rs | 5 +- gen/androidenterprise1-cli/src/main.rs | 2 +- gen/androidenterprise1/Cargo.toml | 4 +- gen/androidenterprise1/LICENSE.md | 2 +- gen/androidenterprise1/README.md | 86 +++--- gen/androidenterprise1/src/lib.rs | 6 +- gen/androidmanagement1-cli/Cargo.toml | 4 +- gen/androidmanagement1-cli/LICENSE.md | 2 +- gen/androidmanagement1-cli/README.md | 2 +- gen/androidmanagement1-cli/mkdocs.yml | 4 +- gen/androidmanagement1-cli/src/cmn.rs | 5 +- gen/androidmanagement1-cli/src/main.rs | 2 +- gen/androidmanagement1/Cargo.toml | 4 +- gen/androidmanagement1/LICENSE.md | 2 +- gen/androidmanagement1/README.md | 48 +-- gen/androidmanagement1/src/lib.rs | 6 +- gen/androidpublisher2-cli/Cargo.toml | 4 +- gen/androidpublisher2-cli/LICENSE.md | 2 +- gen/androidpublisher2-cli/README.md | 2 +- gen/androidpublisher2-cli/mkdocs.yml | 4 +- gen/androidpublisher2-cli/src/cmn.rs | 5 +- gen/androidpublisher2-cli/src/main.rs | 2 +- gen/androidpublisher2/Cargo.toml | 4 +- gen/androidpublisher2/LICENSE.md | 2 +- gen/androidpublisher2/README.md | 62 ++-- gen/androidpublisher2/src/lib.rs | 6 +- gen/androidpublisher3-cli/Cargo.toml | 4 +- gen/androidpublisher3-cli/LICENSE.md | 2 +- gen/androidpublisher3-cli/README.md | 2 +- gen/androidpublisher3-cli/mkdocs.yml | 4 +- gen/androidpublisher3-cli/src/cmn.rs | 5 +- gen/androidpublisher3-cli/src/main.rs | 2 +- gen/androidpublisher3/Cargo.toml | 4 +- gen/androidpublisher3/LICENSE.md | 2 +- gen/androidpublisher3/README.md | 68 ++--- gen/androidpublisher3/src/lib.rs | 6 +- gen/appengine1-cli/Cargo.toml | 4 +- gen/appengine1-cli/LICENSE.md | 2 +- gen/appengine1-cli/README.md | 2 +- gen/appengine1-cli/mkdocs.yml | 4 +- gen/appengine1-cli/src/cmn.rs | 5 +- gen/appengine1-cli/src/main.rs | 2 +- gen/appengine1/Cargo.toml | 4 +- gen/appengine1/LICENSE.md | 2 +- gen/appengine1/README.md | 42 +-- gen/appengine1/src/lib.rs | 6 +- gen/appengine1_beta4-cli/Cargo.toml | 4 +- gen/appengine1_beta4-cli/LICENSE.md | 2 +- gen/appengine1_beta4-cli/README.md | 2 +- gen/appengine1_beta4-cli/mkdocs.yml | 4 +- gen/appengine1_beta4-cli/src/cmn.rs | 5 +- gen/appengine1_beta4-cli/src/main.rs | 2 +- gen/appengine1_beta4/Cargo.toml | 4 +- gen/appengine1_beta4/LICENSE.md | 2 +- gen/appengine1_beta4/README.md | 42 +-- gen/appengine1_beta4/src/lib.rs | 6 +- gen/appengine1_beta5-cli/Cargo.toml | 4 +- gen/appengine1_beta5-cli/LICENSE.md | 2 +- gen/appengine1_beta5-cli/README.md | 2 +- gen/appengine1_beta5-cli/mkdocs.yml | 4 +- gen/appengine1_beta5-cli/src/cmn.rs | 5 +- gen/appengine1_beta5-cli/src/main.rs | 2 +- gen/appengine1_beta5/Cargo.toml | 4 +- gen/appengine1_beta5/LICENSE.md | 2 +- gen/appengine1_beta5/README.md | 42 +-- gen/appengine1_beta5/src/lib.rs | 6 +- gen/appsactivity1-cli/Cargo.toml | 4 +- gen/appsactivity1-cli/LICENSE.md | 2 +- gen/appsactivity1-cli/README.md | 2 +- gen/appsactivity1-cli/mkdocs.yml | 4 +- gen/appsactivity1-cli/src/cmn.rs | 5 +- gen/appsactivity1-cli/src/main.rs | 2 +- gen/appsactivity1/Cargo.toml | 4 +- gen/appsactivity1/LICENSE.md | 2 +- gen/appsactivity1/README.md | 44 +-- gen/appsactivity1/src/lib.rs | 6 +- gen/appstate1-cli/Cargo.toml | 4 +- gen/appstate1-cli/LICENSE.md | 2 +- gen/appstate1-cli/README.md | 2 +- gen/appstate1-cli/mkdocs.yml | 4 +- gen/appstate1-cli/src/cmn.rs | 5 +- gen/appstate1-cli/src/main.rs | 2 +- gen/appstate1/Cargo.toml | 4 +- gen/appstate1/LICENSE.md | 2 +- gen/appstate1/README.md | 42 +-- gen/appstate1/src/lib.rs | 6 +- gen/autoscaler1_beta2-cli/Cargo.toml | 4 +- gen/autoscaler1_beta2-cli/LICENSE.md | 2 +- gen/autoscaler1_beta2-cli/README.md | 2 +- gen/autoscaler1_beta2-cli/mkdocs.yml | 4 +- gen/autoscaler1_beta2-cli/src/cmn.rs | 5 +- gen/autoscaler1_beta2-cli/src/main.rs | 2 +- gen/autoscaler1_beta2/Cargo.toml | 4 +- gen/autoscaler1_beta2/LICENSE.md | 2 +- gen/autoscaler1_beta2/README.md | 50 +-- gen/autoscaler1_beta2/src/lib.rs | 6 +- gen/bigquery2-cli/Cargo.toml | 4 +- gen/bigquery2-cli/LICENSE.md | 2 +- gen/bigquery2-cli/README.md | 2 +- gen/bigquery2-cli/mkdocs.yml | 4 +- gen/bigquery2-cli/src/cmn.rs | 5 +- gen/bigquery2-cli/src/main.rs | 2 +- gen/bigquery2/Cargo.toml | 4 +- gen/bigquery2/LICENSE.md | 2 +- gen/bigquery2/README.md | 66 ++-- gen/bigquery2/src/lib.rs | 6 +- gen/bigquerydatatransfer1-cli/Cargo.toml | 4 +- gen/bigquerydatatransfer1-cli/LICENSE.md | 2 +- gen/bigquerydatatransfer1-cli/README.md | 2 +- gen/bigquerydatatransfer1-cli/mkdocs.yml | 4 +- gen/bigquerydatatransfer1-cli/src/cmn.rs | 5 +- gen/bigquerydatatransfer1-cli/src/main.rs | 2 +- gen/bigquerydatatransfer1/Cargo.toml | 4 +- gen/bigquerydatatransfer1/LICENSE.md | 2 +- gen/bigquerydatatransfer1/README.md | 42 +-- gen/bigquerydatatransfer1/src/lib.rs | 6 +- gen/bigtableadmin2-cli/Cargo.toml | 4 +- gen/bigtableadmin2-cli/LICENSE.md | 2 +- gen/bigtableadmin2-cli/README.md | 2 +- gen/bigtableadmin2-cli/mkdocs.yml | 4 +- gen/bigtableadmin2-cli/src/cmn.rs | 5 +- gen/bigtableadmin2-cli/src/main.rs | 2 +- gen/bigtableadmin2/Cargo.toml | 4 +- gen/bigtableadmin2/LICENSE.md | 2 +- gen/bigtableadmin2/README.md | 46 +-- gen/bigtableadmin2/src/lib.rs | 6 +- gen/binaryauthorization1_beta1-cli/Cargo.toml | 4 +- gen/binaryauthorization1_beta1-cli/LICENSE.md | 2 +- gen/binaryauthorization1_beta1-cli/README.md | 2 +- gen/binaryauthorization1_beta1-cli/mkdocs.yml | 4 +- gen/binaryauthorization1_beta1-cli/src/cmn.rs | 5 +- .../src/main.rs | 2 +- gen/binaryauthorization1_beta1/Cargo.toml | 4 +- gen/binaryauthorization1_beta1/LICENSE.md | 2 +- gen/binaryauthorization1_beta1/README.md | 42 +-- gen/binaryauthorization1_beta1/src/lib.rs | 6 +- gen/blogger3-cli/Cargo.toml | 4 +- gen/blogger3-cli/LICENSE.md | 2 +- gen/blogger3-cli/README.md | 2 +- gen/blogger3-cli/mkdocs.yml | 4 +- gen/blogger3-cli/src/cmn.rs | 5 +- gen/blogger3-cli/src/main.rs | 2 +- gen/blogger3/Cargo.toml | 4 +- gen/blogger3/LICENSE.md | 2 +- gen/blogger3/README.md | 70 ++--- gen/blogger3/src/lib.rs | 6 +- gen/books1-cli/Cargo.toml | 4 +- gen/books1-cli/LICENSE.md | 2 +- gen/books1-cli/README.md | 2 +- gen/books1-cli/mkdocs.yml | 4 +- gen/books1-cli/src/cmn.rs | 5 +- gen/books1-cli/src/main.rs | 2 +- gen/books1/Cargo.toml | 4 +- gen/books1/LICENSE.md | 2 +- gen/books1/README.md | 70 ++--- gen/books1/src/lib.rs | 6 +- gen/calendar3-cli/Cargo.toml | 4 +- gen/calendar3-cli/LICENSE.md | 2 +- gen/calendar3-cli/README.md | 2 +- gen/calendar3-cli/mkdocs.yml | 4 +- gen/calendar3-cli/src/cmn.rs | 5 +- gen/calendar3-cli/src/main.rs | 2 +- gen/calendar3/Cargo.toml | 4 +- gen/calendar3/LICENSE.md | 2 +- gen/calendar3/README.md | 86 +++--- gen/calendar3/src/lib.rs | 6 +- gen/chat1-cli/Cargo.toml | 4 +- gen/chat1-cli/LICENSE.md | 2 +- gen/chat1-cli/README.md | 2 +- gen/chat1-cli/mkdocs.yml | 4 +- gen/chat1-cli/src/cmn.rs | 5 +- gen/chat1-cli/src/main.rs | 2 +- gen/chat1/Cargo.toml | 4 +- gen/chat1/LICENSE.md | 2 +- gen/chat1/README.md | 44 +-- gen/chat1/src/lib.rs | 6 +- gen/classroom1-cli/Cargo.toml | 4 +- gen/classroom1-cli/LICENSE.md | 2 +- gen/classroom1-cli/README.md | 2 +- gen/classroom1-cli/mkdocs.yml | 4 +- gen/classroom1-cli/src/cmn.rs | 5 +- gen/classroom1-cli/src/main.rs | 2 +- gen/classroom1/Cargo.toml | 4 +- gen/classroom1/LICENSE.md | 2 +- gen/classroom1/README.md | 56 ++-- gen/classroom1/src/lib.rs | 6 +- gen/cloudasset1-cli/Cargo.toml | 4 +- gen/cloudasset1-cli/LICENSE.md | 2 +- gen/cloudasset1-cli/README.md | 2 +- gen/cloudasset1-cli/mkdocs.yml | 4 +- gen/cloudasset1-cli/src/cmn.rs | 5 +- gen/cloudasset1-cli/src/main.rs | 2 +- gen/cloudasset1/Cargo.toml | 4 +- gen/cloudasset1/LICENSE.md | 2 +- gen/cloudasset1/README.md | 48 +-- gen/cloudasset1/src/lib.rs | 6 +- gen/cloudasset1_beta1-cli/Cargo.toml | 4 +- gen/cloudasset1_beta1-cli/LICENSE.md | 2 +- gen/cloudasset1_beta1-cli/README.md | 2 +- gen/cloudasset1_beta1-cli/mkdocs.yml | 4 +- gen/cloudasset1_beta1-cli/src/cmn.rs | 5 +- gen/cloudasset1_beta1-cli/src/main.rs | 2 +- gen/cloudasset1_beta1/Cargo.toml | 4 +- gen/cloudasset1_beta1/LICENSE.md | 2 +- gen/cloudasset1_beta1/README.md | 46 +-- gen/cloudasset1_beta1/src/lib.rs | 6 +- gen/cloudbilling1-cli/Cargo.toml | 4 +- gen/cloudbilling1-cli/LICENSE.md | 2 +- gen/cloudbilling1-cli/README.md | 2 +- gen/cloudbilling1-cli/mkdocs.yml | 4 +- gen/cloudbilling1-cli/src/cmn.rs | 5 +- gen/cloudbilling1-cli/src/main.rs | 2 +- gen/cloudbilling1/Cargo.toml | 4 +- gen/cloudbilling1/LICENSE.md | 2 +- gen/cloudbilling1/README.md | 50 +-- gen/cloudbilling1/src/lib.rs | 6 +- gen/cloudbuild1-cli/Cargo.toml | 4 +- gen/cloudbuild1-cli/LICENSE.md | 2 +- gen/cloudbuild1-cli/README.md | 2 +- gen/cloudbuild1-cli/mkdocs.yml | 4 +- gen/cloudbuild1-cli/src/cmn.rs | 5 +- gen/cloudbuild1-cli/src/main.rs | 2 +- gen/cloudbuild1/Cargo.toml | 4 +- gen/cloudbuild1/LICENSE.md | 2 +- gen/cloudbuild1/README.md | 46 +-- gen/cloudbuild1/src/lib.rs | 6 +- gen/clouddebugger2-cli/Cargo.toml | 4 +- gen/clouddebugger2-cli/LICENSE.md | 2 +- gen/clouddebugger2-cli/README.md | 2 +- gen/clouddebugger2-cli/mkdocs.yml | 4 +- gen/clouddebugger2-cli/src/cmn.rs | 5 +- gen/clouddebugger2-cli/src/main.rs | 2 +- gen/clouddebugger2/Cargo.toml | 4 +- gen/clouddebugger2/LICENSE.md | 2 +- gen/clouddebugger2/README.md | 44 +-- gen/clouddebugger2/src/lib.rs | 6 +- gen/clouderrorreporting1_beta1-cli/Cargo.toml | 4 +- gen/clouderrorreporting1_beta1-cli/LICENSE.md | 2 +- gen/clouderrorreporting1_beta1-cli/README.md | 2 +- gen/clouderrorreporting1_beta1-cli/mkdocs.yml | 4 +- gen/clouderrorreporting1_beta1-cli/src/cmn.rs | 5 +- .../src/main.rs | 2 +- gen/clouderrorreporting1_beta1/Cargo.toml | 4 +- gen/clouderrorreporting1_beta1/LICENSE.md | 2 +- gen/clouderrorreporting1_beta1/README.md | 42 +-- gen/clouderrorreporting1_beta1/src/lib.rs | 6 +- gen/cloudfunctions1-cli/Cargo.toml | 4 +- gen/cloudfunctions1-cli/LICENSE.md | 2 +- gen/cloudfunctions1-cli/README.md | 2 +- gen/cloudfunctions1-cli/mkdocs.yml | 4 +- gen/cloudfunctions1-cli/src/cmn.rs | 5 +- gen/cloudfunctions1-cli/src/main.rs | 2 +- gen/cloudfunctions1/Cargo.toml | 4 +- gen/cloudfunctions1/LICENSE.md | 2 +- gen/cloudfunctions1/README.md | 46 +-- gen/cloudfunctions1/src/lib.rs | 6 +- gen/cloudidentity1-cli/Cargo.toml | 4 +- gen/cloudidentity1-cli/LICENSE.md | 2 +- gen/cloudidentity1-cli/README.md | 2 +- gen/cloudidentity1-cli/mkdocs.yml | 4 +- gen/cloudidentity1-cli/src/cmn.rs | 5 +- gen/cloudidentity1-cli/src/main.rs | 2 +- gen/cloudidentity1/Cargo.toml | 4 +- gen/cloudidentity1/LICENSE.md | 2 +- gen/cloudidentity1/README.md | 44 +-- gen/cloudidentity1/src/lib.rs | 6 +- gen/cloudiot1-cli/Cargo.toml | 4 +- gen/cloudiot1-cli/LICENSE.md | 2 +- gen/cloudiot1-cli/README.md | 2 +- gen/cloudiot1-cli/mkdocs.yml | 4 +- gen/cloudiot1-cli/src/cmn.rs | 5 +- gen/cloudiot1-cli/src/main.rs | 2 +- gen/cloudiot1/Cargo.toml | 4 +- gen/cloudiot1/LICENSE.md | 2 +- gen/cloudiot1/README.md | 42 +-- gen/cloudiot1/src/lib.rs | 6 +- gen/cloudkms1-cli/Cargo.toml | 4 +- gen/cloudkms1-cli/LICENSE.md | 2 +- gen/cloudkms1-cli/README.md | 2 +- gen/cloudkms1-cli/mkdocs.yml | 4 +- gen/cloudkms1-cli/src/cmn.rs | 5 +- gen/cloudkms1-cli/src/main.rs | 2 +- gen/cloudkms1/Cargo.toml | 4 +- gen/cloudkms1/LICENSE.md | 2 +- gen/cloudkms1/README.md | 42 +-- gen/cloudkms1/src/lib.rs | 6 +- gen/cloudkms1_beta1-cli/Cargo.toml | 4 +- gen/cloudkms1_beta1-cli/LICENSE.md | 2 +- gen/cloudkms1_beta1-cli/README.md | 2 +- gen/cloudkms1_beta1-cli/mkdocs.yml | 4 +- gen/cloudkms1_beta1-cli/src/cmn.rs | 5 +- gen/cloudkms1_beta1-cli/src/main.rs | 2 +- gen/cloudkms1_beta1/Cargo.toml | 4 +- gen/cloudkms1_beta1/LICENSE.md | 2 +- gen/cloudkms1_beta1/README.md | 42 +-- gen/cloudkms1_beta1/src/lib.rs | 6 +- gen/cloudlatencytest2-cli/Cargo.toml | 4 +- gen/cloudlatencytest2-cli/LICENSE.md | 2 +- gen/cloudlatencytest2-cli/README.md | 2 +- gen/cloudlatencytest2-cli/mkdocs.yml | 4 +- gen/cloudlatencytest2-cli/src/cmn.rs | 5 +- gen/cloudlatencytest2-cli/src/main.rs | 2 +- gen/cloudlatencytest2/Cargo.toml | 4 +- gen/cloudlatencytest2/LICENSE.md | 2 +- gen/cloudlatencytest2/README.md | 42 +-- gen/cloudlatencytest2/src/lib.rs | 6 +- gen/cloudmonitoring2_beta2-cli/Cargo.toml | 4 +- gen/cloudmonitoring2_beta2-cli/LICENSE.md | 2 +- gen/cloudmonitoring2_beta2-cli/README.md | 2 +- gen/cloudmonitoring2_beta2-cli/mkdocs.yml | 4 +- gen/cloudmonitoring2_beta2-cli/src/cmn.rs | 5 +- gen/cloudmonitoring2_beta2-cli/src/main.rs | 2 +- gen/cloudmonitoring2_beta2/Cargo.toml | 4 +- gen/cloudmonitoring2_beta2/LICENSE.md | 2 +- gen/cloudmonitoring2_beta2/README.md | 50 +-- gen/cloudmonitoring2_beta2/src/lib.rs | 6 +- gen/cloudprivatecatalog1_beta1-cli/Cargo.toml | 4 +- gen/cloudprivatecatalog1_beta1-cli/LICENSE.md | 2 +- gen/cloudprivatecatalog1_beta1-cli/README.md | 2 +- gen/cloudprivatecatalog1_beta1-cli/mkdocs.yml | 4 +- gen/cloudprivatecatalog1_beta1-cli/src/cmn.rs | 5 +- .../src/main.rs | 2 +- gen/cloudprivatecatalog1_beta1/Cargo.toml | 4 +- gen/cloudprivatecatalog1_beta1/LICENSE.md | 2 +- gen/cloudprivatecatalog1_beta1/README.md | 46 +-- gen/cloudprivatecatalog1_beta1/src/lib.rs | 6 +- .../Cargo.toml | 4 +- .../LICENSE.md | 2 +- .../README.md | 2 +- .../mkdocs.yml | 4 +- .../src/cmn.rs | 5 +- .../src/main.rs | 2 +- .../Cargo.toml | 4 +- .../LICENSE.md | 2 +- .../README.md | 44 +-- .../src/lib.rs | 6 +- gen/cloudprofiler2-cli/Cargo.toml | 4 +- gen/cloudprofiler2-cli/LICENSE.md | 2 +- gen/cloudprofiler2-cli/README.md | 2 +- gen/cloudprofiler2-cli/mkdocs.yml | 4 +- gen/cloudprofiler2-cli/src/cmn.rs | 5 +- gen/cloudprofiler2-cli/src/main.rs | 2 +- gen/cloudprofiler2/Cargo.toml | 4 +- gen/cloudprofiler2/LICENSE.md | 2 +- gen/cloudprofiler2/README.md | 42 +-- gen/cloudprofiler2/src/lib.rs | 6 +- gen/cloudresourcemanager1-cli/Cargo.toml | 4 +- gen/cloudresourcemanager1-cli/LICENSE.md | 2 +- gen/cloudresourcemanager1-cli/README.md | 2 +- gen/cloudresourcemanager1-cli/mkdocs.yml | 4 +- gen/cloudresourcemanager1-cli/src/cmn.rs | 5 +- gen/cloudresourcemanager1-cli/src/main.rs | 2 +- gen/cloudresourcemanager1/Cargo.toml | 4 +- gen/cloudresourcemanager1/LICENSE.md | 2 +- gen/cloudresourcemanager1/README.md | 58 ++-- gen/cloudresourcemanager1/src/lib.rs | 6 +- .../Cargo.toml | 4 +- .../LICENSE.md | 2 +- gen/cloudresourcemanager1_beta1-cli/README.md | 2 +- .../mkdocs.yml | 4 +- .../src/cmn.rs | 5 +- .../src/main.rs | 2 +- gen/cloudresourcemanager1_beta1/Cargo.toml | 4 +- gen/cloudresourcemanager1_beta1/LICENSE.md | 2 +- gen/cloudresourcemanager1_beta1/README.md | 48 +-- gen/cloudresourcemanager1_beta1/src/lib.rs | 6 +- gen/cloudresourcemanager2-cli/Cargo.toml | 4 +- gen/cloudresourcemanager2-cli/LICENSE.md | 2 +- gen/cloudresourcemanager2-cli/README.md | 2 +- gen/cloudresourcemanager2-cli/mkdocs.yml | 4 +- gen/cloudresourcemanager2-cli/src/cmn.rs | 5 +- gen/cloudresourcemanager2-cli/src/main.rs | 2 +- gen/cloudresourcemanager2/Cargo.toml | 4 +- gen/cloudresourcemanager2/LICENSE.md | 2 +- gen/cloudresourcemanager2/README.md | 48 +-- gen/cloudresourcemanager2/src/lib.rs | 6 +- gen/cloudscheduler1-cli/Cargo.toml | 4 +- gen/cloudscheduler1-cli/LICENSE.md | 2 +- gen/cloudscheduler1-cli/README.md | 2 +- gen/cloudscheduler1-cli/mkdocs.yml | 4 +- gen/cloudscheduler1-cli/src/cmn.rs | 5 +- gen/cloudscheduler1-cli/src/main.rs | 2 +- gen/cloudscheduler1/Cargo.toml | 4 +- gen/cloudscheduler1/LICENSE.md | 2 +- gen/cloudscheduler1/README.md | 42 +-- gen/cloudscheduler1/src/lib.rs | 6 +- gen/cloudscheduler1_beta1-cli/Cargo.toml | 4 +- gen/cloudscheduler1_beta1-cli/LICENSE.md | 2 +- gen/cloudscheduler1_beta1-cli/README.md | 2 +- gen/cloudscheduler1_beta1-cli/mkdocs.yml | 4 +- gen/cloudscheduler1_beta1-cli/src/cmn.rs | 5 +- gen/cloudscheduler1_beta1-cli/src/main.rs | 2 +- gen/cloudscheduler1_beta1/Cargo.toml | 4 +- gen/cloudscheduler1_beta1/LICENSE.md | 2 +- gen/cloudscheduler1_beta1/README.md | 42 +-- gen/cloudscheduler1_beta1/src/lib.rs | 6 +- gen/cloudshell1-cli/Cargo.toml | 4 +- gen/cloudshell1-cli/LICENSE.md | 2 +- gen/cloudshell1-cli/README.md | 2 +- gen/cloudshell1-cli/mkdocs.yml | 4 +- gen/cloudshell1-cli/src/cmn.rs | 5 +- gen/cloudshell1-cli/src/main.rs | 2 +- gen/cloudshell1/Cargo.toml | 4 +- gen/cloudshell1/LICENSE.md | 2 +- gen/cloudshell1/README.md | 44 +-- gen/cloudshell1/src/lib.rs | 6 +- gen/cloudtasks2-cli/Cargo.toml | 4 +- gen/cloudtasks2-cli/LICENSE.md | 2 +- gen/cloudtasks2-cli/README.md | 2 +- gen/cloudtasks2-cli/mkdocs.yml | 4 +- gen/cloudtasks2-cli/src/cmn.rs | 5 +- gen/cloudtasks2-cli/src/main.rs | 2 +- gen/cloudtasks2/Cargo.toml | 4 +- gen/cloudtasks2/LICENSE.md | 2 +- gen/cloudtasks2/README.md | 42 +-- gen/cloudtasks2/src/lib.rs | 6 +- gen/cloudtasks2_beta2-cli/Cargo.toml | 4 +- gen/cloudtasks2_beta2-cli/LICENSE.md | 2 +- gen/cloudtasks2_beta2-cli/README.md | 2 +- gen/cloudtasks2_beta2-cli/mkdocs.yml | 4 +- gen/cloudtasks2_beta2-cli/src/cmn.rs | 5 +- gen/cloudtasks2_beta2-cli/src/main.rs | 2 +- gen/cloudtasks2_beta2/Cargo.toml | 4 +- gen/cloudtasks2_beta2/LICENSE.md | 2 +- gen/cloudtasks2_beta2/README.md | 42 +-- gen/cloudtasks2_beta2/src/lib.rs | 6 +- gen/cloudtasks2_beta3-cli/Cargo.toml | 4 +- gen/cloudtasks2_beta3-cli/LICENSE.md | 2 +- gen/cloudtasks2_beta3-cli/README.md | 2 +- gen/cloudtasks2_beta3-cli/mkdocs.yml | 4 +- gen/cloudtasks2_beta3-cli/src/cmn.rs | 5 +- gen/cloudtasks2_beta3-cli/src/main.rs | 2 +- gen/cloudtasks2_beta3/Cargo.toml | 4 +- gen/cloudtasks2_beta3/LICENSE.md | 2 +- gen/cloudtasks2_beta3/README.md | 42 +-- gen/cloudtasks2_beta3/src/lib.rs | 6 +- gen/cloudtrace1-cli/Cargo.toml | 4 +- gen/cloudtrace1-cli/LICENSE.md | 2 +- gen/cloudtrace1-cli/README.md | 2 +- gen/cloudtrace1-cli/mkdocs.yml | 4 +- gen/cloudtrace1-cli/src/cmn.rs | 5 +- gen/cloudtrace1-cli/src/main.rs | 2 +- gen/cloudtrace1/Cargo.toml | 4 +- gen/cloudtrace1/LICENSE.md | 2 +- gen/cloudtrace1/README.md | 42 +-- gen/cloudtrace1/src/lib.rs | 6 +- gen/cloudtrace2-cli/Cargo.toml | 4 +- gen/cloudtrace2-cli/LICENSE.md | 2 +- gen/cloudtrace2-cli/README.md | 2 +- gen/cloudtrace2-cli/mkdocs.yml | 4 +- gen/cloudtrace2-cli/src/cmn.rs | 5 +- gen/cloudtrace2-cli/src/main.rs | 2 +- gen/cloudtrace2/Cargo.toml | 4 +- gen/cloudtrace2/LICENSE.md | 2 +- gen/cloudtrace2/README.md | 42 +-- gen/cloudtrace2/src/lib.rs | 6 +- gen/clouduseraccountsvm_beta-cli/Cargo.toml | 4 +- gen/clouduseraccountsvm_beta-cli/LICENSE.md | 2 +- gen/clouduseraccountsvm_beta-cli/README.md | 2 +- gen/clouduseraccountsvm_beta-cli/mkdocs.yml | 4 +- gen/clouduseraccountsvm_beta-cli/src/cmn.rs | 5 +- gen/clouduseraccountsvm_beta-cli/src/main.rs | 2 +- gen/clouduseraccountsvm_beta/Cargo.toml | 4 +- gen/clouduseraccountsvm_beta/LICENSE.md | 2 +- gen/clouduseraccountsvm_beta/README.md | 52 ++-- gen/clouduseraccountsvm_beta/src/lib.rs | 6 +- gen/commentanalyzer1_alpha1-cli/Cargo.toml | 4 +- gen/commentanalyzer1_alpha1-cli/LICENSE.md | 2 +- gen/commentanalyzer1_alpha1-cli/README.md | 2 +- gen/commentanalyzer1_alpha1-cli/mkdocs.yml | 4 +- gen/commentanalyzer1_alpha1-cli/src/cmn.rs | 5 +- gen/commentanalyzer1_alpha1-cli/src/main.rs | 2 +- gen/commentanalyzer1_alpha1/Cargo.toml | 4 +- gen/commentanalyzer1_alpha1/LICENSE.md | 2 +- gen/commentanalyzer1_alpha1/README.md | 42 +-- gen/commentanalyzer1_alpha1/src/lib.rs | 6 +- gen/composer1-cli/Cargo.toml | 4 +- gen/composer1-cli/LICENSE.md | 2 +- gen/composer1-cli/README.md | 2 +- gen/composer1-cli/mkdocs.yml | 4 +- gen/composer1-cli/src/cmn.rs | 5 +- gen/composer1-cli/src/main.rs | 2 +- gen/composer1/Cargo.toml | 4 +- gen/composer1/LICENSE.md | 2 +- gen/composer1/README.md | 42 +-- gen/composer1/src/lib.rs | 6 +- gen/compute1-cli/Cargo.toml | 4 +- gen/compute1-cli/LICENSE.md | 2 +- gen/compute1-cli/README.md | 2 +- gen/compute1-cli/mkdocs.yml | 4 +- gen/compute1-cli/src/cmn.rs | 5 +- gen/compute1-cli/src/main.rs | 2 +- gen/compute1/Cargo.toml | 4 +- gen/compute1/LICENSE.md | 2 +- gen/compute1/README.md | 258 ++++++++-------- gen/compute1/src/lib.rs | 6 +- gen/consumersurveys2-cli/Cargo.toml | 4 +- gen/consumersurveys2-cli/LICENSE.md | 2 +- gen/consumersurveys2-cli/README.md | 2 +- gen/consumersurveys2-cli/mkdocs.yml | 4 +- gen/consumersurveys2-cli/src/cmn.rs | 5 +- gen/consumersurveys2-cli/src/main.rs | 2 +- gen/consumersurveys2/Cargo.toml | 4 +- gen/consumersurveys2/LICENSE.md | 2 +- gen/consumersurveys2/README.md | 50 +-- gen/consumersurveys2/src/lib.rs | 6 +- gen/container1-cli/Cargo.toml | 4 +- gen/container1-cli/LICENSE.md | 2 +- gen/container1-cli/README.md | 2 +- gen/container1-cli/mkdocs.yml | 4 +- gen/container1-cli/src/cmn.rs | 5 +- gen/container1-cli/src/main.rs | 2 +- gen/container1/Cargo.toml | 4 +- gen/container1/LICENSE.md | 2 +- gen/container1/README.md | 42 +-- gen/container1/src/lib.rs | 6 +- gen/containeranalysis1_beta1-cli/Cargo.toml | 4 +- gen/containeranalysis1_beta1-cli/LICENSE.md | 2 +- gen/containeranalysis1_beta1-cli/README.md | 2 +- gen/containeranalysis1_beta1-cli/mkdocs.yml | 4 +- gen/containeranalysis1_beta1-cli/src/cmn.rs | 5 +- gen/containeranalysis1_beta1-cli/src/main.rs | 2 +- gen/containeranalysis1_beta1/Cargo.toml | 4 +- gen/containeranalysis1_beta1/LICENSE.md | 2 +- gen/containeranalysis1_beta1/README.md | 42 +-- gen/containeranalysis1_beta1/src/lib.rs | 6 +- gen/content2-cli/Cargo.toml | 4 +- gen/content2-cli/LICENSE.md | 2 +- gen/content2-cli/README.md | 2 +- gen/content2-cli/mkdocs.yml | 4 +- gen/content2-cli/src/cmn.rs | 5 +- gen/content2-cli/src/main.rs | 2 +- gen/content2/Cargo.toml | 4 +- gen/content2/LICENSE.md | 2 +- gen/content2/README.md | 82 ++--- gen/content2/src/lib.rs | 6 +- gen/content2_sandbox-cli/Cargo.toml | 4 +- gen/content2_sandbox-cli/LICENSE.md | 2 +- gen/content2_sandbox-cli/README.md | 2 +- gen/content2_sandbox-cli/mkdocs.yml | 4 +- gen/content2_sandbox-cli/src/cmn.rs | 5 +- gen/content2_sandbox-cli/src/main.rs | 2 +- gen/content2_sandbox/Cargo.toml | 4 +- gen/content2_sandbox/LICENSE.md | 2 +- gen/content2_sandbox/README.md | 50 +-- gen/content2_sandbox/src/lib.rs | 6 +- gen/coordinate1-cli/Cargo.toml | 4 +- gen/coordinate1-cli/LICENSE.md | 2 +- gen/coordinate1-cli/README.md | 2 +- gen/coordinate1-cli/mkdocs.yml | 4 +- gen/coordinate1-cli/src/cmn.rs | 5 +- gen/coordinate1-cli/src/main.rs | 2 +- gen/coordinate1/Cargo.toml | 4 +- gen/coordinate1/LICENSE.md | 2 +- gen/coordinate1/README.md | 64 ++-- gen/coordinate1/src/lib.rs | 6 +- gen/customsearch1-cli/Cargo.toml | 4 +- gen/customsearch1-cli/LICENSE.md | 2 +- gen/customsearch1-cli/README.md | 2 +- gen/customsearch1-cli/mkdocs.yml | 4 +- gen/customsearch1-cli/src/cmn.rs | 5 +- gen/customsearch1-cli/src/main.rs | 2 +- gen/customsearch1/Cargo.toml | 4 +- gen/customsearch1/LICENSE.md | 2 +- gen/customsearch1/README.md | 42 +-- gen/customsearch1/src/lib.rs | 6 +- gen/datafusion1_beta1-cli/Cargo.toml | 4 +- gen/datafusion1_beta1-cli/LICENSE.md | 2 +- gen/datafusion1_beta1-cli/README.md | 2 +- gen/datafusion1_beta1-cli/mkdocs.yml | 4 +- gen/datafusion1_beta1-cli/src/cmn.rs | 5 +- gen/datafusion1_beta1-cli/src/main.rs | 2 +- gen/datafusion1_beta1/Cargo.toml | 4 +- gen/datafusion1_beta1/LICENSE.md | 2 +- gen/datafusion1_beta1/README.md | 42 +-- gen/datafusion1_beta1/src/lib.rs | 6 +- gen/dataproc1-cli/Cargo.toml | 4 +- gen/dataproc1-cli/LICENSE.md | 2 +- gen/dataproc1-cli/README.md | 2 +- gen/dataproc1-cli/mkdocs.yml | 4 +- gen/dataproc1-cli/src/cmn.rs | 5 +- gen/dataproc1-cli/src/main.rs | 2 +- gen/dataproc1/Cargo.toml | 4 +- gen/dataproc1/LICENSE.md | 2 +- gen/dataproc1/README.md | 42 +-- gen/dataproc1/src/lib.rs | 6 +- gen/datastore1-cli/Cargo.toml | 4 +- gen/datastore1-cli/LICENSE.md | 2 +- gen/datastore1-cli/README.md | 2 +- gen/datastore1-cli/mkdocs.yml | 4 +- gen/datastore1-cli/src/cmn.rs | 5 +- gen/datastore1-cli/src/main.rs | 2 +- gen/datastore1/Cargo.toml | 4 +- gen/datastore1/LICENSE.md | 2 +- gen/datastore1/README.md | 42 +-- gen/datastore1/src/lib.rs | 6 +- gen/datastore1_beta3-cli/Cargo.toml | 4 +- gen/datastore1_beta3-cli/LICENSE.md | 2 +- gen/datastore1_beta3-cli/README.md | 2 +- gen/datastore1_beta3-cli/mkdocs.yml | 4 +- gen/datastore1_beta3-cli/src/cmn.rs | 5 +- gen/datastore1_beta3-cli/src/main.rs | 2 +- gen/datastore1_beta3/Cargo.toml | 4 +- gen/datastore1_beta3/LICENSE.md | 2 +- gen/datastore1_beta3/README.md | 42 +-- gen/datastore1_beta3/src/lib.rs | 6 +- gen/deploymentmanager2-cli/Cargo.toml | 4 +- gen/deploymentmanager2-cli/LICENSE.md | 2 +- gen/deploymentmanager2-cli/README.md | 2 +- gen/deploymentmanager2-cli/mkdocs.yml | 4 +- gen/deploymentmanager2-cli/src/cmn.rs | 5 +- gen/deploymentmanager2-cli/src/main.rs | 2 +- gen/deploymentmanager2/Cargo.toml | 4 +- gen/deploymentmanager2/LICENSE.md | 2 +- gen/deploymentmanager2/README.md | 60 ++-- gen/deploymentmanager2/src/lib.rs | 6 +- gen/deploymentmanager2_beta2-cli/Cargo.toml | 4 +- gen/deploymentmanager2_beta2-cli/LICENSE.md | 2 +- gen/deploymentmanager2_beta2-cli/README.md | 2 +- gen/deploymentmanager2_beta2-cli/mkdocs.yml | 4 +- gen/deploymentmanager2_beta2-cli/src/cmn.rs | 5 +- gen/deploymentmanager2_beta2-cli/src/main.rs | 2 +- gen/deploymentmanager2_beta2/Cargo.toml | 4 +- gen/deploymentmanager2_beta2/LICENSE.md | 2 +- gen/deploymentmanager2_beta2/README.md | 60 ++-- gen/deploymentmanager2_beta2/src/lib.rs | 6 +- gen/dfareporting2d8-cli/Cargo.toml | 4 +- gen/dfareporting2d8-cli/LICENSE.md | 2 +- gen/dfareporting2d8-cli/README.md | 2 +- gen/dfareporting2d8-cli/mkdocs.yml | 4 +- gen/dfareporting2d8-cli/src/cmn.rs | 5 +- gen/dfareporting2d8-cli/src/main.rs | 2 +- gen/dfareporting2d8/Cargo.toml | 4 +- gen/dfareporting2d8/LICENSE.md | 2 +- gen/dfareporting2d8/README.md | 286 ++++++++--------- gen/dfareporting2d8/src/lib.rs | 6 +- gen/dfareporting3-cli/Cargo.toml | 4 +- gen/dfareporting3-cli/LICENSE.md | 2 +- gen/dfareporting3-cli/README.md | 2 +- gen/dfareporting3-cli/mkdocs.yml | 4 +- gen/dfareporting3-cli/src/cmn.rs | 5 +- gen/dfareporting3-cli/src/main.rs | 2 +- gen/dfareporting3/Cargo.toml | 4 +- gen/dfareporting3/LICENSE.md | 2 +- gen/dfareporting3/README.md | 284 ++++++++--------- gen/dfareporting3/src/lib.rs | 6 +- gen/dfareporting3d2-cli/Cargo.toml | 4 +- gen/dfareporting3d2-cli/LICENSE.md | 2 +- gen/dfareporting3d2-cli/README.md | 2 +- gen/dfareporting3d2-cli/mkdocs.yml | 4 +- gen/dfareporting3d2-cli/src/cmn.rs | 5 +- gen/dfareporting3d2-cli/src/main.rs | 2 +- gen/dfareporting3d2/Cargo.toml | 4 +- gen/dfareporting3d2/LICENSE.md | 2 +- gen/dfareporting3d2/README.md | 288 +++++++++--------- gen/dfareporting3d2/src/lib.rs | 6 +- gen/dfareporting3d3-cli/Cargo.toml | 4 +- gen/dfareporting3d3-cli/LICENSE.md | 2 +- gen/dfareporting3d3-cli/README.md | 2 +- gen/dfareporting3d3-cli/mkdocs.yml | 4 +- gen/dfareporting3d3-cli/src/cmn.rs | 5 +- gen/dfareporting3d3-cli/src/main.rs | 2 +- gen/dfareporting3d3/Cargo.toml | 4 +- gen/dfareporting3d3/LICENSE.md | 2 +- gen/dfareporting3d3/README.md | 284 ++++++++--------- gen/dfareporting3d3/src/lib.rs | 6 +- gen/dialogflow2-cli/Cargo.toml | 4 +- gen/dialogflow2-cli/LICENSE.md | 2 +- gen/dialogflow2-cli/README.md | 2 +- gen/dialogflow2-cli/mkdocs.yml | 4 +- gen/dialogflow2-cli/src/cmn.rs | 5 +- gen/dialogflow2-cli/src/main.rs | 2 +- gen/dialogflow2/Cargo.toml | 4 +- gen/dialogflow2/LICENSE.md | 2 +- gen/dialogflow2/README.md | 42 +-- gen/dialogflow2/src/lib.rs | 6 +- gen/dialogflow2_beta1-cli/Cargo.toml | 4 +- gen/dialogflow2_beta1-cli/LICENSE.md | 2 +- gen/dialogflow2_beta1-cli/README.md | 2 +- gen/dialogflow2_beta1-cli/mkdocs.yml | 4 +- gen/dialogflow2_beta1-cli/src/cmn.rs | 5 +- gen/dialogflow2_beta1-cli/src/main.rs | 2 +- gen/dialogflow2_beta1/Cargo.toml | 4 +- gen/dialogflow2_beta1/LICENSE.md | 2 +- gen/dialogflow2_beta1/README.md | 42 +-- gen/dialogflow2_beta1/src/lib.rs | 6 +- gen/digitalassetlinks1-cli/Cargo.toml | 4 +- gen/digitalassetlinks1-cli/LICENSE.md | 2 +- gen/digitalassetlinks1-cli/README.md | 2 +- gen/digitalassetlinks1-cli/mkdocs.yml | 4 +- gen/digitalassetlinks1-cli/src/cmn.rs | 5 +- gen/digitalassetlinks1-cli/src/main.rs | 2 +- gen/digitalassetlinks1/Cargo.toml | 4 +- gen/digitalassetlinks1/LICENSE.md | 2 +- gen/digitalassetlinks1/README.md | 46 +-- gen/digitalassetlinks1/src/lib.rs | 6 +- gen/discovery1-cli/Cargo.toml | 4 +- gen/discovery1-cli/LICENSE.md | 2 +- gen/discovery1-cli/README.md | 2 +- gen/discovery1-cli/mkdocs.yml | 4 +- gen/discovery1-cli/src/cmn.rs | 5 +- gen/discovery1-cli/src/main.rs | 2 +- gen/discovery1/Cargo.toml | 4 +- gen/discovery1/LICENSE.md | 2 +- gen/discovery1/README.md | 42 +-- gen/discovery1/src/lib.rs | 6 +- gen/dlp2-cli/Cargo.toml | 4 +- gen/dlp2-cli/LICENSE.md | 2 +- gen/dlp2-cli/README.md | 2 +- gen/dlp2-cli/mkdocs.yml | 4 +- gen/dlp2-cli/src/cmn.rs | 5 +- gen/dlp2-cli/src/main.rs | 2 +- gen/dlp2/Cargo.toml | 4 +- gen/dlp2/LICENSE.md | 2 +- gen/dlp2/README.md | 46 +-- gen/dlp2/src/lib.rs | 6 +- gen/dlp2_beta1-cli/Cargo.toml | 4 +- gen/dlp2_beta1-cli/LICENSE.md | 2 +- gen/dlp2_beta1-cli/README.md | 2 +- gen/dlp2_beta1-cli/mkdocs.yml | 4 +- gen/dlp2_beta1-cli/src/cmn.rs | 5 +- gen/dlp2_beta1-cli/src/main.rs | 2 +- gen/dlp2_beta1/Cargo.toml | 4 +- gen/dlp2_beta1/LICENSE.md | 2 +- gen/dlp2_beta1/README.md | 50 +-- gen/dlp2_beta1/src/lib.rs | 6 +- gen/dns1-cli/Cargo.toml | 4 +- gen/dns1-cli/LICENSE.md | 2 +- gen/dns1-cli/README.md | 2 +- gen/dns1-cli/mkdocs.yml | 4 +- gen/dns1-cli/src/cmn.rs | 5 +- gen/dns1-cli/src/main.rs | 2 +- gen/dns1/Cargo.toml | 4 +- gen/dns1/LICENSE.md | 2 +- gen/dns1/README.md | 62 ++-- gen/dns1/src/lib.rs | 6 +- gen/doubleclickbidmanager1-cli/Cargo.toml | 4 +- gen/doubleclickbidmanager1-cli/LICENSE.md | 2 +- gen/doubleclickbidmanager1-cli/README.md | 2 +- gen/doubleclickbidmanager1-cli/mkdocs.yml | 4 +- gen/doubleclickbidmanager1-cli/src/cmn.rs | 5 +- gen/doubleclickbidmanager1-cli/src/main.rs | 2 +- gen/doubleclickbidmanager1/Cargo.toml | 4 +- gen/doubleclickbidmanager1/LICENSE.md | 2 +- gen/doubleclickbidmanager1/README.md | 52 ++-- gen/doubleclickbidmanager1/src/lib.rs | 6 +- gen/doubleclicksearch2-cli/Cargo.toml | 4 +- gen/doubleclicksearch2-cli/LICENSE.md | 2 +- gen/doubleclicksearch2-cli/README.md | 2 +- gen/doubleclicksearch2-cli/mkdocs.yml | 4 +- gen/doubleclicksearch2-cli/src/cmn.rs | 5 +- gen/doubleclicksearch2-cli/src/main.rs | 2 +- gen/doubleclicksearch2/Cargo.toml | 4 +- gen/doubleclicksearch2/LICENSE.md | 2 +- gen/doubleclicksearch2/README.md | 54 ++-- gen/doubleclicksearch2/src/lib.rs | 6 +- gen/drive2-cli/Cargo.toml | 4 +- gen/drive2-cli/LICENSE.md | 2 +- gen/drive2-cli/README.md | 2 +- gen/drive2-cli/mkdocs.yml | 4 +- gen/drive2-cli/src/cmn.rs | 5 +- gen/drive2-cli/src/main.rs | 2 +- gen/drive2/Cargo.toml | 4 +- gen/drive2/LICENSE.md | 2 +- gen/drive2/README.md | 114 +++---- gen/drive2/src/lib.rs | 6 +- gen/drive3-cli/Cargo.toml | 4 +- gen/drive3-cli/LICENSE.md | 2 +- gen/drive3-cli/README.md | 2 +- gen/drive3-cli/mkdocs.yml | 4 +- gen/drive3-cli/src/cmn.rs | 5 +- gen/drive3-cli/src/main.rs | 2 +- gen/drive3/Cargo.toml | 4 +- gen/drive3/LICENSE.md | 2 +- gen/drive3/README.md | 100 +++--- gen/drive3/src/lib.rs | 6 +- gen/driveactivity2-cli/Cargo.toml | 4 +- gen/driveactivity2-cli/LICENSE.md | 2 +- gen/driveactivity2-cli/README.md | 2 +- gen/driveactivity2-cli/mkdocs.yml | 4 +- gen/driveactivity2-cli/src/cmn.rs | 5 +- gen/driveactivity2-cli/src/main.rs | 2 +- gen/driveactivity2/Cargo.toml | 4 +- gen/driveactivity2/LICENSE.md | 2 +- gen/driveactivity2/README.md | 42 +-- gen/driveactivity2/src/lib.rs | 6 +- gen/factchecktools1_alpha1-cli/Cargo.toml | 4 +- gen/factchecktools1_alpha1-cli/LICENSE.md | 2 +- gen/factchecktools1_alpha1-cli/README.md | 2 +- gen/factchecktools1_alpha1-cli/mkdocs.yml | 4 +- gen/factchecktools1_alpha1-cli/src/cmn.rs | 5 +- gen/factchecktools1_alpha1-cli/src/main.rs | 2 +- gen/factchecktools1_alpha1/Cargo.toml | 4 +- gen/factchecktools1_alpha1/LICENSE.md | 2 +- gen/factchecktools1_alpha1/README.md | 44 +-- gen/factchecktools1_alpha1/src/lib.rs | 6 +- gen/fcm1-cli/Cargo.toml | 4 +- gen/fcm1-cli/LICENSE.md | 2 +- gen/fcm1-cli/README.md | 2 +- gen/fcm1-cli/mkdocs.yml | 4 +- gen/fcm1-cli/src/cmn.rs | 5 +- gen/fcm1-cli/src/main.rs | 2 +- gen/fcm1/Cargo.toml | 4 +- gen/fcm1/LICENSE.md | 2 +- gen/fcm1/README.md | 42 +-- gen/fcm1/src/lib.rs | 6 +- gen/file1-cli/Cargo.toml | 4 +- gen/file1-cli/LICENSE.md | 2 +- gen/file1-cli/README.md | 2 +- gen/file1-cli/mkdocs.yml | 4 +- gen/file1-cli/src/cmn.rs | 5 +- gen/file1-cli/src/main.rs | 2 +- gen/file1/Cargo.toml | 4 +- gen/file1/LICENSE.md | 2 +- gen/file1/README.md | 42 +-- gen/file1/src/lib.rs | 6 +- gen/file1_beta1-cli/Cargo.toml | 4 +- gen/file1_beta1-cli/LICENSE.md | 2 +- gen/file1_beta1-cli/README.md | 2 +- gen/file1_beta1-cli/mkdocs.yml | 4 +- gen/file1_beta1-cli/src/cmn.rs | 5 +- gen/file1_beta1-cli/src/main.rs | 2 +- gen/file1_beta1/Cargo.toml | 4 +- gen/file1_beta1/LICENSE.md | 2 +- gen/file1_beta1/README.md | 42 +-- gen/file1_beta1/src/lib.rs | 6 +- gen/firebase1_beta1-cli/Cargo.toml | 4 +- gen/firebase1_beta1-cli/LICENSE.md | 2 +- gen/firebase1_beta1-cli/README.md | 2 +- gen/firebase1_beta1-cli/mkdocs.yml | 4 +- gen/firebase1_beta1-cli/src/cmn.rs | 5 +- gen/firebase1_beta1-cli/src/main.rs | 2 +- gen/firebase1_beta1/Cargo.toml | 4 +- gen/firebase1_beta1/LICENSE.md | 2 +- gen/firebase1_beta1/README.md | 48 +-- gen/firebase1_beta1/src/lib.rs | 6 +- gen/firebasedynamiclinks1-cli/Cargo.toml | 4 +- gen/firebasedynamiclinks1-cli/LICENSE.md | 2 +- gen/firebasedynamiclinks1-cli/README.md | 2 +- gen/firebasedynamiclinks1-cli/mkdocs.yml | 4 +- gen/firebasedynamiclinks1-cli/src/cmn.rs | 5 +- gen/firebasedynamiclinks1-cli/src/main.rs | 2 +- gen/firebasedynamiclinks1/Cargo.toml | 4 +- gen/firebasedynamiclinks1/LICENSE.md | 2 +- gen/firebasedynamiclinks1/README.md | 52 ++-- gen/firebasedynamiclinks1/src/lib.rs | 6 +- gen/firebasehosting1_beta1-cli/Cargo.toml | 4 +- gen/firebasehosting1_beta1-cli/LICENSE.md | 2 +- gen/firebasehosting1_beta1-cli/README.md | 2 +- gen/firebasehosting1_beta1-cli/mkdocs.yml | 4 +- gen/firebasehosting1_beta1-cli/src/cmn.rs | 5 +- gen/firebasehosting1_beta1-cli/src/main.rs | 2 +- gen/firebasehosting1_beta1/Cargo.toml | 4 +- gen/firebasehosting1_beta1/LICENSE.md | 2 +- gen/firebasehosting1_beta1/README.md | 42 +-- gen/firebasehosting1_beta1/src/lib.rs | 6 +- gen/firebaseremoteconfig1-cli/Cargo.toml | 4 +- gen/firebaseremoteconfig1-cli/LICENSE.md | 2 +- gen/firebaseremoteconfig1-cli/README.md | 2 +- gen/firebaseremoteconfig1-cli/mkdocs.yml | 4 +- gen/firebaseremoteconfig1-cli/src/cmn.rs | 5 +- gen/firebaseremoteconfig1-cli/src/main.rs | 2 +- gen/firebaseremoteconfig1/Cargo.toml | 4 +- gen/firebaseremoteconfig1/LICENSE.md | 2 +- gen/firebaseremoteconfig1/README.md | 42 +-- gen/firebaseremoteconfig1/src/lib.rs | 6 +- gen/firestore1-cli/Cargo.toml | 4 +- gen/firestore1-cli/LICENSE.md | 2 +- gen/firestore1-cli/README.md | 2 +- gen/firestore1-cli/mkdocs.yml | 4 +- gen/firestore1-cli/src/cmn.rs | 5 +- gen/firestore1-cli/src/main.rs | 2 +- gen/firestore1/Cargo.toml | 4 +- gen/firestore1/LICENSE.md | 2 +- gen/firestore1/README.md | 42 +-- gen/firestore1/src/lib.rs | 6 +- gen/firestore1_beta1-cli/Cargo.toml | 4 +- gen/firestore1_beta1-cli/LICENSE.md | 2 +- gen/firestore1_beta1-cli/README.md | 2 +- gen/firestore1_beta1-cli/mkdocs.yml | 4 +- gen/firestore1_beta1-cli/src/cmn.rs | 5 +- gen/firestore1_beta1-cli/src/main.rs | 2 +- gen/firestore1_beta1/Cargo.toml | 4 +- gen/firestore1_beta1/LICENSE.md | 2 +- gen/firestore1_beta1/README.md | 42 +-- gen/firestore1_beta1/src/lib.rs | 6 +- gen/fitness1-cli/Cargo.toml | 4 +- gen/fitness1-cli/LICENSE.md | 2 +- gen/fitness1-cli/README.md | 2 +- gen/fitness1-cli/mkdocs.yml | 4 +- gen/fitness1-cli/src/cmn.rs | 5 +- gen/fitness1-cli/src/main.rs | 2 +- gen/fitness1/Cargo.toml | 4 +- gen/fitness1/LICENSE.md | 2 +- gen/fitness1/README.md | 42 +-- gen/fitness1/src/lib.rs | 6 +- gen/fusiontables2-cli/Cargo.toml | 4 +- gen/fusiontables2-cli/LICENSE.md | 2 +- gen/fusiontables2-cli/README.md | 2 +- gen/fusiontables2-cli/mkdocs.yml | 4 +- gen/fusiontables2-cli/src/cmn.rs | 5 +- gen/fusiontables2-cli/src/main.rs | 2 +- gen/fusiontables2/Cargo.toml | 4 +- gen/fusiontables2/LICENSE.md | 2 +- gen/fusiontables2/README.md | 70 ++--- gen/fusiontables2/src/lib.rs | 6 +- gen/games1-cli/Cargo.toml | 4 +- gen/games1-cli/LICENSE.md | 2 +- gen/games1-cli/README.md | 2 +- gen/games1-cli/mkdocs.yml | 4 +- gen/games1-cli/src/cmn.rs | 5 +- gen/games1-cli/src/main.rs | 2 +- gen/games1/Cargo.toml | 4 +- gen/games1/LICENSE.md | 2 +- gen/games1/README.md | 86 +++--- gen/games1/src/lib.rs | 6 +- .../Cargo.toml | 4 +- .../LICENSE.md | 2 +- .../README.md | 2 +- .../mkdocs.yml | 4 +- .../src/cmn.rs | 5 +- .../src/main.rs | 2 +- .../Cargo.toml | 4 +- .../LICENSE.md | 2 +- .../README.md | 54 ++-- .../src/lib.rs | 6 +- .../Cargo.toml | 4 +- .../LICENSE.md | 2 +- gen/gamesmanagement1_management-cli/README.md | 2 +- .../mkdocs.yml | 4 +- .../src/cmn.rs | 5 +- .../src/main.rs | 2 +- gen/gamesmanagement1_management/Cargo.toml | 4 +- gen/gamesmanagement1_management/LICENSE.md | 2 +- gen/gamesmanagement1_management/README.md | 58 ++-- gen/gamesmanagement1_management/src/lib.rs | 6 +- gen/gan1_beta1-cli/Cargo.toml | 4 +- gen/gan1_beta1-cli/LICENSE.md | 2 +- gen/gan1_beta1-cli/README.md | 2 +- gen/gan1_beta1-cli/mkdocs.yml | 4 +- gen/gan1_beta1-cli/src/cmn.rs | 5 +- gen/gan1_beta1-cli/src/main.rs | 2 +- gen/gan1_beta1/Cargo.toml | 4 +- gen/gan1_beta1/LICENSE.md | 2 +- gen/gan1_beta1/README.md | 64 ++-- gen/gan1_beta1/src/lib.rs | 6 +- gen/genomics1-cli/Cargo.toml | 4 +- gen/genomics1-cli/LICENSE.md | 2 +- gen/genomics1-cli/README.md | 2 +- gen/genomics1-cli/mkdocs.yml | 4 +- gen/genomics1-cli/src/cmn.rs | 5 +- gen/genomics1-cli/src/main.rs | 2 +- gen/genomics1/Cargo.toml | 4 +- gen/genomics1/LICENSE.md | 2 +- gen/genomics1/README.md | 44 +-- gen/genomics1/src/lib.rs | 6 +- gen/groupsmigration1-cli/Cargo.toml | 4 +- gen/groupsmigration1-cli/LICENSE.md | 2 +- gen/groupsmigration1-cli/README.md | 2 +- gen/groupsmigration1-cli/mkdocs.yml | 4 +- gen/groupsmigration1-cli/src/cmn.rs | 5 +- gen/groupsmigration1-cli/src/main.rs | 2 +- gen/groupsmigration1/Cargo.toml | 4 +- gen/groupsmigration1/LICENSE.md | 2 +- gen/groupsmigration1/README.md | 44 +-- gen/groupsmigration1/src/lib.rs | 6 +- gen/groupssettings1-cli/Cargo.toml | 4 +- gen/groupssettings1-cli/LICENSE.md | 2 +- gen/groupssettings1-cli/README.md | 2 +- gen/groupssettings1-cli/mkdocs.yml | 4 +- gen/groupssettings1-cli/src/cmn.rs | 5 +- gen/groupssettings1-cli/src/main.rs | 2 +- gen/groupssettings1/Cargo.toml | 4 +- gen/groupssettings1/LICENSE.md | 2 +- gen/groupssettings1/README.md | 42 +-- gen/groupssettings1/src/lib.rs | 6 +- gen/healthcare1_beta1-cli/Cargo.toml | 4 +- gen/healthcare1_beta1-cli/LICENSE.md | 2 +- gen/healthcare1_beta1-cli/README.md | 2 +- gen/healthcare1_beta1-cli/mkdocs.yml | 4 +- gen/healthcare1_beta1-cli/src/cmn.rs | 5 +- gen/healthcare1_beta1-cli/src/main.rs | 2 +- gen/healthcare1_beta1/Cargo.toml | 4 +- gen/healthcare1_beta1/LICENSE.md | 2 +- gen/healthcare1_beta1/README.md | 42 +-- gen/healthcare1_beta1/src/lib.rs | 6 +- gen/iam1-cli/Cargo.toml | 4 +- gen/iam1-cli/LICENSE.md | 2 +- gen/iam1-cli/README.md | 2 +- gen/iam1-cli/mkdocs.yml | 4 +- gen/iam1-cli/src/cmn.rs | 5 +- gen/iam1-cli/src/main.rs | 2 +- gen/iam1/Cargo.toml | 4 +- gen/iam1/LICENSE.md | 2 +- gen/iam1/README.md | 54 ++-- gen/iam1/src/lib.rs | 6 +- gen/iamcredentials1-cli/Cargo.toml | 4 +- gen/iamcredentials1-cli/LICENSE.md | 2 +- gen/iamcredentials1-cli/README.md | 2 +- gen/iamcredentials1-cli/mkdocs.yml | 4 +- gen/iamcredentials1-cli/src/cmn.rs | 5 +- gen/iamcredentials1-cli/src/main.rs | 2 +- gen/iamcredentials1/Cargo.toml | 4 +- gen/iamcredentials1/LICENSE.md | 2 +- gen/iamcredentials1/README.md | 42 +-- gen/iamcredentials1/src/lib.rs | 6 +- gen/iap1-cli/Cargo.toml | 4 +- gen/iap1-cli/LICENSE.md | 2 +- gen/iap1-cli/README.md | 2 +- gen/iap1-cli/mkdocs.yml | 4 +- gen/iap1-cli/src/cmn.rs | 5 +- gen/iap1-cli/src/main.rs | 2 +- gen/iap1/Cargo.toml | 4 +- gen/iap1/LICENSE.md | 2 +- gen/iap1/README.md | 46 +-- gen/iap1/src/lib.rs | 6 +- gen/iap1_beta1-cli/Cargo.toml | 4 +- gen/iap1_beta1-cli/LICENSE.md | 2 +- gen/iap1_beta1-cli/README.md | 2 +- gen/iap1_beta1-cli/mkdocs.yml | 4 +- gen/iap1_beta1-cli/src/cmn.rs | 5 +- gen/iap1_beta1-cli/src/main.rs | 2 +- gen/iap1_beta1/Cargo.toml | 4 +- gen/iap1_beta1/LICENSE.md | 2 +- gen/iap1_beta1/README.md | 46 +-- gen/iap1_beta1/src/lib.rs | 6 +- gen/identitytoolkit3-cli/Cargo.toml | 4 +- gen/identitytoolkit3-cli/LICENSE.md | 2 +- gen/identitytoolkit3-cli/README.md | 2 +- gen/identitytoolkit3-cli/mkdocs.yml | 4 +- gen/identitytoolkit3-cli/src/cmn.rs | 5 +- gen/identitytoolkit3-cli/src/main.rs | 2 +- gen/identitytoolkit3/Cargo.toml | 4 +- gen/identitytoolkit3/LICENSE.md | 2 +- gen/identitytoolkit3/README.md | 44 +-- gen/identitytoolkit3/src/lib.rs | 6 +- gen/indexing3-cli/Cargo.toml | 4 +- gen/indexing3-cli/LICENSE.md | 2 +- gen/indexing3-cli/README.md | 2 +- gen/indexing3-cli/mkdocs.yml | 4 +- gen/indexing3-cli/src/cmn.rs | 5 +- gen/indexing3-cli/src/main.rs | 2 +- gen/indexing3/Cargo.toml | 4 +- gen/indexing3/LICENSE.md | 2 +- gen/indexing3/README.md | 44 +-- gen/indexing3/src/lib.rs | 6 +- gen/jobs3-cli/Cargo.toml | 4 +- gen/jobs3-cli/LICENSE.md | 2 +- gen/jobs3-cli/README.md | 2 +- gen/jobs3-cli/mkdocs.yml | 4 +- gen/jobs3-cli/src/cmn.rs | 5 +- gen/jobs3-cli/src/main.rs | 2 +- gen/jobs3/Cargo.toml | 4 +- gen/jobs3/LICENSE.md | 2 +- gen/jobs3/README.md | 42 +-- gen/jobs3/src/lib.rs | 6 +- gen/language1-cli/Cargo.toml | 4 +- gen/language1-cli/LICENSE.md | 2 +- gen/language1-cli/README.md | 2 +- gen/language1-cli/mkdocs.yml | 4 +- gen/language1-cli/src/cmn.rs | 5 +- gen/language1-cli/src/main.rs | 2 +- gen/language1/Cargo.toml | 4 +- gen/language1/LICENSE.md | 2 +- gen/language1/README.md | 44 +-- gen/language1/src/lib.rs | 6 +- gen/language1_beta1-cli/Cargo.toml | 4 +- gen/language1_beta1-cli/LICENSE.md | 2 +- gen/language1_beta1-cli/README.md | 2 +- gen/language1_beta1-cli/mkdocs.yml | 4 +- gen/language1_beta1-cli/src/cmn.rs | 5 +- gen/language1_beta1-cli/src/main.rs | 2 +- gen/language1_beta1/Cargo.toml | 4 +- gen/language1_beta1/LICENSE.md | 2 +- gen/language1_beta1/README.md | 44 +-- gen/language1_beta1/src/lib.rs | 6 +- gen/libraryagent1-cli/Cargo.toml | 4 +- gen/libraryagent1-cli/LICENSE.md | 2 +- gen/libraryagent1-cli/README.md | 2 +- gen/libraryagent1-cli/mkdocs.yml | 4 +- gen/libraryagent1-cli/src/cmn.rs | 5 +- gen/libraryagent1-cli/src/main.rs | 2 +- gen/libraryagent1/Cargo.toml | 4 +- gen/libraryagent1/LICENSE.md | 2 +- gen/libraryagent1/README.md | 42 +-- gen/libraryagent1/src/lib.rs | 6 +- gen/licensing1-cli/Cargo.toml | 4 +- gen/licensing1-cli/LICENSE.md | 2 +- gen/licensing1-cli/README.md | 2 +- gen/licensing1-cli/mkdocs.yml | 4 +- gen/licensing1-cli/src/cmn.rs | 5 +- gen/licensing1-cli/src/main.rs | 2 +- gen/licensing1/Cargo.toml | 4 +- gen/licensing1/LICENSE.md | 2 +- gen/licensing1/README.md | 44 +-- gen/licensing1/src/lib.rs | 6 +- gen/logging2-cli/Cargo.toml | 4 +- gen/logging2-cli/LICENSE.md | 2 +- gen/logging2-cli/README.md | 2 +- gen/logging2-cli/mkdocs.yml | 4 +- gen/logging2-cli/src/cmn.rs | 5 +- gen/logging2-cli/src/main.rs | 2 +- gen/logging2/Cargo.toml | 4 +- gen/logging2/LICENSE.md | 2 +- gen/logging2/README.md | 60 ++-- gen/logging2/src/lib.rs | 6 +- gen/logging2_beta1-cli/Cargo.toml | 4 +- gen/logging2_beta1-cli/LICENSE.md | 2 +- gen/logging2_beta1-cli/README.md | 2 +- gen/logging2_beta1-cli/mkdocs.yml | 4 +- gen/logging2_beta1-cli/src/cmn.rs | 5 +- gen/logging2_beta1-cli/src/main.rs | 2 +- gen/logging2_beta1/Cargo.toml | 4 +- gen/logging2_beta1/LICENSE.md | 2 +- gen/logging2_beta1/README.md | 48 +-- gen/logging2_beta1/src/lib.rs | 6 +- gen/manager1_beta2-cli/Cargo.toml | 4 +- gen/manager1_beta2-cli/LICENSE.md | 2 +- gen/manager1_beta2-cli/README.md | 2 +- gen/manager1_beta2-cli/mkdocs.yml | 4 +- gen/manager1_beta2-cli/src/cmn.rs | 5 +- gen/manager1_beta2-cli/src/main.rs | 2 +- gen/manager1_beta2/Cargo.toml | 4 +- gen/manager1_beta2/LICENSE.md | 2 +- gen/manager1_beta2/README.md | 48 +-- gen/manager1_beta2/src/lib.rs | 6 +- gen/manufacturers1-cli/Cargo.toml | 4 +- gen/manufacturers1-cli/LICENSE.md | 2 +- gen/manufacturers1-cli/README.md | 2 +- gen/manufacturers1-cli/mkdocs.yml | 4 +- gen/manufacturers1-cli/src/cmn.rs | 5 +- gen/manufacturers1-cli/src/main.rs | 2 +- gen/manufacturers1/Cargo.toml | 4 +- gen/manufacturers1/LICENSE.md | 2 +- gen/manufacturers1/README.md | 42 +-- gen/manufacturers1/src/lib.rs | 6 +- gen/mirror1-cli/Cargo.toml | 4 +- gen/mirror1-cli/LICENSE.md | 2 +- gen/mirror1-cli/README.md | 2 +- gen/mirror1-cli/mkdocs.yml | 4 +- gen/mirror1-cli/src/cmn.rs | 5 +- gen/mirror1-cli/src/main.rs | 2 +- gen/mirror1/Cargo.toml | 4 +- gen/mirror1/LICENSE.md | 2 +- gen/mirror1/README.md | 70 ++--- gen/mirror1/src/lib.rs | 6 +- gen/ml1-cli/Cargo.toml | 4 +- gen/ml1-cli/LICENSE.md | 2 +- gen/ml1-cli/README.md | 2 +- gen/ml1-cli/mkdocs.yml | 4 +- gen/ml1-cli/src/cmn.rs | 5 +- gen/ml1-cli/src/main.rs | 2 +- gen/ml1/Cargo.toml | 4 +- gen/ml1/LICENSE.md | 2 +- gen/ml1/README.md | 42 +-- gen/ml1/src/lib.rs | 6 +- gen/monitoring3-cli/Cargo.toml | 4 +- gen/monitoring3-cli/LICENSE.md | 2 +- gen/monitoring3-cli/README.md | 2 +- gen/monitoring3-cli/mkdocs.yml | 4 +- gen/monitoring3-cli/src/cmn.rs | 5 +- gen/monitoring3-cli/src/main.rs | 2 +- gen/monitoring3/Cargo.toml | 4 +- gen/monitoring3/LICENSE.md | 2 +- gen/monitoring3/README.md | 46 +-- gen/monitoring3/src/lib.rs | 6 +- gen/oslogin1-cli/Cargo.toml | 4 +- gen/oslogin1-cli/LICENSE.md | 2 +- gen/oslogin1-cli/README.md | 2 +- gen/oslogin1-cli/mkdocs.yml | 4 +- gen/oslogin1-cli/src/cmn.rs | 5 +- gen/oslogin1-cli/src/main.rs | 2 +- gen/oslogin1/Cargo.toml | 4 +- gen/oslogin1/LICENSE.md | 2 +- gen/oslogin1/README.md | 42 +-- gen/oslogin1/src/lib.rs | 6 +- gen/oslogin1_beta-cli/Cargo.toml | 4 +- gen/oslogin1_beta-cli/LICENSE.md | 2 +- gen/oslogin1_beta-cli/README.md | 2 +- gen/oslogin1_beta-cli/mkdocs.yml | 4 +- gen/oslogin1_beta-cli/src/cmn.rs | 5 +- gen/oslogin1_beta-cli/src/main.rs | 2 +- gen/oslogin1_beta/Cargo.toml | 4 +- gen/oslogin1_beta/LICENSE.md | 2 +- gen/oslogin1_beta/README.md | 42 +-- gen/oslogin1_beta/src/lib.rs | 6 +- gen/pagespeedonline2-cli/Cargo.toml | 4 +- gen/pagespeedonline2-cli/LICENSE.md | 2 +- gen/pagespeedonline2-cli/README.md | 2 +- gen/pagespeedonline2-cli/mkdocs.yml | 4 +- gen/pagespeedonline2-cli/src/cmn.rs | 5 +- gen/pagespeedonline2-cli/src/main.rs | 2 +- gen/pagespeedonline2/Cargo.toml | 4 +- gen/pagespeedonline2/LICENSE.md | 2 +- gen/pagespeedonline2/README.md | 42 +-- gen/pagespeedonline2/src/lib.rs | 6 +- gen/pagespeedonline4-cli/Cargo.toml | 4 +- gen/pagespeedonline4-cli/LICENSE.md | 2 +- gen/pagespeedonline4-cli/README.md | 2 +- gen/pagespeedonline4-cli/mkdocs.yml | 4 +- gen/pagespeedonline4-cli/src/cmn.rs | 5 +- gen/pagespeedonline4-cli/src/main.rs | 2 +- gen/pagespeedonline4/Cargo.toml | 4 +- gen/pagespeedonline4/LICENSE.md | 2 +- gen/pagespeedonline4/README.md | 42 +-- gen/pagespeedonline4/src/lib.rs | 6 +- gen/pagespeedonline5-cli/Cargo.toml | 4 +- gen/pagespeedonline5-cli/LICENSE.md | 2 +- gen/pagespeedonline5-cli/README.md | 2 +- gen/pagespeedonline5-cli/mkdocs.yml | 4 +- gen/pagespeedonline5-cli/src/cmn.rs | 5 +- gen/pagespeedonline5-cli/src/main.rs | 2 +- gen/pagespeedonline5/Cargo.toml | 4 +- gen/pagespeedonline5/LICENSE.md | 2 +- gen/pagespeedonline5/README.md | 42 +-- gen/pagespeedonline5/src/lib.rs | 6 +- gen/partners2-cli/Cargo.toml | 4 +- gen/partners2-cli/LICENSE.md | 2 +- gen/partners2-cli/README.md | 2 +- gen/partners2-cli/mkdocs.yml | 4 +- gen/partners2-cli/src/cmn.rs | 5 +- gen/partners2-cli/src/main.rs | 2 +- gen/partners2/Cargo.toml | 4 +- gen/partners2/LICENSE.md | 2 +- gen/partners2/README.md | 68 ++--- gen/partners2/src/lib.rs | 6 +- gen/people1-cli/Cargo.toml | 4 +- gen/people1-cli/LICENSE.md | 2 +- gen/people1-cli/README.md | 2 +- gen/people1-cli/mkdocs.yml | 4 +- gen/people1-cli/src/cmn.rs | 5 +- gen/people1-cli/src/main.rs | 2 +- gen/people1/Cargo.toml | 4 +- gen/people1/LICENSE.md | 2 +- gen/people1/README.md | 46 +-- gen/people1/src/lib.rs | 6 +- gen/photoslibrary1-cli/Cargo.toml | 4 +- gen/photoslibrary1-cli/LICENSE.md | 2 +- gen/photoslibrary1-cli/README.md | 2 +- gen/photoslibrary1-cli/mkdocs.yml | 4 +- gen/photoslibrary1-cli/src/cmn.rs | 5 +- gen/photoslibrary1-cli/src/main.rs | 2 +- gen/photoslibrary1/Cargo.toml | 4 +- gen/photoslibrary1/LICENSE.md | 2 +- gen/photoslibrary1/README.md | 50 +-- gen/photoslibrary1/src/lib.rs | 6 +- gen/playcustomapp1-cli/Cargo.toml | 4 +- gen/playcustomapp1-cli/LICENSE.md | 2 +- gen/playcustomapp1-cli/README.md | 2 +- gen/playcustomapp1-cli/mkdocs.yml | 4 +- gen/playcustomapp1-cli/src/cmn.rs | 5 +- gen/playcustomapp1-cli/src/main.rs | 2 +- gen/playcustomapp1/Cargo.toml | 4 +- gen/playcustomapp1/LICENSE.md | 2 +- gen/playcustomapp1/README.md | 44 +-- gen/playcustomapp1/src/lib.rs | 6 +- gen/playmoviespartner1-cli/Cargo.toml | 4 +- gen/playmoviespartner1-cli/LICENSE.md | 2 +- gen/playmoviespartner1-cli/README.md | 2 +- gen/playmoviespartner1-cli/mkdocs.yml | 4 +- gen/playmoviespartner1-cli/src/cmn.rs | 5 +- gen/playmoviespartner1-cli/src/main.rs | 2 +- gen/playmoviespartner1/Cargo.toml | 4 +- gen/playmoviespartner1/LICENSE.md | 2 +- gen/playmoviespartner1/README.md | 42 +-- gen/playmoviespartner1/src/lib.rs | 6 +- gen/plus1-cli/Cargo.toml | 4 +- gen/plus1-cli/LICENSE.md | 2 +- gen/plus1-cli/README.md | 2 +- gen/plus1-cli/mkdocs.yml | 4 +- gen/plus1-cli/src/cmn.rs | 5 +- gen/plus1-cli/src/main.rs | 2 +- gen/plus1/Cargo.toml | 4 +- gen/plus1/LICENSE.md | 2 +- gen/plus1/README.md | 50 +-- gen/plus1/src/lib.rs | 6 +- gen/plusdomains1-cli/Cargo.toml | 4 +- gen/plusdomains1-cli/LICENSE.md | 2 +- gen/plusdomains1-cli/README.md | 2 +- gen/plusdomains1-cli/mkdocs.yml | 4 +- gen/plusdomains1-cli/src/cmn.rs | 5 +- gen/plusdomains1-cli/src/main.rs | 2 +- gen/plusdomains1/Cargo.toml | 4 +- gen/plusdomains1/LICENSE.md | 2 +- gen/plusdomains1/README.md | 64 ++-- gen/plusdomains1/src/lib.rs | 6 +- gen/prediction1d6-cli/Cargo.toml | 4 +- gen/prediction1d6-cli/LICENSE.md | 2 +- gen/prediction1d6-cli/README.md | 2 +- gen/prediction1d6-cli/mkdocs.yml | 4 +- gen/prediction1d6-cli/src/cmn.rs | 5 +- gen/prediction1d6-cli/src/main.rs | 2 +- gen/prediction1d6/Cargo.toml | 4 +- gen/prediction1d6/LICENSE.md | 2 +- gen/prediction1d6/README.md | 44 +-- gen/prediction1d6/src/lib.rs | 6 +- gen/proximitybeacon1_beta1-cli/Cargo.toml | 4 +- gen/proximitybeacon1_beta1-cli/LICENSE.md | 2 +- gen/proximitybeacon1_beta1-cli/README.md | 2 +- gen/proximitybeacon1_beta1-cli/mkdocs.yml | 4 +- gen/proximitybeacon1_beta1-cli/src/cmn.rs | 5 +- gen/proximitybeacon1_beta1-cli/src/main.rs | 2 +- gen/proximitybeacon1_beta1/Cargo.toml | 4 +- gen/proximitybeacon1_beta1/LICENSE.md | 2 +- gen/proximitybeacon1_beta1/README.md | 52 ++-- gen/proximitybeacon1_beta1/src/lib.rs | 6 +- gen/pubsub1-cli/Cargo.toml | 4 +- gen/pubsub1-cli/LICENSE.md | 2 +- gen/pubsub1-cli/README.md | 2 +- gen/pubsub1-cli/mkdocs.yml | 4 +- gen/pubsub1-cli/src/cmn.rs | 5 +- gen/pubsub1-cli/src/main.rs | 2 +- gen/pubsub1/Cargo.toml | 4 +- gen/pubsub1/LICENSE.md | 2 +- gen/pubsub1/README.md | 42 +-- gen/pubsub1/src/lib.rs | 6 +- gen/pubsub1_beta2-cli/Cargo.toml | 4 +- gen/pubsub1_beta2-cli/LICENSE.md | 2 +- gen/pubsub1_beta2-cli/README.md | 2 +- gen/pubsub1_beta2-cli/mkdocs.yml | 4 +- gen/pubsub1_beta2-cli/src/cmn.rs | 5 +- gen/pubsub1_beta2-cli/src/main.rs | 2 +- gen/pubsub1_beta2/Cargo.toml | 4 +- gen/pubsub1_beta2/LICENSE.md | 2 +- gen/pubsub1_beta2/README.md | 42 +-- gen/pubsub1_beta2/src/lib.rs | 6 +- gen/qpxexpress1-cli/Cargo.toml | 4 +- gen/qpxexpress1-cli/LICENSE.md | 2 +- gen/qpxexpress1-cli/README.md | 2 +- gen/qpxexpress1-cli/mkdocs.yml | 4 +- gen/qpxexpress1-cli/src/cmn.rs | 5 +- gen/qpxexpress1-cli/src/main.rs | 2 +- gen/qpxexpress1/Cargo.toml | 4 +- gen/qpxexpress1/LICENSE.md | 2 +- gen/qpxexpress1/README.md | 42 +-- gen/qpxexpress1/src/lib.rs | 6 +- gen/redis1-cli/Cargo.toml | 4 +- gen/redis1-cli/LICENSE.md | 2 +- gen/redis1-cli/README.md | 2 +- gen/redis1-cli/mkdocs.yml | 4 +- gen/redis1-cli/src/cmn.rs | 5 +- gen/redis1-cli/src/main.rs | 2 +- gen/redis1/Cargo.toml | 4 +- gen/redis1/LICENSE.md | 2 +- gen/redis1/README.md | 42 +-- gen/redis1/src/lib.rs | 6 +- gen/remotebuildexecution2-cli/Cargo.toml | 4 +- gen/remotebuildexecution2-cli/LICENSE.md | 2 +- gen/remotebuildexecution2-cli/README.md | 2 +- gen/remotebuildexecution2-cli/mkdocs.yml | 4 +- gen/remotebuildexecution2-cli/src/cmn.rs | 5 +- gen/remotebuildexecution2-cli/src/main.rs | 2 +- gen/remotebuildexecution2/Cargo.toml | 4 +- gen/remotebuildexecution2/LICENSE.md | 2 +- gen/remotebuildexecution2/README.md | 50 +-- gen/remotebuildexecution2/src/lib.rs | 6 +- gen/replicapool1_beta2-cli/Cargo.toml | 4 +- gen/replicapool1_beta2-cli/LICENSE.md | 2 +- gen/replicapool1_beta2-cli/README.md | 2 +- gen/replicapool1_beta2-cli/mkdocs.yml | 4 +- gen/replicapool1_beta2-cli/src/cmn.rs | 5 +- gen/replicapool1_beta2-cli/src/main.rs | 2 +- gen/replicapool1_beta2/Cargo.toml | 4 +- gen/replicapool1_beta2/LICENSE.md | 2 +- gen/replicapool1_beta2/README.md | 46 +-- gen/replicapool1_beta2/src/lib.rs | 6 +- gen/replicapoolupdater1_beta1-cli/Cargo.toml | 4 +- gen/replicapoolupdater1_beta1-cli/LICENSE.md | 2 +- gen/replicapoolupdater1_beta1-cli/README.md | 2 +- gen/replicapoolupdater1_beta1-cli/mkdocs.yml | 4 +- gen/replicapoolupdater1_beta1-cli/src/cmn.rs | 5 +- gen/replicapoolupdater1_beta1-cli/src/main.rs | 2 +- gen/replicapoolupdater1_beta1/Cargo.toml | 4 +- gen/replicapoolupdater1_beta1/LICENSE.md | 2 +- gen/replicapoolupdater1_beta1/README.md | 46 +-- gen/replicapoolupdater1_beta1/src/lib.rs | 6 +- gen/reseller1_sandbox-cli/Cargo.toml | 4 +- gen/reseller1_sandbox-cli/LICENSE.md | 2 +- gen/reseller1_sandbox-cli/README.md | 2 +- gen/reseller1_sandbox-cli/mkdocs.yml | 4 +- gen/reseller1_sandbox-cli/src/cmn.rs | 5 +- gen/reseller1_sandbox-cli/src/main.rs | 2 +- gen/reseller1_sandbox/Cargo.toml | 4 +- gen/reseller1_sandbox/LICENSE.md | 2 +- gen/reseller1_sandbox/README.md | 48 +-- gen/reseller1_sandbox/src/lib.rs | 6 +- gen/resourceviews1_beta2-cli/Cargo.toml | 4 +- gen/resourceviews1_beta2-cli/LICENSE.md | 2 +- gen/resourceviews1_beta2-cli/README.md | 2 +- gen/resourceviews1_beta2-cli/mkdocs.yml | 4 +- gen/resourceviews1_beta2-cli/src/cmn.rs | 5 +- gen/resourceviews1_beta2-cli/src/main.rs | 2 +- gen/resourceviews1_beta2/Cargo.toml | 4 +- gen/resourceviews1_beta2/LICENSE.md | 2 +- gen/resourceviews1_beta2/README.md | 44 +-- gen/resourceviews1_beta2/src/lib.rs | 6 +- gen/run1-cli/Cargo.toml | 4 +- gen/run1-cli/LICENSE.md | 2 +- gen/run1-cli/README.md | 2 +- gen/run1-cli/mkdocs.yml | 4 +- gen/run1-cli/src/cmn.rs | 5 +- gen/run1-cli/src/main.rs | 2 +- gen/run1/Cargo.toml | 4 +- gen/run1/LICENSE.md | 2 +- gen/run1/README.md | 42 +-- gen/run1/src/lib.rs | 6 +- gen/runtimeconfig1-cli/Cargo.toml | 4 +- gen/runtimeconfig1-cli/LICENSE.md | 2 +- gen/runtimeconfig1-cli/README.md | 2 +- gen/runtimeconfig1-cli/mkdocs.yml | 4 +- gen/runtimeconfig1-cli/src/cmn.rs | 5 +- gen/runtimeconfig1-cli/src/main.rs | 2 +- gen/runtimeconfig1/Cargo.toml | 4 +- gen/runtimeconfig1/LICENSE.md | 2 +- gen/runtimeconfig1/README.md | 44 +-- gen/runtimeconfig1/src/lib.rs | 6 +- gen/runtimeconfig1_beta1-cli/Cargo.toml | 4 +- gen/runtimeconfig1_beta1-cli/LICENSE.md | 2 +- gen/runtimeconfig1_beta1-cli/README.md | 2 +- gen/runtimeconfig1_beta1-cli/mkdocs.yml | 4 +- gen/runtimeconfig1_beta1-cli/src/cmn.rs | 5 +- gen/runtimeconfig1_beta1-cli/src/main.rs | 2 +- gen/runtimeconfig1_beta1/Cargo.toml | 4 +- gen/runtimeconfig1_beta1/LICENSE.md | 2 +- gen/runtimeconfig1_beta1/README.md | 42 +-- gen/runtimeconfig1_beta1/src/lib.rs | 6 +- gen/safebrowsing4-cli/Cargo.toml | 4 +- gen/safebrowsing4-cli/LICENSE.md | 2 +- gen/safebrowsing4-cli/README.md | 2 +- gen/safebrowsing4-cli/mkdocs.yml | 4 +- gen/safebrowsing4-cli/src/cmn.rs | 5 +- gen/safebrowsing4-cli/src/main.rs | 2 +- gen/safebrowsing4/Cargo.toml | 4 +- gen/safebrowsing4/LICENSE.md | 2 +- gen/safebrowsing4/README.md | 56 ++-- gen/safebrowsing4/src/lib.rs | 6 +- gen/searchconsole1-cli/Cargo.toml | 4 +- gen/searchconsole1-cli/LICENSE.md | 2 +- gen/searchconsole1-cli/README.md | 2 +- gen/searchconsole1-cli/mkdocs.yml | 4 +- gen/searchconsole1-cli/src/cmn.rs | 5 +- gen/searchconsole1-cli/src/main.rs | 2 +- gen/searchconsole1/Cargo.toml | 4 +- gen/searchconsole1/LICENSE.md | 2 +- gen/searchconsole1/README.md | 42 +-- gen/searchconsole1/src/lib.rs | 6 +- gen/securitycenter1-cli/Cargo.toml | 4 +- gen/securitycenter1-cli/LICENSE.md | 2 +- gen/securitycenter1-cli/README.md | 2 +- gen/securitycenter1-cli/mkdocs.yml | 4 +- gen/securitycenter1-cli/src/cmn.rs | 5 +- gen/securitycenter1-cli/src/main.rs | 2 +- gen/securitycenter1/Cargo.toml | 4 +- gen/securitycenter1/LICENSE.md | 2 +- gen/securitycenter1/README.md | 42 +-- gen/securitycenter1/src/lib.rs | 6 +- gen/servicebroker1-cli/Cargo.toml | 4 +- gen/servicebroker1-cli/LICENSE.md | 2 +- gen/servicebroker1-cli/README.md | 2 +- gen/servicebroker1-cli/mkdocs.yml | 4 +- gen/servicebroker1-cli/src/cmn.rs | 5 +- gen/servicebroker1-cli/src/main.rs | 2 +- gen/servicebroker1/Cargo.toml | 4 +- gen/servicebroker1/LICENSE.md | 2 +- gen/servicebroker1/README.md | 46 +-- gen/servicebroker1/src/lib.rs | 6 +- gen/servicecontrol1-cli/Cargo.toml | 4 +- gen/servicecontrol1-cli/LICENSE.md | 2 +- gen/servicecontrol1-cli/README.md | 2 +- gen/servicecontrol1-cli/mkdocs.yml | 4 +- gen/servicecontrol1-cli/src/cmn.rs | 5 +- gen/servicecontrol1-cli/src/main.rs | 2 +- gen/servicecontrol1/Cargo.toml | 4 +- gen/servicecontrol1/LICENSE.md | 2 +- gen/servicecontrol1/README.md | 42 +-- gen/servicecontrol1/src/lib.rs | 6 +- gen/serviceregistryalpha-cli/Cargo.toml | 4 +- gen/serviceregistryalpha-cli/LICENSE.md | 2 +- gen/serviceregistryalpha-cli/README.md | 2 +- gen/serviceregistryalpha-cli/mkdocs.yml | 4 +- gen/serviceregistryalpha-cli/src/cmn.rs | 5 +- gen/serviceregistryalpha-cli/src/main.rs | 2 +- gen/serviceregistryalpha/Cargo.toml | 4 +- gen/serviceregistryalpha/LICENSE.md | 2 +- gen/serviceregistryalpha/README.md | 48 +-- gen/serviceregistryalpha/src/lib.rs | 6 +- gen/sheets4-cli/Cargo.toml | 4 +- gen/sheets4-cli/LICENSE.md | 2 +- gen/sheets4-cli/README.md | 2 +- gen/sheets4-cli/mkdocs.yml | 4 +- gen/sheets4-cli/src/cmn.rs | 5 +- gen/sheets4-cli/src/main.rs | 2 +- gen/sheets4/Cargo.toml | 4 +- gen/sheets4/LICENSE.md | 2 +- gen/sheets4/README.md | 44 +-- gen/sheets4/src/lib.rs | 6 +- gen/siteverification1-cli/Cargo.toml | 4 +- gen/siteverification1-cli/LICENSE.md | 2 +- gen/siteverification1-cli/README.md | 2 +- gen/siteverification1-cli/mkdocs.yml | 4 +- gen/siteverification1-cli/src/cmn.rs | 5 +- gen/siteverification1-cli/src/main.rs | 2 +- gen/siteverification1/Cargo.toml | 4 +- gen/siteverification1/LICENSE.md | 2 +- gen/siteverification1/README.md | 42 +-- gen/siteverification1/src/lib.rs | 6 +- gen/sourcerepo1-cli/Cargo.toml | 4 +- gen/sourcerepo1-cli/LICENSE.md | 2 +- gen/sourcerepo1-cli/README.md | 2 +- gen/sourcerepo1-cli/mkdocs.yml | 4 +- gen/sourcerepo1-cli/src/cmn.rs | 5 +- gen/sourcerepo1-cli/src/main.rs | 2 +- gen/sourcerepo1/Cargo.toml | 4 +- gen/sourcerepo1/LICENSE.md | 2 +- gen/sourcerepo1/README.md | 42 +-- gen/sourcerepo1/src/lib.rs | 6 +- gen/spanner1-cli/Cargo.toml | 4 +- gen/spanner1-cli/LICENSE.md | 2 +- gen/spanner1-cli/README.md | 2 +- gen/spanner1-cli/mkdocs.yml | 4 +- gen/spanner1-cli/src/cmn.rs | 5 +- gen/spanner1-cli/src/main.rs | 2 +- gen/spanner1/Cargo.toml | 4 +- gen/spanner1/LICENSE.md | 2 +- gen/spanner1/README.md | 42 +-- gen/spanner1/src/lib.rs | 6 +- gen/spectrum1_explorer-cli/Cargo.toml | 4 +- gen/spectrum1_explorer-cli/LICENSE.md | 2 +- gen/spectrum1_explorer-cli/README.md | 2 +- gen/spectrum1_explorer-cli/mkdocs.yml | 4 +- gen/spectrum1_explorer-cli/src/cmn.rs | 5 +- gen/spectrum1_explorer-cli/src/main.rs | 2 +- gen/spectrum1_explorer/Cargo.toml | 4 +- gen/spectrum1_explorer/LICENSE.md | 2 +- gen/spectrum1_explorer/README.md | 42 +-- gen/spectrum1_explorer/src/lib.rs | 6 +- gen/speech1-cli/Cargo.toml | 4 +- gen/speech1-cli/LICENSE.md | 2 +- gen/speech1-cli/README.md | 2 +- gen/speech1-cli/mkdocs.yml | 4 +- gen/speech1-cli/src/cmn.rs | 5 +- gen/speech1-cli/src/main.rs | 2 +- gen/speech1/Cargo.toml | 4 +- gen/speech1/LICENSE.md | 2 +- gen/speech1/README.md | 48 +-- gen/speech1/src/lib.rs | 6 +- gen/speech1_beta1-cli/Cargo.toml | 4 +- gen/speech1_beta1-cli/LICENSE.md | 2 +- gen/speech1_beta1-cli/README.md | 2 +- gen/speech1_beta1-cli/mkdocs.yml | 4 +- gen/speech1_beta1-cli/src/cmn.rs | 5 +- gen/speech1_beta1-cli/src/main.rs | 2 +- gen/speech1_beta1/Cargo.toml | 4 +- gen/speech1_beta1/LICENSE.md | 2 +- gen/speech1_beta1/README.md | 46 +-- gen/speech1_beta1/src/lib.rs | 6 +- gen/sqladmin1_beta4-cli/Cargo.toml | 4 +- gen/sqladmin1_beta4-cli/LICENSE.md | 2 +- gen/sqladmin1_beta4-cli/README.md | 2 +- gen/sqladmin1_beta4-cli/mkdocs.yml | 4 +- gen/sqladmin1_beta4-cli/src/cmn.rs | 5 +- gen/sqladmin1_beta4-cli/src/main.rs | 2 +- gen/sqladmin1_beta4/Cargo.toml | 4 +- gen/sqladmin1_beta4/LICENSE.md | 2 +- gen/sqladmin1_beta4/README.md | 70 ++--- gen/sqladmin1_beta4/src/lib.rs | 6 +- gen/storage1-cli/Cargo.toml | 4 +- gen/storage1-cli/LICENSE.md | 2 +- gen/storage1-cli/README.md | 2 +- gen/storage1-cli/mkdocs.yml | 4 +- gen/storage1-cli/src/cmn.rs | 5 +- gen/storage1-cli/src/main.rs | 2 +- gen/storage1/Cargo.toml | 4 +- gen/storage1/LICENSE.md | 2 +- gen/storage1/README.md | 76 ++--- gen/storage1/src/lib.rs | 6 +- gen/storagetransfer1-cli/Cargo.toml | 4 +- gen/storagetransfer1-cli/LICENSE.md | 2 +- gen/storagetransfer1-cli/README.md | 2 +- gen/storagetransfer1-cli/mkdocs.yml | 4 +- gen/storagetransfer1-cli/src/cmn.rs | 5 +- gen/storagetransfer1-cli/src/main.rs | 2 +- gen/storagetransfer1/Cargo.toml | 4 +- gen/storagetransfer1/LICENSE.md | 2 +- gen/storagetransfer1/README.md | 52 ++-- gen/storagetransfer1/src/lib.rs | 6 +- gen/surveys2-cli/Cargo.toml | 4 +- gen/surveys2-cli/LICENSE.md | 2 +- gen/surveys2-cli/README.md | 2 +- gen/surveys2-cli/mkdocs.yml | 4 +- gen/surveys2-cli/src/cmn.rs | 5 +- gen/surveys2-cli/src/main.rs | 2 +- gen/surveys2/Cargo.toml | 4 +- gen/surveys2/LICENSE.md | 2 +- gen/surveys2/README.md | 48 +-- gen/surveys2/src/lib.rs | 6 +- gen/tagmanager1-cli/Cargo.toml | 4 +- gen/tagmanager1-cli/LICENSE.md | 2 +- gen/tagmanager1-cli/README.md | 2 +- gen/tagmanager1-cli/mkdocs.yml | 4 +- gen/tagmanager1-cli/src/cmn.rs | 5 +- gen/tagmanager1-cli/src/main.rs | 2 +- gen/tagmanager1/Cargo.toml | 4 +- gen/tagmanager1/LICENSE.md | 2 +- gen/tagmanager1/README.md | 44 +-- gen/tagmanager1/src/lib.rs | 6 +- gen/tagmanager2-cli/Cargo.toml | 4 +- gen/tagmanager2-cli/LICENSE.md | 2 +- gen/tagmanager2-cli/README.md | 2 +- gen/tagmanager2-cli/mkdocs.yml | 4 +- gen/tagmanager2-cli/src/cmn.rs | 5 +- gen/tagmanager2-cli/src/main.rs | 2 +- gen/tagmanager2/Cargo.toml | 4 +- gen/tagmanager2/LICENSE.md | 2 +- gen/tagmanager2/README.md | 44 +-- gen/tagmanager2/src/lib.rs | 6 +- gen/taskqueue1_beta2-cli/Cargo.toml | 4 +- gen/taskqueue1_beta2-cli/LICENSE.md | 2 +- gen/taskqueue1_beta2-cli/README.md | 2 +- gen/taskqueue1_beta2-cli/mkdocs.yml | 4 +- gen/taskqueue1_beta2-cli/src/cmn.rs | 5 +- gen/taskqueue1_beta2-cli/src/main.rs | 2 +- gen/taskqueue1_beta2/Cargo.toml | 4 +- gen/taskqueue1_beta2/LICENSE.md | 2 +- gen/taskqueue1_beta2/README.md | 46 +-- gen/taskqueue1_beta2/src/lib.rs | 6 +- gen/tasks1-cli/Cargo.toml | 4 +- gen/tasks1-cli/LICENSE.md | 2 +- gen/tasks1-cli/README.md | 2 +- gen/tasks1-cli/mkdocs.yml | 4 +- gen/tasks1-cli/src/cmn.rs | 5 +- gen/tasks1-cli/src/main.rs | 2 +- gen/tasks1/Cargo.toml | 4 +- gen/tasks1/LICENSE.md | 2 +- gen/tasks1/README.md | 46 +-- gen/tasks1/src/lib.rs | 6 +- gen/testing1-cli/Cargo.toml | 4 +- gen/testing1-cli/LICENSE.md | 2 +- gen/testing1-cli/README.md | 2 +- gen/testing1-cli/mkdocs.yml | 4 +- gen/testing1-cli/src/cmn.rs | 5 +- gen/testing1-cli/src/main.rs | 2 +- gen/testing1/Cargo.toml | 4 +- gen/testing1/LICENSE.md | 2 +- gen/testing1/README.md | 48 +-- gen/testing1/src/lib.rs | 6 +- gen/texttospeech1-cli/Cargo.toml | 4 +- gen/texttospeech1-cli/LICENSE.md | 2 +- gen/texttospeech1-cli/README.md | 2 +- gen/texttospeech1-cli/mkdocs.yml | 4 +- gen/texttospeech1-cli/src/cmn.rs | 5 +- gen/texttospeech1-cli/src/main.rs | 2 +- gen/texttospeech1/Cargo.toml | 4 +- gen/texttospeech1/LICENSE.md | 2 +- gen/texttospeech1/README.md | 46 +-- gen/texttospeech1/src/lib.rs | 6 +- gen/tpu1-cli/Cargo.toml | 4 +- gen/tpu1-cli/LICENSE.md | 2 +- gen/tpu1-cli/README.md | 2 +- gen/tpu1-cli/mkdocs.yml | 4 +- gen/tpu1-cli/src/cmn.rs | 5 +- gen/tpu1-cli/src/main.rs | 2 +- gen/tpu1/Cargo.toml | 4 +- gen/tpu1/LICENSE.md | 2 +- gen/tpu1/README.md | 42 +-- gen/tpu1/src/lib.rs | 6 +- gen/tpu1_alpha1-cli/Cargo.toml | 4 +- gen/tpu1_alpha1-cli/LICENSE.md | 2 +- gen/tpu1_alpha1-cli/README.md | 2 +- gen/tpu1_alpha1-cli/mkdocs.yml | 4 +- gen/tpu1_alpha1-cli/src/cmn.rs | 5 +- gen/tpu1_alpha1-cli/src/main.rs | 2 +- gen/tpu1_alpha1/Cargo.toml | 4 +- gen/tpu1_alpha1/LICENSE.md | 2 +- gen/tpu1_alpha1/README.md | 42 +-- gen/tpu1_alpha1/src/lib.rs | 6 +- gen/translate2-cli/Cargo.toml | 4 +- gen/translate2-cli/LICENSE.md | 2 +- gen/translate2-cli/README.md | 2 +- gen/translate2-cli/mkdocs.yml | 4 +- gen/translate2-cli/src/cmn.rs | 5 +- gen/translate2-cli/src/main.rs | 2 +- gen/translate2/Cargo.toml | 4 +- gen/translate2/LICENSE.md | 2 +- gen/translate2/README.md | 46 +-- gen/translate2/src/lib.rs | 6 +- gen/urlshortener1-cli/Cargo.toml | 4 +- gen/urlshortener1-cli/LICENSE.md | 2 +- gen/urlshortener1-cli/README.md | 2 +- gen/urlshortener1-cli/mkdocs.yml | 4 +- gen/urlshortener1-cli/src/cmn.rs | 5 +- gen/urlshortener1-cli/src/main.rs | 2 +- gen/urlshortener1/Cargo.toml | 4 +- gen/urlshortener1/LICENSE.md | 2 +- gen/urlshortener1/README.md | 44 +-- gen/urlshortener1/src/lib.rs | 6 +- gen/vault1-cli/Cargo.toml | 4 +- gen/vault1-cli/LICENSE.md | 2 +- gen/vault1-cli/README.md | 2 +- gen/vault1-cli/mkdocs.yml | 4 +- gen/vault1-cli/src/cmn.rs | 5 +- gen/vault1-cli/src/main.rs | 2 +- gen/vault1/Cargo.toml | 4 +- gen/vault1/LICENSE.md | 2 +- gen/vault1/README.md | 44 +-- gen/vault1/src/lib.rs | 6 +- gen/videointelligence1-cli/Cargo.toml | 4 +- gen/videointelligence1-cli/LICENSE.md | 2 +- gen/videointelligence1-cli/README.md | 2 +- gen/videointelligence1-cli/mkdocs.yml | 4 +- gen/videointelligence1-cli/src/cmn.rs | 5 +- gen/videointelligence1-cli/src/main.rs | 2 +- gen/videointelligence1/Cargo.toml | 4 +- gen/videointelligence1/LICENSE.md | 2 +- gen/videointelligence1/README.md | 46 +-- gen/videointelligence1/src/lib.rs | 6 +- gen/videointelligence1_beta1-cli/Cargo.toml | 4 +- gen/videointelligence1_beta1-cli/LICENSE.md | 2 +- gen/videointelligence1_beta1-cli/README.md | 2 +- gen/videointelligence1_beta1-cli/mkdocs.yml | 4 +- gen/videointelligence1_beta1-cli/src/cmn.rs | 5 +- gen/videointelligence1_beta1-cli/src/main.rs | 2 +- gen/videointelligence1_beta1/Cargo.toml | 4 +- gen/videointelligence1_beta1/LICENSE.md | 2 +- gen/videointelligence1_beta1/README.md | 42 +-- gen/videointelligence1_beta1/src/lib.rs | 6 +- gen/vision1-cli/Cargo.toml | 4 +- gen/vision1-cli/LICENSE.md | 2 +- gen/vision1-cli/README.md | 2 +- gen/vision1-cli/mkdocs.yml | 4 +- gen/vision1-cli/src/cmn.rs | 5 +- gen/vision1-cli/src/main.rs | 2 +- gen/vision1/Cargo.toml | 4 +- gen/vision1/LICENSE.md | 2 +- gen/vision1/README.md | 54 ++-- gen/vision1/src/lib.rs | 6 +- gen/webfonts1-cli/Cargo.toml | 4 +- gen/webfonts1-cli/LICENSE.md | 2 +- gen/webfonts1-cli/README.md | 2 +- gen/webfonts1-cli/mkdocs.yml | 4 +- gen/webfonts1-cli/src/cmn.rs | 5 +- gen/webfonts1-cli/src/main.rs | 2 +- gen/webfonts1/Cargo.toml | 4 +- gen/webfonts1/LICENSE.md | 2 +- gen/webfonts1/README.md | 44 +-- gen/webfonts1/src/lib.rs | 6 +- gen/webmasters3-cli/Cargo.toml | 4 +- gen/webmasters3-cli/LICENSE.md | 2 +- gen/webmasters3-cli/README.md | 2 +- gen/webmasters3-cli/mkdocs.yml | 4 +- gen/webmasters3-cli/src/cmn.rs | 5 +- gen/webmasters3-cli/src/main.rs | 2 +- gen/webmasters3/Cargo.toml | 4 +- gen/webmasters3/LICENSE.md | 2 +- gen/webmasters3/README.md | 46 +-- gen/webmasters3/src/lib.rs | 6 +- gen/youtube3-cli/Cargo.toml | 4 +- gen/youtube3-cli/LICENSE.md | 2 +- gen/youtube3-cli/README.md | 2 +- gen/youtube3-cli/mkdocs.yml | 4 +- gen/youtube3-cli/src/cmn.rs | 5 +- gen/youtube3-cli/src/main.rs | 2 +- gen/youtube3/Cargo.toml | 4 +- gen/youtube3/LICENSE.md | 2 +- gen/youtube3/README.md | 154 +++++----- gen/youtube3/src/lib.rs | 6 +- gen/youtubereporting1-cli/Cargo.toml | 4 +- gen/youtubereporting1-cli/LICENSE.md | 2 +- gen/youtubereporting1-cli/README.md | 2 +- gen/youtubereporting1-cli/mkdocs.yml | 4 +- gen/youtubereporting1-cli/src/cmn.rs | 5 +- gen/youtubereporting1-cli/src/main.rs | 2 +- gen/youtubereporting1/Cargo.toml | 4 +- gen/youtubereporting1/LICENSE.md | 2 +- gen/youtubereporting1/README.md | 52 ++-- gen/youtubereporting1/src/lib.rs | 6 +- 1960 files changed, 8607 insertions(+), 8411 deletions(-) diff --git a/gen/abusiveexperiencereport1-cli/Cargo.toml b/gen/abusiveexperiencereport1-cli/Cargo.toml index c833adc06b..b25b9a380c 100644 --- a/gen/abusiveexperiencereport1-cli/Cargo.toml +++ b/gen/abusiveexperiencereport1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-abusiveexperiencereport1-cli" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Abusive Experience Report (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/abusiveexperiencereport1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-abusiveexperiencereport1] path = "../abusiveexperiencereport1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" diff --git a/gen/abusiveexperiencereport1-cli/LICENSE.md b/gen/abusiveexperiencereport1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/abusiveexperiencereport1-cli/LICENSE.md +++ b/gen/abusiveexperiencereport1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/abusiveexperiencereport1-cli/README.md b/gen/abusiveexperiencereport1-cli/README.md index 50527dd89e..3806caf875 100644 --- a/gen/abusiveexperiencereport1-cli/README.md +++ b/gen/abusiveexperiencereport1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Abusive Experience Report* API at revision *20190624*. The CLI is at version *1.0.11*. +This documentation was generated from the *Abusive Experience Report* API at revision *20190624*. The CLI is at version *1.0.12*. ```bash abusiveexperiencereport1 [options] diff --git a/gen/abusiveexperiencereport1-cli/mkdocs.yml b/gen/abusiveexperiencereport1-cli/mkdocs.yml index 8fb82358ce..f38ba1b999 100644 --- a/gen/abusiveexperiencereport1-cli/mkdocs.yml +++ b/gen/abusiveexperiencereport1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Abusive Experience Report v1.0.11+20190624 +site_name: Abusive Experience Report v1.0.12+20190624 site_url: http://byron.github.io/google-apis-rs/google-abusiveexperiencereport1-cli site_description: A complete library to interact with Abusive Experience Report (protocol v1) @@ -14,5 +14,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/abusiveexperiencereport1-cli/src/cmn.rs b/gen/abusiveexperiencereport1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/abusiveexperiencereport1-cli/src/cmn.rs +++ b/gen/abusiveexperiencereport1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/abusiveexperiencereport1-cli/src/main.rs b/gen/abusiveexperiencereport1-cli/src/main.rs index 08817eceaa..c22982abbf 100644 --- a/gen/abusiveexperiencereport1-cli/src/main.rs +++ b/gen/abusiveexperiencereport1-cli/src/main.rs @@ -317,7 +317,7 @@ fn main() { let mut app = App::new("abusiveexperiencereport1") .author("Sebastian Thiel ") - .version("1.0.11+20190624") + .version("1.0.12+20190624") .about("Views Abusive Experience Report data, and gets a list of sites that have a significant number of abusive experiences.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_abusiveexperiencereport1_cli") .arg(Arg::with_name("url") diff --git a/gen/abusiveexperiencereport1/Cargo.toml b/gen/abusiveexperiencereport1/Cargo.toml index c8e198f24c..b7047e8826 100644 --- a/gen/abusiveexperiencereport1/Cargo.toml +++ b/gen/abusiveexperiencereport1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-abusiveexperiencereport1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Abusive Experience Report (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/abusiveexperiencereport1" homepage = "https://developers.google.com/abusive-experience-report/" -documentation = "https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624" +documentation = "https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624" license = "MIT" keywords = ["abusiveexperiencerep", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/abusiveexperiencereport1/LICENSE.md b/gen/abusiveexperiencereport1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/abusiveexperiencereport1/LICENSE.md +++ b/gen/abusiveexperiencereport1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/abusiveexperiencereport1/README.md b/gen/abusiveexperiencereport1/README.md index 543076cb57..63f713bfc0 100644 --- a/gen/abusiveexperiencereport1/README.md +++ b/gen/abusiveexperiencereport1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-abusiveexperiencereport1` library allows access to all features of the *Google Abusive Experience Report* service. -This documentation was generated from *Abusive Experience Report* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *abusiveexperiencereport:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Abusive Experience Report* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *abusiveexperiencereport:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Abusive Experience Report* *v1* API can be found at the [official documentation site](https://developers.google.com/abusive-experience-report/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/struct.AbusiveExperienceReport.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/struct.AbusiveExperienceReport.html) ... * sites - * [*get*](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/struct.SiteGetCall.html) + * [*get*](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/struct.SiteGetCall.html) * violating sites - * [*list*](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/struct.ViolatingSiteListCall.html) + * [*list*](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/struct.ViolatingSiteListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/struct.AbusiveExperienceReport.html)** +* **[Hub](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/struct.AbusiveExperienceReport.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.Part.html)** + * **[Parts](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -126,17 +126,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -146,29 +146,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-abusiveexperiencereport1/1.0.11+20190624/google_abusiveexperiencereport1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-abusiveexperiencereport1/1.0.12+20190624/google_abusiveexperiencereport1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/abusiveexperiencereport1/src/lib.rs b/gen/abusiveexperiencereport1/src/lib.rs index 063ea61682..e831278f2a 100644 --- a/gen/abusiveexperiencereport1/src/lib.rs +++ b/gen/abusiveexperiencereport1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Abusive Experience Report* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *abusiveexperiencereport:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Abusive Experience Report* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *abusiveexperiencereport:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Abusive Experience Report* *v1* API can be found at the //! [official documentation site](https://developers.google.com/abusive-experience-report/). @@ -319,7 +319,7 @@ impl<'a, C, A> AbusiveExperienceReport AbusiveExperienceReport { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://abusiveexperiencereport.googleapis.com/".to_string(), _root_url: "https://abusiveexperiencereport.googleapis.com/".to_string(), } @@ -333,7 +333,7 @@ impl<'a, C, A> AbusiveExperienceReport } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/acceleratedmobilepageurl1-cli/Cargo.toml b/gen/acceleratedmobilepageurl1-cli/Cargo.toml index 0008a6b9d8..961bc87838 100644 --- a/gen/acceleratedmobilepageurl1-cli/Cargo.toml +++ b/gen/acceleratedmobilepageurl1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-acceleratedmobilepageurl1-cli" -version = "1.0.11+20190619" +version = "1.0.12+20190619" authors = ["Sebastian Thiel "] description = "A complete library to interact with acceleratedmobilepageurl (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/acceleratedmobilepageurl1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-acceleratedmobilepageurl1] path = "../acceleratedmobilepageurl1" -version = "1.0.11+20190619" +version = "1.0.12+20190619" diff --git a/gen/acceleratedmobilepageurl1-cli/LICENSE.md b/gen/acceleratedmobilepageurl1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/acceleratedmobilepageurl1-cli/LICENSE.md +++ b/gen/acceleratedmobilepageurl1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/acceleratedmobilepageurl1-cli/README.md b/gen/acceleratedmobilepageurl1-cli/README.md index 278b7c45dc..d71b018946 100644 --- a/gen/acceleratedmobilepageurl1-cli/README.md +++ b/gen/acceleratedmobilepageurl1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *acceleratedmobilepageurl* API at revision *20190619*. The CLI is at version *1.0.11*. +This documentation was generated from the *acceleratedmobilepageurl* API at revision *20190619*. The CLI is at version *1.0.12*. ```bash acceleratedmobilepageurl1 [options] diff --git a/gen/acceleratedmobilepageurl1-cli/mkdocs.yml b/gen/acceleratedmobilepageurl1-cli/mkdocs.yml index 8353992aff..0964ded8a7 100644 --- a/gen/acceleratedmobilepageurl1-cli/mkdocs.yml +++ b/gen/acceleratedmobilepageurl1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: acceleratedmobilepageurl v1.0.11+20190619 +site_name: acceleratedmobilepageurl v1.0.12+20190619 site_url: http://byron.github.io/google-apis-rs/google-acceleratedmobilepageurl1-cli site_description: A complete library to interact with acceleratedmobilepageurl (protocol v1) @@ -13,5 +13,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/acceleratedmobilepageurl1-cli/src/cmn.rs b/gen/acceleratedmobilepageurl1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/acceleratedmobilepageurl1-cli/src/cmn.rs +++ b/gen/acceleratedmobilepageurl1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/acceleratedmobilepageurl1-cli/src/main.rs b/gen/acceleratedmobilepageurl1-cli/src/main.rs index aba0a83457..a7a54c94da 100644 --- a/gen/acceleratedmobilepageurl1-cli/src/main.rs +++ b/gen/acceleratedmobilepageurl1-cli/src/main.rs @@ -260,7 +260,7 @@ fn main() { let mut app = App::new("acceleratedmobilepageurl1") .author("Sebastian Thiel ") - .version("1.0.11+20190619") + .version("1.0.12+20190619") .about("Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s). ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_acceleratedmobilepageurl1_cli") diff --git a/gen/acceleratedmobilepageurl1/Cargo.toml b/gen/acceleratedmobilepageurl1/Cargo.toml index 0b48c2875b..0d112f7e79 100644 --- a/gen/acceleratedmobilepageurl1/Cargo.toml +++ b/gen/acceleratedmobilepageurl1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-acceleratedmobilepageurl1" -version = "1.0.11+20190619" +version = "1.0.12+20190619" authors = ["Sebastian Thiel "] description = "A complete library to interact with acceleratedmobilepageurl (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/acceleratedmobilepageurl1" homepage = "https://developers.google.com/amp/cache/" -documentation = "https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619" +documentation = "https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619" license = "MIT" keywords = ["acceleratedmobilepag", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/acceleratedmobilepageurl1/LICENSE.md b/gen/acceleratedmobilepageurl1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/acceleratedmobilepageurl1/LICENSE.md +++ b/gen/acceleratedmobilepageurl1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/acceleratedmobilepageurl1/README.md b/gen/acceleratedmobilepageurl1/README.md index 4a7db9ce59..29313e615f 100644 --- a/gen/acceleratedmobilepageurl1/README.md +++ b/gen/acceleratedmobilepageurl1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-acceleratedmobilepageurl1` library allows access to all features of the *Google acceleratedmobilepageurl* service. -This documentation was generated from *acceleratedmobilepageurl* crate version *1.0.11+20190619*, where *20190619* is the exact revision of the *acceleratedmobilepageurl:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *acceleratedmobilepageurl* crate version *1.0.12+20190619*, where *20190619* is the exact revision of the *acceleratedmobilepageurl:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *acceleratedmobilepageurl* *v1* API can be found at the [official documentation site](https://developers.google.com/amp/cache/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/struct.Acceleratedmobilepageurl.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/struct.Acceleratedmobilepageurl.html) ... -* [amp urls](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/struct.AmpUrl.html) - * [*batch get*](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/struct.AmpUrlBatchGetCall.html) +* [amp urls](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/struct.AmpUrl.html) + * [*batch get*](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/struct.AmpUrlBatchGetCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/struct.Acceleratedmobilepageurl.html)** +* **[Hub](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/struct.Acceleratedmobilepageurl.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.Part.html)** + * **[Parts](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -130,17 +130,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-acceleratedmobilepageurl1/1.0.11+20190619/google_acceleratedmobilepageurl1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-acceleratedmobilepageurl1/1.0.12+20190619/google_acceleratedmobilepageurl1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/acceleratedmobilepageurl1/src/lib.rs b/gen/acceleratedmobilepageurl1/src/lib.rs index 2b63c9d20f..82eac87e56 100644 --- a/gen/acceleratedmobilepageurl1/src/lib.rs +++ b/gen/acceleratedmobilepageurl1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *acceleratedmobilepageurl* crate version *1.0.11+20190619*, where *20190619* is the exact revision of the *acceleratedmobilepageurl:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *acceleratedmobilepageurl* crate version *1.0.12+20190619*, where *20190619* is the exact revision of the *acceleratedmobilepageurl:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *acceleratedmobilepageurl* *v1* API can be found at the //! [official documentation site](https://developers.google.com/amp/cache/). @@ -307,7 +307,7 @@ impl<'a, C, A> Acceleratedmobilepageurl Acceleratedmobilepageurl { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://acceleratedmobilepageurl.googleapis.com/".to_string(), _root_url: "https://acceleratedmobilepageurl.googleapis.com/".to_string(), } @@ -318,7 +318,7 @@ impl<'a, C, A> Acceleratedmobilepageurl } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/accessapproval1_beta1-cli/Cargo.toml b/gen/accessapproval1_beta1-cli/Cargo.toml index 9ccfb30fa2..bb4e129117 100644 --- a/gen/accessapproval1_beta1-cli/Cargo.toml +++ b/gen/accessapproval1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-accessapproval1_beta1-cli" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Access Approval (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/accessapproval1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-accessapproval1_beta1] path = "../accessapproval1_beta1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" diff --git a/gen/accessapproval1_beta1-cli/LICENSE.md b/gen/accessapproval1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/accessapproval1_beta1-cli/LICENSE.md +++ b/gen/accessapproval1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/accessapproval1_beta1-cli/README.md b/gen/accessapproval1_beta1-cli/README.md index 7909519366..6928573329 100644 --- a/gen/accessapproval1_beta1-cli/README.md +++ b/gen/accessapproval1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Access Approval* API at revision *20190628*. The CLI is at version *1.0.11*. +This documentation was generated from the *Access Approval* API at revision *20190628*. The CLI is at version *1.0.12*. ```bash accessapproval1-beta1 [options] diff --git a/gen/accessapproval1_beta1-cli/mkdocs.yml b/gen/accessapproval1_beta1-cli/mkdocs.yml index 3d209573d9..f85dea7e99 100644 --- a/gen/accessapproval1_beta1-cli/mkdocs.yml +++ b/gen/accessapproval1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Access Approval v1.0.11+20190628 +site_name: Access Approval v1.0.12+20190628 site_url: http://byron.github.io/google-apis-rs/google-accessapproval1_beta1-cli site_description: A complete library to interact with Access Approval (protocol v1beta1) @@ -30,5 +30,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/accessapproval1_beta1-cli/src/cmn.rs b/gen/accessapproval1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/accessapproval1_beta1-cli/src/cmn.rs +++ b/gen/accessapproval1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/accessapproval1_beta1-cli/src/main.rs b/gen/accessapproval1_beta1-cli/src/main.rs index 779a1c5293..8ec9dad350 100644 --- a/gen/accessapproval1_beta1-cli/src/main.rs +++ b/gen/accessapproval1_beta1-cli/src/main.rs @@ -2003,7 +2003,7 @@ fn main() { let mut app = App::new("accessapproval1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190628") + .version("1.0.12+20190628") .about("An API for controlling access to data by Google personnel.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_accessapproval1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/accessapproval1_beta1/Cargo.toml b/gen/accessapproval1_beta1/Cargo.toml index d781bf0c93..dbd1e2f856 100644 --- a/gen/accessapproval1_beta1/Cargo.toml +++ b/gen/accessapproval1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-accessapproval1_beta1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Access Approval (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/accessapproval1_beta1" homepage = "https://cloud.google.com/access-approval/docs" -documentation = "https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628" +documentation = "https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628" license = "MIT" keywords = ["accessapproval", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/accessapproval1_beta1/LICENSE.md b/gen/accessapproval1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/accessapproval1_beta1/LICENSE.md +++ b/gen/accessapproval1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/accessapproval1_beta1/README.md b/gen/accessapproval1_beta1/README.md index 924ca96b7d..a91c0f7755 100644 --- a/gen/accessapproval1_beta1/README.md +++ b/gen/accessapproval1_beta1/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-accessapproval1_beta1` library allows access to all features of the *Google Access Approval* service. -This documentation was generated from *Access Approval* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *accessapproval:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Access Approval* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *accessapproval:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Access Approval* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/access-approval/docs). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.AccessApproval.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.AccessApproval.html) ... * folders - * [*approval requests approve*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.FolderApprovalRequestApproveCall.html), [*approval requests dismiss*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.FolderApprovalRequestDismisCall.html), [*approval requests get*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.FolderApprovalRequestGetCall.html), [*approval requests list*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.FolderApprovalRequestListCall.html), [*get access approval settings*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.FolderGetAccessApprovalSettingCall.html) and [*update access approval settings*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.FolderUpdateAccessApprovalSettingCall.html) + * [*approval requests approve*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.FolderApprovalRequestApproveCall.html), [*approval requests dismiss*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.FolderApprovalRequestDismisCall.html), [*approval requests get*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.FolderApprovalRequestGetCall.html), [*approval requests list*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.FolderApprovalRequestListCall.html), [*get access approval settings*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.FolderGetAccessApprovalSettingCall.html) and [*update access approval settings*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.FolderUpdateAccessApprovalSettingCall.html) * organizations - * [*approval requests approve*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.OrganizationApprovalRequestApproveCall.html), [*approval requests dismiss*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.OrganizationApprovalRequestDismisCall.html), [*approval requests get*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.OrganizationApprovalRequestGetCall.html), [*approval requests list*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.OrganizationApprovalRequestListCall.html), [*get access approval settings*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.OrganizationGetAccessApprovalSettingCall.html) and [*update access approval settings*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.OrganizationUpdateAccessApprovalSettingCall.html) + * [*approval requests approve*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.OrganizationApprovalRequestApproveCall.html), [*approval requests dismiss*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.OrganizationApprovalRequestDismisCall.html), [*approval requests get*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.OrganizationApprovalRequestGetCall.html), [*approval requests list*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.OrganizationApprovalRequestListCall.html), [*get access approval settings*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.OrganizationGetAccessApprovalSettingCall.html) and [*update access approval settings*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.OrganizationUpdateAccessApprovalSettingCall.html) * projects - * [*approval requests approve*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.ProjectApprovalRequestApproveCall.html), [*approval requests dismiss*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.ProjectApprovalRequestDismisCall.html), [*approval requests get*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.ProjectApprovalRequestGetCall.html), [*approval requests list*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.ProjectApprovalRequestListCall.html), [*get access approval settings*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.ProjectGetAccessApprovalSettingCall.html) and [*update access approval settings*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.ProjectUpdateAccessApprovalSettingCall.html) + * [*approval requests approve*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.ProjectApprovalRequestApproveCall.html), [*approval requests dismiss*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.ProjectApprovalRequestDismisCall.html), [*approval requests get*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.ProjectApprovalRequestGetCall.html), [*approval requests list*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.ProjectApprovalRequestListCall.html), [*get access approval settings*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.ProjectGetAccessApprovalSettingCall.html) and [*update access approval settings*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.ProjectUpdateAccessApprovalSettingCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/struct.AccessApproval.html)** +* **[Hub](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/struct.AccessApproval.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -142,17 +142,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -162,29 +162,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-accessapproval1_beta1/1.0.11+20190628/google_accessapproval1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-accessapproval1_beta1/1.0.12+20190628/google_accessapproval1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/accessapproval1_beta1/src/lib.rs b/gen/accessapproval1_beta1/src/lib.rs index ee06157f4e..d1e2e6256a 100644 --- a/gen/accessapproval1_beta1/src/lib.rs +++ b/gen/accessapproval1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Access Approval* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *accessapproval:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Access Approval* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *accessapproval:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Access Approval* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/access-approval/docs). @@ -341,7 +341,7 @@ impl<'a, C, A> AccessApproval AccessApproval { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://accessapproval.googleapis.com/".to_string(), _root_url: "https://accessapproval.googleapis.com/".to_string(), } @@ -358,7 +358,7 @@ impl<'a, C, A> AccessApproval } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/accesscontextmanager1-cli/Cargo.toml b/gen/accesscontextmanager1-cli/Cargo.toml index ba94c76e97..1f33438746 100644 --- a/gen/accesscontextmanager1-cli/Cargo.toml +++ b/gen/accesscontextmanager1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-accesscontextmanager1-cli" -version = "1.0.11+20190626" +version = "1.0.12+20190626" authors = ["Sebastian Thiel "] description = "A complete library to interact with Access Context Manager (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/accesscontextmanager1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-accesscontextmanager1] path = "../accesscontextmanager1" -version = "1.0.11+20190626" +version = "1.0.12+20190626" diff --git a/gen/accesscontextmanager1-cli/LICENSE.md b/gen/accesscontextmanager1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/accesscontextmanager1-cli/LICENSE.md +++ b/gen/accesscontextmanager1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/accesscontextmanager1-cli/README.md b/gen/accesscontextmanager1-cli/README.md index 6463691d5e..19694cacca 100644 --- a/gen/accesscontextmanager1-cli/README.md +++ b/gen/accesscontextmanager1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Access Context Manager* API at revision *20190626*. The CLI is at version *1.0.11*. +This documentation was generated from the *Access Context Manager* API at revision *20190626*. The CLI is at version *1.0.12*. ```bash accesscontextmanager1 [options] diff --git a/gen/accesscontextmanager1-cli/mkdocs.yml b/gen/accesscontextmanager1-cli/mkdocs.yml index c4299287fb..bf7dc4bffe 100644 --- a/gen/accesscontextmanager1-cli/mkdocs.yml +++ b/gen/accesscontextmanager1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Access Context Manager v1.0.11+20190626 +site_name: Access Context Manager v1.0.12+20190626 site_url: http://byron.github.io/google-apis-rs/google-accesscontextmanager1-cli site_description: A complete library to interact with Access Context Manager (protocol v1) @@ -31,5 +31,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/accesscontextmanager1-cli/src/cmn.rs b/gen/accesscontextmanager1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/accesscontextmanager1-cli/src/cmn.rs +++ b/gen/accesscontextmanager1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/accesscontextmanager1-cli/src/main.rs b/gen/accesscontextmanager1-cli/src/main.rs index 33a99746ff..bf8f05b06b 100644 --- a/gen/accesscontextmanager1-cli/src/main.rs +++ b/gen/accesscontextmanager1-cli/src/main.rs @@ -2066,7 +2066,7 @@ fn main() { let mut app = App::new("accesscontextmanager1") .author("Sebastian Thiel ") - .version("1.0.11+20190626") + .version("1.0.12+20190626") .about("An API for setting attribute based access control to requests to GCP services.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_accesscontextmanager1_cli") .arg(Arg::with_name("url") diff --git a/gen/accesscontextmanager1/Cargo.toml b/gen/accesscontextmanager1/Cargo.toml index 744fa22c6c..ff42f5ca15 100644 --- a/gen/accesscontextmanager1/Cargo.toml +++ b/gen/accesscontextmanager1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-accesscontextmanager1" -version = "1.0.11+20190626" +version = "1.0.12+20190626" authors = ["Sebastian Thiel "] description = "A complete library to interact with Access Context Manager (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/accesscontextmanager1" homepage = "https://cloud.google.com/access-context-manager/docs/reference/rest/" -documentation = "https://docs.rs/google-accesscontextmanager1/1.0.11+20190626" +documentation = "https://docs.rs/google-accesscontextmanager1/1.0.12+20190626" license = "MIT" keywords = ["accesscontextmanager", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/accesscontextmanager1/LICENSE.md b/gen/accesscontextmanager1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/accesscontextmanager1/LICENSE.md +++ b/gen/accesscontextmanager1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/accesscontextmanager1/README.md b/gen/accesscontextmanager1/README.md index 5bae259dbc..146f825fc7 100644 --- a/gen/accesscontextmanager1/README.md +++ b/gen/accesscontextmanager1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-accesscontextmanager1` library allows access to all features of the *Google Access Context Manager* service. -This documentation was generated from *Access Context Manager* crate version *1.0.11+20190626*, where *20190626* is the exact revision of the *accesscontextmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Access Context Manager* crate version *1.0.12+20190626*, where *20190626* is the exact revision of the *accesscontextmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Access Context Manager* *v1* API can be found at the [official documentation site](https://cloud.google.com/access-context-manager/docs/reference/rest/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessContextManager.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessContextManager.html) ... -* [access policies](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicy.html) - * [*access levels create*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyAccessLevelCreateCall.html), [*access levels delete*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyAccessLevelDeleteCall.html), [*access levels get*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyAccessLevelGetCall.html), [*access levels list*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyAccessLevelListCall.html), [*access levels patch*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyAccessLevelPatchCall.html), [*create*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyCreateCall.html), [*delete*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyDeleteCall.html), [*get*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyGetCall.html), [*list*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyListCall.html), [*patch*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyPatchCall.html), [*service perimeters create*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyServicePerimeterCreateCall.html), [*service perimeters delete*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyServicePerimeterDeleteCall.html), [*service perimeters get*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyServicePerimeterGetCall.html), [*service perimeters list*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyServicePerimeterListCall.html) and [*service perimeters patch*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessPolicyServicePerimeterPatchCall.html) -* [operations](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.Operation.html) - * [*cancel*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.OperationDeleteCall.html), [*get*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.OperationListCall.html) +* [access policies](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicy.html) + * [*access levels create*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyAccessLevelCreateCall.html), [*access levels delete*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyAccessLevelDeleteCall.html), [*access levels get*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyAccessLevelGetCall.html), [*access levels list*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyAccessLevelListCall.html), [*access levels patch*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyAccessLevelPatchCall.html), [*create*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyCreateCall.html), [*delete*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyDeleteCall.html), [*get*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyGetCall.html), [*list*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyListCall.html), [*patch*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyPatchCall.html), [*service perimeters create*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyServicePerimeterCreateCall.html), [*service perimeters delete*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyServicePerimeterDeleteCall.html), [*service perimeters get*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyServicePerimeterGetCall.html), [*service perimeters list*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyServicePerimeterListCall.html) and [*service perimeters patch*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessPolicyServicePerimeterPatchCall.html) +* [operations](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.Operation.html) + * [*cancel*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.OperationDeleteCall.html), [*get*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.OperationListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/struct.AccessContextManager.html)** +* **[Hub](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/struct.AccessContextManager.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.Part.html)** + * **[Parts](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -141,17 +141,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -161,29 +161,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-accesscontextmanager1/1.0.11+20190626/google_accesscontextmanager1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-accesscontextmanager1/1.0.12+20190626/google_accesscontextmanager1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/accesscontextmanager1/src/lib.rs b/gen/accesscontextmanager1/src/lib.rs index ca870a4d73..eb323cb3f7 100644 --- a/gen/accesscontextmanager1/src/lib.rs +++ b/gen/accesscontextmanager1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Access Context Manager* crate version *1.0.11+20190626*, where *20190626* is the exact revision of the *accesscontextmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Access Context Manager* crate version *1.0.12+20190626*, where *20190626* is the exact revision of the *accesscontextmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Access Context Manager* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/access-context-manager/docs/reference/rest/). @@ -337,7 +337,7 @@ impl<'a, C, A> AccessContextManager AccessContextManager { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://accesscontextmanager.googleapis.com/".to_string(), _root_url: "https://accesscontextmanager.googleapis.com/".to_string(), } @@ -351,7 +351,7 @@ impl<'a, C, A> AccessContextManager } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/accesscontextmanager1_beta-cli/Cargo.toml b/gen/accesscontextmanager1_beta-cli/Cargo.toml index 7b7183f705..fabd111de3 100644 --- a/gen/accesscontextmanager1_beta-cli/Cargo.toml +++ b/gen/accesscontextmanager1_beta-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-accesscontextmanager1_beta-cli" -version = "1.0.11+20190626" +version = "1.0.12+20190626" authors = ["Sebastian Thiel "] description = "A complete library to interact with Access Context Manager (protocol v1beta)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/accesscontextmanager1_beta-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-accesscontextmanager1_beta] path = "../accesscontextmanager1_beta" -version = "1.0.11+20190626" +version = "1.0.12+20190626" diff --git a/gen/accesscontextmanager1_beta-cli/LICENSE.md b/gen/accesscontextmanager1_beta-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/accesscontextmanager1_beta-cli/LICENSE.md +++ b/gen/accesscontextmanager1_beta-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/accesscontextmanager1_beta-cli/README.md b/gen/accesscontextmanager1_beta-cli/README.md index 93b4c7c408..53622ce4ad 100644 --- a/gen/accesscontextmanager1_beta-cli/README.md +++ b/gen/accesscontextmanager1_beta-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Access Context Manager* API at revision *20190626*. The CLI is at version *1.0.11*. +This documentation was generated from the *Access Context Manager* API at revision *20190626*. The CLI is at version *1.0.12*. ```bash accesscontextmanager1-beta [options] diff --git a/gen/accesscontextmanager1_beta-cli/mkdocs.yml b/gen/accesscontextmanager1_beta-cli/mkdocs.yml index f31519f3e6..c561dcb48b 100644 --- a/gen/accesscontextmanager1_beta-cli/mkdocs.yml +++ b/gen/accesscontextmanager1_beta-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Access Context Manager v1.0.11+20190626 +site_name: Access Context Manager v1.0.12+20190626 site_url: http://byron.github.io/google-apis-rs/google-accesscontextmanager1_beta-cli site_description: A complete library to interact with Access Context Manager (protocol v1beta) @@ -28,5 +28,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/accesscontextmanager1_beta-cli/src/cmn.rs b/gen/accesscontextmanager1_beta-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/accesscontextmanager1_beta-cli/src/cmn.rs +++ b/gen/accesscontextmanager1_beta-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/accesscontextmanager1_beta-cli/src/main.rs b/gen/accesscontextmanager1_beta-cli/src/main.rs index adf0969d1c..e5511a6c8f 100644 --- a/gen/accesscontextmanager1_beta-cli/src/main.rs +++ b/gen/accesscontextmanager1_beta-cli/src/main.rs @@ -1780,7 +1780,7 @@ fn main() { let mut app = App::new("accesscontextmanager1-beta") .author("Sebastian Thiel ") - .version("1.0.11+20190626") + .version("1.0.12+20190626") .about("An API for setting attribute based access control to requests to GCP services.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_accesscontextmanager1_beta_cli") .arg(Arg::with_name("url") diff --git a/gen/accesscontextmanager1_beta/Cargo.toml b/gen/accesscontextmanager1_beta/Cargo.toml index 7788ab0bc9..985635428e 100644 --- a/gen/accesscontextmanager1_beta/Cargo.toml +++ b/gen/accesscontextmanager1_beta/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-accesscontextmanager1_beta" -version = "1.0.11+20190626" +version = "1.0.12+20190626" authors = ["Sebastian Thiel "] description = "A complete library to interact with Access Context Manager (protocol v1beta)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/accesscontextmanager1_beta" homepage = "https://cloud.google.com/access-context-manager/docs/reference/rest/" -documentation = "https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626" +documentation = "https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626" license = "MIT" keywords = ["accesscontextmanager", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/accesscontextmanager1_beta/LICENSE.md b/gen/accesscontextmanager1_beta/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/accesscontextmanager1_beta/LICENSE.md +++ b/gen/accesscontextmanager1_beta/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/accesscontextmanager1_beta/README.md b/gen/accesscontextmanager1_beta/README.md index f72f8460a2..de3aa18cd5 100644 --- a/gen/accesscontextmanager1_beta/README.md +++ b/gen/accesscontextmanager1_beta/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-accesscontextmanager1_beta` library allows access to all features of the *Google Access Context Manager* service. -This documentation was generated from *Access Context Manager* crate version *1.0.11+20190626*, where *20190626* is the exact revision of the *accesscontextmanager:v1beta* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Access Context Manager* crate version *1.0.12+20190626*, where *20190626* is the exact revision of the *accesscontextmanager:v1beta* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Access Context Manager* *v1_beta* API can be found at the [official documentation site](https://cloud.google.com/access-context-manager/docs/reference/rest/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessContextManager.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessContextManager.html) ... -* [access policies](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicy.html) - * [*access levels create*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyAccessLevelCreateCall.html), [*access levels delete*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyAccessLevelDeleteCall.html), [*access levels get*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyAccessLevelGetCall.html), [*access levels list*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyAccessLevelListCall.html), [*access levels patch*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyAccessLevelPatchCall.html), [*create*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyCreateCall.html), [*delete*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyDeleteCall.html), [*get*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyGetCall.html), [*list*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyListCall.html), [*patch*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyPatchCall.html), [*service perimeters create*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyServicePerimeterCreateCall.html), [*service perimeters delete*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyServicePerimeterDeleteCall.html), [*service perimeters get*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyServicePerimeterGetCall.html), [*service perimeters list*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyServicePerimeterListCall.html) and [*service perimeters patch*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyServicePerimeterPatchCall.html) -* [operations](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.Operation.html) - * [*get*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.OperationGetCall.html) +* [access policies](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicy.html) + * [*access levels create*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyAccessLevelCreateCall.html), [*access levels delete*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyAccessLevelDeleteCall.html), [*access levels get*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyAccessLevelGetCall.html), [*access levels list*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyAccessLevelListCall.html), [*access levels patch*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyAccessLevelPatchCall.html), [*create*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyCreateCall.html), [*delete*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyDeleteCall.html), [*get*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyGetCall.html), [*list*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyListCall.html), [*patch*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyPatchCall.html), [*service perimeters create*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyServicePerimeterCreateCall.html), [*service perimeters delete*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyServicePerimeterDeleteCall.html), [*service perimeters get*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyServicePerimeterGetCall.html), [*service perimeters list*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyServicePerimeterListCall.html) and [*service perimeters patch*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessPolicyServicePerimeterPatchCall.html) +* [operations](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.Operation.html) + * [*get*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.OperationGetCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/struct.AccessContextManager.html)** +* **[Hub](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/struct.AccessContextManager.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.Part.html)** + * **[Parts](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -142,17 +142,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -162,29 +162,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.RequestValue.html) and -[decodable](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.RequestValue.html) and +[decodable](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-accesscontextmanager1_beta/1.0.11+20190626/google_accesscontextmanager1_beta/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-accesscontextmanager1_beta/1.0.12+20190626/google_accesscontextmanager1_beta/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/accesscontextmanager1_beta/src/lib.rs b/gen/accesscontextmanager1_beta/src/lib.rs index b6d9b13060..548f50d231 100644 --- a/gen/accesscontextmanager1_beta/src/lib.rs +++ b/gen/accesscontextmanager1_beta/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Access Context Manager* crate version *1.0.11+20190626*, where *20190626* is the exact revision of the *accesscontextmanager:v1beta* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Access Context Manager* crate version *1.0.12+20190626*, where *20190626* is the exact revision of the *accesscontextmanager:v1beta* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Access Context Manager* *v1_beta* API can be found at the //! [official documentation site](https://cloud.google.com/access-context-manager/docs/reference/rest/). @@ -342,7 +342,7 @@ impl<'a, C, A> AccessContextManager AccessContextManager { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://accesscontextmanager.googleapis.com/".to_string(), _root_url: "https://accesscontextmanager.googleapis.com/".to_string(), } @@ -356,7 +356,7 @@ impl<'a, C, A> AccessContextManager } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/adexchangebuyer1d3-cli/Cargo.toml b/gen/adexchangebuyer1d3-cli/Cargo.toml index 387b05afc0..4f667ed10d 100644 --- a/gen/adexchangebuyer1d3-cli/Cargo.toml +++ b/gen/adexchangebuyer1d3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-adexchangebuyer1d3-cli" -version = "1.0.11+20190614" +version = "1.0.12+20190614" authors = ["Sebastian Thiel "] description = "A complete library to interact with Ad Exchange Buyer (protocol v1.3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adexchangebuyer1d3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-adexchangebuyer1d3] path = "../adexchangebuyer1d3" -version = "1.0.11+20190614" +version = "1.0.12+20190614" diff --git a/gen/adexchangebuyer1d3-cli/LICENSE.md b/gen/adexchangebuyer1d3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/adexchangebuyer1d3-cli/LICENSE.md +++ b/gen/adexchangebuyer1d3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/adexchangebuyer1d3-cli/README.md b/gen/adexchangebuyer1d3-cli/README.md index 8ffbe1c735..b8d9d0c608 100644 --- a/gen/adexchangebuyer1d3-cli/README.md +++ b/gen/adexchangebuyer1d3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Ad Exchange Buyer* API at revision *20190614*. The CLI is at version *1.0.11*. +This documentation was generated from the *Ad Exchange Buyer* API at revision *20190614*. The CLI is at version *1.0.12*. ```bash adexchangebuyer1d3 [options] diff --git a/gen/adexchangebuyer1d3-cli/mkdocs.yml b/gen/adexchangebuyer1d3-cli/mkdocs.yml index ea1680f051..dd34becbc1 100644 --- a/gen/adexchangebuyer1d3-cli/mkdocs.yml +++ b/gen/adexchangebuyer1d3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Ad Exchange Buyer v1.0.11+20190614 +site_name: Ad Exchange Buyer v1.0.12+20190614 site_url: http://byron.github.io/google-apis-rs/google-adexchangebuyer1d3-cli site_description: A complete library to interact with Ad Exchange Buyer (protocol v1.3) @@ -33,5 +33,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/adexchangebuyer1d3-cli/src/cmn.rs b/gen/adexchangebuyer1d3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/adexchangebuyer1d3-cli/src/cmn.rs +++ b/gen/adexchangebuyer1d3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/adexchangebuyer1d3-cli/src/main.rs b/gen/adexchangebuyer1d3-cli/src/main.rs index ef4d58298c..58e917a57e 100644 --- a/gen/adexchangebuyer1d3-cli/src/main.rs +++ b/gen/adexchangebuyer1d3-cli/src/main.rs @@ -2305,7 +2305,7 @@ fn main() { let mut app = App::new("adexchangebuyer1d3") .author("Sebastian Thiel ") - .version("1.0.11+20190614") + .version("1.0.12+20190614") .about("Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_adexchangebuyer1d3_cli") .arg(Arg::with_name("url") diff --git a/gen/adexchangebuyer1d3/Cargo.toml b/gen/adexchangebuyer1d3/Cargo.toml index a78d5061d2..c8c513e628 100644 --- a/gen/adexchangebuyer1d3/Cargo.toml +++ b/gen/adexchangebuyer1d3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-adexchangebuyer1d3" -version = "1.0.11+20190614" +version = "1.0.12+20190614" authors = ["Sebastian Thiel "] description = "A complete library to interact with Ad Exchange Buyer (protocol v1.3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adexchangebuyer1d3" homepage = "https://developers.google.com/ad-exchange/buyer-rest" -documentation = "https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614" +documentation = "https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614" license = "MIT" keywords = ["adexchangebuyer", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/adexchangebuyer1d3/LICENSE.md b/gen/adexchangebuyer1d3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/adexchangebuyer1d3/LICENSE.md +++ b/gen/adexchangebuyer1d3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/adexchangebuyer1d3/README.md b/gen/adexchangebuyer1d3/README.md index 2781a320f1..c5ab60c808 100644 --- a/gen/adexchangebuyer1d3/README.md +++ b/gen/adexchangebuyer1d3/README.md @@ -5,28 +5,28 @@ DO NOT EDIT ! --> The `google-adexchangebuyer1d3` library allows access to all features of the *Google Ad Exchange Buyer* service. -This documentation was generated from *Ad Exchange Buyer* crate version *1.0.11+20190614*, where *20190614* is the exact revision of the *adexchangebuyer:v1.3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Ad Exchange Buyer* crate version *1.0.12+20190614*, where *20190614* is the exact revision of the *adexchangebuyer:v1.3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Ad Exchange Buyer* *v1d3* API can be found at the [official documentation site](https://developers.google.com/ad-exchange/buyer-rest). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.AdExchangeBuyer.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.AdExchangeBuyer.html) ... -* [accounts](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.Account.html) - * [*get*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.AccountGetCall.html), [*list*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.AccountListCall.html), [*patch*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.AccountPatchCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.AccountUpdateCall.html) -* [billing info](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.BillingInfo.html) - * [*get*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.BillingInfoGetCall.html) and [*list*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.BillingInfoListCall.html) -* [budget](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.Budget.html) - * [*get*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.BudgetGetCall.html), [*patch*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.BudgetPatchCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.BudgetUpdateCall.html) -* [creatives](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.Creative.html) - * [*get*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.CreativeGetCall.html), [*insert*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.CreativeInsertCall.html) and [*list*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.CreativeListCall.html) -* [direct deals](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.DirectDeal.html) - * [*get*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.DirectDealGetCall.html) and [*list*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.DirectDealListCall.html) -* [performance report](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.PerformanceReport.html) - * [*list*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.PerformanceReportListCall.html) -* [pretargeting config](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.PretargetingConfig.html) - * [*delete*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.PretargetingConfigDeleteCall.html), [*get*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.PretargetingConfigGetCall.html), [*insert*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.PretargetingConfigInsertCall.html), [*list*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.PretargetingConfigListCall.html), [*patch*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.PretargetingConfigPatchCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.PretargetingConfigUpdateCall.html) +* [accounts](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.Account.html) + * [*get*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.AccountGetCall.html), [*list*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.AccountListCall.html), [*patch*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.AccountPatchCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.AccountUpdateCall.html) +* [billing info](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.BillingInfo.html) + * [*get*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.BillingInfoGetCall.html) and [*list*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.BillingInfoListCall.html) +* [budget](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.Budget.html) + * [*get*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.BudgetGetCall.html), [*patch*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.BudgetPatchCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.BudgetUpdateCall.html) +* [creatives](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.Creative.html) + * [*get*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.CreativeGetCall.html), [*insert*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.CreativeInsertCall.html) and [*list*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.CreativeListCall.html) +* [direct deals](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.DirectDeal.html) + * [*get*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.DirectDealGetCall.html) and [*list*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.DirectDealListCall.html) +* [performance report](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.PerformanceReport.html) + * [*list*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.PerformanceReportListCall.html) +* [pretargeting config](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.PretargetingConfig.html) + * [*delete*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.PretargetingConfigDeleteCall.html), [*get*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.PretargetingConfigGetCall.html), [*insert*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.PretargetingConfigInsertCall.html), [*list*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.PretargetingConfigListCall.html), [*patch*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.PretargetingConfigPatchCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.PretargetingConfigUpdateCall.html) @@ -35,17 +35,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/struct.AdExchangeBuyer.html)** +* **[Hub](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/struct.AdExchangeBuyer.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.Part.html)** + * **[Parts](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -145,17 +145,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -165,29 +165,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-adexchangebuyer1d3/1.0.11+20190614/google_adexchangebuyer1d3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-adexchangebuyer1d3/1.0.12+20190614/google_adexchangebuyer1d3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/adexchangebuyer1d3/src/lib.rs b/gen/adexchangebuyer1d3/src/lib.rs index c354bee935..e4d018d3ed 100644 --- a/gen/adexchangebuyer1d3/src/lib.rs +++ b/gen/adexchangebuyer1d3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Ad Exchange Buyer* crate version *1.0.11+20190614*, where *20190614* is the exact revision of the *adexchangebuyer:v1.3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Ad Exchange Buyer* crate version *1.0.12+20190614*, where *20190614* is the exact revision of the *adexchangebuyer:v1.3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Ad Exchange Buyer* *v1d3* API can be found at the //! [official documentation site](https://developers.google.com/ad-exchange/buyer-rest). @@ -344,7 +344,7 @@ impl<'a, C, A> AdExchangeBuyer AdExchangeBuyer { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/adexchangebuyer/v1.3/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -373,7 +373,7 @@ impl<'a, C, A> AdExchangeBuyer } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/adexchangebuyer1d4-cli/Cargo.toml b/gen/adexchangebuyer1d4-cli/Cargo.toml index c9a0cbf6d3..765358eea1 100644 --- a/gen/adexchangebuyer1d4-cli/Cargo.toml +++ b/gen/adexchangebuyer1d4-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-adexchangebuyer1d4-cli" -version = "1.0.11+20190614" +version = "1.0.12+20190614" authors = ["Sebastian Thiel "] description = "A complete library to interact with Ad Exchange Buyer (protocol v1.4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adexchangebuyer1d4-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-adexchangebuyer1d4] path = "../adexchangebuyer1d4" -version = "1.0.11+20190614" +version = "1.0.12+20190614" diff --git a/gen/adexchangebuyer1d4-cli/LICENSE.md b/gen/adexchangebuyer1d4-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/adexchangebuyer1d4-cli/LICENSE.md +++ b/gen/adexchangebuyer1d4-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/adexchangebuyer1d4-cli/README.md b/gen/adexchangebuyer1d4-cli/README.md index 6d08927b10..c8dbcce15c 100644 --- a/gen/adexchangebuyer1d4-cli/README.md +++ b/gen/adexchangebuyer1d4-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Ad Exchange Buyer* API at revision *20190614*. The CLI is at version *1.0.11*. +This documentation was generated from the *Ad Exchange Buyer* API at revision *20190614*. The CLI is at version *1.0.12*. ```bash adexchangebuyer1d4 [options] diff --git a/gen/adexchangebuyer1d4-cli/mkdocs.yml b/gen/adexchangebuyer1d4-cli/mkdocs.yml index 6d8aa64599..e6373bd77d 100644 --- a/gen/adexchangebuyer1d4-cli/mkdocs.yml +++ b/gen/adexchangebuyer1d4-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Ad Exchange Buyer v1.0.11+20190614 +site_name: Ad Exchange Buyer v1.0.12+20190614 site_url: http://byron.github.io/google-apis-rs/google-adexchangebuyer1d4-cli site_description: A complete library to interact with Ad Exchange Buyer (protocol v1.4) @@ -50,5 +50,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/adexchangebuyer1d4-cli/src/cmn.rs b/gen/adexchangebuyer1d4-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/adexchangebuyer1d4-cli/src/cmn.rs +++ b/gen/adexchangebuyer1d4-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/adexchangebuyer1d4-cli/src/main.rs b/gen/adexchangebuyer1d4-cli/src/main.rs index 8af9cfb951..f3a26d9c53 100644 --- a/gen/adexchangebuyer1d4-cli/src/main.rs +++ b/gen/adexchangebuyer1d4-cli/src/main.rs @@ -4091,7 +4091,7 @@ fn main() { let mut app = App::new("adexchangebuyer1d4") .author("Sebastian Thiel ") - .version("1.0.11+20190614") + .version("1.0.12+20190614") .about("Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_adexchangebuyer1d4_cli") .arg(Arg::with_name("url") diff --git a/gen/adexchangebuyer1d4/Cargo.toml b/gen/adexchangebuyer1d4/Cargo.toml index f06ec74350..8b7e74f023 100644 --- a/gen/adexchangebuyer1d4/Cargo.toml +++ b/gen/adexchangebuyer1d4/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-adexchangebuyer1d4" -version = "1.0.11+20190614" +version = "1.0.12+20190614" authors = ["Sebastian Thiel "] description = "A complete library to interact with Ad Exchange Buyer (protocol v1.4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adexchangebuyer1d4" homepage = "https://developers.google.com/ad-exchange/buyer-rest" -documentation = "https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614" +documentation = "https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614" license = "MIT" keywords = ["adexchangebuyer", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/adexchangebuyer1d4/LICENSE.md b/gen/adexchangebuyer1d4/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/adexchangebuyer1d4/LICENSE.md +++ b/gen/adexchangebuyer1d4/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/adexchangebuyer1d4/README.md b/gen/adexchangebuyer1d4/README.md index b0a1c0f64e..7dde19a7b9 100644 --- a/gen/adexchangebuyer1d4/README.md +++ b/gen/adexchangebuyer1d4/README.md @@ -5,38 +5,38 @@ DO NOT EDIT ! --> The `google-adexchangebuyer1d4` library allows access to all features of the *Google Ad Exchange Buyer* service. -This documentation was generated from *Ad Exchange Buyer* crate version *1.0.11+20190614*, where *20190614* is the exact revision of the *adexchangebuyer:v1.4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Ad Exchange Buyer* crate version *1.0.12+20190614*, where *20190614* is the exact revision of the *adexchangebuyer:v1.4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Ad Exchange Buyer* *v1d4* API can be found at the [official documentation site](https://developers.google.com/ad-exchange/buyer-rest). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.AdExchangeBuyer.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.AdExchangeBuyer.html) ... -* [accounts](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.Account.html) - * [*get*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.AccountGetCall.html), [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.AccountListCall.html), [*patch*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.AccountPatchCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.AccountUpdateCall.html) -* [billing info](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.BillingInfo.html) - * [*get*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.BillingInfoGetCall.html) and [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.BillingInfoListCall.html) -* [budget](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.Budget.html) - * [*get*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.BudgetGetCall.html), [*patch*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.BudgetPatchCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.BudgetUpdateCall.html) -* [creatives](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.Creative.html) - * [*add deal*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.CreativeAddDealCall.html), [*get*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.CreativeGetCall.html), [*insert*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.CreativeInsertCall.html), [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.CreativeListCall.html), [*list deals*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.CreativeListDealCall.html) and [*remove deal*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.CreativeRemoveDealCall.html) +* [accounts](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.Account.html) + * [*get*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.AccountGetCall.html), [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.AccountListCall.html), [*patch*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.AccountPatchCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.AccountUpdateCall.html) +* [billing info](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.BillingInfo.html) + * [*get*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.BillingInfoGetCall.html) and [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.BillingInfoListCall.html) +* [budget](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.Budget.html) + * [*get*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.BudgetGetCall.html), [*patch*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.BudgetPatchCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.BudgetUpdateCall.html) +* [creatives](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.Creative.html) + * [*add deal*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.CreativeAddDealCall.html), [*get*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.CreativeGetCall.html), [*insert*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.CreativeInsertCall.html), [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.CreativeListCall.html), [*list deals*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.CreativeListDealCall.html) and [*remove deal*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.CreativeRemoveDealCall.html) * marketplacedeals - * [*delete*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.MarketplacedealDeleteCall.html), [*insert*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.MarketplacedealInsertCall.html), [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.MarketplacedealListCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.MarketplacedealUpdateCall.html) + * [*delete*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.MarketplacedealDeleteCall.html), [*insert*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.MarketplacedealInsertCall.html), [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.MarketplacedealListCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.MarketplacedealUpdateCall.html) * marketplacenotes - * [*insert*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.MarketplacenoteInsertCall.html) and [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.MarketplacenoteListCall.html) + * [*insert*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.MarketplacenoteInsertCall.html) and [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.MarketplacenoteListCall.html) * marketplaceprivateauction - * [*updateproposal*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.MarketplaceprivateauctionUpdateproposalCall.html) -* [performance report](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.PerformanceReport.html) - * [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.PerformanceReportListCall.html) -* [pretargeting config](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.PretargetingConfig.html) - * [*delete*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.PretargetingConfigDeleteCall.html), [*get*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.PretargetingConfigGetCall.html), [*insert*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.PretargetingConfigInsertCall.html), [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.PretargetingConfigListCall.html), [*patch*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.PretargetingConfigPatchCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.PretargetingConfigUpdateCall.html) -* [products](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.Product.html) - * [*get*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.ProductGetCall.html) and [*search*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.ProductSearchCall.html) -* [proposals](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.Proposal.html) - * [*get*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.ProposalGetCall.html), [*insert*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.ProposalInsertCall.html), [*patch*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.ProposalPatchCall.html), [*search*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.ProposalSearchCall.html), [*setupcomplete*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.ProposalSetupcompleteCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.ProposalUpdateCall.html) + * [*updateproposal*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.MarketplaceprivateauctionUpdateproposalCall.html) +* [performance report](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.PerformanceReport.html) + * [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.PerformanceReportListCall.html) +* [pretargeting config](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.PretargetingConfig.html) + * [*delete*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.PretargetingConfigDeleteCall.html), [*get*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.PretargetingConfigGetCall.html), [*insert*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.PretargetingConfigInsertCall.html), [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.PretargetingConfigListCall.html), [*patch*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.PretargetingConfigPatchCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.PretargetingConfigUpdateCall.html) +* [products](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.Product.html) + * [*get*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.ProductGetCall.html) and [*search*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.ProductSearchCall.html) +* [proposals](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.Proposal.html) + * [*get*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.ProposalGetCall.html), [*insert*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.ProposalInsertCall.html), [*patch*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.ProposalPatchCall.html), [*search*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.ProposalSearchCall.html), [*setupcomplete*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.ProposalSetupcompleteCall.html) and [*update*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.ProposalUpdateCall.html) * pubprofiles - * [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.PubprofileListCall.html) + * [*list*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.PubprofileListCall.html) @@ -45,17 +45,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/struct.AdExchangeBuyer.html)** +* **[Hub](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/struct.AdExchangeBuyer.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.Part.html)** + * **[Parts](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -157,17 +157,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -177,29 +177,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.RequestValue.html) and -[decodable](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.RequestValue.html) and +[decodable](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-adexchangebuyer1d4/1.0.11+20190614/google_adexchangebuyer1d4/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-adexchangebuyer1d4/1.0.12+20190614/google_adexchangebuyer1d4/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/adexchangebuyer1d4/src/lib.rs b/gen/adexchangebuyer1d4/src/lib.rs index a3b8e7250b..793f7d860a 100644 --- a/gen/adexchangebuyer1d4/src/lib.rs +++ b/gen/adexchangebuyer1d4/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Ad Exchange Buyer* crate version *1.0.11+20190614*, where *20190614* is the exact revision of the *adexchangebuyer:v1.4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Ad Exchange Buyer* crate version *1.0.12+20190614*, where *20190614* is the exact revision of the *adexchangebuyer:v1.4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Ad Exchange Buyer* *v1d4* API can be found at the //! [official documentation site](https://developers.google.com/ad-exchange/buyer-rest). @@ -356,7 +356,7 @@ impl<'a, C, A> AdExchangeBuyer AdExchangeBuyer { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/adexchangebuyer/v1.4/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -400,7 +400,7 @@ impl<'a, C, A> AdExchangeBuyer } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/adexchangebuyer2_v2_beta1-cli/Cargo.toml b/gen/adexchangebuyer2_v2_beta1-cli/Cargo.toml index f2fc40456d..c7362d2b3c 100644 --- a/gen/adexchangebuyer2_v2_beta1-cli/Cargo.toml +++ b/gen/adexchangebuyer2_v2_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-adexchangebuyer2_v2_beta1-cli" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with AdExchangeBuyerII (protocol v2beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adexchangebuyer2_v2_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-adexchangebuyer2_v2_beta1] path = "../adexchangebuyer2_v2_beta1" -version = "1.0.11+20190701" +version = "1.0.12+20190701" diff --git a/gen/adexchangebuyer2_v2_beta1-cli/LICENSE.md b/gen/adexchangebuyer2_v2_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/adexchangebuyer2_v2_beta1-cli/LICENSE.md +++ b/gen/adexchangebuyer2_v2_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/adexchangebuyer2_v2_beta1-cli/README.md b/gen/adexchangebuyer2_v2_beta1-cli/README.md index 31f62225b7..e5fc578eac 100644 --- a/gen/adexchangebuyer2_v2_beta1-cli/README.md +++ b/gen/adexchangebuyer2_v2_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *AdExchangeBuyerII* API at revision *20190701*. The CLI is at version *1.0.11*. +This documentation was generated from the *AdExchangeBuyerII* API at revision *20190701*. The CLI is at version *1.0.12*. ```bash adexchangebuyer2-v2-beta1 [options] diff --git a/gen/adexchangebuyer2_v2_beta1-cli/mkdocs.yml b/gen/adexchangebuyer2_v2_beta1-cli/mkdocs.yml index bca5c0a83c..a773ade1f1 100644 --- a/gen/adexchangebuyer2_v2_beta1-cli/mkdocs.yml +++ b/gen/adexchangebuyer2_v2_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: AdExchangeBuyerII v1.0.11+20190701 +site_name: AdExchangeBuyerII v1.0.12+20190701 site_url: http://byron.github.io/google-apis-rs/google-adexchangebuyer2_v2_beta1-cli site_description: A complete library to interact with AdExchangeBuyerII (protocol v2beta1) @@ -74,5 +74,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/adexchangebuyer2_v2_beta1-cli/src/cmn.rs b/gen/adexchangebuyer2_v2_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/adexchangebuyer2_v2_beta1-cli/src/cmn.rs +++ b/gen/adexchangebuyer2_v2_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/adexchangebuyer2_v2_beta1-cli/src/main.rs b/gen/adexchangebuyer2_v2_beta1-cli/src/main.rs index c7ed2e762d..e2f96fab95 100644 --- a/gen/adexchangebuyer2_v2_beta1-cli/src/main.rs +++ b/gen/adexchangebuyer2_v2_beta1-cli/src/main.rs @@ -6743,7 +6743,7 @@ fn main() { let mut app = App::new("adexchangebuyer2-v2-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190701") + .version("1.0.12+20190701") .about("Accesses the latest features for managing Authorized Buyers accounts, Real-Time Bidding configurations and auction metrics, and Marketplace programmatic deals.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_adexchangebuyer2_v2_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/adexchangebuyer2_v2_beta1/Cargo.toml b/gen/adexchangebuyer2_v2_beta1/Cargo.toml index cd03da02ea..ce868fd36a 100644 --- a/gen/adexchangebuyer2_v2_beta1/Cargo.toml +++ b/gen/adexchangebuyer2_v2_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-adexchangebuyer2_v2_beta1" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with AdExchangeBuyerII (protocol v2beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adexchangebuyer2_v2_beta1" homepage = "https://developers.google.com/authorized-buyers/apis/reference/rest/" -documentation = "https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701" +documentation = "https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701" license = "MIT" keywords = ["adexchangebuyer2", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/adexchangebuyer2_v2_beta1/LICENSE.md b/gen/adexchangebuyer2_v2_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/adexchangebuyer2_v2_beta1/LICENSE.md +++ b/gen/adexchangebuyer2_v2_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/adexchangebuyer2_v2_beta1/README.md b/gen/adexchangebuyer2_v2_beta1/README.md index d302468852..d53868be28 100644 --- a/gen/adexchangebuyer2_v2_beta1/README.md +++ b/gen/adexchangebuyer2_v2_beta1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-adexchangebuyer2_v2_beta1` library allows access to all features of the *Google AdExchangeBuyerII* service. -This documentation was generated from *AdExchangeBuyerII* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *adexchangebuyer2:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *AdExchangeBuyerII* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *adexchangebuyer2:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *AdExchangeBuyerII* *v2_beta1* API can be found at the [official documentation site](https://developers.google.com/authorized-buyers/apis/reference/rest/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AdExchangeBuyerII.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AdExchangeBuyerII.html) ... * accounts - * [*clients create*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientCreateCall.html), [*clients get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientGetCall.html), [*clients invitations create*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientInvitationCreateCall.html), [*clients invitations get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientInvitationGetCall.html), [*clients invitations list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientInvitationListCall.html), [*clients list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientListCall.html), [*clients update*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientUpdateCall.html), [*clients users get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientUserGetCall.html), [*clients users list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientUserListCall.html), [*clients users update*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientUserUpdateCall.html), [*creatives create*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeCreateCall.html), [*creatives deal associations add*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeDealAssociationAddCall.html), [*creatives deal associations list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeDealAssociationListCall.html), [*creatives deal associations remove*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeDealAssociationRemoveCall.html), [*creatives get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeGetCall.html), [*creatives list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeListCall.html), [*creatives stop watching*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeStopWatchingCall.html), [*creatives update*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeUpdateCall.html), [*creatives watch*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeWatchCall.html), [*finalized proposals list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountFinalizedProposalListCall.html), [*products get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProductGetCall.html), [*products list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProductListCall.html), [*proposals accept*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalAcceptCall.html), [*proposals add note*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalAddNoteCall.html), [*proposals cancel negotiation*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalCancelNegotiationCall.html), [*proposals complete setup*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalCompleteSetupCall.html), [*proposals create*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalCreateCall.html), [*proposals get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalGetCall.html), [*proposals list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalListCall.html), [*proposals pause*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalPauseCall.html), [*proposals resume*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalResumeCall.html), [*proposals update*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalUpdateCall.html), [*publisher profiles get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountPublisherProfileGetCall.html) and [*publisher profiles list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountPublisherProfileListCall.html) + * [*clients create*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientCreateCall.html), [*clients get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientGetCall.html), [*clients invitations create*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientInvitationCreateCall.html), [*clients invitations get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientInvitationGetCall.html), [*clients invitations list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientInvitationListCall.html), [*clients list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientListCall.html), [*clients update*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientUpdateCall.html), [*clients users get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientUserGetCall.html), [*clients users list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientUserListCall.html), [*clients users update*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountClientUserUpdateCall.html), [*creatives create*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeCreateCall.html), [*creatives deal associations add*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeDealAssociationAddCall.html), [*creatives deal associations list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeDealAssociationListCall.html), [*creatives deal associations remove*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeDealAssociationRemoveCall.html), [*creatives get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeGetCall.html), [*creatives list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeListCall.html), [*creatives stop watching*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeStopWatchingCall.html), [*creatives update*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeUpdateCall.html), [*creatives watch*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountCreativeWatchCall.html), [*finalized proposals list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountFinalizedProposalListCall.html), [*products get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProductGetCall.html), [*products list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProductListCall.html), [*proposals accept*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalAcceptCall.html), [*proposals add note*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalAddNoteCall.html), [*proposals cancel negotiation*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalCancelNegotiationCall.html), [*proposals complete setup*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalCompleteSetupCall.html), [*proposals create*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalCreateCall.html), [*proposals get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalGetCall.html), [*proposals list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalListCall.html), [*proposals pause*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalPauseCall.html), [*proposals resume*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalResumeCall.html), [*proposals update*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountProposalUpdateCall.html), [*publisher profiles get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountPublisherProfileGetCall.html) and [*publisher profiles list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AccountPublisherProfileListCall.html) * bidders - * [*accounts filter sets bid metrics list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetBidMetricListCall.html), [*accounts filter sets bid response errors list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetBidResponseErrorListCall.html), [*accounts filter sets bid responses without bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetBidResponsesWithoutBidListCall.html), [*accounts filter sets create*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetCreateCall.html), [*accounts filter sets delete*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetDeleteCall.html), [*accounts filter sets filtered bid requests list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetFilteredBidRequestListCall.html), [*accounts filter sets filtered bids creatives list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetFilteredBidCreativeListCall.html), [*accounts filter sets filtered bids details list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetFilteredBidDetailListCall.html), [*accounts filter sets filtered bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetFilteredBidListCall.html), [*accounts filter sets get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetGetCall.html), [*accounts filter sets impression metrics list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetImpressionMetricListCall.html), [*accounts filter sets list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetListCall.html), [*accounts filter sets losing bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetLosingBidListCall.html), [*accounts filter sets non billable winning bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetNonBillableWinningBidListCall.html), [*filter sets bid metrics list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetBidMetricListCall.html), [*filter sets bid response errors list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetBidResponseErrorListCall.html), [*filter sets bid responses without bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetBidResponsesWithoutBidListCall.html), [*filter sets create*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetCreateCall.html), [*filter sets delete*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetDeleteCall.html), [*filter sets filtered bid requests list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetFilteredBidRequestListCall.html), [*filter sets filtered bids creatives list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetFilteredBidCreativeListCall.html), [*filter sets filtered bids details list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetFilteredBidDetailListCall.html), [*filter sets filtered bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetFilteredBidListCall.html), [*filter sets get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetGetCall.html), [*filter sets impression metrics list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetImpressionMetricListCall.html), [*filter sets list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetListCall.html), [*filter sets losing bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetLosingBidListCall.html) and [*filter sets non billable winning bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetNonBillableWinningBidListCall.html) + * [*accounts filter sets bid metrics list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetBidMetricListCall.html), [*accounts filter sets bid response errors list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetBidResponseErrorListCall.html), [*accounts filter sets bid responses without bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetBidResponsesWithoutBidListCall.html), [*accounts filter sets create*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetCreateCall.html), [*accounts filter sets delete*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetDeleteCall.html), [*accounts filter sets filtered bid requests list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetFilteredBidRequestListCall.html), [*accounts filter sets filtered bids creatives list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetFilteredBidCreativeListCall.html), [*accounts filter sets filtered bids details list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetFilteredBidDetailListCall.html), [*accounts filter sets filtered bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetFilteredBidListCall.html), [*accounts filter sets get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetGetCall.html), [*accounts filter sets impression metrics list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetImpressionMetricListCall.html), [*accounts filter sets list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetListCall.html), [*accounts filter sets losing bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetLosingBidListCall.html), [*accounts filter sets non billable winning bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderAccountFilterSetNonBillableWinningBidListCall.html), [*filter sets bid metrics list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetBidMetricListCall.html), [*filter sets bid response errors list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetBidResponseErrorListCall.html), [*filter sets bid responses without bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetBidResponsesWithoutBidListCall.html), [*filter sets create*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetCreateCall.html), [*filter sets delete*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetDeleteCall.html), [*filter sets filtered bid requests list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetFilteredBidRequestListCall.html), [*filter sets filtered bids creatives list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetFilteredBidCreativeListCall.html), [*filter sets filtered bids details list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetFilteredBidDetailListCall.html), [*filter sets filtered bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetFilteredBidListCall.html), [*filter sets get*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetGetCall.html), [*filter sets impression metrics list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetImpressionMetricListCall.html), [*filter sets list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetListCall.html), [*filter sets losing bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetLosingBidListCall.html) and [*filter sets non billable winning bids list*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.BidderFilterSetNonBillableWinningBidListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/struct.AdExchangeBuyerII.html)** +* **[Hub](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/struct.AdExchangeBuyerII.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -139,17 +139,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -159,29 +159,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.11+20190701/google_adexchangebuyer2_v2_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-adexchangebuyer2_v2_beta1/1.0.12+20190701/google_adexchangebuyer2_v2_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/adexchangebuyer2_v2_beta1/src/lib.rs b/gen/adexchangebuyer2_v2_beta1/src/lib.rs index 3703624cdb..47b3ad24f9 100644 --- a/gen/adexchangebuyer2_v2_beta1/src/lib.rs +++ b/gen/adexchangebuyer2_v2_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *AdExchangeBuyerII* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *adexchangebuyer2:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *AdExchangeBuyerII* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *adexchangebuyer2:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *AdExchangeBuyerII* *v2_beta1* API can be found at the //! [official documentation site](https://developers.google.com/authorized-buyers/apis/reference/rest/). @@ -338,7 +338,7 @@ impl<'a, C, A> AdExchangeBuyerII AdExchangeBuyerII { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://adexchangebuyer.googleapis.com/".to_string(), _root_url: "https://adexchangebuyer.googleapis.com/".to_string(), } @@ -352,7 +352,7 @@ impl<'a, C, A> AdExchangeBuyerII } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/adexchangeseller2-cli/Cargo.toml b/gen/adexchangeseller2-cli/Cargo.toml index 2c5910ba27..62b3f9e42b 100644 --- a/gen/adexchangeseller2-cli/Cargo.toml +++ b/gen/adexchangeseller2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-adexchangeseller2-cli" -version = "1.0.11+20171101" +version = "1.0.12+20171101" authors = ["Sebastian Thiel "] description = "A complete library to interact with Ad Exchange Seller (protocol v2.0)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adexchangeseller2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-adexchangeseller2] path = "../adexchangeseller2" -version = "1.0.11+20171101" +version = "1.0.12+20171101" diff --git a/gen/adexchangeseller2-cli/LICENSE.md b/gen/adexchangeseller2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/adexchangeseller2-cli/LICENSE.md +++ b/gen/adexchangeseller2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/adexchangeseller2-cli/README.md b/gen/adexchangeseller2-cli/README.md index bb630c3e13..74ab817937 100644 --- a/gen/adexchangeseller2-cli/README.md +++ b/gen/adexchangeseller2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Ad Exchange Seller* API at revision *20171101*. The CLI is at version *1.0.11*. +This documentation was generated from the *Ad Exchange Seller* API at revision *20171101*. The CLI is at version *1.0.12*. ```bash adexchangeseller2 [options] diff --git a/gen/adexchangeseller2-cli/mkdocs.yml b/gen/adexchangeseller2-cli/mkdocs.yml index a69c52297a..d8a7050eeb 100644 --- a/gen/adexchangeseller2-cli/mkdocs.yml +++ b/gen/adexchangeseller2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Ad Exchange Seller v1.0.11+20171101 +site_name: Ad Exchange Seller v1.0.12+20171101 site_url: http://byron.github.io/google-apis-rs/google-adexchangeseller2-cli site_description: A complete library to interact with Ad Exchange Seller (protocol v2.0) @@ -26,5 +26,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/adexchangeseller2-cli/src/cmn.rs b/gen/adexchangeseller2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/adexchangeseller2-cli/src/cmn.rs +++ b/gen/adexchangeseller2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/adexchangeseller2-cli/src/main.rs b/gen/adexchangeseller2-cli/src/main.rs index 02f49087f3..60e34fc102 100644 --- a/gen/adexchangeseller2-cli/src/main.rs +++ b/gen/adexchangeseller2-cli/src/main.rs @@ -1348,7 +1348,7 @@ fn main() { let mut app = App::new("adexchangeseller2") .author("Sebastian Thiel ") - .version("1.0.11+20171101") + .version("1.0.12+20171101") .about("Accesses the inventory of Ad Exchange seller users and generates reports.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_adexchangeseller2_cli") .arg(Arg::with_name("url") diff --git a/gen/adexchangeseller2/Cargo.toml b/gen/adexchangeseller2/Cargo.toml index cfa13ea37e..c02b08f978 100644 --- a/gen/adexchangeseller2/Cargo.toml +++ b/gen/adexchangeseller2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-adexchangeseller2" -version = "1.0.11+20171101" +version = "1.0.12+20171101" authors = ["Sebastian Thiel "] description = "A complete library to interact with Ad Exchange Seller (protocol v2.0)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adexchangeseller2" homepage = "https://developers.google.com/ad-exchange/seller-rest/" -documentation = "https://docs.rs/google-adexchangeseller2/1.0.11+20171101" +documentation = "https://docs.rs/google-adexchangeseller2/1.0.12+20171101" license = "MIT" keywords = ["adexchangeseller", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/adexchangeseller2/LICENSE.md b/gen/adexchangeseller2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/adexchangeseller2/LICENSE.md +++ b/gen/adexchangeseller2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/adexchangeseller2/README.md b/gen/adexchangeseller2/README.md index fd82fdd487..9c3ce4bb41 100644 --- a/gen/adexchangeseller2/README.md +++ b/gen/adexchangeseller2/README.md @@ -5,21 +5,21 @@ DO NOT EDIT ! --> The `google-adexchangeseller2` library allows access to all features of the *Google Ad Exchange Seller* service. -This documentation was generated from *Ad Exchange Seller* crate version *1.0.11+20171101*, where *20171101* is the exact revision of the *adexchangeseller:v2.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Ad Exchange Seller* crate version *1.0.12+20171101*, where *20171101* is the exact revision of the *adexchangeseller:v2.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Ad Exchange Seller* *v2* API can be found at the [official documentation site](https://developers.google.com/ad-exchange/seller-rest/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AdExchangeSeller.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AdExchangeSeller.html) ... -* [accounts](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.Account.html) - * [*adclients list*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountAdclientListCall.html), [*alerts list*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountAlertListCall.html), [*customchannels get*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountCustomchannelGetCall.html), [*customchannels list*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountCustomchannelListCall.html), [*get*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountGetCall.html), [*list*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountListCall.html), [*metadata dimensions list*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountMetadataDimensionListCall.html), [*metadata metrics list*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountMetadataMetricListCall.html), [*preferreddeals get*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountPreferreddealGetCall.html), [*preferreddeals list*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountPreferreddealListCall.html), [*reports generate*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountReportGenerateCall.html), [*reports saved generate*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountReportSavedGenerateCall.html), [*reports saved list*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountReportSavedListCall.html) and [*urlchannels list*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountUrlchannelListCall.html) +* [accounts](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.Account.html) + * [*adclients list*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountAdclientListCall.html), [*alerts list*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountAlertListCall.html), [*customchannels get*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountCustomchannelGetCall.html), [*customchannels list*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountCustomchannelListCall.html), [*get*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountGetCall.html), [*list*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountListCall.html), [*metadata dimensions list*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountMetadataDimensionListCall.html), [*metadata metrics list*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountMetadataMetricListCall.html), [*preferreddeals get*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountPreferreddealGetCall.html), [*preferreddeals list*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountPreferreddealListCall.html), [*reports generate*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountReportGenerateCall.html), [*reports saved generate*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountReportSavedGenerateCall.html), [*reports saved list*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountReportSavedListCall.html) and [*urlchannels list*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountUrlchannelListCall.html) Download supported by ... -* [*reports generate accounts*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AccountReportGenerateCall.html) +* [*reports generate accounts*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AccountReportGenerateCall.html) @@ -27,17 +27,17 @@ Download supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/struct.AdExchangeSeller.html)** +* **[Hub](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/struct.AdExchangeSeller.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.Part.html)** + * **[Parts](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -148,17 +148,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -168,29 +168,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-adexchangeseller2/1.0.11+20171101/google_adexchangeseller2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-adexchangeseller2/1.0.12+20171101/google_adexchangeseller2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/adexchangeseller2/src/lib.rs b/gen/adexchangeseller2/src/lib.rs index e0283edb7c..f8fb109d27 100644 --- a/gen/adexchangeseller2/src/lib.rs +++ b/gen/adexchangeseller2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Ad Exchange Seller* crate version *1.0.11+20171101*, where *20171101* is the exact revision of the *adexchangeseller:v2.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Ad Exchange Seller* crate version *1.0.12+20171101*, where *20171101* is the exact revision of the *adexchangeseller:v2.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Ad Exchange Seller* *v2* API can be found at the //! [official documentation site](https://developers.google.com/ad-exchange/seller-rest/). @@ -352,7 +352,7 @@ impl<'a, C, A> AdExchangeSeller AdExchangeSeller { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/adexchangeseller/v2.0/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -363,7 +363,7 @@ impl<'a, C, A> AdExchangeSeller } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/adexperiencereport1-cli/Cargo.toml b/gen/adexperiencereport1-cli/Cargo.toml index b2692521cd..aeb09aa03b 100644 --- a/gen/adexperiencereport1-cli/Cargo.toml +++ b/gen/adexperiencereport1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-adexperiencereport1-cli" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Ad Experience Report (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adexperiencereport1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-adexperiencereport1] path = "../adexperiencereport1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" diff --git a/gen/adexperiencereport1-cli/LICENSE.md b/gen/adexperiencereport1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/adexperiencereport1-cli/LICENSE.md +++ b/gen/adexperiencereport1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/adexperiencereport1-cli/README.md b/gen/adexperiencereport1-cli/README.md index ed1c12eb2b..f3080e2eb6 100644 --- a/gen/adexperiencereport1-cli/README.md +++ b/gen/adexperiencereport1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Ad Experience Report* API at revision *20190624*. The CLI is at version *1.0.11*. +This documentation was generated from the *Ad Experience Report* API at revision *20190624*. The CLI is at version *1.0.12*. ```bash adexperiencereport1 [options] diff --git a/gen/adexperiencereport1-cli/mkdocs.yml b/gen/adexperiencereport1-cli/mkdocs.yml index e7c44845a4..0192c37c32 100644 --- a/gen/adexperiencereport1-cli/mkdocs.yml +++ b/gen/adexperiencereport1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Ad Experience Report v1.0.11+20190624 +site_name: Ad Experience Report v1.0.12+20190624 site_url: http://byron.github.io/google-apis-rs/google-adexperiencereport1-cli site_description: A complete library to interact with Ad Experience Report (protocol v1) @@ -14,5 +14,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/adexperiencereport1-cli/src/cmn.rs b/gen/adexperiencereport1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/adexperiencereport1-cli/src/cmn.rs +++ b/gen/adexperiencereport1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/adexperiencereport1-cli/src/main.rs b/gen/adexperiencereport1-cli/src/main.rs index 597a4f3e2b..c6ea5f4ea1 100644 --- a/gen/adexperiencereport1-cli/src/main.rs +++ b/gen/adexperiencereport1-cli/src/main.rs @@ -316,7 +316,7 @@ fn main() { let mut app = App::new("adexperiencereport1") .author("Sebastian Thiel ") - .version("1.0.11+20190624") + .version("1.0.12+20190624") .about("Views Ad Experience Report data, and gets a list of sites that have a significant number of annoying ads.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_adexperiencereport1_cli") .arg(Arg::with_name("url") diff --git a/gen/adexperiencereport1/Cargo.toml b/gen/adexperiencereport1/Cargo.toml index f80b8d002e..dc4f591d5b 100644 --- a/gen/adexperiencereport1/Cargo.toml +++ b/gen/adexperiencereport1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-adexperiencereport1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Ad Experience Report (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adexperiencereport1" homepage = "https://developers.google.com/ad-experience-report/" -documentation = "https://docs.rs/google-adexperiencereport1/1.0.11+20190624" +documentation = "https://docs.rs/google-adexperiencereport1/1.0.12+20190624" license = "MIT" keywords = ["adexperiencereport", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/adexperiencereport1/LICENSE.md b/gen/adexperiencereport1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/adexperiencereport1/LICENSE.md +++ b/gen/adexperiencereport1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/adexperiencereport1/README.md b/gen/adexperiencereport1/README.md index 6b8faae26c..ca5a36e451 100644 --- a/gen/adexperiencereport1/README.md +++ b/gen/adexperiencereport1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-adexperiencereport1` library allows access to all features of the *Google Ad Experience Report* service. -This documentation was generated from *Ad Experience Report* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *adexperiencereport:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Ad Experience Report* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *adexperiencereport:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Ad Experience Report* *v1* API can be found at the [official documentation site](https://developers.google.com/ad-experience-report/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/struct.AdExperienceReport.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/struct.AdExperienceReport.html) ... * sites - * [*get*](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/struct.SiteGetCall.html) + * [*get*](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/struct.SiteGetCall.html) * violating sites - * [*list*](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/struct.ViolatingSiteListCall.html) + * [*list*](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/struct.ViolatingSiteListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/struct.AdExperienceReport.html)** +* **[Hub](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/struct.AdExperienceReport.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.Part.html)** + * **[Parts](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -126,17 +126,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -146,29 +146,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-adexperiencereport1/1.0.11+20190624/google_adexperiencereport1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-adexperiencereport1/1.0.12+20190624/google_adexperiencereport1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/adexperiencereport1/src/lib.rs b/gen/adexperiencereport1/src/lib.rs index 19407c0176..b504d4a26e 100644 --- a/gen/adexperiencereport1/src/lib.rs +++ b/gen/adexperiencereport1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Ad Experience Report* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *adexperiencereport:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Ad Experience Report* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *adexperiencereport:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Ad Experience Report* *v1* API can be found at the //! [official documentation site](https://developers.google.com/ad-experience-report/). @@ -319,7 +319,7 @@ impl<'a, C, A> AdExperienceReport AdExperienceReport { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://adexperiencereport.googleapis.com/".to_string(), _root_url: "https://adexperiencereport.googleapis.com/".to_string(), } @@ -333,7 +333,7 @@ impl<'a, C, A> AdExperienceReport } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/admin1_directory-cli/Cargo.toml b/gen/admin1_directory-cli/Cargo.toml index 530edf6281..0663aaa3cc 100644 --- a/gen/admin1_directory-cli/Cargo.toml +++ b/gen/admin1_directory-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-admin1_directory-cli" -version = "1.0.11+20190214" +version = "1.0.12+20190214" authors = ["Sebastian Thiel "] description = "A complete library to interact with directory (protocol directory_v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/admin1_directory-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-admin1_directory] path = "../admin1_directory" -version = "1.0.11+20190214" +version = "1.0.12+20190214" diff --git a/gen/admin1_directory-cli/LICENSE.md b/gen/admin1_directory-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/admin1_directory-cli/LICENSE.md +++ b/gen/admin1_directory-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/admin1_directory-cli/README.md b/gen/admin1_directory-cli/README.md index c8c8d80abe..f341fadd75 100644 --- a/gen/admin1_directory-cli/README.md +++ b/gen/admin1_directory-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *directory* API at revision *20190214*. The CLI is at version *1.0.11*. +This documentation was generated from the *directory* API at revision *20190214*. The CLI is at version *1.0.12*. ```bash admin1-directory [options] diff --git a/gen/admin1_directory-cli/mkdocs.yml b/gen/admin1_directory-cli/mkdocs.yml index f001c14c5c..3b555ee38c 100644 --- a/gen/admin1_directory-cli/mkdocs.yml +++ b/gen/admin1_directory-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: directory v1.0.11+20190214 +site_name: directory v1.0.12+20190214 site_url: http://byron.github.io/google-apis-rs/google-admin1_directory-cli site_description: A complete library to interact with directory (protocol directory_v1) @@ -125,5 +125,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/admin1_directory-cli/src/cmn.rs b/gen/admin1_directory-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/admin1_directory-cli/src/cmn.rs +++ b/gen/admin1_directory-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/admin1_directory-cli/src/main.rs b/gen/admin1_directory-cli/src/main.rs index c9cebef163..c18fe11515 100644 --- a/gen/admin1_directory-cli/src/main.rs +++ b/gen/admin1_directory-cli/src/main.rs @@ -11566,7 +11566,7 @@ fn main() { let mut app = App::new("admin1-directory") .author("Sebastian Thiel ") - .version("1.0.11+20190214") + .version("1.0.12+20190214") .about("Manages enterprise resources such as users and groups, administrative notifications, security features, and more.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_admin1_directory_cli") .arg(Arg::with_name("url") diff --git a/gen/admin1_directory/Cargo.toml b/gen/admin1_directory/Cargo.toml index 92c159c2f9..6813a626e9 100644 --- a/gen/admin1_directory/Cargo.toml +++ b/gen/admin1_directory/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-admin1_directory" -version = "1.0.11+20190214" +version = "1.0.12+20190214" authors = ["Sebastian Thiel "] description = "A complete library to interact with directory (protocol directory_v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/admin1_directory" homepage = "https://developers.google.com/admin-sdk/directory/" -documentation = "https://docs.rs/google-admin1_directory/1.0.11+20190214" +documentation = "https://docs.rs/google-admin1_directory/1.0.12+20190214" license = "MIT" keywords = ["admin", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/admin1_directory/LICENSE.md b/gen/admin1_directory/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/admin1_directory/LICENSE.md +++ b/gen/admin1_directory/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/admin1_directory/README.md b/gen/admin1_directory/README.md index 0635f66023..8ef03667ec 100644 --- a/gen/admin1_directory/README.md +++ b/gen/admin1_directory/README.md @@ -5,63 +5,63 @@ DO NOT EDIT ! --> The `google-admin1_directory` library allows access to all features of the *Google directory* service. -This documentation was generated from *directory* crate version *1.0.11+20190214*, where *20190214* is the exact revision of the *admin:directory_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *directory* crate version *1.0.12+20190214*, where *20190214* is the exact revision of the *admin:directory_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *directory* *v1_directory* API can be found at the [official documentation site](https://developers.google.com/admin-sdk/directory/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.Directory.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.Directory.html) ... -* [asps](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.Asp.html) - * [*delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.AspDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.AspGetCall.html) and [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.AspListCall.html) -* [channels](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.Channel.html) - * [*stop*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ChannelStopCall.html) +* [asps](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.Asp.html) + * [*delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.AspDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.AspGetCall.html) and [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.AspListCall.html) +* [channels](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.Channel.html) + * [*stop*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ChannelStopCall.html) * chromeosdevices - * [*action*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ChromeosdeviceActionCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ChromeosdeviceGetCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ChromeosdeviceListCall.html), [*move devices to ou*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ChromeosdeviceMoveDevicesToOuCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ChromeosdevicePatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ChromeosdeviceUpdateCall.html) -* [customers](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.Customer.html) - * [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.CustomerGetCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.CustomerPatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.CustomerUpdateCall.html) + * [*action*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ChromeosdeviceActionCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ChromeosdeviceGetCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ChromeosdeviceListCall.html), [*move devices to ou*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ChromeosdeviceMoveDevicesToOuCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ChromeosdevicePatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ChromeosdeviceUpdateCall.html) +* [customers](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.Customer.html) + * [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.CustomerGetCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.CustomerPatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.CustomerUpdateCall.html) * domain aliases - * [*delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.DomainAliaseDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.DomainAliaseGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.DomainAliaseInsertCall.html) and [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.DomainAliaseListCall.html) + * [*delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.DomainAliaseDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.DomainAliaseGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.DomainAliaseInsertCall.html) and [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.DomainAliaseListCall.html) * domains - * [*delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.DomainDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.DomainGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.DomainInsertCall.html) and [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.DomainListCall.html) -* [groups](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.Group.html) - * [*aliases delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.GroupAliaseDeleteCall.html), [*aliases insert*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.GroupAliaseInsertCall.html), [*aliases list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.GroupAliaseListCall.html), [*delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.GroupDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.GroupGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.GroupInsertCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.GroupListCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.GroupPatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.GroupUpdateCall.html) -* [members](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.Member.html) - * [*delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.MemberDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.MemberGetCall.html), [*has member*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.MemberHasMemberCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.MemberInsertCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.MemberListCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.MemberPatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.MemberUpdateCall.html) + * [*delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.DomainDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.DomainGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.DomainInsertCall.html) and [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.DomainListCall.html) +* [groups](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.Group.html) + * [*aliases delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.GroupAliaseDeleteCall.html), [*aliases insert*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.GroupAliaseInsertCall.html), [*aliases list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.GroupAliaseListCall.html), [*delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.GroupDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.GroupGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.GroupInsertCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.GroupListCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.GroupPatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.GroupUpdateCall.html) +* [members](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.Member.html) + * [*delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.MemberDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.MemberGetCall.html), [*has member*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.MemberHasMemberCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.MemberInsertCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.MemberListCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.MemberPatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.MemberUpdateCall.html) * mobiledevices - * [*action*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.MobiledeviceActionCall.html), [*delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.MobiledeviceDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.MobiledeviceGetCall.html) and [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.MobiledeviceListCall.html) -* [notifications](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.Notification.html) - * [*delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.NotificationDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.NotificationGetCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.NotificationListCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.NotificationPatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.NotificationUpdateCall.html) + * [*action*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.MobiledeviceActionCall.html), [*delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.MobiledeviceDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.MobiledeviceGetCall.html) and [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.MobiledeviceListCall.html) +* [notifications](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.Notification.html) + * [*delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.NotificationDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.NotificationGetCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.NotificationListCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.NotificationPatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.NotificationUpdateCall.html) * orgunits - * [*delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.OrgunitDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.OrgunitGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.OrgunitInsertCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.OrgunitListCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.OrgunitPatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.OrgunitUpdateCall.html) -* [privileges](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.Privilege.html) - * [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.PrivilegeListCall.html) + * [*delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.OrgunitDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.OrgunitGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.OrgunitInsertCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.OrgunitListCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.OrgunitPatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.OrgunitUpdateCall.html) +* [privileges](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.Privilege.html) + * [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.PrivilegeListCall.html) * resolved app access settings - * [*get settings*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResolvedAppAccessSettingGetSettingCall.html) and [*list trusted apps*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResolvedAppAccessSettingListTrustedAppCall.html) + * [*get settings*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResolvedAppAccessSettingGetSettingCall.html) and [*list trusted apps*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResolvedAppAccessSettingListTrustedAppCall.html) * resources - * [*buildings delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceBuildingDeleteCall.html), [*buildings get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceBuildingGetCall.html), [*buildings insert*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceBuildingInsertCall.html), [*buildings list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceBuildingListCall.html), [*buildings patch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceBuildingPatchCall.html), [*buildings update*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceBuildingUpdateCall.html), [*calendars delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceCalendarDeleteCall.html), [*calendars get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceCalendarGetCall.html), [*calendars insert*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceCalendarInsertCall.html), [*calendars list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceCalendarListCall.html), [*calendars patch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceCalendarPatchCall.html), [*calendars update*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceCalendarUpdateCall.html), [*features delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceFeatureDeleteCall.html), [*features get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceFeatureGetCall.html), [*features insert*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceFeatureInsertCall.html), [*features list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceFeatureListCall.html), [*features patch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceFeaturePatchCall.html), [*features rename*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceFeatureRenameCall.html) and [*features update*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.ResourceFeatureUpdateCall.html) -* [role assignments](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.RoleAssignment.html) - * [*delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.RoleAssignmentDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.RoleAssignmentGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.RoleAssignmentInsertCall.html) and [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.RoleAssignmentListCall.html) -* [roles](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.Role.html) - * [*delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.RoleDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.RoleGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.RoleInsertCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.RoleListCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.RolePatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.RoleUpdateCall.html) -* [schemas](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.Schema.html) - * [*delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.SchemaDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.SchemaGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.SchemaInsertCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.SchemaListCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.SchemaPatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.SchemaUpdateCall.html) -* [tokens](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.Token.html) - * [*delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.TokenDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.TokenGetCall.html) and [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.TokenListCall.html) -* [users](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.User.html) - * [*aliases delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserAliaseDeleteCall.html), [*aliases insert*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserAliaseInsertCall.html), [*aliases list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserAliaseListCall.html), [*aliases watch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserAliaseWatchCall.html), [*delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserInsertCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserListCall.html), [*make admin*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserMakeAdminCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserPatchCall.html), [*photos delete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserPhotoDeleteCall.html), [*photos get*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserPhotoGetCall.html), [*photos patch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserPhotoPatchCall.html), [*photos update*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserPhotoUpdateCall.html), [*undelete*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserUndeleteCall.html), [*update*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserUpdateCall.html) and [*watch*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserWatchCall.html) -* [verification codes](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.VerificationCode.html) - * [*generate*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.VerificationCodeGenerateCall.html), [*invalidate*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.VerificationCodeInvalidateCall.html) and [*list*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.VerificationCodeListCall.html) + * [*buildings delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceBuildingDeleteCall.html), [*buildings get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceBuildingGetCall.html), [*buildings insert*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceBuildingInsertCall.html), [*buildings list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceBuildingListCall.html), [*buildings patch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceBuildingPatchCall.html), [*buildings update*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceBuildingUpdateCall.html), [*calendars delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceCalendarDeleteCall.html), [*calendars get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceCalendarGetCall.html), [*calendars insert*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceCalendarInsertCall.html), [*calendars list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceCalendarListCall.html), [*calendars patch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceCalendarPatchCall.html), [*calendars update*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceCalendarUpdateCall.html), [*features delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceFeatureDeleteCall.html), [*features get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceFeatureGetCall.html), [*features insert*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceFeatureInsertCall.html), [*features list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceFeatureListCall.html), [*features patch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceFeaturePatchCall.html), [*features rename*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceFeatureRenameCall.html) and [*features update*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.ResourceFeatureUpdateCall.html) +* [role assignments](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.RoleAssignment.html) + * [*delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.RoleAssignmentDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.RoleAssignmentGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.RoleAssignmentInsertCall.html) and [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.RoleAssignmentListCall.html) +* [roles](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.Role.html) + * [*delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.RoleDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.RoleGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.RoleInsertCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.RoleListCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.RolePatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.RoleUpdateCall.html) +* [schemas](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.Schema.html) + * [*delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.SchemaDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.SchemaGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.SchemaInsertCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.SchemaListCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.SchemaPatchCall.html) and [*update*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.SchemaUpdateCall.html) +* [tokens](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.Token.html) + * [*delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.TokenDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.TokenGetCall.html) and [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.TokenListCall.html) +* [users](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.User.html) + * [*aliases delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserAliaseDeleteCall.html), [*aliases insert*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserAliaseInsertCall.html), [*aliases list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserAliaseListCall.html), [*aliases watch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserAliaseWatchCall.html), [*delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserDeleteCall.html), [*get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserGetCall.html), [*insert*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserInsertCall.html), [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserListCall.html), [*make admin*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserMakeAdminCall.html), [*patch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserPatchCall.html), [*photos delete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserPhotoDeleteCall.html), [*photos get*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserPhotoGetCall.html), [*photos patch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserPhotoPatchCall.html), [*photos update*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserPhotoUpdateCall.html), [*undelete*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserUndeleteCall.html), [*update*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserUpdateCall.html) and [*watch*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserWatchCall.html) +* [verification codes](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.VerificationCode.html) + * [*generate*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.VerificationCodeGenerateCall.html), [*invalidate*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.VerificationCodeInvalidateCall.html) and [*list*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.VerificationCodeListCall.html) Subscription supported by ... -* [*list users*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserListCall.html) -* [*aliases watch users*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserAliaseWatchCall.html) -* [*watch users*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserWatchCall.html) -* [*aliases list users*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.UserAliaseListCall.html) -* [*aliases list groups*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.GroupAliaseListCall.html) +* [*list users*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserListCall.html) +* [*aliases watch users*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserAliaseWatchCall.html) +* [*watch users*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserWatchCall.html) +* [*aliases list users*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.UserAliaseListCall.html) +* [*aliases list groups*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.GroupAliaseListCall.html) @@ -69,17 +69,17 @@ Subscription supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/struct.Directory.html)** +* **[Hub](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/struct.Directory.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.Part.html)** + * **[Parts](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -204,17 +204,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -224,29 +224,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.RequestValue.html) and -[decodable](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.RequestValue.html) and +[decodable](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-admin1_directory/1.0.11+20190214/google_admin1_directory/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-admin1_directory/1.0.12+20190214/google_admin1_directory/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/admin1_directory/src/lib.rs b/gen/admin1_directory/src/lib.rs index 12466a9c3f..28b9fbc255 100644 --- a/gen/admin1_directory/src/lib.rs +++ b/gen/admin1_directory/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *directory* crate version *1.0.11+20190214*, where *20190214* is the exact revision of the *admin:directory_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *directory* crate version *1.0.12+20190214*, where *20190214* is the exact revision of the *admin:directory_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *directory* *v1_directory* API can be found at the //! [official documentation site](https://developers.google.com/admin-sdk/directory/). @@ -519,7 +519,7 @@ impl<'a, C, A> Directory Directory { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/admin/directory/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -587,7 +587,7 @@ impl<'a, C, A> Directory } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/admin1_reports-cli/Cargo.toml b/gen/admin1_reports-cli/Cargo.toml index 5f759c8dae..7215dfb8ba 100644 --- a/gen/admin1_reports-cli/Cargo.toml +++ b/gen/admin1_reports-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-admin1_reports-cli" -version = "1.0.11+20190521" +version = "1.0.12+20190521" authors = ["Sebastian Thiel "] description = "A complete library to interact with reports (protocol reports_v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/admin1_reports-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-admin1_reports] path = "../admin1_reports" -version = "1.0.11+20190521" +version = "1.0.12+20190521" diff --git a/gen/admin1_reports-cli/LICENSE.md b/gen/admin1_reports-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/admin1_reports-cli/LICENSE.md +++ b/gen/admin1_reports-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/admin1_reports-cli/README.md b/gen/admin1_reports-cli/README.md index a40f1d443b..10bc83acf3 100644 --- a/gen/admin1_reports-cli/README.md +++ b/gen/admin1_reports-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *reports* API at revision *20190521*. The CLI is at version *1.0.11*. +This documentation was generated from the *reports* API at revision *20190521*. The CLI is at version *1.0.12*. ```bash admin1-reports [options] diff --git a/gen/admin1_reports-cli/mkdocs.yml b/gen/admin1_reports-cli/mkdocs.yml index ff3034b551..77772e2dcc 100644 --- a/gen/admin1_reports-cli/mkdocs.yml +++ b/gen/admin1_reports-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: reports v1.0.11+20190521 +site_name: reports v1.0.12+20190521 site_url: http://byron.github.io/google-apis-rs/google-admin1_reports-cli site_description: A complete library to interact with reports (protocol reports_v1) @@ -18,5 +18,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/admin1_reports-cli/src/cmn.rs b/gen/admin1_reports-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/admin1_reports-cli/src/cmn.rs +++ b/gen/admin1_reports-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/admin1_reports-cli/src/main.rs b/gen/admin1_reports-cli/src/main.rs index f4d1a6312f..dea1400519 100644 --- a/gen/admin1_reports-cli/src/main.rs +++ b/gen/admin1_reports-cli/src/main.rs @@ -861,7 +861,7 @@ fn main() { let mut app = App::new("admin1-reports") .author("Sebastian Thiel ") - .version("1.0.11+20190521") + .version("1.0.12+20190521") .about("Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_admin1_reports_cli") .arg(Arg::with_name("url") diff --git a/gen/admin1_reports/Cargo.toml b/gen/admin1_reports/Cargo.toml index 27df6d5f86..3ec0938ef6 100644 --- a/gen/admin1_reports/Cargo.toml +++ b/gen/admin1_reports/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-admin1_reports" -version = "1.0.11+20190521" +version = "1.0.12+20190521" authors = ["Sebastian Thiel "] description = "A complete library to interact with reports (protocol reports_v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/admin1_reports" homepage = "https://developers.google.com/admin-sdk/reports/" -documentation = "https://docs.rs/google-admin1_reports/1.0.11+20190521" +documentation = "https://docs.rs/google-admin1_reports/1.0.12+20190521" license = "MIT" keywords = ["admin", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/admin1_reports/LICENSE.md b/gen/admin1_reports/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/admin1_reports/LICENSE.md +++ b/gen/admin1_reports/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/admin1_reports/README.md b/gen/admin1_reports/README.md index ab80c4483b..a7c263a72a 100644 --- a/gen/admin1_reports/README.md +++ b/gen/admin1_reports/README.md @@ -5,30 +5,30 @@ DO NOT EDIT ! --> The `google-admin1_reports` library allows access to all features of the *Google reports* service. -This documentation was generated from *reports* crate version *1.0.11+20190521*, where *20190521* is the exact revision of the *admin:reports_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *reports* crate version *1.0.12+20190521*, where *20190521* is the exact revision of the *admin:reports_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *reports* *v1_reports* API can be found at the [official documentation site](https://developers.google.com/admin-sdk/reports/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/struct.Reports.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/struct.Reports.html) ... -* [activities](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/struct.Activity.html) - * [*list*](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/struct.ActivityListCall.html) and [*watch*](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/struct.ActivityWatchCall.html) -* [channels](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/struct.Channel.html) - * [*stop*](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/struct.ChannelStopCall.html) +* [activities](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/struct.Activity.html) + * [*list*](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/struct.ActivityListCall.html) and [*watch*](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/struct.ActivityWatchCall.html) +* [channels](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/struct.Channel.html) + * [*stop*](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/struct.ChannelStopCall.html) * customer usage reports - * [*get*](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/struct.CustomerUsageReportGetCall.html) + * [*get*](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/struct.CustomerUsageReportGetCall.html) * entity usage reports - * [*get*](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/struct.EntityUsageReportGetCall.html) + * [*get*](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/struct.EntityUsageReportGetCall.html) * user usage report - * [*get*](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/struct.UserUsageReportGetCall.html) + * [*get*](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/struct.UserUsageReportGetCall.html) Subscription supported by ... -* [*list activities*](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/struct.ActivityListCall.html) -* [*watch activities*](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/struct.ActivityWatchCall.html) +* [*list activities*](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/struct.ActivityListCall.html) +* [*watch activities*](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/struct.ActivityWatchCall.html) @@ -36,17 +36,17 @@ Subscription supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/struct.Reports.html)** +* **[Hub](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/struct.Reports.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.Part.html)** + * **[Parts](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -145,17 +145,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -165,29 +165,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.RequestValue.html) and -[decodable](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.RequestValue.html) and +[decodable](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-admin1_reports/1.0.11+20190521/google_admin1_reports/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-admin1_reports/1.0.12+20190521/google_admin1_reports/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/admin1_reports/src/lib.rs b/gen/admin1_reports/src/lib.rs index 45df78f69c..fae3aeedb4 100644 --- a/gen/admin1_reports/src/lib.rs +++ b/gen/admin1_reports/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *reports* crate version *1.0.11+20190521*, where *20190521* is the exact revision of the *admin:reports_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *reports* crate version *1.0.12+20190521*, where *20190521* is the exact revision of the *admin:reports_v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *reports* *v1_reports* API can be found at the //! [official documentation site](https://developers.google.com/admin-sdk/reports/). @@ -348,7 +348,7 @@ impl<'a, C, A> Reports Reports { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/admin/reports/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -371,7 +371,7 @@ impl<'a, C, A> Reports } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/adsense1d4-cli/Cargo.toml b/gen/adsense1d4-cli/Cargo.toml index c65cbd65c8..bd3218a0ef 100644 --- a/gen/adsense1d4-cli/Cargo.toml +++ b/gen/adsense1d4-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-adsense1d4-cli" -version = "1.0.11+20190703" +version = "1.0.12+20190703" authors = ["Sebastian Thiel "] description = "A complete library to interact with AdSense (protocol v1.4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adsense1d4-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-adsense1d4] path = "../adsense1d4" -version = "1.0.11+20190703" +version = "1.0.12+20190703" diff --git a/gen/adsense1d4-cli/LICENSE.md b/gen/adsense1d4-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/adsense1d4-cli/LICENSE.md +++ b/gen/adsense1d4-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/adsense1d4-cli/README.md b/gen/adsense1d4-cli/README.md index 8e8976123f..51616d82e6 100644 --- a/gen/adsense1d4-cli/README.md +++ b/gen/adsense1d4-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *AdSense* API at revision *20190703*. The CLI is at version *1.0.11*. +This documentation was generated from the *AdSense* API at revision *20190703*. The CLI is at version *1.0.12*. ```bash adsense1d4 [options] diff --git a/gen/adsense1d4-cli/mkdocs.yml b/gen/adsense1d4-cli/mkdocs.yml index 61ca163821..484c52b0d0 100644 --- a/gen/adsense1d4-cli/mkdocs.yml +++ b/gen/adsense1d4-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: AdSense v1.0.11+20190703 +site_name: AdSense v1.0.12+20190703 site_url: http://byron.github.io/google-apis-rs/google-adsense1d4-cli site_description: A complete library to interact with AdSense (protocol v1.4) @@ -51,5 +51,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/adsense1d4-cli/src/cmn.rs b/gen/adsense1d4-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/adsense1d4-cli/src/cmn.rs +++ b/gen/adsense1d4-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/adsense1d4-cli/src/main.rs b/gen/adsense1d4-cli/src/main.rs index 134173132d..98d095b308 100644 --- a/gen/adsense1d4-cli/src/main.rs +++ b/gen/adsense1d4-cli/src/main.rs @@ -3564,7 +3564,7 @@ fn main() { let mut app = App::new("adsense1d4") .author("Sebastian Thiel ") - .version("1.0.11+20190703") + .version("1.0.12+20190703") .about("Accesses AdSense publishers' inventory and generates performance reports.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_adsense1d4_cli") .arg(Arg::with_name("url") diff --git a/gen/adsense1d4/Cargo.toml b/gen/adsense1d4/Cargo.toml index 818acc4c5a..d0c9acd084 100644 --- a/gen/adsense1d4/Cargo.toml +++ b/gen/adsense1d4/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-adsense1d4" -version = "1.0.11+20190703" +version = "1.0.12+20190703" authors = ["Sebastian Thiel "] description = "A complete library to interact with AdSense (protocol v1.4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adsense1d4" homepage = "https://developers.google.com/adsense/management/" -documentation = "https://docs.rs/google-adsense1d4/1.0.11+20190703" +documentation = "https://docs.rs/google-adsense1d4/1.0.12+20190703" license = "MIT" keywords = ["adsense", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/adsense1d4/LICENSE.md b/gen/adsense1d4/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/adsense1d4/LICENSE.md +++ b/gen/adsense1d4/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/adsense1d4/README.md b/gen/adsense1d4/README.md index 785aa3abc2..145061ad7c 100644 --- a/gen/adsense1d4/README.md +++ b/gen/adsense1d4/README.md @@ -5,40 +5,40 @@ DO NOT EDIT ! --> The `google-adsense1d4` library allows access to all features of the *Google AdSense* service. -This documentation was generated from *AdSense* crate version *1.0.11+20190703*, where *20190703* is the exact revision of the *adsense:v1.4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *AdSense* crate version *1.0.12+20190703*, where *20190703* is the exact revision of the *adsense:v1.4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *AdSense* *v1d4* API can be found at the [official documentation site](https://developers.google.com/adsense/management/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AdSense.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AdSense.html) ... -* [accounts](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.Account.html) - * [*adclients get ad code*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountAdclientGetAdCodeCall.html), [*adclients list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountAdclientListCall.html), [*adunits customchannels list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountAdunitCustomchannelListCall.html), [*adunits get*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountAdunitGetCall.html), [*adunits get ad code*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountAdunitGetAdCodeCall.html), [*adunits list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountAdunitListCall.html), [*alerts delete*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountAlertDeleteCall.html), [*alerts list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountAlertListCall.html), [*customchannels adunits list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountCustomchannelAdunitListCall.html), [*customchannels get*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountCustomchannelGetCall.html), [*customchannels list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountCustomchannelListCall.html), [*get*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountGetCall.html), [*list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountListCall.html), [*payments list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountPaymentListCall.html), [*reports generate*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountReportGenerateCall.html), [*reports saved generate*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountReportSavedGenerateCall.html), [*reports saved list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountReportSavedListCall.html), [*savedadstyles get*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountSavedadstyleGetCall.html), [*savedadstyles list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountSavedadstyleListCall.html) and [*urlchannels list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountUrlchannelListCall.html) +* [accounts](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.Account.html) + * [*adclients get ad code*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountAdclientGetAdCodeCall.html), [*adclients list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountAdclientListCall.html), [*adunits customchannels list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountAdunitCustomchannelListCall.html), [*adunits get*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountAdunitGetCall.html), [*adunits get ad code*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountAdunitGetAdCodeCall.html), [*adunits list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountAdunitListCall.html), [*alerts delete*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountAlertDeleteCall.html), [*alerts list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountAlertListCall.html), [*customchannels adunits list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountCustomchannelAdunitListCall.html), [*customchannels get*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountCustomchannelGetCall.html), [*customchannels list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountCustomchannelListCall.html), [*get*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountGetCall.html), [*list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountListCall.html), [*payments list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountPaymentListCall.html), [*reports generate*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountReportGenerateCall.html), [*reports saved generate*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountReportSavedGenerateCall.html), [*reports saved list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountReportSavedListCall.html), [*savedadstyles get*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountSavedadstyleGetCall.html), [*savedadstyles list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountSavedadstyleListCall.html) and [*urlchannels list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountUrlchannelListCall.html) * adclients - * [*list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AdclientListCall.html) + * [*list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AdclientListCall.html) * adunits - * [*customchannels list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AdunitCustomchannelListCall.html), [*get*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AdunitGetCall.html), [*get ad code*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AdunitGetAdCodeCall.html) and [*list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AdunitListCall.html) -* [alerts](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.Alert.html) - * [*delete*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AlertDeleteCall.html) and [*list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AlertListCall.html) + * [*customchannels list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AdunitCustomchannelListCall.html), [*get*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AdunitGetCall.html), [*get ad code*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AdunitGetAdCodeCall.html) and [*list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AdunitListCall.html) +* [alerts](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.Alert.html) + * [*delete*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AlertDeleteCall.html) and [*list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AlertListCall.html) * customchannels - * [*adunits list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.CustomchannelAdunitListCall.html), [*get*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.CustomchannelGetCall.html) and [*list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.CustomchannelListCall.html) -* [metadata](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.Metadata.html) - * [*dimensions list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.MetadataDimensionListCall.html) and [*metrics list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.MetadataMetricListCall.html) -* [payments](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.Payment.html) - * [*list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.PaymentListCall.html) + * [*adunits list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.CustomchannelAdunitListCall.html), [*get*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.CustomchannelGetCall.html) and [*list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.CustomchannelListCall.html) +* [metadata](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.Metadata.html) + * [*dimensions list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.MetadataDimensionListCall.html) and [*metrics list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.MetadataMetricListCall.html) +* [payments](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.Payment.html) + * [*list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.PaymentListCall.html) * reports - * [*generate*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.ReportGenerateCall.html), [*saved generate*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.ReportSavedGenerateCall.html) and [*saved list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.ReportSavedListCall.html) + * [*generate*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.ReportGenerateCall.html), [*saved generate*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.ReportSavedGenerateCall.html) and [*saved list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.ReportSavedListCall.html) * savedadstyles - * [*get*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.SavedadstyleGetCall.html) and [*list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.SavedadstyleListCall.html) + * [*get*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.SavedadstyleGetCall.html) and [*list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.SavedadstyleListCall.html) * urlchannels - * [*list*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.UrlchannelListCall.html) + * [*list*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.UrlchannelListCall.html) Download supported by ... -* [*generate reports*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.ReportGenerateCall.html) -* [*reports generate accounts*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AccountReportGenerateCall.html) +* [*generate reports*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.ReportGenerateCall.html) +* [*reports generate accounts*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AccountReportGenerateCall.html) @@ -46,17 +46,17 @@ Download supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/struct.AdSense.html)** +* **[Hub](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/struct.AdSense.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.Part.html)** + * **[Parts](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -175,17 +175,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -195,29 +195,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.RequestValue.html) and -[decodable](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.RequestValue.html) and +[decodable](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-adsense1d4/1.0.11+20190703/google_adsense1d4/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-adsense1d4/1.0.12+20190703/google_adsense1d4/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/adsense1d4/src/lib.rs b/gen/adsense1d4/src/lib.rs index 8cabaddd4d..5bef7f7433 100644 --- a/gen/adsense1d4/src/lib.rs +++ b/gen/adsense1d4/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *AdSense* crate version *1.0.11+20190703*, where *20190703* is the exact revision of the *adsense:v1.4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *AdSense* crate version *1.0.12+20190703*, where *20190703* is the exact revision of the *adsense:v1.4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *AdSense* *v1d4* API can be found at the //! [official documentation site](https://developers.google.com/adsense/management/). @@ -381,7 +381,7 @@ impl<'a, C, A> AdSense AdSense { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/adsense/v1.4/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -419,7 +419,7 @@ impl<'a, C, A> AdSense } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/adsensehost4d1-cli/Cargo.toml b/gen/adsensehost4d1-cli/Cargo.toml index ac7739b3d6..13d2407037 100644 --- a/gen/adsensehost4d1-cli/Cargo.toml +++ b/gen/adsensehost4d1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-adsensehost4d1-cli" -version = "1.0.11+20190703" +version = "1.0.12+20190703" authors = ["Sebastian Thiel "] description = "A complete library to interact with AdSense Host (protocol v4.1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adsensehost4d1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-adsensehost4d1] path = "../adsensehost4d1" -version = "1.0.11+20190703" +version = "1.0.12+20190703" diff --git a/gen/adsensehost4d1-cli/LICENSE.md b/gen/adsensehost4d1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/adsensehost4d1-cli/LICENSE.md +++ b/gen/adsensehost4d1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/adsensehost4d1-cli/README.md b/gen/adsensehost4d1-cli/README.md index feaf5b9452..0c526ab1f8 100644 --- a/gen/adsensehost4d1-cli/README.md +++ b/gen/adsensehost4d1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *AdSense Host* API at revision *20190703*. The CLI is at version *1.0.11*. +This documentation was generated from the *AdSense Host* API at revision *20190703*. The CLI is at version *1.0.12*. ```bash adsensehost4d1 [options] diff --git a/gen/adsensehost4d1-cli/mkdocs.yml b/gen/adsensehost4d1-cli/mkdocs.yml index 654d777690..dba969525e 100644 --- a/gen/adsensehost4d1-cli/mkdocs.yml +++ b/gen/adsensehost4d1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: AdSense Host v1.0.11+20190703 +site_name: AdSense Host v1.0.12+20190703 site_url: http://byron.github.io/google-apis-rs/google-adsensehost4d1-cli site_description: A complete library to interact with AdSense Host (protocol v4.1) @@ -38,5 +38,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/adsensehost4d1-cli/src/cmn.rs b/gen/adsensehost4d1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/adsensehost4d1-cli/src/cmn.rs +++ b/gen/adsensehost4d1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/adsensehost4d1-cli/src/main.rs b/gen/adsensehost4d1-cli/src/main.rs index ab29d4b434..fb68d8db5a 100644 --- a/gen/adsensehost4d1-cli/src/main.rs +++ b/gen/adsensehost4d1-cli/src/main.rs @@ -2762,7 +2762,7 @@ fn main() { let mut app = App::new("adsensehost4d1") .author("Sebastian Thiel ") - .version("1.0.11+20190703") + .version("1.0.12+20190703") .about("Generates performance reports, generates ad codes, and provides publisher management capabilities for AdSense Hosts.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_adsensehost4d1_cli") .arg(Arg::with_name("url") diff --git a/gen/adsensehost4d1/Cargo.toml b/gen/adsensehost4d1/Cargo.toml index f9c021eb94..503efc1841 100644 --- a/gen/adsensehost4d1/Cargo.toml +++ b/gen/adsensehost4d1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-adsensehost4d1" -version = "1.0.11+20190703" +version = "1.0.12+20190703" authors = ["Sebastian Thiel "] description = "A complete library to interact with AdSense Host (protocol v4.1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/adsensehost4d1" homepage = "https://developers.google.com/adsense/host/" -documentation = "https://docs.rs/google-adsensehost4d1/1.0.11+20190703" +documentation = "https://docs.rs/google-adsensehost4d1/1.0.12+20190703" license = "MIT" keywords = ["adsensehost", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/adsensehost4d1/LICENSE.md b/gen/adsensehost4d1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/adsensehost4d1/LICENSE.md +++ b/gen/adsensehost4d1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/adsensehost4d1/README.md b/gen/adsensehost4d1/README.md index 2c7e2beb53..e4cd3fa55d 100644 --- a/gen/adsensehost4d1/README.md +++ b/gen/adsensehost4d1/README.md @@ -5,26 +5,26 @@ DO NOT EDIT ! --> The `google-adsensehost4d1` library allows access to all features of the *Google AdSense Host* service. -This documentation was generated from *AdSense Host* crate version *1.0.11+20190703*, where *20190703* is the exact revision of the *adsensehost:v4.1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *AdSense Host* crate version *1.0.12+20190703*, where *20190703* is the exact revision of the *adsensehost:v4.1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *AdSense Host* *v4d1* API can be found at the [official documentation site](https://developers.google.com/adsense/host/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AdSenseHost.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AdSenseHost.html) ... -* [accounts](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.Account.html) - * [*adclients get*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AccountAdclientGetCall.html), [*adclients list*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AccountAdclientListCall.html), [*adunits delete*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AccountAdunitDeleteCall.html), [*adunits get*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AccountAdunitGetCall.html), [*adunits get ad code*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AccountAdunitGetAdCodeCall.html), [*adunits insert*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AccountAdunitInsertCall.html), [*adunits list*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AccountAdunitListCall.html), [*adunits patch*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AccountAdunitPatchCall.html), [*adunits update*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AccountAdunitUpdateCall.html), [*get*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AccountGetCall.html), [*list*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AccountListCall.html) and [*reports generate*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AccountReportGenerateCall.html) +* [accounts](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.Account.html) + * [*adclients get*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AccountAdclientGetCall.html), [*adclients list*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AccountAdclientListCall.html), [*adunits delete*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AccountAdunitDeleteCall.html), [*adunits get*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AccountAdunitGetCall.html), [*adunits get ad code*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AccountAdunitGetAdCodeCall.html), [*adunits insert*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AccountAdunitInsertCall.html), [*adunits list*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AccountAdunitListCall.html), [*adunits patch*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AccountAdunitPatchCall.html), [*adunits update*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AccountAdunitUpdateCall.html), [*get*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AccountGetCall.html), [*list*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AccountListCall.html) and [*reports generate*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AccountReportGenerateCall.html) * adclients - * [*get*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AdclientGetCall.html) and [*list*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AdclientListCall.html) + * [*get*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AdclientGetCall.html) and [*list*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AdclientListCall.html) * associationsessions - * [*start*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AssociationsessionStartCall.html) and [*verify*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AssociationsessionVerifyCall.html) + * [*start*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AssociationsessionStartCall.html) and [*verify*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AssociationsessionVerifyCall.html) * customchannels - * [*delete*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.CustomchannelDeleteCall.html), [*get*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.CustomchannelGetCall.html), [*insert*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.CustomchannelInsertCall.html), [*list*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.CustomchannelListCall.html), [*patch*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.CustomchannelPatchCall.html) and [*update*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.CustomchannelUpdateCall.html) -* [reports](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.Report.html) - * [*generate*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.ReportGenerateCall.html) + * [*delete*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.CustomchannelDeleteCall.html), [*get*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.CustomchannelGetCall.html), [*insert*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.CustomchannelInsertCall.html), [*list*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.CustomchannelListCall.html), [*patch*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.CustomchannelPatchCall.html) and [*update*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.CustomchannelUpdateCall.html) +* [reports](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.Report.html) + * [*generate*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.ReportGenerateCall.html) * urlchannels - * [*delete*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.UrlchannelDeleteCall.html), [*insert*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.UrlchannelInsertCall.html) and [*list*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.UrlchannelListCall.html) + * [*delete*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.UrlchannelDeleteCall.html), [*insert*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.UrlchannelInsertCall.html) and [*list*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.UrlchannelListCall.html) @@ -33,17 +33,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/struct.AdSenseHost.html)** +* **[Hub](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/struct.AdSenseHost.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.Part.html)** + * **[Parts](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -152,17 +152,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -172,29 +172,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-adsensehost4d1/1.0.11+20190703/google_adsensehost4d1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-adsensehost4d1/1.0.12+20190703/google_adsensehost4d1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/adsensehost4d1/src/lib.rs b/gen/adsensehost4d1/src/lib.rs index 2a2767f59b..5285e00b15 100644 --- a/gen/adsensehost4d1/src/lib.rs +++ b/gen/adsensehost4d1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *AdSense Host* crate version *1.0.11+20190703*, where *20190703* is the exact revision of the *adsensehost:v4.1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *AdSense Host* crate version *1.0.12+20190703*, where *20190703* is the exact revision of the *adsensehost:v4.1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *AdSense Host* *v4d1* API can be found at the //! [official documentation site](https://developers.google.com/adsense/host/). @@ -352,7 +352,7 @@ impl<'a, C, A> AdSenseHost AdSenseHost { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/adsensehost/v4.1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -378,7 +378,7 @@ impl<'a, C, A> AdSenseHost } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/alertcenter1_beta1-cli/Cargo.toml b/gen/alertcenter1_beta1-cli/Cargo.toml index 5255657bca..9651e52a98 100644 --- a/gen/alertcenter1_beta1-cli/Cargo.toml +++ b/gen/alertcenter1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-alertcenter1_beta1-cli" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with AlertCenter (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/alertcenter1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-alertcenter1_beta1] path = "../alertcenter1_beta1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" diff --git a/gen/alertcenter1_beta1-cli/LICENSE.md b/gen/alertcenter1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/alertcenter1_beta1-cli/LICENSE.md +++ b/gen/alertcenter1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/alertcenter1_beta1-cli/README.md b/gen/alertcenter1_beta1-cli/README.md index 66dbbe1c1c..2310778caa 100644 --- a/gen/alertcenter1_beta1-cli/README.md +++ b/gen/alertcenter1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *AlertCenter* API at revision *20190628*. The CLI is at version *1.0.11*. +This documentation was generated from the *AlertCenter* API at revision *20190628*. The CLI is at version *1.0.12*. ```bash alertcenter1-beta1 [options] diff --git a/gen/alertcenter1_beta1-cli/mkdocs.yml b/gen/alertcenter1_beta1-cli/mkdocs.yml index a2b7d59edf..6bbfce4092 100644 --- a/gen/alertcenter1_beta1-cli/mkdocs.yml +++ b/gen/alertcenter1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: AlertCenter v1.0.11+20190628 +site_name: AlertCenter v1.0.12+20190628 site_url: http://byron.github.io/google-apis-rs/google-alertcenter1_beta1-cli site_description: A complete library to interact with AlertCenter (protocol v1beta1) @@ -20,5 +20,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/alertcenter1_beta1-cli/src/cmn.rs b/gen/alertcenter1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/alertcenter1_beta1-cli/src/cmn.rs +++ b/gen/alertcenter1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/alertcenter1_beta1-cli/src/main.rs b/gen/alertcenter1_beta1-cli/src/main.rs index 28e182363f..1475c9ea9d 100644 --- a/gen/alertcenter1_beta1-cli/src/main.rs +++ b/gen/alertcenter1_beta1-cli/src/main.rs @@ -936,7 +936,7 @@ fn main() { let mut app = App::new("alertcenter1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190628") + .version("1.0.12+20190628") .about("Manages alerts on issues affecting your domain.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_alertcenter1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/alertcenter1_beta1/Cargo.toml b/gen/alertcenter1_beta1/Cargo.toml index e1278ab98d..6945aaa93d 100644 --- a/gen/alertcenter1_beta1/Cargo.toml +++ b/gen/alertcenter1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-alertcenter1_beta1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with AlertCenter (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/alertcenter1_beta1" homepage = "https://developers.google.com/admin-sdk/alertcenter/" -documentation = "https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628" +documentation = "https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628" license = "MIT" keywords = ["alertcenter", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/alertcenter1_beta1/LICENSE.md b/gen/alertcenter1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/alertcenter1_beta1/LICENSE.md +++ b/gen/alertcenter1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/alertcenter1_beta1/README.md b/gen/alertcenter1_beta1/README.md index 3c65c9dc12..24f689138e 100644 --- a/gen/alertcenter1_beta1/README.md +++ b/gen/alertcenter1_beta1/README.md @@ -5,21 +5,21 @@ DO NOT EDIT ! --> The `google-alertcenter1_beta1` library allows access to all features of the *Google AlertCenter* service. -This documentation was generated from *AlertCenter* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *alertcenter:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *AlertCenter* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *alertcenter:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *AlertCenter* *v1_beta1* API can be found at the [official documentation site](https://developers.google.com/admin-sdk/alertcenter/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/struct.AlertCenter.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/struct.AlertCenter.html) ... -* [alerts](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/struct.Alert.html) - * [*delete*](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/struct.AlertDeleteCall.html), [*feedback create*](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/struct.AlertFeedbackCreateCall.html), [*feedback list*](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/struct.AlertFeedbackListCall.html), [*get*](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/struct.AlertGetCall.html), [*list*](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/struct.AlertListCall.html) and [*undelete*](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/struct.AlertUndeleteCall.html) +* [alerts](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/struct.Alert.html) + * [*delete*](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/struct.AlertDeleteCall.html), [*feedback create*](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/struct.AlertFeedbackCreateCall.html), [*feedback list*](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/struct.AlertFeedbackListCall.html), [*get*](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/struct.AlertGetCall.html), [*list*](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/struct.AlertListCall.html) and [*undelete*](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/struct.AlertUndeleteCall.html) Other activities are ... -* [get settings](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/struct.MethodGetSettingCall.html) -* [update settings](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/struct.MethodUpdateSettingCall.html) +* [get settings](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/struct.MethodGetSettingCall.html) +* [update settings](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/struct.MethodUpdateSettingCall.html) @@ -27,17 +27,17 @@ Other activities are ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/struct.AlertCenter.html)** +* **[Hub](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/struct.AlertCenter.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -138,17 +138,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -158,29 +158,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-alertcenter1_beta1/1.0.11+20190628/google_alertcenter1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-alertcenter1_beta1/1.0.12+20190628/google_alertcenter1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/alertcenter1_beta1/src/lib.rs b/gen/alertcenter1_beta1/src/lib.rs index ce2b135e8f..8d6f3cbc84 100644 --- a/gen/alertcenter1_beta1/src/lib.rs +++ b/gen/alertcenter1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *AlertCenter* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *alertcenter:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *AlertCenter* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *alertcenter:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *AlertCenter* *v1_beta1* API can be found at the //! [official documentation site](https://developers.google.com/admin-sdk/alertcenter/). @@ -336,7 +336,7 @@ impl<'a, C, A> AlertCenter AlertCenter { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://alertcenter.googleapis.com/".to_string(), _root_url: "https://alertcenter.googleapis.com/".to_string(), } @@ -350,7 +350,7 @@ impl<'a, C, A> AlertCenter } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/analytics3-cli/Cargo.toml b/gen/analytics3-cli/Cargo.toml index a8957524d3..e5aa0ebff7 100644 --- a/gen/analytics3-cli/Cargo.toml +++ b/gen/analytics3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-analytics3-cli" -version = "1.0.11+20190604" +version = "1.0.12+20190604" authors = ["Sebastian Thiel "] description = "A complete library to interact with analytics (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/analytics3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-analytics3] path = "../analytics3" -version = "1.0.11+20190604" +version = "1.0.12+20190604" diff --git a/gen/analytics3-cli/LICENSE.md b/gen/analytics3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/analytics3-cli/LICENSE.md +++ b/gen/analytics3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/analytics3-cli/README.md b/gen/analytics3-cli/README.md index f98104392d..477a13bf26 100644 --- a/gen/analytics3-cli/README.md +++ b/gen/analytics3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *analytics* API at revision *20190604*. The CLI is at version *1.0.11*. +This documentation was generated from the *analytics* API at revision *20190604*. The CLI is at version *1.0.12*. ```bash analytics3 [options] diff --git a/gen/analytics3-cli/mkdocs.yml b/gen/analytics3-cli/mkdocs.yml index c129bb22e7..333b76368b 100644 --- a/gen/analytics3-cli/mkdocs.yml +++ b/gen/analytics3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: analytics v1.0.11+20190604 +site_name: analytics v1.0.12+20190604 site_url: http://byron.github.io/google-apis-rs/google-analytics3-cli site_description: A complete library to interact with analytics (protocol v3) @@ -100,5 +100,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/analytics3-cli/src/cmn.rs b/gen/analytics3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/analytics3-cli/src/cmn.rs +++ b/gen/analytics3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/analytics3-cli/src/main.rs b/gen/analytics3-cli/src/main.rs index 4c257f48fd..301dcef3a9 100644 --- a/gen/analytics3-cli/src/main.rs +++ b/gen/analytics3-cli/src/main.rs @@ -10383,7 +10383,7 @@ fn main() { let mut app = App::new("analytics3") .author("Sebastian Thiel ") - .version("1.0.11+20190604") + .version("1.0.12+20190604") .about("Views and manages your Google Analytics data.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_analytics3_cli") .arg(Arg::with_name("url") diff --git a/gen/analytics3/Cargo.toml b/gen/analytics3/Cargo.toml index f7daf8fe6c..e5d8e49f76 100644 --- a/gen/analytics3/Cargo.toml +++ b/gen/analytics3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-analytics3" -version = "1.0.11+20190604" +version = "1.0.12+20190604" authors = ["Sebastian Thiel "] description = "A complete library to interact with analytics (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/analytics3" homepage = "https://developers.google.com/analytics/" -documentation = "https://docs.rs/google-analytics3/1.0.11+20190604" +documentation = "https://docs.rs/google-analytics3/1.0.12+20190604" license = "MIT" keywords = ["analytics", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/analytics3/LICENSE.md b/gen/analytics3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/analytics3/LICENSE.md +++ b/gen/analytics3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/analytics3/README.md b/gen/analytics3/README.md index 1c67491803..2a7522c87c 100644 --- a/gen/analytics3/README.md +++ b/gen/analytics3/README.md @@ -5,29 +5,29 @@ DO NOT EDIT ! --> The `google-analytics3` library allows access to all features of the *Google analytics* service. -This documentation was generated from *analytics* crate version *1.0.11+20190604*, where *20190604* is the exact revision of the *analytics:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *analytics* crate version *1.0.12+20190604*, where *20190604* is the exact revision of the *analytics:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *analytics* *v3* API can be found at the [official documentation site](https://developers.google.com/analytics/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.Analytics.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.Analytics.html) ... * data - * [*ga get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.DataGaGetCall.html), [*mcf get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.DataMcfGetCall.html) and [*realtime get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.DataRealtimeGetCall.html) + * [*ga get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.DataGaGetCall.html), [*mcf get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.DataMcfGetCall.html) and [*realtime get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.DataRealtimeGetCall.html) * management - * [*account summaries list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementAccountSummaryListCall.html), [*account user links delete*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementAccountUserLinkDeleteCall.html), [*account user links insert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementAccountUserLinkInsertCall.html), [*account user links list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementAccountUserLinkListCall.html), [*account user links update*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementAccountUserLinkUpdateCall.html), [*accounts list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementAccountListCall.html), [*client id hash client id*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementClientIdHashClientIdCall.html), [*custom data sources list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementCustomDataSourceListCall.html), [*custom dimensions get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementCustomDimensionGetCall.html), [*custom dimensions insert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementCustomDimensionInsertCall.html), [*custom dimensions list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementCustomDimensionListCall.html), [*custom dimensions patch*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementCustomDimensionPatchCall.html), [*custom dimensions update*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementCustomDimensionUpdateCall.html), [*custom metrics get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementCustomMetricGetCall.html), [*custom metrics insert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementCustomMetricInsertCall.html), [*custom metrics list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementCustomMetricListCall.html), [*custom metrics patch*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementCustomMetricPatchCall.html), [*custom metrics update*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementCustomMetricUpdateCall.html), [*experiments delete*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementExperimentDeleteCall.html), [*experiments get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementExperimentGetCall.html), [*experiments insert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementExperimentInsertCall.html), [*experiments list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementExperimentListCall.html), [*experiments patch*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementExperimentPatchCall.html), [*experiments update*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementExperimentUpdateCall.html), [*filters delete*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementFilterDeleteCall.html), [*filters get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementFilterGetCall.html), [*filters insert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementFilterInsertCall.html), [*filters list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementFilterListCall.html), [*filters patch*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementFilterPatchCall.html), [*filters update*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementFilterUpdateCall.html), [*goals get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementGoalGetCall.html), [*goals insert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementGoalInsertCall.html), [*goals list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementGoalListCall.html), [*goals patch*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementGoalPatchCall.html), [*goals update*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementGoalUpdateCall.html), [*profile filter links delete*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileFilterLinkDeleteCall.html), [*profile filter links get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileFilterLinkGetCall.html), [*profile filter links insert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileFilterLinkInsertCall.html), [*profile filter links list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileFilterLinkListCall.html), [*profile filter links patch*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileFilterLinkPatchCall.html), [*profile filter links update*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileFilterLinkUpdateCall.html), [*profile user links delete*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileUserLinkDeleteCall.html), [*profile user links insert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileUserLinkInsertCall.html), [*profile user links list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileUserLinkListCall.html), [*profile user links update*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileUserLinkUpdateCall.html), [*profiles delete*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileDeleteCall.html), [*profiles get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileGetCall.html), [*profiles insert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileInsertCall.html), [*profiles list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileListCall.html), [*profiles patch*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfilePatchCall.html), [*profiles update*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementProfileUpdateCall.html), [*remarketing audience delete*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementRemarketingAudienceDeleteCall.html), [*remarketing audience get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementRemarketingAudienceGetCall.html), [*remarketing audience insert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementRemarketingAudienceInsertCall.html), [*remarketing audience list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementRemarketingAudienceListCall.html), [*remarketing audience patch*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementRemarketingAudiencePatchCall.html), [*remarketing audience update*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementRemarketingAudienceUpdateCall.html), [*segments list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementSegmentListCall.html), [*unsampled reports delete*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementUnsampledReportDeleteCall.html), [*unsampled reports get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementUnsampledReportGetCall.html), [*unsampled reports insert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementUnsampledReportInsertCall.html), [*unsampled reports list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementUnsampledReportListCall.html), [*uploads delete upload data*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementUploadDeleteUploadDataCall.html), [*uploads get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementUploadGetCall.html), [*uploads list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementUploadListCall.html), [*uploads upload data*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementUploadUploadDataCall.html), [*web property ad words links delete*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebPropertyAdWordsLinkDeleteCall.html), [*web property ad words links get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebPropertyAdWordsLinkGetCall.html), [*web property ad words links insert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebPropertyAdWordsLinkInsertCall.html), [*web property ad words links list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebPropertyAdWordsLinkListCall.html), [*web property ad words links patch*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebPropertyAdWordsLinkPatchCall.html), [*web property ad words links update*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebPropertyAdWordsLinkUpdateCall.html), [*webproperties get*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebpropertyGetCall.html), [*webproperties insert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebpropertyInsertCall.html), [*webproperties list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebpropertyListCall.html), [*webproperties patch*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebpropertyPatchCall.html), [*webproperties update*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebpropertyUpdateCall.html), [*webproperty user links delete*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebpropertyUserLinkDeleteCall.html), [*webproperty user links insert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebpropertyUserLinkInsertCall.html), [*webproperty user links list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebpropertyUserLinkListCall.html) and [*webproperty user links update*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementWebpropertyUserLinkUpdateCall.html) + * [*account summaries list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementAccountSummaryListCall.html), [*account user links delete*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementAccountUserLinkDeleteCall.html), [*account user links insert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementAccountUserLinkInsertCall.html), [*account user links list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementAccountUserLinkListCall.html), [*account user links update*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementAccountUserLinkUpdateCall.html), [*accounts list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementAccountListCall.html), [*client id hash client id*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementClientIdHashClientIdCall.html), [*custom data sources list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementCustomDataSourceListCall.html), [*custom dimensions get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementCustomDimensionGetCall.html), [*custom dimensions insert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementCustomDimensionInsertCall.html), [*custom dimensions list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementCustomDimensionListCall.html), [*custom dimensions patch*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementCustomDimensionPatchCall.html), [*custom dimensions update*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementCustomDimensionUpdateCall.html), [*custom metrics get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementCustomMetricGetCall.html), [*custom metrics insert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementCustomMetricInsertCall.html), [*custom metrics list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementCustomMetricListCall.html), [*custom metrics patch*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementCustomMetricPatchCall.html), [*custom metrics update*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementCustomMetricUpdateCall.html), [*experiments delete*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementExperimentDeleteCall.html), [*experiments get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementExperimentGetCall.html), [*experiments insert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementExperimentInsertCall.html), [*experiments list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementExperimentListCall.html), [*experiments patch*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementExperimentPatchCall.html), [*experiments update*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementExperimentUpdateCall.html), [*filters delete*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementFilterDeleteCall.html), [*filters get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementFilterGetCall.html), [*filters insert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementFilterInsertCall.html), [*filters list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementFilterListCall.html), [*filters patch*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementFilterPatchCall.html), [*filters update*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementFilterUpdateCall.html), [*goals get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementGoalGetCall.html), [*goals insert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementGoalInsertCall.html), [*goals list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementGoalListCall.html), [*goals patch*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementGoalPatchCall.html), [*goals update*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementGoalUpdateCall.html), [*profile filter links delete*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileFilterLinkDeleteCall.html), [*profile filter links get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileFilterLinkGetCall.html), [*profile filter links insert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileFilterLinkInsertCall.html), [*profile filter links list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileFilterLinkListCall.html), [*profile filter links patch*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileFilterLinkPatchCall.html), [*profile filter links update*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileFilterLinkUpdateCall.html), [*profile user links delete*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileUserLinkDeleteCall.html), [*profile user links insert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileUserLinkInsertCall.html), [*profile user links list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileUserLinkListCall.html), [*profile user links update*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileUserLinkUpdateCall.html), [*profiles delete*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileDeleteCall.html), [*profiles get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileGetCall.html), [*profiles insert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileInsertCall.html), [*profiles list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileListCall.html), [*profiles patch*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfilePatchCall.html), [*profiles update*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementProfileUpdateCall.html), [*remarketing audience delete*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementRemarketingAudienceDeleteCall.html), [*remarketing audience get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementRemarketingAudienceGetCall.html), [*remarketing audience insert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementRemarketingAudienceInsertCall.html), [*remarketing audience list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementRemarketingAudienceListCall.html), [*remarketing audience patch*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementRemarketingAudiencePatchCall.html), [*remarketing audience update*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementRemarketingAudienceUpdateCall.html), [*segments list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementSegmentListCall.html), [*unsampled reports delete*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementUnsampledReportDeleteCall.html), [*unsampled reports get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementUnsampledReportGetCall.html), [*unsampled reports insert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementUnsampledReportInsertCall.html), [*unsampled reports list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementUnsampledReportListCall.html), [*uploads delete upload data*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementUploadDeleteUploadDataCall.html), [*uploads get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementUploadGetCall.html), [*uploads list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementUploadListCall.html), [*uploads upload data*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementUploadUploadDataCall.html), [*web property ad words links delete*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebPropertyAdWordsLinkDeleteCall.html), [*web property ad words links get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebPropertyAdWordsLinkGetCall.html), [*web property ad words links insert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebPropertyAdWordsLinkInsertCall.html), [*web property ad words links list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebPropertyAdWordsLinkListCall.html), [*web property ad words links patch*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebPropertyAdWordsLinkPatchCall.html), [*web property ad words links update*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebPropertyAdWordsLinkUpdateCall.html), [*webproperties get*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebpropertyGetCall.html), [*webproperties insert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebpropertyInsertCall.html), [*webproperties list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebpropertyListCall.html), [*webproperties patch*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebpropertyPatchCall.html), [*webproperties update*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebpropertyUpdateCall.html), [*webproperty user links delete*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebpropertyUserLinkDeleteCall.html), [*webproperty user links insert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebpropertyUserLinkInsertCall.html), [*webproperty user links list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebpropertyUserLinkListCall.html) and [*webproperty user links update*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementWebpropertyUserLinkUpdateCall.html) * metadata - * [*columns list*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.MetadataColumnListCall.html) + * [*columns list*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.MetadataColumnListCall.html) * provisioning - * [*create account ticket*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ProvisioningCreateAccountTicketCall.html) and [*create account tree*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ProvisioningCreateAccountTreeCall.html) + * [*create account ticket*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ProvisioningCreateAccountTicketCall.html) and [*create account tree*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ProvisioningCreateAccountTreeCall.html) * user deletion - * [*user deletion request upsert*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.UserDeletionUserDeletionRequestUpsertCall.html) + * [*user deletion request upsert*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.UserDeletionUserDeletionRequestUpsertCall.html) Upload supported by ... -* [*uploads upload data management*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.ManagementUploadUploadDataCall.html) +* [*uploads upload data management*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.ManagementUploadUploadDataCall.html) @@ -35,17 +35,17 @@ Upload supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/struct.Analytics.html)** +* **[Hub](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/struct.Analytics.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.Part.html)** + * **[Parts](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -147,17 +147,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -167,29 +167,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-analytics3/1.0.11+20190604/google_analytics3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-analytics3/1.0.12+20190604/google_analytics3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/analytics3/src/lib.rs b/gen/analytics3/src/lib.rs index c5f63b1334..e3f03eb388 100644 --- a/gen/analytics3/src/lib.rs +++ b/gen/analytics3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *analytics* crate version *1.0.11+20190604*, where *20190604* is the exact revision of the *analytics:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *analytics* crate version *1.0.12+20190604*, where *20190604* is the exact revision of the *analytics:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *analytics* *v3* API can be found at the //! [official documentation site](https://developers.google.com/analytics/). @@ -370,7 +370,7 @@ impl<'a, C, A> Analytics Analytics { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/analytics/v3/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -393,7 +393,7 @@ impl<'a, C, A> Analytics } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/analyticsreporting4-cli/Cargo.toml b/gen/analyticsreporting4-cli/Cargo.toml index 024a70c6dc..ac6f685340 100644 --- a/gen/analyticsreporting4-cli/Cargo.toml +++ b/gen/analyticsreporting4-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-analyticsreporting4-cli" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with AnalyticsReporting (protocol v4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/analyticsreporting4-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-analyticsreporting4] path = "../analyticsreporting4" -version = "1.0.11+20190625" +version = "1.0.12+20190625" diff --git a/gen/analyticsreporting4-cli/LICENSE.md b/gen/analyticsreporting4-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/analyticsreporting4-cli/LICENSE.md +++ b/gen/analyticsreporting4-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/analyticsreporting4-cli/README.md b/gen/analyticsreporting4-cli/README.md index 54a832f10f..a1d87373dc 100644 --- a/gen/analyticsreporting4-cli/README.md +++ b/gen/analyticsreporting4-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *AnalyticsReporting* API at revision *20190625*. The CLI is at version *1.0.11*. +This documentation was generated from the *AnalyticsReporting* API at revision *20190625*. The CLI is at version *1.0.12*. ```bash analyticsreporting4 [options] diff --git a/gen/analyticsreporting4-cli/mkdocs.yml b/gen/analyticsreporting4-cli/mkdocs.yml index 52967ae090..1f16afc9f5 100644 --- a/gen/analyticsreporting4-cli/mkdocs.yml +++ b/gen/analyticsreporting4-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: AnalyticsReporting v1.0.11+20190625 +site_name: AnalyticsReporting v1.0.12+20190625 site_url: http://byron.github.io/google-apis-rs/google-analyticsreporting4-cli site_description: A complete library to interact with AnalyticsReporting (protocol v4) @@ -14,5 +14,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/analyticsreporting4-cli/src/cmn.rs b/gen/analyticsreporting4-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/analyticsreporting4-cli/src/cmn.rs +++ b/gen/analyticsreporting4-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/analyticsreporting4-cli/src/main.rs b/gen/analyticsreporting4-cli/src/main.rs index 6dbaf45d26..7dcb9b6764 100644 --- a/gen/analyticsreporting4-cli/src/main.rs +++ b/gen/analyticsreporting4-cli/src/main.rs @@ -389,7 +389,7 @@ fn main() { let mut app = App::new("analyticsreporting4") .author("Sebastian Thiel ") - .version("1.0.11+20190625") + .version("1.0.12+20190625") .about("Accesses Analytics report data.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_analyticsreporting4_cli") .arg(Arg::with_name("url") diff --git a/gen/analyticsreporting4/Cargo.toml b/gen/analyticsreporting4/Cargo.toml index 538b0a45ba..be39ca5b32 100644 --- a/gen/analyticsreporting4/Cargo.toml +++ b/gen/analyticsreporting4/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-analyticsreporting4" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with AnalyticsReporting (protocol v4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/analyticsreporting4" homepage = "https://developers.google.com/analytics/devguides/reporting/core/v4/" -documentation = "https://docs.rs/google-analyticsreporting4/1.0.11+20190625" +documentation = "https://docs.rs/google-analyticsreporting4/1.0.12+20190625" license = "MIT" keywords = ["analyticsreporting", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/analyticsreporting4/LICENSE.md b/gen/analyticsreporting4/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/analyticsreporting4/LICENSE.md +++ b/gen/analyticsreporting4/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/analyticsreporting4/README.md b/gen/analyticsreporting4/README.md index e20ee49f33..1c6fa8158a 100644 --- a/gen/analyticsreporting4/README.md +++ b/gen/analyticsreporting4/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-analyticsreporting4` library allows access to all features of the *Google AnalyticsReporting* service. -This documentation was generated from *AnalyticsReporting* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *analyticsreporting:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *AnalyticsReporting* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *analyticsreporting:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *AnalyticsReporting* *v4* API can be found at the [official documentation site](https://developers.google.com/analytics/devguides/reporting/core/v4/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/struct.AnalyticsReporting.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/struct.AnalyticsReporting.html) ... -* [reports](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/struct.Report.html) - * [*batch get*](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/struct.ReportBatchGetCall.html) +* [reports](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/struct.Report.html) + * [*batch get*](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/struct.ReportBatchGetCall.html) * user activity - * [*search*](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/struct.UserActivitySearchCall.html) + * [*search*](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/struct.UserActivitySearchCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/struct.AnalyticsReporting.html)** +* **[Hub](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/struct.AnalyticsReporting.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.Part.html)** + * **[Parts](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.RequestValue.html) and -[decodable](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.RequestValue.html) and +[decodable](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-analyticsreporting4/1.0.11+20190625/google_analyticsreporting4/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-analyticsreporting4/1.0.12+20190625/google_analyticsreporting4/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/analyticsreporting4/src/lib.rs b/gen/analyticsreporting4/src/lib.rs index afa7b9309f..6c6a1a1c08 100644 --- a/gen/analyticsreporting4/src/lib.rs +++ b/gen/analyticsreporting4/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *AnalyticsReporting* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *analyticsreporting:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *AnalyticsReporting* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *analyticsreporting:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *AnalyticsReporting* *v4* API can be found at the //! [official documentation site](https://developers.google.com/analytics/devguides/reporting/core/v4/). @@ -335,7 +335,7 @@ impl<'a, C, A> AnalyticsReporting AnalyticsReporting { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://analyticsreporting.googleapis.com/".to_string(), _root_url: "https://analyticsreporting.googleapis.com/".to_string(), } @@ -349,7 +349,7 @@ impl<'a, C, A> AnalyticsReporting } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/androiddeviceprovisioning1-cli/Cargo.toml b/gen/androiddeviceprovisioning1-cli/Cargo.toml index 05a59e143d..a8e2ab43fb 100644 --- a/gen/androiddeviceprovisioning1-cli/Cargo.toml +++ b/gen/androiddeviceprovisioning1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-androiddeviceprovisioning1-cli" -version = "1.0.11+20190622" +version = "1.0.12+20190622" authors = ["Sebastian Thiel "] description = "A complete library to interact with Android Provisioning Partner (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/androiddeviceprovisioning1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-androiddeviceprovisioning1] path = "../androiddeviceprovisioning1" -version = "1.0.11+20190622" +version = "1.0.12+20190622" diff --git a/gen/androiddeviceprovisioning1-cli/LICENSE.md b/gen/androiddeviceprovisioning1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/androiddeviceprovisioning1-cli/LICENSE.md +++ b/gen/androiddeviceprovisioning1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/androiddeviceprovisioning1-cli/README.md b/gen/androiddeviceprovisioning1-cli/README.md index 55fa4c9c11..23c2874bf0 100644 --- a/gen/androiddeviceprovisioning1-cli/README.md +++ b/gen/androiddeviceprovisioning1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Android Provisioning Partner* API at revision *20190622*. The CLI is at version *1.0.11*. +This documentation was generated from the *Android Provisioning Partner* API at revision *20190622*. The CLI is at version *1.0.12*. ```bash androiddeviceprovisioning1 [options] diff --git a/gen/androiddeviceprovisioning1-cli/mkdocs.yml b/gen/androiddeviceprovisioning1-cli/mkdocs.yml index 48c8419241..64c122dadc 100644 --- a/gen/androiddeviceprovisioning1-cli/mkdocs.yml +++ b/gen/androiddeviceprovisioning1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Android Provisioning Partner v1.0.11+20190622 +site_name: Android Provisioning Partner v1.0.12+20190622 site_url: http://byron.github.io/google-apis-rs/google-androiddeviceprovisioning1-cli site_description: A complete library to interact with Android Provisioning Partner (protocol v1) @@ -38,5 +38,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/androiddeviceprovisioning1-cli/src/cmn.rs b/gen/androiddeviceprovisioning1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/androiddeviceprovisioning1-cli/src/cmn.rs +++ b/gen/androiddeviceprovisioning1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/androiddeviceprovisioning1-cli/src/main.rs b/gen/androiddeviceprovisioning1-cli/src/main.rs index 3a26cfceb7..3332d80255 100644 --- a/gen/androiddeviceprovisioning1-cli/src/main.rs +++ b/gen/androiddeviceprovisioning1-cli/src/main.rs @@ -2787,7 +2787,7 @@ fn main() { let mut app = App::new("androiddeviceprovisioning1") .author("Sebastian Thiel ") - .version("1.0.11+20190622") + .version("1.0.12+20190622") .about("Automates Android zero-touch enrollment for device resellers, customers, and EMMs.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_androiddeviceprovisioning1_cli") .arg(Arg::with_name("folder") diff --git a/gen/androiddeviceprovisioning1/Cargo.toml b/gen/androiddeviceprovisioning1/Cargo.toml index 81d66adc7b..84ab3d028c 100644 --- a/gen/androiddeviceprovisioning1/Cargo.toml +++ b/gen/androiddeviceprovisioning1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-androiddeviceprovisioning1" -version = "1.0.11+20190622" +version = "1.0.12+20190622" authors = ["Sebastian Thiel "] description = "A complete library to interact with Android Provisioning Partner (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/androiddeviceprovisioning1" homepage = "https://developers.google.com/zero-touch/" -documentation = "https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622" +documentation = "https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622" license = "MIT" keywords = ["androiddeviceprovisi", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/androiddeviceprovisioning1/LICENSE.md b/gen/androiddeviceprovisioning1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/androiddeviceprovisioning1/LICENSE.md +++ b/gen/androiddeviceprovisioning1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/androiddeviceprovisioning1/README.md b/gen/androiddeviceprovisioning1/README.md index ea5f4e875e..191bf68d09 100644 --- a/gen/androiddeviceprovisioning1/README.md +++ b/gen/androiddeviceprovisioning1/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-androiddeviceprovisioning1` library allows access to all features of the *Google Android Provisioning Partner* service. -This documentation was generated from *Android Provisioning Partner* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *androiddeviceprovisioning:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Android Provisioning Partner* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *androiddeviceprovisioning:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Android Provisioning Partner* *v1* API can be found at the [official documentation site](https://developers.google.com/zero-touch/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.AndroidProvisioningPartner.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.AndroidProvisioningPartner.html) ... * customers - * [*configurations create*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.CustomerConfigurationCreateCall.html), [*configurations delete*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.CustomerConfigurationDeleteCall.html), [*configurations get*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.CustomerConfigurationGetCall.html), [*configurations list*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.CustomerConfigurationListCall.html), [*configurations patch*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.CustomerConfigurationPatchCall.html), [*devices apply configuration*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.CustomerDeviceApplyConfigurationCall.html), [*devices get*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.CustomerDeviceGetCall.html), [*devices list*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.CustomerDeviceListCall.html), [*devices remove configuration*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.CustomerDeviceRemoveConfigurationCall.html), [*devices unclaim*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.CustomerDeviceUnclaimCall.html), [*dpcs list*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.CustomerDpcListCall.html) and [*list*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.CustomerListCall.html) -* [operations](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.Operation.html) - * [*get*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.OperationGetCall.html) + * [*configurations create*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.CustomerConfigurationCreateCall.html), [*configurations delete*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.CustomerConfigurationDeleteCall.html), [*configurations get*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.CustomerConfigurationGetCall.html), [*configurations list*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.CustomerConfigurationListCall.html), [*configurations patch*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.CustomerConfigurationPatchCall.html), [*devices apply configuration*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.CustomerDeviceApplyConfigurationCall.html), [*devices get*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.CustomerDeviceGetCall.html), [*devices list*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.CustomerDeviceListCall.html), [*devices remove configuration*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.CustomerDeviceRemoveConfigurationCall.html), [*devices unclaim*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.CustomerDeviceUnclaimCall.html), [*dpcs list*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.CustomerDpcListCall.html) and [*list*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.CustomerListCall.html) +* [operations](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.Operation.html) + * [*get*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.OperationGetCall.html) * partners - * [*customers create*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.PartnerCustomerCreateCall.html), [*customers list*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.PartnerCustomerListCall.html), [*devices claim*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceClaimCall.html), [*devices claim async*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceClaimAsyncCall.html), [*devices find by identifier*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceFindByIdentifierCall.html), [*devices find by owner*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceFindByOwnerCall.html), [*devices get*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceGetCall.html), [*devices metadata*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceMetadataCall.html), [*devices unclaim*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceUnclaimCall.html), [*devices unclaim async*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceUnclaimAsyncCall.html), [*devices update metadata async*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceUpdateMetadataAsyncCall.html), [*vendors customers list*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.PartnerVendorCustomerListCall.html) and [*vendors list*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.PartnerVendorListCall.html) + * [*customers create*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.PartnerCustomerCreateCall.html), [*customers list*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.PartnerCustomerListCall.html), [*devices claim*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceClaimCall.html), [*devices claim async*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceClaimAsyncCall.html), [*devices find by identifier*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceFindByIdentifierCall.html), [*devices find by owner*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceFindByOwnerCall.html), [*devices get*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceGetCall.html), [*devices metadata*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceMetadataCall.html), [*devices unclaim*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceUnclaimCall.html), [*devices unclaim async*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceUnclaimAsyncCall.html), [*devices update metadata async*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.PartnerDeviceUpdateMetadataAsyncCall.html), [*vendors customers list*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.PartnerVendorCustomerListCall.html) and [*vendors list*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.PartnerVendorListCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/struct.AndroidProvisioningPartner.html)** +* **[Hub](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/struct.AndroidProvisioningPartner.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.Part.html)** + * **[Parts](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -138,17 +138,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -158,29 +158,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-androiddeviceprovisioning1/1.0.11+20190622/google_androiddeviceprovisioning1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-androiddeviceprovisioning1/1.0.12+20190622/google_androiddeviceprovisioning1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/androiddeviceprovisioning1/src/lib.rs b/gen/androiddeviceprovisioning1/src/lib.rs index 309a2ac3a9..355f540336 100644 --- a/gen/androiddeviceprovisioning1/src/lib.rs +++ b/gen/androiddeviceprovisioning1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Android Provisioning Partner* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *androiddeviceprovisioning:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Android Provisioning Partner* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *androiddeviceprovisioning:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Android Provisioning Partner* *v1* API can be found at the //! [official documentation site](https://developers.google.com/zero-touch/). @@ -315,7 +315,7 @@ impl<'a, C, A> AndroidProvisioningPartner AndroidProvisioningPartner { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://androiddeviceprovisioning.googleapis.com/".to_string(), _root_url: "https://androiddeviceprovisioning.googleapis.com/".to_string(), } @@ -332,7 +332,7 @@ impl<'a, C, A> AndroidProvisioningPartner } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/androidenterprise1-cli/Cargo.toml b/gen/androidenterprise1-cli/Cargo.toml index 5e813322f8..c954c5af97 100644 --- a/gen/androidenterprise1-cli/Cargo.toml +++ b/gen/androidenterprise1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-androidenterprise1-cli" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Android Enterprise (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/androidenterprise1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-androidenterprise1] path = "../androidenterprise1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" diff --git a/gen/androidenterprise1-cli/LICENSE.md b/gen/androidenterprise1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/androidenterprise1-cli/LICENSE.md +++ b/gen/androidenterprise1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/androidenterprise1-cli/README.md b/gen/androidenterprise1-cli/README.md index 75cf84242b..aee1453627 100644 --- a/gen/androidenterprise1-cli/README.md +++ b/gen/androidenterprise1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Android Enterprise* API at revision *20190624*. The CLI is at version *1.0.11*. +This documentation was generated from the *Android Enterprise* API at revision *20190624*. The CLI is at version *1.0.12*. ```bash androidenterprise1 [options] diff --git a/gen/androidenterprise1-cli/mkdocs.yml b/gen/androidenterprise1-cli/mkdocs.yml index 995f74f206..f8a99dde39 100644 --- a/gen/androidenterprise1-cli/mkdocs.yml +++ b/gen/androidenterprise1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Android Enterprise v1.0.11+20190624 +site_name: Android Enterprise v1.0.12+20190624 site_url: http://byron.github.io/google-apis-rs/google-androidenterprise1-cli site_description: A complete library to interact with Android Enterprise (protocol v1) @@ -98,5 +98,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/androidenterprise1-cli/src/cmn.rs b/gen/androidenterprise1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/androidenterprise1-cli/src/cmn.rs +++ b/gen/androidenterprise1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/androidenterprise1-cli/src/main.rs b/gen/androidenterprise1-cli/src/main.rs index 7ad1c5c42e..34953c920d 100644 --- a/gen/androidenterprise1-cli/src/main.rs +++ b/gen/androidenterprise1-cli/src/main.rs @@ -8656,7 +8656,7 @@ fn main() { let mut app = App::new("androidenterprise1") .author("Sebastian Thiel ") - .version("1.0.11+20190624") + .version("1.0.12+20190624") .about("Manages the deployment of apps to Android for Work users.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_androidenterprise1_cli") .arg(Arg::with_name("url") diff --git a/gen/androidenterprise1/Cargo.toml b/gen/androidenterprise1/Cargo.toml index 3902307849..611049cc31 100644 --- a/gen/androidenterprise1/Cargo.toml +++ b/gen/androidenterprise1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-androidenterprise1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Android Enterprise (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/androidenterprise1" homepage = "https://developers.google.com/android/work/play/emm-api" -documentation = "https://docs.rs/google-androidenterprise1/1.0.11+20190624" +documentation = "https://docs.rs/google-androidenterprise1/1.0.12+20190624" license = "MIT" keywords = ["androidenterprise", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/androidenterprise1/LICENSE.md b/gen/androidenterprise1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/androidenterprise1/LICENSE.md +++ b/gen/androidenterprise1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/androidenterprise1/README.md b/gen/androidenterprise1/README.md index d6ad602a44..14328f8a47 100644 --- a/gen/androidenterprise1/README.md +++ b/gen/androidenterprise1/README.md @@ -5,46 +5,46 @@ DO NOT EDIT ! --> The `google-androidenterprise1` library allows access to all features of the *Google Android Enterprise* service. -This documentation was generated from *Android Enterprise* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *androidenterprise:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Android Enterprise* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *androidenterprise:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Android Enterprise* *v1* API can be found at the [official documentation site](https://developers.google.com/android/work/play/emm-api). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.AndroidEnterprise.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.AndroidEnterprise.html) ... -* [devices](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.Device.html) - * [*force report upload*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.DeviceForceReportUploadCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.DeviceGetCall.html), [*get state*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.DeviceGetStateCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.DeviceListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.DevicePatchCall.html), [*set state*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.DeviceSetStateCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.DeviceUpdateCall.html) -* [enterprises](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.Enterprise.html) - * [*acknowledge notification set*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EnterpriseAcknowledgeNotificationSetCall.html), [*complete signup*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EnterpriseCompleteSignupCall.html), [*create web token*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EnterpriseCreateWebTokenCall.html), [*enroll*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EnterpriseEnrollCall.html), [*generate signup url*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EnterpriseGenerateSignupUrlCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EnterpriseGetCall.html), [*get service account*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EnterpriseGetServiceAccountCall.html), [*get store layout*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EnterpriseGetStoreLayoutCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EnterpriseListCall.html), [*pull notification set*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EnterprisePullNotificationSetCall.html), [*send test push notification*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EnterpriseSendTestPushNotificationCall.html), [*set account*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EnterpriseSetAccountCall.html), [*set store layout*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EnterpriseSetStoreLayoutCall.html) and [*unenroll*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EnterpriseUnenrollCall.html) -* [entitlements](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.Entitlement.html) - * [*delete*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EntitlementDeleteCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EntitlementGetCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EntitlementListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EntitlementPatchCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.EntitlementUpdateCall.html) +* [devices](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.Device.html) + * [*force report upload*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.DeviceForceReportUploadCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.DeviceGetCall.html), [*get state*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.DeviceGetStateCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.DeviceListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.DevicePatchCall.html), [*set state*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.DeviceSetStateCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.DeviceUpdateCall.html) +* [enterprises](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.Enterprise.html) + * [*acknowledge notification set*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EnterpriseAcknowledgeNotificationSetCall.html), [*complete signup*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EnterpriseCompleteSignupCall.html), [*create web token*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EnterpriseCreateWebTokenCall.html), [*enroll*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EnterpriseEnrollCall.html), [*generate signup url*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EnterpriseGenerateSignupUrlCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EnterpriseGetCall.html), [*get service account*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EnterpriseGetServiceAccountCall.html), [*get store layout*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EnterpriseGetStoreLayoutCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EnterpriseListCall.html), [*pull notification set*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EnterprisePullNotificationSetCall.html), [*send test push notification*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EnterpriseSendTestPushNotificationCall.html), [*set account*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EnterpriseSetAccountCall.html), [*set store layout*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EnterpriseSetStoreLayoutCall.html) and [*unenroll*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EnterpriseUnenrollCall.html) +* [entitlements](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.Entitlement.html) + * [*delete*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EntitlementDeleteCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EntitlementGetCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EntitlementListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EntitlementPatchCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.EntitlementUpdateCall.html) * grouplicenses - * [*get*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.GrouplicenseGetCall.html) and [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.GrouplicenseListCall.html) + * [*get*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.GrouplicenseGetCall.html) and [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.GrouplicenseListCall.html) * grouplicenseusers - * [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.GrouplicenseuserListCall.html) -* [installs](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.Install.html) - * [*delete*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.InstallDeleteCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.InstallGetCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.InstallListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.InstallPatchCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.InstallUpdateCall.html) + * [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.GrouplicenseuserListCall.html) +* [installs](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.Install.html) + * [*delete*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.InstallDeleteCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.InstallGetCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.InstallListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.InstallPatchCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.InstallUpdateCall.html) * managedconfigurationsfordevice - * [*delete*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ManagedconfigurationsfordeviceDeleteCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ManagedconfigurationsfordeviceGetCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ManagedconfigurationsfordeviceListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ManagedconfigurationsfordevicePatchCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ManagedconfigurationsfordeviceUpdateCall.html) + * [*delete*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ManagedconfigurationsfordeviceDeleteCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ManagedconfigurationsfordeviceGetCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ManagedconfigurationsfordeviceListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ManagedconfigurationsfordevicePatchCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ManagedconfigurationsfordeviceUpdateCall.html) * managedconfigurationsforuser - * [*delete*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ManagedconfigurationsforuserDeleteCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ManagedconfigurationsforuserGetCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ManagedconfigurationsforuserListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ManagedconfigurationsforuserPatchCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ManagedconfigurationsforuserUpdateCall.html) + * [*delete*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ManagedconfigurationsforuserDeleteCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ManagedconfigurationsforuserGetCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ManagedconfigurationsforuserListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ManagedconfigurationsforuserPatchCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ManagedconfigurationsforuserUpdateCall.html) * managedconfigurationssettings - * [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ManagedconfigurationssettingListCall.html) -* [permissions](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.Permission.html) - * [*get*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.PermissionGetCall.html) -* [products](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.Product.html) - * [*approve*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ProductApproveCall.html), [*generate approval url*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ProductGenerateApprovalUrlCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ProductGetCall.html), [*get app restrictions schema*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ProductGetAppRestrictionsSchemaCall.html), [*get permissions*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ProductGetPermissionCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ProductListCall.html) and [*unapprove*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ProductUnapproveCall.html) + * [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ManagedconfigurationssettingListCall.html) +* [permissions](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.Permission.html) + * [*get*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.PermissionGetCall.html) +* [products](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.Product.html) + * [*approve*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ProductApproveCall.html), [*generate approval url*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ProductGenerateApprovalUrlCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ProductGetCall.html), [*get app restrictions schema*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ProductGetAppRestrictionsSchemaCall.html), [*get permissions*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ProductGetPermissionCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ProductListCall.html) and [*unapprove*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ProductUnapproveCall.html) * serviceaccountkeys - * [*delete*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ServiceaccountkeyDeleteCall.html), [*insert*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ServiceaccountkeyInsertCall.html) and [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.ServiceaccountkeyListCall.html) + * [*delete*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ServiceaccountkeyDeleteCall.html), [*insert*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ServiceaccountkeyInsertCall.html) and [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.ServiceaccountkeyListCall.html) * storelayoutclusters - * [*delete*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.StorelayoutclusterDeleteCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.StorelayoutclusterGetCall.html), [*insert*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.StorelayoutclusterInsertCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.StorelayoutclusterListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.StorelayoutclusterPatchCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.StorelayoutclusterUpdateCall.html) + * [*delete*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.StorelayoutclusterDeleteCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.StorelayoutclusterGetCall.html), [*insert*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.StorelayoutclusterInsertCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.StorelayoutclusterListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.StorelayoutclusterPatchCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.StorelayoutclusterUpdateCall.html) * storelayoutpages - * [*delete*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.StorelayoutpageDeleteCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.StorelayoutpageGetCall.html), [*insert*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.StorelayoutpageInsertCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.StorelayoutpageListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.StorelayoutpagePatchCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.StorelayoutpageUpdateCall.html) -* [users](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.User.html) - * [*delete*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.UserDeleteCall.html), [*generate authentication token*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.UserGenerateAuthenticationTokenCall.html), [*generate token*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.UserGenerateTokenCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.UserGetCall.html), [*get available product set*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.UserGetAvailableProductSetCall.html), [*insert*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.UserInsertCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.UserListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.UserPatchCall.html), [*revoke device access*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.UserRevokeDeviceAccesCall.html), [*revoke token*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.UserRevokeTokenCall.html), [*set available product set*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.UserSetAvailableProductSetCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.UserUpdateCall.html) + * [*delete*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.StorelayoutpageDeleteCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.StorelayoutpageGetCall.html), [*insert*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.StorelayoutpageInsertCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.StorelayoutpageListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.StorelayoutpagePatchCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.StorelayoutpageUpdateCall.html) +* [users](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.User.html) + * [*delete*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.UserDeleteCall.html), [*generate authentication token*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.UserGenerateAuthenticationTokenCall.html), [*generate token*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.UserGenerateTokenCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.UserGetCall.html), [*get available product set*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.UserGetAvailableProductSetCall.html), [*insert*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.UserInsertCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.UserListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.UserPatchCall.html), [*revoke device access*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.UserRevokeDeviceAccesCall.html), [*revoke token*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.UserRevokeTokenCall.html), [*set available product set*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.UserSetAvailableProductSetCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.UserUpdateCall.html) * webapps - * [*delete*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.WebappDeleteCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.WebappGetCall.html), [*insert*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.WebappInsertCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.WebappListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.WebappPatchCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.WebappUpdateCall.html) + * [*delete*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.WebappDeleteCall.html), [*get*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.WebappGetCall.html), [*insert*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.WebappInsertCall.html), [*list*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.WebappListCall.html), [*patch*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.WebappPatchCall.html) and [*update*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.WebappUpdateCall.html) @@ -53,17 +53,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/struct.AndroidEnterprise.html)** +* **[Hub](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/struct.AndroidEnterprise.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.Part.html)** + * **[Parts](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -168,17 +168,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -188,29 +188,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-androidenterprise1/1.0.11+20190624/google_androidenterprise1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-androidenterprise1/1.0.12+20190624/google_androidenterprise1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/androidenterprise1/src/lib.rs b/gen/androidenterprise1/src/lib.rs index 2274fb80ff..92af04538e 100644 --- a/gen/androidenterprise1/src/lib.rs +++ b/gen/androidenterprise1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Android Enterprise* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *androidenterprise:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Android Enterprise* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *androidenterprise:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Android Enterprise* *v1* API can be found at the //! [official documentation site](https://developers.google.com/android/work/play/emm-api). @@ -362,7 +362,7 @@ impl<'a, C, A> AndroidEnterprise AndroidEnterprise { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/androidenterprise/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -418,7 +418,7 @@ impl<'a, C, A> AndroidEnterprise } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/androidmanagement1-cli/Cargo.toml b/gen/androidmanagement1-cli/Cargo.toml index a2a1de956b..0e139fcf7d 100644 --- a/gen/androidmanagement1-cli/Cargo.toml +++ b/gen/androidmanagement1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-androidmanagement1-cli" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Android Management (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/androidmanagement1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-androidmanagement1] path = "../androidmanagement1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" diff --git a/gen/androidmanagement1-cli/LICENSE.md b/gen/androidmanagement1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/androidmanagement1-cli/LICENSE.md +++ b/gen/androidmanagement1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/androidmanagement1-cli/README.md b/gen/androidmanagement1-cli/README.md index 020e09ba4b..0b7bf37b7f 100644 --- a/gen/androidmanagement1-cli/README.md +++ b/gen/androidmanagement1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Android Management* API at revision *20190624*. The CLI is at version *1.0.11*. +This documentation was generated from the *Android Management* API at revision *20190624*. The CLI is at version *1.0.12*. ```bash androidmanagement1 [options] diff --git a/gen/androidmanagement1-cli/mkdocs.yml b/gen/androidmanagement1-cli/mkdocs.yml index 5684841de4..e31892cb49 100644 --- a/gen/androidmanagement1-cli/mkdocs.yml +++ b/gen/androidmanagement1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Android Management v1.0.11+20190624 +site_name: Android Management v1.0.12+20190624 site_url: http://byron.github.io/google-apis-rs/google-androidmanagement1-cli site_description: A complete library to interact with Android Management (protocol v1) @@ -38,5 +38,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/androidmanagement1-cli/src/cmn.rs b/gen/androidmanagement1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/androidmanagement1-cli/src/cmn.rs +++ b/gen/androidmanagement1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/androidmanagement1-cli/src/main.rs b/gen/androidmanagement1-cli/src/main.rs index ae6611cc1b..0f42467d27 100644 --- a/gen/androidmanagement1-cli/src/main.rs +++ b/gen/androidmanagement1-cli/src/main.rs @@ -2766,7 +2766,7 @@ fn main() { let mut app = App::new("androidmanagement1") .author("Sebastian Thiel ") - .version("1.0.11+20190624") + .version("1.0.12+20190624") .about("The Android Management API provides remote enterprise management of Android devices and apps.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_androidmanagement1_cli") .arg(Arg::with_name("url") diff --git a/gen/androidmanagement1/Cargo.toml b/gen/androidmanagement1/Cargo.toml index 3d402df083..ed85ea1f9d 100644 --- a/gen/androidmanagement1/Cargo.toml +++ b/gen/androidmanagement1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-androidmanagement1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Android Management (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/androidmanagement1" homepage = "https://developers.google.com/android/management" -documentation = "https://docs.rs/google-androidmanagement1/1.0.11+20190624" +documentation = "https://docs.rs/google-androidmanagement1/1.0.12+20190624" license = "MIT" keywords = ["androidmanagement", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/androidmanagement1/LICENSE.md b/gen/androidmanagement1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/androidmanagement1/LICENSE.md +++ b/gen/androidmanagement1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/androidmanagement1/README.md b/gen/androidmanagement1/README.md index 9bfff6c43b..14e30d4aef 100644 --- a/gen/androidmanagement1/README.md +++ b/gen/androidmanagement1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-androidmanagement1` library allows access to all features of the *Google Android Management* service. -This documentation was generated from *Android Management* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *androidmanagement:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Android Management* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *androidmanagement:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Android Management* *v1* API can be found at the [official documentation site](https://developers.google.com/android/management). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.AndroidManagement.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.AndroidManagement.html) ... -* [enterprises](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.Enterprise.html) - * [*applications get*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseApplicationGetCall.html), [*create*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseCreateCall.html), [*devices delete*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseDeviceDeleteCall.html), [*devices get*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseDeviceGetCall.html), [*devices issue command*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseDeviceIssueCommandCall.html), [*devices list*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseDeviceListCall.html), [*devices operations cancel*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseDeviceOperationCancelCall.html), [*devices operations delete*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseDeviceOperationDeleteCall.html), [*devices operations get*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseDeviceOperationGetCall.html), [*devices operations list*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseDeviceOperationListCall.html), [*devices patch*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseDevicePatchCall.html), [*enrollment tokens create*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseEnrollmentTokenCreateCall.html), [*enrollment tokens delete*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseEnrollmentTokenDeleteCall.html), [*get*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseGetCall.html), [*patch*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterprisePatchCall.html), [*policies delete*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterprisePolicyDeleteCall.html), [*policies get*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterprisePolicyGetCall.html), [*policies list*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterprisePolicyListCall.html), [*policies patch*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterprisePolicyPatchCall.html), [*web apps create*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseWebAppCreateCall.html), [*web apps delete*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseWebAppDeleteCall.html), [*web apps get*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseWebAppGetCall.html), [*web apps list*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseWebAppListCall.html), [*web apps patch*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseWebAppPatchCall.html) and [*web tokens create*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.EnterpriseWebTokenCreateCall.html) -* [signup urls](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.SignupUrl.html) - * [*create*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.SignupUrlCreateCall.html) +* [enterprises](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.Enterprise.html) + * [*applications get*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseApplicationGetCall.html), [*create*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseCreateCall.html), [*devices delete*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseDeviceDeleteCall.html), [*devices get*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseDeviceGetCall.html), [*devices issue command*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseDeviceIssueCommandCall.html), [*devices list*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseDeviceListCall.html), [*devices operations cancel*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseDeviceOperationCancelCall.html), [*devices operations delete*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseDeviceOperationDeleteCall.html), [*devices operations get*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseDeviceOperationGetCall.html), [*devices operations list*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseDeviceOperationListCall.html), [*devices patch*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseDevicePatchCall.html), [*enrollment tokens create*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseEnrollmentTokenCreateCall.html), [*enrollment tokens delete*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseEnrollmentTokenDeleteCall.html), [*get*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseGetCall.html), [*patch*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterprisePatchCall.html), [*policies delete*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterprisePolicyDeleteCall.html), [*policies get*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterprisePolicyGetCall.html), [*policies list*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterprisePolicyListCall.html), [*policies patch*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterprisePolicyPatchCall.html), [*web apps create*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseWebAppCreateCall.html), [*web apps delete*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseWebAppDeleteCall.html), [*web apps get*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseWebAppGetCall.html), [*web apps list*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseWebAppListCall.html), [*web apps patch*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseWebAppPatchCall.html) and [*web tokens create*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.EnterpriseWebTokenCreateCall.html) +* [signup urls](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.SignupUrl.html) + * [*create*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.SignupUrlCreateCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/struct.AndroidManagement.html)** +* **[Hub](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/struct.AndroidManagement.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.Part.html)** + * **[Parts](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -159,17 +159,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -179,29 +179,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-androidmanagement1/1.0.11+20190624/google_androidmanagement1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-androidmanagement1/1.0.12+20190624/google_androidmanagement1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/androidmanagement1/src/lib.rs b/gen/androidmanagement1/src/lib.rs index 29421cef92..92e8f01667 100644 --- a/gen/androidmanagement1/src/lib.rs +++ b/gen/androidmanagement1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Android Management* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *androidmanagement:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Android Management* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *androidmanagement:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Android Management* *v1* API can be found at the //! [official documentation site](https://developers.google.com/android/management). @@ -361,7 +361,7 @@ impl<'a, C, A> AndroidManagement AndroidManagement { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://androidmanagement.googleapis.com/".to_string(), _root_url: "https://androidmanagement.googleapis.com/".to_string(), } @@ -375,7 +375,7 @@ impl<'a, C, A> AndroidManagement } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/androidpublisher2-cli/Cargo.toml b/gen/androidpublisher2-cli/Cargo.toml index ba6a22e35a..481843d6cc 100644 --- a/gen/androidpublisher2-cli/Cargo.toml +++ b/gen/androidpublisher2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-androidpublisher2-cli" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Android Publisher (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/androidpublisher2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-androidpublisher2] path = "../androidpublisher2" -version = "1.0.11+20190702" +version = "1.0.12+20190702" diff --git a/gen/androidpublisher2-cli/LICENSE.md b/gen/androidpublisher2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/androidpublisher2-cli/LICENSE.md +++ b/gen/androidpublisher2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/androidpublisher2-cli/README.md b/gen/androidpublisher2-cli/README.md index a1bbf1f99c..0105c2e148 100644 --- a/gen/androidpublisher2-cli/README.md +++ b/gen/androidpublisher2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Android Publisher* API at revision *20190702*. The CLI is at version *1.0.11*. +This documentation was generated from the *Android Publisher* API at revision *20190702*. The CLI is at version *1.0.12*. ```bash androidpublisher2 [options] diff --git a/gen/androidpublisher2-cli/mkdocs.yml b/gen/androidpublisher2-cli/mkdocs.yml index b8dd7e9237..0de14d13aa 100644 --- a/gen/androidpublisher2-cli/mkdocs.yml +++ b/gen/androidpublisher2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Android Publisher v1.0.11+20190702 +site_name: Android Publisher v1.0.12+20190702 site_url: http://byron.github.io/google-apis-rs/google-androidpublisher2-cli site_description: A complete library to interact with Android Publisher (protocol v2) @@ -70,5 +70,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/androidpublisher2-cli/src/cmn.rs b/gen/androidpublisher2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/androidpublisher2-cli/src/cmn.rs +++ b/gen/androidpublisher2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/androidpublisher2-cli/src/main.rs b/gen/androidpublisher2-cli/src/main.rs index 95900c283e..4fe0945bbb 100644 --- a/gen/androidpublisher2-cli/src/main.rs +++ b/gen/androidpublisher2-cli/src/main.rs @@ -6036,7 +6036,7 @@ fn main() { let mut app = App::new("androidpublisher2") .author("Sebastian Thiel ") - .version("1.0.11+20190702") + .version("1.0.12+20190702") .about("Accesses Android application developers' Google Play accounts.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_androidpublisher2_cli") .arg(Arg::with_name("url") diff --git a/gen/androidpublisher2/Cargo.toml b/gen/androidpublisher2/Cargo.toml index e104ecf873..13643e74b9 100644 --- a/gen/androidpublisher2/Cargo.toml +++ b/gen/androidpublisher2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-androidpublisher2" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Android Publisher (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/androidpublisher2" homepage = "https://developers.google.com/android-publisher" -documentation = "https://docs.rs/google-androidpublisher2/1.0.11+20190702" +documentation = "https://docs.rs/google-androidpublisher2/1.0.12+20190702" license = "MIT" keywords = ["androidpublisher", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/androidpublisher2/LICENSE.md b/gen/androidpublisher2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/androidpublisher2/LICENSE.md +++ b/gen/androidpublisher2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/androidpublisher2/README.md b/gen/androidpublisher2/README.md index 81a799924f..3c2ccaa573 100644 --- a/gen/androidpublisher2/README.md +++ b/gen/androidpublisher2/README.md @@ -5,33 +5,33 @@ DO NOT EDIT ! --> The `google-androidpublisher2` library allows access to all features of the *Google Android Publisher* service. -This documentation was generated from *Android Publisher* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *androidpublisher:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Android Publisher* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *androidpublisher:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Android Publisher* *v2* API can be found at the [official documentation site](https://developers.google.com/android-publisher). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.AndroidPublisher.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.AndroidPublisher.html) ... * edits - * [*apklistings delete*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditApklistingDeleteCall.html), [*apklistings deleteall*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditApklistingDeleteallCall.html), [*apklistings get*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditApklistingGetCall.html), [*apklistings list*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditApklistingListCall.html), [*apklistings patch*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditApklistingPatchCall.html), [*apklistings update*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditApklistingUpdateCall.html), [*apks addexternallyhosted*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditApkAddexternallyhostedCall.html), [*apks list*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditApkListCall.html), [*apks upload*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditApkUploadCall.html), [*bundles list*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditBundleListCall.html), [*bundles upload*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditBundleUploadCall.html), [*commit*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditCommitCall.html), [*delete*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditDeleteCall.html), [*deobfuscationfiles upload*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditDeobfuscationfileUploadCall.html), [*details get*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditDetailGetCall.html), [*details patch*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditDetailPatchCall.html), [*details update*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditDetailUpdateCall.html), [*expansionfiles get*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditExpansionfileGetCall.html), [*expansionfiles patch*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditExpansionfilePatchCall.html), [*expansionfiles update*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditExpansionfileUpdateCall.html), [*expansionfiles upload*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditExpansionfileUploadCall.html), [*get*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditGetCall.html), [*images delete*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditImageDeleteCall.html), [*images deleteall*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditImageDeleteallCall.html), [*images list*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditImageListCall.html), [*images upload*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditImageUploadCall.html), [*insert*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditInsertCall.html), [*listings delete*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditListingDeleteCall.html), [*listings deleteall*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditListingDeleteallCall.html), [*listings get*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditListingGetCall.html), [*listings list*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditListingListCall.html), [*listings patch*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditListingPatchCall.html), [*listings update*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditListingUpdateCall.html), [*testers get*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditTesterGetCall.html), [*testers patch*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditTesterPatchCall.html), [*testers update*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditTesterUpdateCall.html), [*tracks get*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditTrackGetCall.html), [*tracks list*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditTrackListCall.html), [*tracks patch*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditTrackPatchCall.html), [*tracks update*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditTrackUpdateCall.html) and [*validate*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditValidateCall.html) + * [*apklistings delete*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditApklistingDeleteCall.html), [*apklistings deleteall*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditApklistingDeleteallCall.html), [*apklistings get*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditApklistingGetCall.html), [*apklistings list*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditApklistingListCall.html), [*apklistings patch*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditApklistingPatchCall.html), [*apklistings update*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditApklistingUpdateCall.html), [*apks addexternallyhosted*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditApkAddexternallyhostedCall.html), [*apks list*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditApkListCall.html), [*apks upload*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditApkUploadCall.html), [*bundles list*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditBundleListCall.html), [*bundles upload*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditBundleUploadCall.html), [*commit*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditCommitCall.html), [*delete*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditDeleteCall.html), [*deobfuscationfiles upload*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditDeobfuscationfileUploadCall.html), [*details get*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditDetailGetCall.html), [*details patch*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditDetailPatchCall.html), [*details update*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditDetailUpdateCall.html), [*expansionfiles get*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditExpansionfileGetCall.html), [*expansionfiles patch*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditExpansionfilePatchCall.html), [*expansionfiles update*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditExpansionfileUpdateCall.html), [*expansionfiles upload*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditExpansionfileUploadCall.html), [*get*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditGetCall.html), [*images delete*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditImageDeleteCall.html), [*images deleteall*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditImageDeleteallCall.html), [*images list*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditImageListCall.html), [*images upload*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditImageUploadCall.html), [*insert*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditInsertCall.html), [*listings delete*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditListingDeleteCall.html), [*listings deleteall*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditListingDeleteallCall.html), [*listings get*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditListingGetCall.html), [*listings list*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditListingListCall.html), [*listings patch*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditListingPatchCall.html), [*listings update*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditListingUpdateCall.html), [*testers get*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditTesterGetCall.html), [*testers patch*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditTesterPatchCall.html), [*testers update*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditTesterUpdateCall.html), [*tracks get*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditTrackGetCall.html), [*tracks list*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditTrackListCall.html), [*tracks patch*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditTrackPatchCall.html), [*tracks update*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditTrackUpdateCall.html) and [*validate*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditValidateCall.html) * inappproducts - * [*delete*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.InappproductDeleteCall.html), [*get*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.InappproductGetCall.html), [*insert*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.InappproductInsertCall.html), [*list*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.InappproductListCall.html), [*patch*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.InappproductPatchCall.html) and [*update*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.InappproductUpdateCall.html) + * [*delete*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.InappproductDeleteCall.html), [*get*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.InappproductGetCall.html), [*insert*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.InappproductInsertCall.html), [*list*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.InappproductListCall.html), [*patch*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.InappproductPatchCall.html) and [*update*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.InappproductUpdateCall.html) * orders - * [*refund*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.OrderRefundCall.html) + * [*refund*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.OrderRefundCall.html) * purchases - * [*products get*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.PurchaseProductGetCall.html), [*subscriptions cancel*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.PurchaseSubscriptionCancelCall.html), [*subscriptions defer*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.PurchaseSubscriptionDeferCall.html), [*subscriptions get*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.PurchaseSubscriptionGetCall.html), [*subscriptions refund*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.PurchaseSubscriptionRefundCall.html), [*subscriptions revoke*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.PurchaseSubscriptionRevokeCall.html) and [*voidedpurchases list*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.PurchaseVoidedpurchaseListCall.html) -* [reviews](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.Review.html) - * [*get*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.ReviewGetCall.html), [*list*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.ReviewListCall.html) and [*reply*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.ReviewReplyCall.html) + * [*products get*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.PurchaseProductGetCall.html), [*subscriptions cancel*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.PurchaseSubscriptionCancelCall.html), [*subscriptions defer*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.PurchaseSubscriptionDeferCall.html), [*subscriptions get*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.PurchaseSubscriptionGetCall.html), [*subscriptions refund*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.PurchaseSubscriptionRefundCall.html), [*subscriptions revoke*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.PurchaseSubscriptionRevokeCall.html) and [*voidedpurchases list*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.PurchaseVoidedpurchaseListCall.html) +* [reviews](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.Review.html) + * [*get*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.ReviewGetCall.html), [*list*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.ReviewListCall.html) and [*reply*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.ReviewReplyCall.html) Upload supported by ... -* [*deobfuscationfiles upload edits*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditDeobfuscationfileUploadCall.html) -* [*images upload edits*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditImageUploadCall.html) -* [*apks upload edits*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditApkUploadCall.html) -* [*expansionfiles upload edits*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditExpansionfileUploadCall.html) -* [*bundles upload edits*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.EditBundleUploadCall.html) +* [*deobfuscationfiles upload edits*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditDeobfuscationfileUploadCall.html) +* [*images upload edits*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditImageUploadCall.html) +* [*apks upload edits*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditApkUploadCall.html) +* [*expansionfiles upload edits*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditExpansionfileUploadCall.html) +* [*bundles upload edits*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.EditBundleUploadCall.html) @@ -39,17 +39,17 @@ Upload supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/struct.AndroidPublisher.html)** +* **[Hub](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/struct.AndroidPublisher.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.Part.html)** + * **[Parts](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -150,17 +150,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -170,29 +170,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-androidpublisher2/1.0.11+20190702/google_androidpublisher2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-androidpublisher2/1.0.12+20190702/google_androidpublisher2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/androidpublisher2/src/lib.rs b/gen/androidpublisher2/src/lib.rs index d48a9e5a28..d52ea8fe06 100644 --- a/gen/androidpublisher2/src/lib.rs +++ b/gen/androidpublisher2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Android Publisher* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *androidpublisher:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Android Publisher* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *androidpublisher:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Android Publisher* *v2* API can be found at the //! [official documentation site](https://developers.google.com/android-publisher). @@ -350,7 +350,7 @@ impl<'a, C, A> AndroidPublisher AndroidPublisher { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/androidpublisher/v2/applications/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -373,7 +373,7 @@ impl<'a, C, A> AndroidPublisher } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/androidpublisher3-cli/Cargo.toml b/gen/androidpublisher3-cli/Cargo.toml index 41b2e3c443..30544d2eb2 100644 --- a/gen/androidpublisher3-cli/Cargo.toml +++ b/gen/androidpublisher3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-androidpublisher3-cli" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Android Publisher (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/androidpublisher3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-androidpublisher3] path = "../androidpublisher3" -version = "1.0.11+20190702" +version = "1.0.12+20190702" diff --git a/gen/androidpublisher3-cli/LICENSE.md b/gen/androidpublisher3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/androidpublisher3-cli/LICENSE.md +++ b/gen/androidpublisher3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/androidpublisher3-cli/README.md b/gen/androidpublisher3-cli/README.md index da56f9d664..d52f64b7a2 100644 --- a/gen/androidpublisher3-cli/README.md +++ b/gen/androidpublisher3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Android Publisher* API at revision *20190702*. The CLI is at version *1.0.11*. +This documentation was generated from the *Android Publisher* API at revision *20190702*. The CLI is at version *1.0.12*. ```bash androidpublisher3 [options] diff --git a/gen/androidpublisher3-cli/mkdocs.yml b/gen/androidpublisher3-cli/mkdocs.yml index 2be35f7ff1..105dadc4e6 100644 --- a/gen/androidpublisher3-cli/mkdocs.yml +++ b/gen/androidpublisher3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Android Publisher v1.0.11+20190702 +site_name: Android Publisher v1.0.12+20190702 site_url: http://byron.github.io/google-apis-rs/google-androidpublisher3-cli site_description: A complete library to interact with Android Publisher (protocol v3) @@ -68,5 +68,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/androidpublisher3-cli/src/cmn.rs b/gen/androidpublisher3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/androidpublisher3-cli/src/cmn.rs +++ b/gen/androidpublisher3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/androidpublisher3-cli/src/main.rs b/gen/androidpublisher3-cli/src/main.rs index 26b157ad91..fc809d1f13 100644 --- a/gen/androidpublisher3-cli/src/main.rs +++ b/gen/androidpublisher3-cli/src/main.rs @@ -5829,7 +5829,7 @@ fn main() { let mut app = App::new("androidpublisher3") .author("Sebastian Thiel ") - .version("1.0.11+20190702") + .version("1.0.12+20190702") .about("Accesses Android application developers' Google Play accounts.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_androidpublisher3_cli") .arg(Arg::with_name("url") diff --git a/gen/androidpublisher3/Cargo.toml b/gen/androidpublisher3/Cargo.toml index 5e89214eb6..117a999423 100644 --- a/gen/androidpublisher3/Cargo.toml +++ b/gen/androidpublisher3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-androidpublisher3" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Android Publisher (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/androidpublisher3" homepage = "https://developers.google.com/android-publisher" -documentation = "https://docs.rs/google-androidpublisher3/1.0.11+20190702" +documentation = "https://docs.rs/google-androidpublisher3/1.0.12+20190702" license = "MIT" keywords = ["androidpublisher", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/androidpublisher3/LICENSE.md b/gen/androidpublisher3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/androidpublisher3/LICENSE.md +++ b/gen/androidpublisher3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/androidpublisher3/README.md b/gen/androidpublisher3/README.md index ae89c1ffdb..bae5f4c8c5 100644 --- a/gen/androidpublisher3/README.md +++ b/gen/androidpublisher3/README.md @@ -5,37 +5,37 @@ DO NOT EDIT ! --> The `google-androidpublisher3` library allows access to all features of the *Google Android Publisher* service. -This documentation was generated from *Android Publisher* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *androidpublisher:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Android Publisher* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *androidpublisher:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Android Publisher* *v3* API can be found at the [official documentation site](https://developers.google.com/android-publisher). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.AndroidPublisher.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.AndroidPublisher.html) ... * edits - * [*apks addexternallyhosted*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditApkAddexternallyhostedCall.html), [*apks list*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditApkListCall.html), [*apks upload*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditApkUploadCall.html), [*bundles list*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditBundleListCall.html), [*bundles upload*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditBundleUploadCall.html), [*commit*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditCommitCall.html), [*delete*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditDeleteCall.html), [*deobfuscationfiles upload*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditDeobfuscationfileUploadCall.html), [*details get*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditDetailGetCall.html), [*details patch*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditDetailPatchCall.html), [*details update*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditDetailUpdateCall.html), [*expansionfiles get*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditExpansionfileGetCall.html), [*expansionfiles patch*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditExpansionfilePatchCall.html), [*expansionfiles update*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditExpansionfileUpdateCall.html), [*expansionfiles upload*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditExpansionfileUploadCall.html), [*get*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditGetCall.html), [*images delete*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditImageDeleteCall.html), [*images deleteall*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditImageDeleteallCall.html), [*images list*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditImageListCall.html), [*images upload*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditImageUploadCall.html), [*insert*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditInsertCall.html), [*listings delete*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditListingDeleteCall.html), [*listings deleteall*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditListingDeleteallCall.html), [*listings get*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditListingGetCall.html), [*listings list*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditListingListCall.html), [*listings patch*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditListingPatchCall.html), [*listings update*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditListingUpdateCall.html), [*testers get*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditTesterGetCall.html), [*testers patch*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditTesterPatchCall.html), [*testers update*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditTesterUpdateCall.html), [*tracks get*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditTrackGetCall.html), [*tracks list*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditTrackListCall.html), [*tracks patch*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditTrackPatchCall.html), [*tracks update*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditTrackUpdateCall.html) and [*validate*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditValidateCall.html) + * [*apks addexternallyhosted*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditApkAddexternallyhostedCall.html), [*apks list*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditApkListCall.html), [*apks upload*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditApkUploadCall.html), [*bundles list*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditBundleListCall.html), [*bundles upload*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditBundleUploadCall.html), [*commit*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditCommitCall.html), [*delete*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditDeleteCall.html), [*deobfuscationfiles upload*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditDeobfuscationfileUploadCall.html), [*details get*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditDetailGetCall.html), [*details patch*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditDetailPatchCall.html), [*details update*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditDetailUpdateCall.html), [*expansionfiles get*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditExpansionfileGetCall.html), [*expansionfiles patch*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditExpansionfilePatchCall.html), [*expansionfiles update*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditExpansionfileUpdateCall.html), [*expansionfiles upload*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditExpansionfileUploadCall.html), [*get*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditGetCall.html), [*images delete*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditImageDeleteCall.html), [*images deleteall*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditImageDeleteallCall.html), [*images list*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditImageListCall.html), [*images upload*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditImageUploadCall.html), [*insert*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditInsertCall.html), [*listings delete*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditListingDeleteCall.html), [*listings deleteall*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditListingDeleteallCall.html), [*listings get*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditListingGetCall.html), [*listings list*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditListingListCall.html), [*listings patch*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditListingPatchCall.html), [*listings update*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditListingUpdateCall.html), [*testers get*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditTesterGetCall.html), [*testers patch*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditTesterPatchCall.html), [*testers update*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditTesterUpdateCall.html), [*tracks get*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditTrackGetCall.html), [*tracks list*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditTrackListCall.html), [*tracks patch*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditTrackPatchCall.html), [*tracks update*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditTrackUpdateCall.html) and [*validate*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditValidateCall.html) * inappproducts - * [*delete*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.InappproductDeleteCall.html), [*get*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.InappproductGetCall.html), [*insert*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.InappproductInsertCall.html), [*list*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.InappproductListCall.html), [*patch*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.InappproductPatchCall.html) and [*update*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.InappproductUpdateCall.html) + * [*delete*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.InappproductDeleteCall.html), [*get*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.InappproductGetCall.html), [*insert*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.InappproductInsertCall.html), [*list*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.InappproductListCall.html), [*patch*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.InappproductPatchCall.html) and [*update*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.InappproductUpdateCall.html) * internalappsharingartifacts - * [*uploadapk*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.InternalappsharingartifactUploadapkCall.html) and [*uploadbundle*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.InternalappsharingartifactUploadbundleCall.html) + * [*uploadapk*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.InternalappsharingartifactUploadapkCall.html) and [*uploadbundle*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.InternalappsharingartifactUploadbundleCall.html) * orders - * [*refund*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.OrderRefundCall.html) + * [*refund*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.OrderRefundCall.html) * purchases - * [*products acknowledge*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.PurchaseProductAcknowledgeCall.html), [*products get*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.PurchaseProductGetCall.html), [*subscriptions acknowledge*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.PurchaseSubscriptionAcknowledgeCall.html), [*subscriptions cancel*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.PurchaseSubscriptionCancelCall.html), [*subscriptions defer*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.PurchaseSubscriptionDeferCall.html), [*subscriptions get*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.PurchaseSubscriptionGetCall.html), [*subscriptions refund*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.PurchaseSubscriptionRefundCall.html), [*subscriptions revoke*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.PurchaseSubscriptionRevokeCall.html) and [*voidedpurchases list*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.PurchaseVoidedpurchaseListCall.html) -* [reviews](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.Review.html) - * [*get*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.ReviewGetCall.html), [*list*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.ReviewListCall.html) and [*reply*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.ReviewReplyCall.html) + * [*products acknowledge*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.PurchaseProductAcknowledgeCall.html), [*products get*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.PurchaseProductGetCall.html), [*subscriptions acknowledge*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.PurchaseSubscriptionAcknowledgeCall.html), [*subscriptions cancel*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.PurchaseSubscriptionCancelCall.html), [*subscriptions defer*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.PurchaseSubscriptionDeferCall.html), [*subscriptions get*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.PurchaseSubscriptionGetCall.html), [*subscriptions refund*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.PurchaseSubscriptionRefundCall.html), [*subscriptions revoke*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.PurchaseSubscriptionRevokeCall.html) and [*voidedpurchases list*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.PurchaseVoidedpurchaseListCall.html) +* [reviews](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.Review.html) + * [*get*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.ReviewGetCall.html), [*list*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.ReviewListCall.html) and [*reply*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.ReviewReplyCall.html) Upload supported by ... -* [*deobfuscationfiles upload edits*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditDeobfuscationfileUploadCall.html) -* [*images upload edits*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditImageUploadCall.html) -* [*uploadbundle internalappsharingartifacts*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.InternalappsharingartifactUploadbundleCall.html) -* [*apks upload edits*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditApkUploadCall.html) -* [*expansionfiles upload edits*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditExpansionfileUploadCall.html) -* [*bundles upload edits*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.EditBundleUploadCall.html) -* [*uploadapk internalappsharingartifacts*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.InternalappsharingartifactUploadapkCall.html) +* [*deobfuscationfiles upload edits*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditDeobfuscationfileUploadCall.html) +* [*images upload edits*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditImageUploadCall.html) +* [*uploadbundle internalappsharingartifacts*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.InternalappsharingartifactUploadbundleCall.html) +* [*apks upload edits*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditApkUploadCall.html) +* [*expansionfiles upload edits*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditExpansionfileUploadCall.html) +* [*bundles upload edits*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.EditBundleUploadCall.html) +* [*uploadapk internalappsharingartifacts*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.InternalappsharingartifactUploadapkCall.html) @@ -43,17 +43,17 @@ Upload supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/struct.AndroidPublisher.html)** +* **[Hub](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/struct.AndroidPublisher.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.Part.html)** + * **[Parts](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -154,17 +154,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -174,29 +174,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-androidpublisher3/1.0.11+20190702/google_androidpublisher3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-androidpublisher3/1.0.12+20190702/google_androidpublisher3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/androidpublisher3/src/lib.rs b/gen/androidpublisher3/src/lib.rs index 4b257d265a..f19846aad2 100644 --- a/gen/androidpublisher3/src/lib.rs +++ b/gen/androidpublisher3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Android Publisher* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *androidpublisher:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Android Publisher* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *androidpublisher:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Android Publisher* *v3* API can be found at the //! [official documentation site](https://developers.google.com/android-publisher). @@ -354,7 +354,7 @@ impl<'a, C, A> AndroidPublisher AndroidPublisher { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/androidpublisher/v3/applications/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -380,7 +380,7 @@ impl<'a, C, A> AndroidPublisher } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/appengine1-cli/Cargo.toml b/gen/appengine1-cli/Cargo.toml index 0342f7ac51..9821d0da2d 100644 --- a/gen/appengine1-cli/Cargo.toml +++ b/gen/appengine1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-appengine1-cli" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with appengine (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/appengine1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-appengine1] path = "../appengine1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" diff --git a/gen/appengine1-cli/LICENSE.md b/gen/appengine1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/appengine1-cli/LICENSE.md +++ b/gen/appengine1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/appengine1-cli/README.md b/gen/appengine1-cli/README.md index 9130fb03be..be1dbd1ff9 100644 --- a/gen/appengine1-cli/README.md +++ b/gen/appengine1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *appengine* API at revision *20190624*. The CLI is at version *1.0.11*. +This documentation was generated from the *appengine* API at revision *20190624*. The CLI is at version *1.0.12*. ```bash appengine1 [options] diff --git a/gen/appengine1-cli/mkdocs.yml b/gen/appengine1-cli/mkdocs.yml index 3ee01f015b..24acd8da18 100644 --- a/gen/appengine1-cli/mkdocs.yml +++ b/gen/appengine1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: appengine v1.0.11+20190624 +site_name: appengine v1.0.12+20190624 site_url: http://byron.github.io/google-apis-rs/google-appengine1-cli site_description: A complete library to interact with appengine (protocol v1) @@ -50,5 +50,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/appengine1-cli/src/cmn.rs b/gen/appengine1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/appengine1-cli/src/cmn.rs +++ b/gen/appengine1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/appengine1-cli/src/main.rs b/gen/appengine1-cli/src/main.rs index c678feb83f..dbcd9022b5 100644 --- a/gen/appengine1-cli/src/main.rs +++ b/gen/appengine1-cli/src/main.rs @@ -4198,7 +4198,7 @@ fn main() { let mut app = App::new("appengine1") .author("Sebastian Thiel ") - .version("1.0.11+20190624") + .version("1.0.12+20190624") .about("Provisions and manages developers' App Engine applications.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_appengine1_cli") .arg(Arg::with_name("url") diff --git a/gen/appengine1/Cargo.toml b/gen/appengine1/Cargo.toml index 24d5e65dac..723310a935 100644 --- a/gen/appengine1/Cargo.toml +++ b/gen/appengine1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-appengine1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with appengine (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/appengine1" homepage = "https://cloud.google.com/appengine/docs/admin-api/" -documentation = "https://docs.rs/google-appengine1/1.0.11+20190624" +documentation = "https://docs.rs/google-appengine1/1.0.12+20190624" license = "MIT" keywords = ["appengine", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/appengine1/LICENSE.md b/gen/appengine1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/appengine1/LICENSE.md +++ b/gen/appengine1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/appengine1/README.md b/gen/appengine1/README.md index 2e08bba692..e6bf46b1d4 100644 --- a/gen/appengine1/README.md +++ b/gen/appengine1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-appengine1` library allows access to all features of the *Google appengine* service. -This documentation was generated from *appengine* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *appengine:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *appengine* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *appengine:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *appengine* *v1* API can be found at the [official documentation site](https://cloud.google.com/appengine/docs/admin-api/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.Appengine.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.Appengine.html) ... * apps - * [*authorized certificates create*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppAuthorizedCertificateCreateCall.html), [*authorized certificates delete*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppAuthorizedCertificateDeleteCall.html), [*authorized certificates get*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppAuthorizedCertificateGetCall.html), [*authorized certificates list*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppAuthorizedCertificateListCall.html), [*authorized certificates patch*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppAuthorizedCertificatePatchCall.html), [*authorized domains list*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppAuthorizedDomainListCall.html), [*create*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppCreateCall.html), [*domain mappings create*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppDomainMappingCreateCall.html), [*domain mappings delete*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppDomainMappingDeleteCall.html), [*domain mappings get*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppDomainMappingGetCall.html), [*domain mappings list*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppDomainMappingListCall.html), [*domain mappings patch*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppDomainMappingPatchCall.html), [*firewall ingress rules batch update*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppFirewallIngressRuleBatchUpdateCall.html), [*firewall ingress rules create*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppFirewallIngressRuleCreateCall.html), [*firewall ingress rules delete*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppFirewallIngressRuleDeleteCall.html), [*firewall ingress rules get*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppFirewallIngressRuleGetCall.html), [*firewall ingress rules list*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppFirewallIngressRuleListCall.html), [*firewall ingress rules patch*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppFirewallIngressRulePatchCall.html), [*get*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppGetCall.html), [*locations get*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppLocationGetCall.html), [*locations list*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppLocationListCall.html), [*operations get*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppOperationGetCall.html), [*operations list*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppOperationListCall.html), [*patch*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppPatchCall.html), [*repair*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppRepairCall.html), [*services delete*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppServiceDeleteCall.html), [*services get*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppServiceGetCall.html), [*services list*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppServiceListCall.html), [*services patch*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppServicePatchCall.html), [*services versions create*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppServiceVersionCreateCall.html), [*services versions delete*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppServiceVersionDeleteCall.html), [*services versions get*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppServiceVersionGetCall.html), [*services versions instances debug*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppServiceVersionInstanceDebugCall.html), [*services versions instances delete*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppServiceVersionInstanceDeleteCall.html), [*services versions instances get*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppServiceVersionInstanceGetCall.html), [*services versions instances list*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppServiceVersionInstanceListCall.html), [*services versions list*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppServiceVersionListCall.html) and [*services versions patch*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.AppServiceVersionPatchCall.html) + * [*authorized certificates create*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppAuthorizedCertificateCreateCall.html), [*authorized certificates delete*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppAuthorizedCertificateDeleteCall.html), [*authorized certificates get*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppAuthorizedCertificateGetCall.html), [*authorized certificates list*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppAuthorizedCertificateListCall.html), [*authorized certificates patch*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppAuthorizedCertificatePatchCall.html), [*authorized domains list*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppAuthorizedDomainListCall.html), [*create*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppCreateCall.html), [*domain mappings create*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppDomainMappingCreateCall.html), [*domain mappings delete*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppDomainMappingDeleteCall.html), [*domain mappings get*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppDomainMappingGetCall.html), [*domain mappings list*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppDomainMappingListCall.html), [*domain mappings patch*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppDomainMappingPatchCall.html), [*firewall ingress rules batch update*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppFirewallIngressRuleBatchUpdateCall.html), [*firewall ingress rules create*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppFirewallIngressRuleCreateCall.html), [*firewall ingress rules delete*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppFirewallIngressRuleDeleteCall.html), [*firewall ingress rules get*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppFirewallIngressRuleGetCall.html), [*firewall ingress rules list*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppFirewallIngressRuleListCall.html), [*firewall ingress rules patch*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppFirewallIngressRulePatchCall.html), [*get*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppGetCall.html), [*locations get*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppLocationGetCall.html), [*locations list*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppLocationListCall.html), [*operations get*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppOperationGetCall.html), [*operations list*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppOperationListCall.html), [*patch*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppPatchCall.html), [*repair*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppRepairCall.html), [*services delete*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppServiceDeleteCall.html), [*services get*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppServiceGetCall.html), [*services list*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppServiceListCall.html), [*services patch*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppServicePatchCall.html), [*services versions create*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppServiceVersionCreateCall.html), [*services versions delete*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppServiceVersionDeleteCall.html), [*services versions get*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppServiceVersionGetCall.html), [*services versions instances debug*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppServiceVersionInstanceDebugCall.html), [*services versions instances delete*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppServiceVersionInstanceDeleteCall.html), [*services versions instances get*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppServiceVersionInstanceGetCall.html), [*services versions instances list*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppServiceVersionInstanceListCall.html), [*services versions list*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppServiceVersionListCall.html) and [*services versions patch*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.AppServiceVersionPatchCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/struct.Appengine.html)** +* **[Hub](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/struct.Appengine.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.Part.html)** + * **[Parts](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -143,17 +143,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -163,29 +163,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-appengine1/1.0.11+20190624/google_appengine1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-appengine1/1.0.12+20190624/google_appengine1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/appengine1/src/lib.rs b/gen/appengine1/src/lib.rs index 78e534a5e0..7b1ffba7f8 100644 --- a/gen/appengine1/src/lib.rs +++ b/gen/appengine1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *appengine* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *appengine:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *appengine* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *appengine:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *appengine* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/appengine/docs/admin-api/). @@ -350,7 +350,7 @@ impl<'a, C, A> Appengine Appengine { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://appengine.googleapis.com/".to_string(), _root_url: "https://appengine.googleapis.com/".to_string(), } @@ -361,7 +361,7 @@ impl<'a, C, A> Appengine } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/appengine1_beta4-cli/Cargo.toml b/gen/appengine1_beta4-cli/Cargo.toml index f00e1180bb..0cad078e3b 100644 --- a/gen/appengine1_beta4-cli/Cargo.toml +++ b/gen/appengine1_beta4-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-appengine1_beta4-cli" -version = "1.0.11+20181005" +version = "1.0.12+20181005" authors = ["Sebastian Thiel "] description = "A complete library to interact with appengine (protocol v1beta4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/appengine1_beta4-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-appengine1_beta4] path = "../appengine1_beta4" -version = "1.0.11+20181005" +version = "1.0.12+20181005" diff --git a/gen/appengine1_beta4-cli/LICENSE.md b/gen/appengine1_beta4-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/appengine1_beta4-cli/LICENSE.md +++ b/gen/appengine1_beta4-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/appengine1_beta4-cli/README.md b/gen/appengine1_beta4-cli/README.md index faafbe0f68..050c1d712f 100644 --- a/gen/appengine1_beta4-cli/README.md +++ b/gen/appengine1_beta4-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *appengine* API at revision *20181005*. The CLI is at version *1.0.11*. +This documentation was generated from the *appengine* API at revision *20181005*. The CLI is at version *1.0.12*. ```bash appengine1-beta4 [options] diff --git a/gen/appengine1_beta4-cli/mkdocs.yml b/gen/appengine1_beta4-cli/mkdocs.yml index d2b6aa655f..5e16cbd089 100644 --- a/gen/appengine1_beta4-cli/mkdocs.yml +++ b/gen/appengine1_beta4-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: appengine v1.0.11+20181005 +site_name: appengine v1.0.12+20181005 site_url: http://byron.github.io/google-apis-rs/google-appengine1_beta4-cli site_description: A complete library to interact with appengine (protocol v1beta4) @@ -32,5 +32,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/appengine1_beta4-cli/src/cmn.rs b/gen/appengine1_beta4-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/appengine1_beta4-cli/src/cmn.rs +++ b/gen/appengine1_beta4-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/appengine1_beta4-cli/src/main.rs b/gen/appengine1_beta4-cli/src/main.rs index 67ae79a699..fc44ce6558 100644 --- a/gen/appengine1_beta4-cli/src/main.rs +++ b/gen/appengine1_beta4-cli/src/main.rs @@ -2285,7 +2285,7 @@ fn main() { let mut app = App::new("appengine1-beta4") .author("Sebastian Thiel ") - .version("1.0.11+20181005") + .version("1.0.12+20181005") .about("The App Engine Admin API enables developers to provision and manage their App Engine applications.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_appengine1_beta4_cli") .arg(Arg::with_name("url") diff --git a/gen/appengine1_beta4/Cargo.toml b/gen/appengine1_beta4/Cargo.toml index e1e84e0064..24c766b63e 100644 --- a/gen/appengine1_beta4/Cargo.toml +++ b/gen/appengine1_beta4/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-appengine1_beta4" -version = "1.0.11+20181005" +version = "1.0.12+20181005" authors = ["Sebastian Thiel "] description = "A complete library to interact with appengine (protocol v1beta4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/appengine1_beta4" homepage = "https://cloud.google.com/appengine/docs/admin-api/" -documentation = "https://docs.rs/google-appengine1_beta4/1.0.11+20181005" +documentation = "https://docs.rs/google-appengine1_beta4/1.0.12+20181005" license = "MIT" keywords = ["appengine", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/appengine1_beta4/LICENSE.md b/gen/appengine1_beta4/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/appengine1_beta4/LICENSE.md +++ b/gen/appengine1_beta4/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/appengine1_beta4/README.md b/gen/appengine1_beta4/README.md index 8475f9af1b..c4a9471c1d 100644 --- a/gen/appengine1_beta4/README.md +++ b/gen/appengine1_beta4/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-appengine1_beta4` library allows access to all features of the *Google appengine* service. -This documentation was generated from *appengine* crate version *1.0.11+20181005*, where *20181005* is the exact revision of the *appengine:v1beta4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *appengine* crate version *1.0.12+20181005*, where *20181005* is the exact revision of the *appengine:v1beta4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *appengine* *v1_beta4* API can be found at the [official documentation site](https://cloud.google.com/appengine/docs/admin-api/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.Appengine.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.Appengine.html) ... * apps - * [*create*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppCreateCall.html), [*get*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppGetCall.html), [*locations get*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppLocationGetCall.html), [*locations list*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppLocationListCall.html), [*modules delete*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppModuleDeleteCall.html), [*modules get*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppModuleGetCall.html), [*modules list*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppModuleListCall.html), [*modules patch*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppModulePatchCall.html), [*modules versions create*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppModuleVersionCreateCall.html), [*modules versions delete*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppModuleVersionDeleteCall.html), [*modules versions get*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppModuleVersionGetCall.html), [*modules versions instances debug*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppModuleVersionInstanceDebugCall.html), [*modules versions instances delete*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppModuleVersionInstanceDeleteCall.html), [*modules versions instances get*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppModuleVersionInstanceGetCall.html), [*modules versions instances list*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppModuleVersionInstanceListCall.html), [*modules versions list*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppModuleVersionListCall.html), [*modules versions patch*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppModuleVersionPatchCall.html), [*operations get*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppOperationGetCall.html), [*operations list*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppOperationListCall.html) and [*patch*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.AppPatchCall.html) + * [*create*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppCreateCall.html), [*get*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppGetCall.html), [*locations get*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppLocationGetCall.html), [*locations list*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppLocationListCall.html), [*modules delete*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppModuleDeleteCall.html), [*modules get*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppModuleGetCall.html), [*modules list*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppModuleListCall.html), [*modules patch*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppModulePatchCall.html), [*modules versions create*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppModuleVersionCreateCall.html), [*modules versions delete*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppModuleVersionDeleteCall.html), [*modules versions get*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppModuleVersionGetCall.html), [*modules versions instances debug*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppModuleVersionInstanceDebugCall.html), [*modules versions instances delete*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppModuleVersionInstanceDeleteCall.html), [*modules versions instances get*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppModuleVersionInstanceGetCall.html), [*modules versions instances list*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppModuleVersionInstanceListCall.html), [*modules versions list*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppModuleVersionListCall.html), [*modules versions patch*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppModuleVersionPatchCall.html), [*operations get*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppOperationGetCall.html), [*operations list*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppOperationListCall.html) and [*patch*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.AppPatchCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/struct.Appengine.html)** +* **[Hub](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/struct.Appengine.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.Part.html)** + * **[Parts](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -141,17 +141,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -161,29 +161,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.RequestValue.html) and -[decodable](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.RequestValue.html) and +[decodable](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-appengine1_beta4/1.0.11+20181005/google_appengine1_beta4/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-appengine1_beta4/1.0.12+20181005/google_appengine1_beta4/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/appengine1_beta4/src/lib.rs b/gen/appengine1_beta4/src/lib.rs index de3f544cc6..5a46b9e2c0 100644 --- a/gen/appengine1_beta4/src/lib.rs +++ b/gen/appengine1_beta4/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *appengine* crate version *1.0.11+20181005*, where *20181005* is the exact revision of the *appengine:v1beta4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *appengine* crate version *1.0.12+20181005*, where *20181005* is the exact revision of the *appengine:v1beta4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *appengine* *v1_beta4* API can be found at the //! [official documentation site](https://cloud.google.com/appengine/docs/admin-api/). @@ -350,7 +350,7 @@ impl<'a, C, A> Appengine Appengine { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://appengine.googleapis.com/".to_string(), _root_url: "https://appengine.googleapis.com/".to_string(), } @@ -361,7 +361,7 @@ impl<'a, C, A> Appengine } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/appengine1_beta5-cli/Cargo.toml b/gen/appengine1_beta5-cli/Cargo.toml index 71a95fb94f..6447720e84 100644 --- a/gen/appengine1_beta5-cli/Cargo.toml +++ b/gen/appengine1_beta5-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-appengine1_beta5-cli" -version = "1.0.11+20181005" +version = "1.0.12+20181005" authors = ["Sebastian Thiel "] description = "A complete library to interact with appengine (protocol v1beta5)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/appengine1_beta5-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-appengine1_beta5] path = "../appengine1_beta5" -version = "1.0.11+20181005" +version = "1.0.12+20181005" diff --git a/gen/appengine1_beta5-cli/LICENSE.md b/gen/appengine1_beta5-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/appengine1_beta5-cli/LICENSE.md +++ b/gen/appengine1_beta5-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/appengine1_beta5-cli/README.md b/gen/appengine1_beta5-cli/README.md index 235d779bbf..acabd7fff3 100644 --- a/gen/appengine1_beta5-cli/README.md +++ b/gen/appengine1_beta5-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *appengine* API at revision *20181005*. The CLI is at version *1.0.11*. +This documentation was generated from the *appengine* API at revision *20181005*. The CLI is at version *1.0.12*. ```bash appengine1-beta5 [options] diff --git a/gen/appengine1_beta5-cli/mkdocs.yml b/gen/appengine1_beta5-cli/mkdocs.yml index d0b250a7f6..b60a9090e4 100644 --- a/gen/appengine1_beta5-cli/mkdocs.yml +++ b/gen/appengine1_beta5-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: appengine v1.0.11+20181005 +site_name: appengine v1.0.12+20181005 site_url: http://byron.github.io/google-apis-rs/google-appengine1_beta5-cli site_description: A complete library to interact with appengine (protocol v1beta5) @@ -32,5 +32,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/appengine1_beta5-cli/src/cmn.rs b/gen/appengine1_beta5-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/appengine1_beta5-cli/src/cmn.rs +++ b/gen/appengine1_beta5-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/appengine1_beta5-cli/src/main.rs b/gen/appengine1_beta5-cli/src/main.rs index 94d7561fd5..78b6871156 100644 --- a/gen/appengine1_beta5-cli/src/main.rs +++ b/gen/appengine1_beta5-cli/src/main.rs @@ -2289,7 +2289,7 @@ fn main() { let mut app = App::new("appengine1-beta5") .author("Sebastian Thiel ") - .version("1.0.11+20181005") + .version("1.0.12+20181005") .about("The App Engine Admin API enables developers to provision and manage their App Engine applications.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_appengine1_beta5_cli") .arg(Arg::with_name("url") diff --git a/gen/appengine1_beta5/Cargo.toml b/gen/appengine1_beta5/Cargo.toml index 91e5df2cf1..b3b26899da 100644 --- a/gen/appengine1_beta5/Cargo.toml +++ b/gen/appengine1_beta5/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-appengine1_beta5" -version = "1.0.11+20181005" +version = "1.0.12+20181005" authors = ["Sebastian Thiel "] description = "A complete library to interact with appengine (protocol v1beta5)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/appengine1_beta5" homepage = "https://cloud.google.com/appengine/docs/admin-api/" -documentation = "https://docs.rs/google-appengine1_beta5/1.0.11+20181005" +documentation = "https://docs.rs/google-appengine1_beta5/1.0.12+20181005" license = "MIT" keywords = ["appengine", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/appengine1_beta5/LICENSE.md b/gen/appengine1_beta5/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/appengine1_beta5/LICENSE.md +++ b/gen/appengine1_beta5/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/appengine1_beta5/README.md b/gen/appengine1_beta5/README.md index dabb738861..06e176a0aa 100644 --- a/gen/appengine1_beta5/README.md +++ b/gen/appengine1_beta5/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-appengine1_beta5` library allows access to all features of the *Google appengine* service. -This documentation was generated from *appengine* crate version *1.0.11+20181005*, where *20181005* is the exact revision of the *appengine:v1beta5* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *appengine* crate version *1.0.12+20181005*, where *20181005* is the exact revision of the *appengine:v1beta5* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *appengine* *v1_beta5* API can be found at the [official documentation site](https://cloud.google.com/appengine/docs/admin-api/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.Appengine.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.Appengine.html) ... * apps - * [*create*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppCreateCall.html), [*get*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppGetCall.html), [*locations get*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppLocationGetCall.html), [*locations list*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppLocationListCall.html), [*operations get*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppOperationGetCall.html), [*operations list*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppOperationListCall.html), [*patch*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppPatchCall.html), [*services delete*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppServiceDeleteCall.html), [*services get*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppServiceGetCall.html), [*services list*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppServiceListCall.html), [*services patch*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppServicePatchCall.html), [*services versions create*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppServiceVersionCreateCall.html), [*services versions delete*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppServiceVersionDeleteCall.html), [*services versions get*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppServiceVersionGetCall.html), [*services versions instances debug*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppServiceVersionInstanceDebugCall.html), [*services versions instances delete*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppServiceVersionInstanceDeleteCall.html), [*services versions instances get*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppServiceVersionInstanceGetCall.html), [*services versions instances list*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppServiceVersionInstanceListCall.html), [*services versions list*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppServiceVersionListCall.html) and [*services versions patch*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.AppServiceVersionPatchCall.html) + * [*create*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppCreateCall.html), [*get*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppGetCall.html), [*locations get*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppLocationGetCall.html), [*locations list*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppLocationListCall.html), [*operations get*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppOperationGetCall.html), [*operations list*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppOperationListCall.html), [*patch*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppPatchCall.html), [*services delete*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppServiceDeleteCall.html), [*services get*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppServiceGetCall.html), [*services list*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppServiceListCall.html), [*services patch*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppServicePatchCall.html), [*services versions create*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppServiceVersionCreateCall.html), [*services versions delete*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppServiceVersionDeleteCall.html), [*services versions get*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppServiceVersionGetCall.html), [*services versions instances debug*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppServiceVersionInstanceDebugCall.html), [*services versions instances delete*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppServiceVersionInstanceDeleteCall.html), [*services versions instances get*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppServiceVersionInstanceGetCall.html), [*services versions instances list*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppServiceVersionInstanceListCall.html), [*services versions list*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppServiceVersionListCall.html) and [*services versions patch*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.AppServiceVersionPatchCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/struct.Appengine.html)** +* **[Hub](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/struct.Appengine.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.Part.html)** + * **[Parts](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -139,17 +139,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -159,29 +159,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.RequestValue.html) and -[decodable](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.RequestValue.html) and +[decodable](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-appengine1_beta5/1.0.11+20181005/google_appengine1_beta5/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-appengine1_beta5/1.0.12+20181005/google_appengine1_beta5/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/appengine1_beta5/src/lib.rs b/gen/appengine1_beta5/src/lib.rs index 0cd1705d0b..b9d9db67c9 100644 --- a/gen/appengine1_beta5/src/lib.rs +++ b/gen/appengine1_beta5/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *appengine* crate version *1.0.11+20181005*, where *20181005* is the exact revision of the *appengine:v1beta5* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *appengine* crate version *1.0.12+20181005*, where *20181005* is the exact revision of the *appengine:v1beta5* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *appengine* *v1_beta5* API can be found at the //! [official documentation site](https://cloud.google.com/appengine/docs/admin-api/). @@ -346,7 +346,7 @@ impl<'a, C, A> Appengine Appengine { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://appengine.googleapis.com/".to_string(), _root_url: "https://appengine.googleapis.com/".to_string(), } @@ -357,7 +357,7 @@ impl<'a, C, A> Appengine } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/appsactivity1-cli/Cargo.toml b/gen/appsactivity1-cli/Cargo.toml index dc2d8bd99f..4723954530 100644 --- a/gen/appsactivity1-cli/Cargo.toml +++ b/gen/appsactivity1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-appsactivity1-cli" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with appsactivity (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/appsactivity1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-appsactivity1] path = "../appsactivity1" -version = "1.0.11+20190701" +version = "1.0.12+20190701" diff --git a/gen/appsactivity1-cli/LICENSE.md b/gen/appsactivity1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/appsactivity1-cli/LICENSE.md +++ b/gen/appsactivity1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/appsactivity1-cli/README.md b/gen/appsactivity1-cli/README.md index 7ca14cb0e1..b0c6ef4b8a 100644 --- a/gen/appsactivity1-cli/README.md +++ b/gen/appsactivity1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *appsactivity* API at revision *20190701*. The CLI is at version *1.0.11*. +This documentation was generated from the *appsactivity* API at revision *20190701*. The CLI is at version *1.0.12*. ```bash appsactivity1 [options] diff --git a/gen/appsactivity1-cli/mkdocs.yml b/gen/appsactivity1-cli/mkdocs.yml index 38a167bba8..c7e5ab1c0c 100644 --- a/gen/appsactivity1-cli/mkdocs.yml +++ b/gen/appsactivity1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: appsactivity v1.0.11+20190701 +site_name: appsactivity v1.0.12+20190701 site_url: http://byron.github.io/google-apis-rs/google-appsactivity1-cli site_description: A complete library to interact with appsactivity (protocol v1) @@ -13,5 +13,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/appsactivity1-cli/src/cmn.rs b/gen/appsactivity1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/appsactivity1-cli/src/cmn.rs +++ b/gen/appsactivity1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/appsactivity1-cli/src/main.rs b/gen/appsactivity1-cli/src/main.rs index edd6c8c42c..e84e551b2e 100644 --- a/gen/appsactivity1-cli/src/main.rs +++ b/gen/appsactivity1-cli/src/main.rs @@ -241,7 +241,7 @@ fn main() { let mut app = App::new("appsactivity1") .author("Sebastian Thiel ") - .version("1.0.11+20190701") + .version("1.0.12+20190701") .about("Provides a historical view of activity.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_appsactivity1_cli") .arg(Arg::with_name("url") diff --git a/gen/appsactivity1/Cargo.toml b/gen/appsactivity1/Cargo.toml index f4f8d03d86..f15801d527 100644 --- a/gen/appsactivity1/Cargo.toml +++ b/gen/appsactivity1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-appsactivity1" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with appsactivity (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/appsactivity1" homepage = "https://developers.google.com/google-apps/activity/" -documentation = "https://docs.rs/google-appsactivity1/1.0.11+20190701" +documentation = "https://docs.rs/google-appsactivity1/1.0.12+20190701" license = "MIT" keywords = ["appsactivity", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/appsactivity1/LICENSE.md b/gen/appsactivity1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/appsactivity1/LICENSE.md +++ b/gen/appsactivity1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/appsactivity1/README.md b/gen/appsactivity1/README.md index 8d063307bf..1f988d7ad4 100644 --- a/gen/appsactivity1/README.md +++ b/gen/appsactivity1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-appsactivity1` library allows access to all features of the *Google appsactivity* service. -This documentation was generated from *appsactivity* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *appsactivity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *appsactivity* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *appsactivity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *appsactivity* *v1* API can be found at the [official documentation site](https://developers.google.com/google-apps/activity/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/struct.Appsactivity.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/struct.Appsactivity.html) ... -* [activities](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/struct.Activity.html) - * [*list*](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/struct.ActivityListCall.html) +* [activities](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/struct.Activity.html) + * [*list*](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/struct.ActivityListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/struct.Appsactivity.html)** +* **[Hub](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/struct.Appsactivity.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.Part.html)** + * **[Parts](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -131,17 +131,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -151,29 +151,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-appsactivity1/1.0.11+20190701/google_appsactivity1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-appsactivity1/1.0.12+20190701/google_appsactivity1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/appsactivity1/src/lib.rs b/gen/appsactivity1/src/lib.rs index 049c7ccdf7..efc789aa3c 100644 --- a/gen/appsactivity1/src/lib.rs +++ b/gen/appsactivity1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *appsactivity* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *appsactivity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *appsactivity* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *appsactivity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *appsactivity* *v1* API can be found at the //! [official documentation site](https://developers.google.com/google-apps/activity/). @@ -331,7 +331,7 @@ impl<'a, C, A> Appsactivity Appsactivity { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/appsactivity/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -342,7 +342,7 @@ impl<'a, C, A> Appsactivity } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/appstate1-cli/Cargo.toml b/gen/appstate1-cli/Cargo.toml index dd3c7e384c..e682e17ab1 100644 --- a/gen/appstate1-cli/Cargo.toml +++ b/gen/appstate1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-appstate1-cli" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with App State (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/appstate1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-appstate1] path = "../appstate1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" diff --git a/gen/appstate1-cli/LICENSE.md b/gen/appstate1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/appstate1-cli/LICENSE.md +++ b/gen/appstate1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/appstate1-cli/README.md b/gen/appstate1-cli/README.md index 8bd926364f..6580191e45 100644 --- a/gen/appstate1-cli/README.md +++ b/gen/appstate1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *App State* API at revision *20190627*. The CLI is at version *1.0.11*. +This documentation was generated from the *App State* API at revision *20190627*. The CLI is at version *1.0.12*. ```bash appstate1 [options] diff --git a/gen/appstate1-cli/mkdocs.yml b/gen/appstate1-cli/mkdocs.yml index a608930702..bb93d8e494 100644 --- a/gen/appstate1-cli/mkdocs.yml +++ b/gen/appstate1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: App State v1.0.11+20190627 +site_name: App State v1.0.12+20190627 site_url: http://byron.github.io/google-apis-rs/google-appstate1-cli site_description: A complete library to interact with App State (protocol v1) @@ -17,5 +17,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/appstate1-cli/src/cmn.rs b/gen/appstate1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/appstate1-cli/src/cmn.rs +++ b/gen/appstate1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/appstate1-cli/src/main.rs b/gen/appstate1-cli/src/main.rs index c36e1bbeda..c1fb37e4ad 100644 --- a/gen/appstate1-cli/src/main.rs +++ b/gen/appstate1-cli/src/main.rs @@ -569,7 +569,7 @@ fn main() { let mut app = App::new("appstate1") .author("Sebastian Thiel ") - .version("1.0.11+20190627") + .version("1.0.12+20190627") .about("The Google App State API.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_appstate1_cli") .arg(Arg::with_name("url") diff --git a/gen/appstate1/Cargo.toml b/gen/appstate1/Cargo.toml index 1071dfede8..77156ddc21 100644 --- a/gen/appstate1/Cargo.toml +++ b/gen/appstate1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-appstate1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with App State (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/appstate1" homepage = "https://developers.google.com/games/services/web/api/states" -documentation = "https://docs.rs/google-appstate1/1.0.11+20190627" +documentation = "https://docs.rs/google-appstate1/1.0.12+20190627" license = "MIT" keywords = ["appstate", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/appstate1/LICENSE.md b/gen/appstate1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/appstate1/LICENSE.md +++ b/gen/appstate1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/appstate1/README.md b/gen/appstate1/README.md index 551b15ef38..eebdb052ce 100644 --- a/gen/appstate1/README.md +++ b/gen/appstate1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-appstate1` library allows access to all features of the *Google App State* service. -This documentation was generated from *App State* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *appstate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *App State* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *appstate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *App State* *v1* API can be found at the [official documentation site](https://developers.google.com/games/services/web/api/states). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/struct.AppState.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/struct.AppState.html) ... * states - * [*clear*](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/struct.StateClearCall.html), [*delete*](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/struct.StateDeleteCall.html), [*get*](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/struct.StateGetCall.html), [*list*](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/struct.StateListCall.html) and [*update*](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/struct.StateUpdateCall.html) + * [*clear*](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/struct.StateClearCall.html), [*delete*](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/struct.StateDeleteCall.html), [*get*](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/struct.StateGetCall.html), [*list*](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/struct.StateListCall.html) and [*update*](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/struct.StateUpdateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/struct.AppState.html)** +* **[Hub](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/struct.AppState.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.Part.html)** + * **[Parts](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-appstate1/1.0.11+20190627/google_appstate1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-appstate1/1.0.12+20190627/google_appstate1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/appstate1/src/lib.rs b/gen/appstate1/src/lib.rs index 322b58a59f..fd032e6dd6 100644 --- a/gen/appstate1/src/lib.rs +++ b/gen/appstate1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *App State* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *appstate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *App State* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *appstate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *App State* *v1* API can be found at the //! [official documentation site](https://developers.google.com/games/services/web/api/states). @@ -332,7 +332,7 @@ impl<'a, C, A> AppState AppState { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/appstate/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -343,7 +343,7 @@ impl<'a, C, A> AppState } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/autoscaler1_beta2-cli/Cargo.toml b/gen/autoscaler1_beta2-cli/Cargo.toml index 029623f599..91fc2a9fe0 100644 --- a/gen/autoscaler1_beta2-cli/Cargo.toml +++ b/gen/autoscaler1_beta2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-autoscaler1_beta2-cli" -version = "1.0.11+20150629" +version = "1.0.12+20150629" authors = ["Sebastian Thiel "] description = "A complete library to interact with autoscaler (protocol v1beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/autoscaler1_beta2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-autoscaler1_beta2] path = "../autoscaler1_beta2" -version = "1.0.11+20150629" +version = "1.0.12+20150629" diff --git a/gen/autoscaler1_beta2-cli/LICENSE.md b/gen/autoscaler1_beta2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/autoscaler1_beta2-cli/LICENSE.md +++ b/gen/autoscaler1_beta2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/autoscaler1_beta2-cli/README.md b/gen/autoscaler1_beta2-cli/README.md index 193d159981..14fd622406 100644 --- a/gen/autoscaler1_beta2-cli/README.md +++ b/gen/autoscaler1_beta2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *autoscaler* API at revision *20150629*. The CLI is at version *1.0.11*. +This documentation was generated from the *autoscaler* API at revision *20150629*. The CLI is at version *1.0.12*. ```bash autoscaler1-beta2 [options] diff --git a/gen/autoscaler1_beta2-cli/mkdocs.yml b/gen/autoscaler1_beta2-cli/mkdocs.yml index ec939b2715..7b48f45f56 100644 --- a/gen/autoscaler1_beta2-cli/mkdocs.yml +++ b/gen/autoscaler1_beta2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: autoscaler v1.0.11+20150629 +site_name: autoscaler v1.0.12+20150629 site_url: http://byron.github.io/google-apis-rs/google-autoscaler1_beta2-cli site_description: A complete library to interact with autoscaler (protocol v1beta2) @@ -22,5 +22,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/autoscaler1_beta2-cli/src/cmn.rs b/gen/autoscaler1_beta2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/autoscaler1_beta2-cli/src/cmn.rs +++ b/gen/autoscaler1_beta2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/autoscaler1_beta2-cli/src/main.rs b/gen/autoscaler1_beta2-cli/src/main.rs index f7ca3cd53b..726e7b164b 100644 --- a/gen/autoscaler1_beta2-cli/src/main.rs +++ b/gen/autoscaler1_beta2-cli/src/main.rs @@ -1196,7 +1196,7 @@ fn main() { let mut app = App::new("autoscaler1-beta2") .author("Sebastian Thiel ") - .version("1.0.11+20150629") + .version("1.0.12+20150629") .about("The Google Compute Engine Autoscaler API provides autoscaling for groups of Cloud VMs.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_autoscaler1_beta2_cli") .arg(Arg::with_name("url") diff --git a/gen/autoscaler1_beta2/Cargo.toml b/gen/autoscaler1_beta2/Cargo.toml index b87fe6d350..b6eab44259 100644 --- a/gen/autoscaler1_beta2/Cargo.toml +++ b/gen/autoscaler1_beta2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-autoscaler1_beta2" -version = "1.0.11+20150629" +version = "1.0.12+20150629" authors = ["Sebastian Thiel "] description = "A complete library to interact with autoscaler (protocol v1beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/autoscaler1_beta2" homepage = "http://developers.google.com/compute/docs/autoscaler" -documentation = "https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629" +documentation = "https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629" license = "MIT" keywords = ["autoscaler", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/autoscaler1_beta2/LICENSE.md b/gen/autoscaler1_beta2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/autoscaler1_beta2/LICENSE.md +++ b/gen/autoscaler1_beta2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/autoscaler1_beta2/README.md b/gen/autoscaler1_beta2/README.md index dad8575ff5..b7d7da0aa5 100644 --- a/gen/autoscaler1_beta2/README.md +++ b/gen/autoscaler1_beta2/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-autoscaler1_beta2` library allows access to all features of the *Google autoscaler* service. -This documentation was generated from *autoscaler* crate version *1.0.11+20150629*, where *20150629* is the exact revision of the *autoscaler:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *autoscaler* crate version *1.0.12+20150629*, where *20150629* is the exact revision of the *autoscaler:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *autoscaler* *v1_beta2* API can be found at the [official documentation site](http://developers.google.com/compute/docs/autoscaler). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/struct.AutoscalerHub.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/struct.AutoscalerHub.html) ... -* [autoscalers](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/struct.Autoscaler.html) - * [*delete*](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/struct.AutoscalerDeleteCall.html), [*get*](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/struct.AutoscalerGetCall.html), [*insert*](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/struct.AutoscalerInsertCall.html), [*list*](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/struct.AutoscalerListCall.html), [*patch*](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/struct.AutoscalerPatchCall.html) and [*update*](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/struct.AutoscalerUpdateCall.html) +* [autoscalers](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/struct.Autoscaler.html) + * [*delete*](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/struct.AutoscalerDeleteCall.html), [*get*](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/struct.AutoscalerGetCall.html), [*insert*](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/struct.AutoscalerInsertCall.html), [*list*](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/struct.AutoscalerListCall.html), [*patch*](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/struct.AutoscalerPatchCall.html) and [*update*](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/struct.AutoscalerUpdateCall.html) * zone operations - * [*delete*](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/struct.ZoneOperationDeleteCall.html), [*get*](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/struct.ZoneOperationGetCall.html) and [*list*](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/struct.ZoneOperationListCall.html) -* [zones](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/struct.Zone.html) - * [*list*](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/struct.ZoneListCall.html) + * [*delete*](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/struct.ZoneOperationDeleteCall.html), [*get*](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/struct.ZoneOperationGetCall.html) and [*list*](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/struct.ZoneOperationListCall.html) +* [zones](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/struct.Zone.html) + * [*list*](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/struct.ZoneListCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/struct.AutoscalerHub.html)** +* **[Hub](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/struct.AutoscalerHub.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.Part.html)** + * **[Parts](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-autoscaler1_beta2/1.0.11+20150629/google_autoscaler1_beta2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-autoscaler1_beta2/1.0.12+20150629/google_autoscaler1_beta2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/autoscaler1_beta2/src/lib.rs b/gen/autoscaler1_beta2/src/lib.rs index cf15ee49f2..1fa9ed9c62 100644 --- a/gen/autoscaler1_beta2/src/lib.rs +++ b/gen/autoscaler1_beta2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *autoscaler* crate version *1.0.11+20150629*, where *20150629* is the exact revision of the *autoscaler:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *autoscaler* crate version *1.0.12+20150629*, where *20150629* is the exact revision of the *autoscaler:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *autoscaler* *v1_beta2* API can be found at the //! [official documentation site](http://developers.google.com/compute/docs/autoscaler). @@ -336,7 +336,7 @@ impl<'a, C, A> AutoscalerHub AutoscalerHub { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/autoscaler/v1beta2/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -353,7 +353,7 @@ impl<'a, C, A> AutoscalerHub } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/bigquery2-cli/Cargo.toml b/gen/bigquery2-cli/Cargo.toml index 69d7a4d74a..9a913e6d4a 100644 --- a/gen/bigquery2-cli/Cargo.toml +++ b/gen/bigquery2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-bigquery2-cli" -version = "1.0.11+20190630" +version = "1.0.12+20190630" authors = ["Sebastian Thiel "] description = "A complete library to interact with bigquery (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/bigquery2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-bigquery2] path = "../bigquery2" -version = "1.0.11+20190630" +version = "1.0.12+20190630" diff --git a/gen/bigquery2-cli/LICENSE.md b/gen/bigquery2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/bigquery2-cli/LICENSE.md +++ b/gen/bigquery2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/bigquery2-cli/README.md b/gen/bigquery2-cli/README.md index bdbbbb5972..3ac84bc573 100644 --- a/gen/bigquery2-cli/README.md +++ b/gen/bigquery2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *bigquery* API at revision *20190630*. The CLI is at version *1.0.11*. +This documentation was generated from the *bigquery* API at revision *20190630*. The CLI is at version *1.0.12*. ```bash bigquery2 [options] diff --git a/gen/bigquery2-cli/mkdocs.yml b/gen/bigquery2-cli/mkdocs.yml index 194eecca2f..bbb984a2e8 100644 --- a/gen/bigquery2-cli/mkdocs.yml +++ b/gen/bigquery2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: bigquery v1.0.11+20190630 +site_name: bigquery v1.0.12+20190630 site_url: http://byron.github.io/google-apis-rs/google-bigquery2-cli site_description: A complete library to interact with bigquery (protocol v2) @@ -43,5 +43,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/bigquery2-cli/src/cmn.rs b/gen/bigquery2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/bigquery2-cli/src/cmn.rs +++ b/gen/bigquery2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/bigquery2-cli/src/main.rs b/gen/bigquery2-cli/src/main.rs index 975a2c01bd..74c7e29ffb 100644 --- a/gen/bigquery2-cli/src/main.rs +++ b/gen/bigquery2-cli/src/main.rs @@ -3748,7 +3748,7 @@ fn main() { let mut app = App::new("bigquery2") .author("Sebastian Thiel ") - .version("1.0.11+20190630") + .version("1.0.12+20190630") .about("A data platform for customers to create, manage, share and query data.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_bigquery2_cli") .arg(Arg::with_name("url") diff --git a/gen/bigquery2/Cargo.toml b/gen/bigquery2/Cargo.toml index bbc55907f4..341d387c42 100644 --- a/gen/bigquery2/Cargo.toml +++ b/gen/bigquery2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-bigquery2" -version = "1.0.11+20190630" +version = "1.0.12+20190630" authors = ["Sebastian Thiel "] description = "A complete library to interact with bigquery (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/bigquery2" homepage = "https://cloud.google.com/bigquery/" -documentation = "https://docs.rs/google-bigquery2/1.0.11+20190630" +documentation = "https://docs.rs/google-bigquery2/1.0.12+20190630" license = "MIT" keywords = ["bigquery", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/bigquery2/LICENSE.md b/gen/bigquery2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/bigquery2/LICENSE.md +++ b/gen/bigquery2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/bigquery2/README.md b/gen/bigquery2/README.md index 57f779da28..571a172184 100644 --- a/gen/bigquery2/README.md +++ b/gen/bigquery2/README.md @@ -5,33 +5,33 @@ DO NOT EDIT ! --> The `google-bigquery2` library allows access to all features of the *Google bigquery* service. -This documentation was generated from *bigquery* crate version *1.0.11+20190630*, where *20190630* is the exact revision of the *bigquery:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *bigquery* crate version *1.0.12+20190630*, where *20190630* is the exact revision of the *bigquery:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *bigquery* *v2* API can be found at the [official documentation site](https://cloud.google.com/bigquery/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.Bigquery.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.Bigquery.html) ... -* [datasets](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.Dataset.html) - * [*delete*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.DatasetDeleteCall.html), [*get*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.DatasetGetCall.html), [*insert*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.DatasetInsertCall.html), [*list*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.DatasetListCall.html), [*patch*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.DatasetPatchCall.html) and [*update*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.DatasetUpdateCall.html) -* [jobs](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.Job.html) - * [*cancel*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.JobCancelCall.html), [*get*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.JobGetCall.html), [*get query results*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.JobGetQueryResultCall.html), [*insert*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.JobInsertCall.html), [*list*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.JobListCall.html) and [*query*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.JobQueryCall.html) -* [models](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.Model.html) - * [*delete*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.ModelDeleteCall.html), [*get*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.ModelGetCall.html), [*list*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.ModelListCall.html) and [*patch*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.ModelPatchCall.html) +* [datasets](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.Dataset.html) + * [*delete*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.DatasetDeleteCall.html), [*get*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.DatasetGetCall.html), [*insert*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.DatasetInsertCall.html), [*list*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.DatasetListCall.html), [*patch*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.DatasetPatchCall.html) and [*update*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.DatasetUpdateCall.html) +* [jobs](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.Job.html) + * [*cancel*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.JobCancelCall.html), [*get*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.JobGetCall.html), [*get query results*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.JobGetQueryResultCall.html), [*insert*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.JobInsertCall.html), [*list*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.JobListCall.html) and [*query*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.JobQueryCall.html) +* [models](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.Model.html) + * [*delete*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.ModelDeleteCall.html), [*get*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.ModelGetCall.html), [*list*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.ModelListCall.html) and [*patch*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.ModelPatchCall.html) * projects - * [*get service account*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.ProjectGetServiceAccountCall.html) and [*list*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.ProjectListCall.html) -* [routines](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.Routine.html) - * [*delete*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.RoutineDeleteCall.html), [*get*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.RoutineGetCall.html), [*insert*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.RoutineInsertCall.html), [*list*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.RoutineListCall.html) and [*update*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.RoutineUpdateCall.html) + * [*get service account*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.ProjectGetServiceAccountCall.html) and [*list*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.ProjectListCall.html) +* [routines](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.Routine.html) + * [*delete*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.RoutineDeleteCall.html), [*get*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.RoutineGetCall.html), [*insert*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.RoutineInsertCall.html), [*list*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.RoutineListCall.html) and [*update*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.RoutineUpdateCall.html) * tabledata - * [*insert all*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.TabledataInsertAllCall.html) and [*list*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.TabledataListCall.html) -* [tables](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.Table.html) - * [*delete*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.TableDeleteCall.html), [*get*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.TableGetCall.html), [*insert*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.TableInsertCall.html), [*list*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.TableListCall.html), [*patch*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.TablePatchCall.html) and [*update*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.TableUpdateCall.html) + * [*insert all*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.TabledataInsertAllCall.html) and [*list*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.TabledataListCall.html) +* [tables](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.Table.html) + * [*delete*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.TableDeleteCall.html), [*get*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.TableGetCall.html), [*insert*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.TableInsertCall.html), [*list*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.TableListCall.html), [*patch*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.TablePatchCall.html) and [*update*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.TableUpdateCall.html) Upload supported by ... -* [*insert jobs*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.JobInsertCall.html) +* [*insert jobs*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.JobInsertCall.html) @@ -39,17 +39,17 @@ Upload supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/struct.Bigquery.html)** +* **[Hub](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/struct.Bigquery.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.Part.html)** + * **[Parts](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -151,17 +151,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -171,29 +171,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-bigquery2/1.0.11+20190630/google_bigquery2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-bigquery2/1.0.12+20190630/google_bigquery2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/bigquery2/src/lib.rs b/gen/bigquery2/src/lib.rs index 8a2d11527b..5ee4edfd4c 100644 --- a/gen/bigquery2/src/lib.rs +++ b/gen/bigquery2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *bigquery* crate version *1.0.11+20190630*, where *20190630* is the exact revision of the *bigquery:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *bigquery* crate version *1.0.12+20190630*, where *20190630* is the exact revision of the *bigquery:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *bigquery* *v2* API can be found at the //! [official documentation site](https://cloud.google.com/bigquery/). @@ -374,7 +374,7 @@ impl<'a, C, A> Bigquery Bigquery { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://bigquery.googleapis.com/bigquery/v2/".to_string(), _root_url: "https://bigquery.googleapis.com/".to_string(), } @@ -403,7 +403,7 @@ impl<'a, C, A> Bigquery } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/bigquerydatatransfer1-cli/Cargo.toml b/gen/bigquerydatatransfer1-cli/Cargo.toml index f686aebe8b..589ce1655d 100644 --- a/gen/bigquerydatatransfer1-cli/Cargo.toml +++ b/gen/bigquerydatatransfer1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-bigquerydatatransfer1-cli" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with BigQuery Data Transfer (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/bigquerydatatransfer1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-bigquerydatatransfer1] path = "../bigquerydatatransfer1" -version = "1.0.11+20190629" +version = "1.0.12+20190629" diff --git a/gen/bigquerydatatransfer1-cli/LICENSE.md b/gen/bigquerydatatransfer1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/bigquerydatatransfer1-cli/LICENSE.md +++ b/gen/bigquerydatatransfer1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/bigquerydatatransfer1-cli/README.md b/gen/bigquerydatatransfer1-cli/README.md index 9dd5e9def0..b818a763e9 100644 --- a/gen/bigquerydatatransfer1-cli/README.md +++ b/gen/bigquerydatatransfer1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *BigQuery Data Transfer* API at revision *20190629*. The CLI is at version *1.0.11*. +This documentation was generated from the *BigQuery Data Transfer* API at revision *20190629*. The CLI is at version *1.0.12*. ```bash bigquerydatatransfer1 [options] diff --git a/gen/bigquerydatatransfer1-cli/mkdocs.yml b/gen/bigquerydatatransfer1-cli/mkdocs.yml index d848df2002..e78be1fc65 100644 --- a/gen/bigquerydatatransfer1-cli/mkdocs.yml +++ b/gen/bigquerydatatransfer1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: BigQuery Data Transfer v1.0.11+20190629 +site_name: BigQuery Data Transfer v1.0.12+20190629 site_url: http://byron.github.io/google-apis-rs/google-bigquerydatatransfer1-cli site_description: A complete library to interact with BigQuery Data Transfer (protocol v1) @@ -42,5 +42,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/bigquerydatatransfer1-cli/src/cmn.rs b/gen/bigquerydatatransfer1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/bigquerydatatransfer1-cli/src/cmn.rs +++ b/gen/bigquerydatatransfer1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/bigquerydatatransfer1-cli/src/main.rs b/gen/bigquerydatatransfer1-cli/src/main.rs index 7cc5771b0a..a84d62a059 100644 --- a/gen/bigquerydatatransfer1-cli/src/main.rs +++ b/gen/bigquerydatatransfer1-cli/src/main.rs @@ -3111,7 +3111,7 @@ fn main() { let mut app = App::new("bigquerydatatransfer1") .author("Sebastian Thiel ") - .version("1.0.11+20190629") + .version("1.0.12+20190629") .about("Schedule queries or transfer external data from SaaS applications to Google BigQuery on a regular basis.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_bigquerydatatransfer1_cli") .arg(Arg::with_name("url") diff --git a/gen/bigquerydatatransfer1/Cargo.toml b/gen/bigquerydatatransfer1/Cargo.toml index cf061fc973..342acbd728 100644 --- a/gen/bigquerydatatransfer1/Cargo.toml +++ b/gen/bigquerydatatransfer1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-bigquerydatatransfer1" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with BigQuery Data Transfer (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/bigquerydatatransfer1" homepage = "https://cloud.google.com/bigquery/" -documentation = "https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629" +documentation = "https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629" license = "MIT" keywords = ["bigquerydatatransfer", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/bigquerydatatransfer1/LICENSE.md b/gen/bigquerydatatransfer1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/bigquerydatatransfer1/LICENSE.md +++ b/gen/bigquerydatatransfer1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/bigquerydatatransfer1/README.md b/gen/bigquerydatatransfer1/README.md index 726caa1a0f..160c916f6c 100644 --- a/gen/bigquerydatatransfer1/README.md +++ b/gen/bigquerydatatransfer1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-bigquerydatatransfer1` library allows access to all features of the *Google BigQuery Data Transfer* service. -This documentation was generated from *BigQuery Data Transfer* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *bigquerydatatransfer:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *BigQuery Data Transfer* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *bigquerydatatransfer:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *BigQuery Data Transfer* *v1* API can be found at the [official documentation site](https://cloud.google.com/bigquery/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.BigQueryDataTransfer.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.BigQueryDataTransfer.html) ... * projects - * [*data sources check valid creds*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectDataSourceCheckValidCredCall.html), [*data sources get*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectDataSourceGetCall.html), [*data sources list*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectDataSourceListCall.html), [*locations data sources check valid creds*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationDataSourceCheckValidCredCall.html), [*locations data sources get*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationDataSourceGetCall.html), [*locations data sources list*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationDataSourceListCall.html), [*locations get*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationListCall.html), [*locations transfer configs create*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigCreateCall.html), [*locations transfer configs delete*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigDeleteCall.html), [*locations transfer configs get*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigGetCall.html), [*locations transfer configs list*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigListCall.html), [*locations transfer configs patch*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigPatchCall.html), [*locations transfer configs runs delete*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigRunDeleteCall.html), [*locations transfer configs runs get*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigRunGetCall.html), [*locations transfer configs runs list*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigRunListCall.html), [*locations transfer configs runs transfer logs list*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigRunTransferLogListCall.html), [*locations transfer configs schedule runs*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigScheduleRunCall.html), [*locations transfer configs start manual runs*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigStartManualRunCall.html), [*transfer configs create*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigCreateCall.html), [*transfer configs delete*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigDeleteCall.html), [*transfer configs get*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigGetCall.html), [*transfer configs list*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigListCall.html), [*transfer configs patch*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigPatchCall.html), [*transfer configs runs delete*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigRunDeleteCall.html), [*transfer configs runs get*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigRunGetCall.html), [*transfer configs runs list*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigRunListCall.html), [*transfer configs runs transfer logs list*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigRunTransferLogListCall.html), [*transfer configs schedule runs*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigScheduleRunCall.html) and [*transfer configs start manual runs*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigStartManualRunCall.html) + * [*data sources check valid creds*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectDataSourceCheckValidCredCall.html), [*data sources get*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectDataSourceGetCall.html), [*data sources list*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectDataSourceListCall.html), [*locations data sources check valid creds*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationDataSourceCheckValidCredCall.html), [*locations data sources get*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationDataSourceGetCall.html), [*locations data sources list*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationDataSourceListCall.html), [*locations get*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationListCall.html), [*locations transfer configs create*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigCreateCall.html), [*locations transfer configs delete*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigDeleteCall.html), [*locations transfer configs get*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigGetCall.html), [*locations transfer configs list*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigListCall.html), [*locations transfer configs patch*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigPatchCall.html), [*locations transfer configs runs delete*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigRunDeleteCall.html), [*locations transfer configs runs get*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigRunGetCall.html), [*locations transfer configs runs list*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigRunListCall.html), [*locations transfer configs runs transfer logs list*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigRunTransferLogListCall.html), [*locations transfer configs schedule runs*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigScheduleRunCall.html), [*locations transfer configs start manual runs*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectLocationTransferConfigStartManualRunCall.html), [*transfer configs create*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigCreateCall.html), [*transfer configs delete*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigDeleteCall.html), [*transfer configs get*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigGetCall.html), [*transfer configs list*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigListCall.html), [*transfer configs patch*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigPatchCall.html), [*transfer configs runs delete*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigRunDeleteCall.html), [*transfer configs runs get*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigRunGetCall.html), [*transfer configs runs list*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigRunListCall.html), [*transfer configs runs transfer logs list*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigRunTransferLogListCall.html), [*transfer configs schedule runs*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigScheduleRunCall.html) and [*transfer configs start manual runs*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.ProjectTransferConfigStartManualRunCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/struct.BigQueryDataTransfer.html)** +* **[Hub](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/struct.BigQueryDataTransfer.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.Part.html)** + * **[Parts](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -138,17 +138,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -158,29 +158,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-bigquerydatatransfer1/1.0.11+20190629/google_bigquerydatatransfer1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-bigquerydatatransfer1/1.0.12+20190629/google_bigquerydatatransfer1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/bigquerydatatransfer1/src/lib.rs b/gen/bigquerydatatransfer1/src/lib.rs index 62a76cab19..31cb2fd09c 100644 --- a/gen/bigquerydatatransfer1/src/lib.rs +++ b/gen/bigquerydatatransfer1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *BigQuery Data Transfer* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *bigquerydatatransfer:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *BigQuery Data Transfer* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *bigquerydatatransfer:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *BigQuery Data Transfer* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/bigquery/). @@ -348,7 +348,7 @@ impl<'a, C, A> BigQueryDataTransfer BigQueryDataTransfer { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://bigquerydatatransfer.googleapis.com/".to_string(), _root_url: "https://bigquerydatatransfer.googleapis.com/".to_string(), } @@ -359,7 +359,7 @@ impl<'a, C, A> BigQueryDataTransfer } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/bigtableadmin2-cli/Cargo.toml b/gen/bigtableadmin2-cli/Cargo.toml index b054968924..07e0d7b7fe 100644 --- a/gen/bigtableadmin2-cli/Cargo.toml +++ b/gen/bigtableadmin2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-bigtableadmin2-cli" -version = "1.0.11+20190506" +version = "1.0.12+20190506" authors = ["Sebastian Thiel "] description = "A complete library to interact with Bigtable Admin (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/bigtableadmin2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-bigtableadmin2] path = "../bigtableadmin2" -version = "1.0.11+20190506" +version = "1.0.12+20190506" diff --git a/gen/bigtableadmin2-cli/LICENSE.md b/gen/bigtableadmin2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/bigtableadmin2-cli/LICENSE.md +++ b/gen/bigtableadmin2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/bigtableadmin2-cli/README.md b/gen/bigtableadmin2-cli/README.md index ef862e7363..2152da41b2 100644 --- a/gen/bigtableadmin2-cli/README.md +++ b/gen/bigtableadmin2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Bigtable Admin* API at revision *20190506*. The CLI is at version *1.0.11*. +This documentation was generated from the *Bigtable Admin* API at revision *20190506*. The CLI is at version *1.0.12*. ```bash bigtableadmin2 [options] diff --git a/gen/bigtableadmin2-cli/mkdocs.yml b/gen/bigtableadmin2-cli/mkdocs.yml index 0dc58026a1..d30260d6b4 100644 --- a/gen/bigtableadmin2-cli/mkdocs.yml +++ b/gen/bigtableadmin2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Bigtable Admin v1.0.11+20190506 +site_name: Bigtable Admin v1.0.12+20190506 site_url: http://byron.github.io/google-apis-rs/google-bigtableadmin2-cli site_description: A complete library to interact with Bigtable Admin (protocol v2) @@ -48,5 +48,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/bigtableadmin2-cli/src/cmn.rs b/gen/bigtableadmin2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/bigtableadmin2-cli/src/cmn.rs +++ b/gen/bigtableadmin2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/bigtableadmin2-cli/src/main.rs b/gen/bigtableadmin2-cli/src/main.rs index 25da14f186..3dfc87ddad 100644 --- a/gen/bigtableadmin2-cli/src/main.rs +++ b/gen/bigtableadmin2-cli/src/main.rs @@ -3833,7 +3833,7 @@ fn main() { let mut app = App::new("bigtableadmin2") .author("Sebastian Thiel ") - .version("1.0.11+20190506") + .version("1.0.12+20190506") .about("Administer your Cloud Bigtable tables and instances.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_bigtableadmin2_cli") .arg(Arg::with_name("url") diff --git a/gen/bigtableadmin2/Cargo.toml b/gen/bigtableadmin2/Cargo.toml index 7f16ff3adc..05080a7cad 100644 --- a/gen/bigtableadmin2/Cargo.toml +++ b/gen/bigtableadmin2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-bigtableadmin2" -version = "1.0.11+20190506" +version = "1.0.12+20190506" authors = ["Sebastian Thiel "] description = "A complete library to interact with Bigtable Admin (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/bigtableadmin2" homepage = "https://cloud.google.com/bigtable/" -documentation = "https://docs.rs/google-bigtableadmin2/1.0.11+20190506" +documentation = "https://docs.rs/google-bigtableadmin2/1.0.12+20190506" license = "MIT" keywords = ["bigtableadmin", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/bigtableadmin2/LICENSE.md b/gen/bigtableadmin2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/bigtableadmin2/LICENSE.md +++ b/gen/bigtableadmin2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/bigtableadmin2/README.md b/gen/bigtableadmin2/README.md index df9454dfed..8be0c592f4 100644 --- a/gen/bigtableadmin2/README.md +++ b/gen/bigtableadmin2/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-bigtableadmin2` library allows access to all features of the *Google Bigtable Admin* service. -This documentation was generated from *Bigtable Admin* crate version *1.0.11+20190506*, where *20190506* is the exact revision of the *bigtableadmin:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Bigtable Admin* crate version *1.0.12+20190506*, where *20190506* is the exact revision of the *bigtableadmin:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Bigtable Admin* *v2* API can be found at the [official documentation site](https://cloud.google.com/bigtable/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.BigtableAdmin.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.BigtableAdmin.html) ... -* [operations](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.Operation.html) - * [*cancel*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.OperationDeleteCall.html), [*get*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.OperationGetCall.html) and [*projects operations list*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.OperationProjectOperationListCall.html) +* [operations](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.Operation.html) + * [*cancel*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.OperationDeleteCall.html), [*get*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.OperationGetCall.html) and [*projects operations list*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.OperationProjectOperationListCall.html) * projects - * [*instances app profiles create*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceAppProfileCreateCall.html), [*instances app profiles delete*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceAppProfileDeleteCall.html), [*instances app profiles get*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceAppProfileGetCall.html), [*instances app profiles list*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceAppProfileListCall.html), [*instances app profiles patch*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceAppProfilePatchCall.html), [*instances clusters create*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceClusterCreateCall.html), [*instances clusters delete*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceClusterDeleteCall.html), [*instances clusters get*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceClusterGetCall.html), [*instances clusters list*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceClusterListCall.html), [*instances clusters update*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceClusterUpdateCall.html), [*instances create*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceCreateCall.html), [*instances delete*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceDeleteCall.html), [*instances get*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceGetCall.html), [*instances get iam policy*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceGetIamPolicyCall.html), [*instances list*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceListCall.html), [*instances partial update instance*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstancePartialUpdateInstanceCall.html), [*instances set iam policy*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceSetIamPolicyCall.html), [*instances tables check consistency*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceTableCheckConsistencyCall.html), [*instances tables create*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceTableCreateCall.html), [*instances tables delete*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceTableDeleteCall.html), [*instances tables drop row range*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceTableDropRowRangeCall.html), [*instances tables generate consistency token*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceTableGenerateConsistencyTokenCall.html), [*instances tables get*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceTableGetCall.html), [*instances tables get iam policy*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceTableGetIamPolicyCall.html), [*instances tables list*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceTableListCall.html), [*instances tables modify column families*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceTableModifyColumnFamilyCall.html), [*instances tables set iam policy*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceTableSetIamPolicyCall.html), [*instances tables test iam permissions*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceTableTestIamPermissionCall.html), [*instances test iam permissions*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceTestIamPermissionCall.html), [*instances update*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectInstanceUpdateCall.html), [*locations get*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectLocationGetCall.html) and [*locations list*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.ProjectLocationListCall.html) + * [*instances app profiles create*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceAppProfileCreateCall.html), [*instances app profiles delete*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceAppProfileDeleteCall.html), [*instances app profiles get*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceAppProfileGetCall.html), [*instances app profiles list*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceAppProfileListCall.html), [*instances app profiles patch*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceAppProfilePatchCall.html), [*instances clusters create*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceClusterCreateCall.html), [*instances clusters delete*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceClusterDeleteCall.html), [*instances clusters get*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceClusterGetCall.html), [*instances clusters list*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceClusterListCall.html), [*instances clusters update*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceClusterUpdateCall.html), [*instances create*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceCreateCall.html), [*instances delete*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceDeleteCall.html), [*instances get*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceGetCall.html), [*instances get iam policy*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceGetIamPolicyCall.html), [*instances list*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceListCall.html), [*instances partial update instance*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstancePartialUpdateInstanceCall.html), [*instances set iam policy*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceSetIamPolicyCall.html), [*instances tables check consistency*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceTableCheckConsistencyCall.html), [*instances tables create*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceTableCreateCall.html), [*instances tables delete*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceTableDeleteCall.html), [*instances tables drop row range*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceTableDropRowRangeCall.html), [*instances tables generate consistency token*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceTableGenerateConsistencyTokenCall.html), [*instances tables get*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceTableGetCall.html), [*instances tables get iam policy*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceTableGetIamPolicyCall.html), [*instances tables list*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceTableListCall.html), [*instances tables modify column families*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceTableModifyColumnFamilyCall.html), [*instances tables set iam policy*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceTableSetIamPolicyCall.html), [*instances tables test iam permissions*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceTableTestIamPermissionCall.html), [*instances test iam permissions*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceTestIamPermissionCall.html), [*instances update*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectInstanceUpdateCall.html), [*locations get*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectLocationGetCall.html) and [*locations list*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.ProjectLocationListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/struct.BigtableAdmin.html)** +* **[Hub](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/struct.BigtableAdmin.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.Part.html)** + * **[Parts](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -137,17 +137,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -157,29 +157,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-bigtableadmin2/1.0.11+20190506/google_bigtableadmin2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-bigtableadmin2/1.0.12+20190506/google_bigtableadmin2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/bigtableadmin2/src/lib.rs b/gen/bigtableadmin2/src/lib.rs index a193b516c5..369a01aadd 100644 --- a/gen/bigtableadmin2/src/lib.rs +++ b/gen/bigtableadmin2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Bigtable Admin* crate version *1.0.11+20190506*, where *20190506* is the exact revision of the *bigtableadmin:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Bigtable Admin* crate version *1.0.12+20190506*, where *20190506* is the exact revision of the *bigtableadmin:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Bigtable Admin* *v2* API can be found at the //! [official documentation site](https://cloud.google.com/bigtable/). @@ -365,7 +365,7 @@ impl<'a, C, A> BigtableAdmin BigtableAdmin { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://bigtableadmin.googleapis.com/".to_string(), _root_url: "https://bigtableadmin.googleapis.com/".to_string(), } @@ -379,7 +379,7 @@ impl<'a, C, A> BigtableAdmin } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/binaryauthorization1_beta1-cli/Cargo.toml b/gen/binaryauthorization1_beta1-cli/Cargo.toml index c158de9b52..5f103cd53d 100644 --- a/gen/binaryauthorization1_beta1-cli/Cargo.toml +++ b/gen/binaryauthorization1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-binaryauthorization1_beta1-cli" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Binary Authorization (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/binaryauthorization1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-binaryauthorization1_beta1] path = "../binaryauthorization1_beta1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" diff --git a/gen/binaryauthorization1_beta1-cli/LICENSE.md b/gen/binaryauthorization1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/binaryauthorization1_beta1-cli/LICENSE.md +++ b/gen/binaryauthorization1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/binaryauthorization1_beta1-cli/README.md b/gen/binaryauthorization1_beta1-cli/README.md index a65b1014e7..a18f927e1a 100644 --- a/gen/binaryauthorization1_beta1-cli/README.md +++ b/gen/binaryauthorization1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Binary Authorization* API at revision *20190628*. The CLI is at version *1.0.11*. +This documentation was generated from the *Binary Authorization* API at revision *20190628*. The CLI is at version *1.0.12*. ```bash binaryauthorization1-beta1 [options] diff --git a/gen/binaryauthorization1_beta1-cli/mkdocs.yml b/gen/binaryauthorization1_beta1-cli/mkdocs.yml index 92901414f7..75141519da 100644 --- a/gen/binaryauthorization1_beta1-cli/mkdocs.yml +++ b/gen/binaryauthorization1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Binary Authorization v1.0.11+20190628 +site_name: Binary Authorization v1.0.12+20190628 site_url: http://byron.github.io/google-apis-rs/google-binaryauthorization1_beta1-cli site_description: A complete library to interact with Binary Authorization (protocol v1beta1) @@ -25,5 +25,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/binaryauthorization1_beta1-cli/src/cmn.rs b/gen/binaryauthorization1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/binaryauthorization1_beta1-cli/src/cmn.rs +++ b/gen/binaryauthorization1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/binaryauthorization1_beta1-cli/src/main.rs b/gen/binaryauthorization1_beta1-cli/src/main.rs index 96556875c6..83ddbdc311 100644 --- a/gen/binaryauthorization1_beta1-cli/src/main.rs +++ b/gen/binaryauthorization1_beta1-cli/src/main.rs @@ -1507,7 +1507,7 @@ fn main() { let mut app = App::new("binaryauthorization1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190628") + .version("1.0.12+20190628") .about("The management interface for Binary Authorization, a system providing policy control for images deployed to Kubernetes Engine clusters. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_binaryauthorization1_beta1_cli") diff --git a/gen/binaryauthorization1_beta1/Cargo.toml b/gen/binaryauthorization1_beta1/Cargo.toml index a246f510f0..a345f374f4 100644 --- a/gen/binaryauthorization1_beta1/Cargo.toml +++ b/gen/binaryauthorization1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-binaryauthorization1_beta1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Binary Authorization (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/binaryauthorization1_beta1" homepage = "https://cloud.google.com/binary-authorization/" -documentation = "https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628" +documentation = "https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628" license = "MIT" keywords = ["binaryauthorization", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/binaryauthorization1_beta1/LICENSE.md b/gen/binaryauthorization1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/binaryauthorization1_beta1/LICENSE.md +++ b/gen/binaryauthorization1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/binaryauthorization1_beta1/README.md b/gen/binaryauthorization1_beta1/README.md index ce585298c3..063b5858da 100644 --- a/gen/binaryauthorization1_beta1/README.md +++ b/gen/binaryauthorization1_beta1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-binaryauthorization1_beta1` library allows access to all features of the *Google Binary Authorization* service. -This documentation was generated from *Binary Authorization* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *binaryauthorization:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Binary Authorization* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *binaryauthorization:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Binary Authorization* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/binary-authorization/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.BinaryAuthorization.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.BinaryAuthorization.html) ... * projects - * [*attestors create*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorCreateCall.html), [*attestors delete*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorDeleteCall.html), [*attestors get*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorGetCall.html), [*attestors get iam policy*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorGetIamPolicyCall.html), [*attestors list*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorListCall.html), [*attestors set iam policy*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorSetIamPolicyCall.html), [*attestors test iam permissions*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorTestIamPermissionCall.html), [*attestors update*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorUpdateCall.html), [*get policy*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.ProjectGetPolicyCall.html), [*policy get iam policy*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.ProjectPolicyGetIamPolicyCall.html), [*policy set iam policy*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.ProjectPolicySetIamPolicyCall.html), [*policy test iam permissions*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.ProjectPolicyTestIamPermissionCall.html) and [*update policy*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.ProjectUpdatePolicyCall.html) + * [*attestors create*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorCreateCall.html), [*attestors delete*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorDeleteCall.html), [*attestors get*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorGetCall.html), [*attestors get iam policy*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorGetIamPolicyCall.html), [*attestors list*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorListCall.html), [*attestors set iam policy*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorSetIamPolicyCall.html), [*attestors test iam permissions*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorTestIamPermissionCall.html), [*attestors update*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.ProjectAttestorUpdateCall.html), [*get policy*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.ProjectGetPolicyCall.html), [*policy get iam policy*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.ProjectPolicyGetIamPolicyCall.html), [*policy set iam policy*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.ProjectPolicySetIamPolicyCall.html), [*policy test iam permissions*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.ProjectPolicyTestIamPermissionCall.html) and [*update policy*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.ProjectUpdatePolicyCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/struct.BinaryAuthorization.html)** +* **[Hub](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/struct.BinaryAuthorization.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -133,17 +133,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -153,29 +153,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-binaryauthorization1_beta1/1.0.11+20190628/google_binaryauthorization1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-binaryauthorization1_beta1/1.0.12+20190628/google_binaryauthorization1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/binaryauthorization1_beta1/src/lib.rs b/gen/binaryauthorization1_beta1/src/lib.rs index 93e16b8656..8722ddc3aa 100644 --- a/gen/binaryauthorization1_beta1/src/lib.rs +++ b/gen/binaryauthorization1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Binary Authorization* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *binaryauthorization:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Binary Authorization* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *binaryauthorization:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Binary Authorization* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/binary-authorization/). @@ -332,7 +332,7 @@ impl<'a, C, A> BinaryAuthorization BinaryAuthorization { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://binaryauthorization.googleapis.com/".to_string(), _root_url: "https://binaryauthorization.googleapis.com/".to_string(), } @@ -343,7 +343,7 @@ impl<'a, C, A> BinaryAuthorization } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/blogger3-cli/Cargo.toml b/gen/blogger3-cli/Cargo.toml index 5db3b66b0e..98247b5aec 100644 --- a/gen/blogger3-cli/Cargo.toml +++ b/gen/blogger3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-blogger3-cli" -version = "1.0.11+20150422" +version = "1.0.12+20150422" authors = ["Sebastian Thiel "] description = "A complete library to interact with blogger (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/blogger3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-blogger3] path = "../blogger3" -version = "1.0.11+20150422" +version = "1.0.12+20150422" diff --git a/gen/blogger3-cli/LICENSE.md b/gen/blogger3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/blogger3-cli/LICENSE.md +++ b/gen/blogger3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/blogger3-cli/README.md b/gen/blogger3-cli/README.md index e30ad43d23..2b05d3379b 100644 --- a/gen/blogger3-cli/README.md +++ b/gen/blogger3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *blogger* API at revision *20150422*. The CLI is at version *1.0.11*. +This documentation was generated from the *blogger* API at revision *20150422*. The CLI is at version *1.0.12*. ```bash blogger3 [options] diff --git a/gen/blogger3-cli/mkdocs.yml b/gen/blogger3-cli/mkdocs.yml index 9d0638fe8b..39565827d1 100644 --- a/gen/blogger3-cli/mkdocs.yml +++ b/gen/blogger3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: blogger v1.0.11+20150422 +site_name: blogger v1.0.12+20150422 site_url: http://byron.github.io/google-apis-rs/google-blogger3-cli site_description: A complete library to interact with blogger (protocol v3) @@ -45,5 +45,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/blogger3-cli/src/cmn.rs b/gen/blogger3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/blogger3-cli/src/cmn.rs +++ b/gen/blogger3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/blogger3-cli/src/main.rs b/gen/blogger3-cli/src/main.rs index 453e9802c7..03147b4233 100644 --- a/gen/blogger3-cli/src/main.rs +++ b/gen/blogger3-cli/src/main.rs @@ -3497,7 +3497,7 @@ fn main() { let mut app = App::new("blogger3") .author("Sebastian Thiel ") - .version("1.0.11+20150422") + .version("1.0.12+20150422") .about("API for access to the data within Blogger.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_blogger3_cli") .arg(Arg::with_name("url") diff --git a/gen/blogger3/Cargo.toml b/gen/blogger3/Cargo.toml index 770364a1f7..6917b2474e 100644 --- a/gen/blogger3/Cargo.toml +++ b/gen/blogger3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-blogger3" -version = "1.0.11+20150422" +version = "1.0.12+20150422" authors = ["Sebastian Thiel "] description = "A complete library to interact with blogger (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/blogger3" homepage = "https://developers.google.com/blogger/docs/3.0/getting_started" -documentation = "https://docs.rs/google-blogger3/1.0.11+20150422" +documentation = "https://docs.rs/google-blogger3/1.0.12+20150422" license = "MIT" keywords = ["blogger", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/blogger3/LICENSE.md b/gen/blogger3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/blogger3/LICENSE.md +++ b/gen/blogger3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/blogger3/README.md b/gen/blogger3/README.md index a25b9ccdf5..35cb650add 100644 --- a/gen/blogger3/README.md +++ b/gen/blogger3/README.md @@ -5,30 +5,30 @@ DO NOT EDIT ! --> The `google-blogger3` library allows access to all features of the *Google blogger* service. -This documentation was generated from *blogger* crate version *1.0.11+20150422*, where *20150422* is the exact revision of the *blogger:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *blogger* crate version *1.0.12+20150422*, where *20150422* is the exact revision of the *blogger:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *blogger* *v3* API can be found at the [official documentation site](https://developers.google.com/blogger/docs/3.0/getting_started). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.Blogger.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.Blogger.html) ... -* [blog user infos](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.BlogUserInfo.html) - * [*get*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.BlogUserInfoGetCall.html) -* [blogs](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.Blog.html) - * [*get*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.BlogGetCall.html), [*get by url*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.BlogGetByUrlCall.html) and [*list by user*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.BlogListByUserCall.html) -* [comments](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.Comment.html) - * [*approve*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.CommentApproveCall.html), [*delete*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.CommentDeleteCall.html), [*get*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.CommentGetCall.html), [*list*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.CommentListCall.html), [*list by blog*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.CommentListByBlogCall.html), [*mark as spam*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.CommentMarkAsSpamCall.html) and [*remove content*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.CommentRemoveContentCall.html) +* [blog user infos](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.BlogUserInfo.html) + * [*get*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.BlogUserInfoGetCall.html) +* [blogs](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.Blog.html) + * [*get*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.BlogGetCall.html), [*get by url*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.BlogGetByUrlCall.html) and [*list by user*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.BlogListByUserCall.html) +* [comments](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.Comment.html) + * [*approve*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.CommentApproveCall.html), [*delete*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.CommentDeleteCall.html), [*get*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.CommentGetCall.html), [*list*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.CommentListCall.html), [*list by blog*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.CommentListByBlogCall.html), [*mark as spam*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.CommentMarkAsSpamCall.html) and [*remove content*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.CommentRemoveContentCall.html) * page views - * [*get*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PageViewGetCall.html) -* [pages](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.Page.html) - * [*delete*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PageDeleteCall.html), [*get*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PageGetCall.html), [*insert*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PageInsertCall.html), [*list*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PageListCall.html), [*patch*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PagePatchCall.html), [*publish*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PagePublishCall.html), [*revert*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PageRevertCall.html) and [*update*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PageUpdateCall.html) -* [post user infos](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PostUserInfo.html) - * [*get*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PostUserInfoGetCall.html) and [*list*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PostUserInfoListCall.html) -* [posts](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.Post.html) - * [*delete*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PostDeleteCall.html), [*get*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PostGetCall.html), [*get by path*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PostGetByPathCall.html), [*insert*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PostInsertCall.html), [*list*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PostListCall.html), [*patch*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PostPatchCall.html), [*publish*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PostPublishCall.html), [*revert*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PostRevertCall.html), [*search*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PostSearchCall.html) and [*update*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.PostUpdateCall.html) -* [users](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.User.html) - * [*get*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.UserGetCall.html) + * [*get*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PageViewGetCall.html) +* [pages](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.Page.html) + * [*delete*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PageDeleteCall.html), [*get*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PageGetCall.html), [*insert*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PageInsertCall.html), [*list*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PageListCall.html), [*patch*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PagePatchCall.html), [*publish*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PagePublishCall.html), [*revert*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PageRevertCall.html) and [*update*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PageUpdateCall.html) +* [post user infos](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PostUserInfo.html) + * [*get*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PostUserInfoGetCall.html) and [*list*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PostUserInfoListCall.html) +* [posts](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.Post.html) + * [*delete*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PostDeleteCall.html), [*get*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PostGetCall.html), [*get by path*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PostGetByPathCall.html), [*insert*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PostInsertCall.html), [*list*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PostListCall.html), [*patch*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PostPatchCall.html), [*publish*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PostPublishCall.html), [*revert*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PostRevertCall.html), [*search*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PostSearchCall.html) and [*update*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.PostUpdateCall.html) +* [users](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.User.html) + * [*get*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.UserGetCall.html) @@ -37,17 +37,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/struct.Blogger.html)** +* **[Hub](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/struct.Blogger.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.Part.html)** + * **[Parts](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -157,17 +157,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -177,29 +177,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-blogger3/1.0.11+20150422/google_blogger3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-blogger3/1.0.12+20150422/google_blogger3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/blogger3/src/lib.rs b/gen/blogger3/src/lib.rs index 1b0cb981c6..dea923d572 100644 --- a/gen/blogger3/src/lib.rs +++ b/gen/blogger3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *blogger* crate version *1.0.11+20150422*, where *20150422* is the exact revision of the *blogger:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *blogger* crate version *1.0.12+20150422*, where *20150422* is the exact revision of the *blogger:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *blogger* *v3* API can be found at the //! [official documentation site](https://developers.google.com/blogger/docs/3.0/getting_started). @@ -364,7 +364,7 @@ impl<'a, C, A> Blogger Blogger { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/blogger/v3/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -396,7 +396,7 @@ impl<'a, C, A> Blogger } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/books1-cli/Cargo.toml b/gen/books1-cli/Cargo.toml index 3de1e16e5a..0bb0a14784 100644 --- a/gen/books1-cli/Cargo.toml +++ b/gen/books1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-books1-cli" -version = "1.0.11+20181212" +version = "1.0.12+20181212" authors = ["Sebastian Thiel "] description = "A complete library to interact with books (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/books1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-books1] path = "../books1" -version = "1.0.11+20181212" +version = "1.0.12+20181212" diff --git a/gen/books1-cli/LICENSE.md b/gen/books1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/books1-cli/LICENSE.md +++ b/gen/books1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/books1-cli/README.md b/gen/books1-cli/README.md index d1814ebdb1..c4a959fb60 100644 --- a/gen/books1-cli/README.md +++ b/gen/books1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *books* API at revision *20181212*. The CLI is at version *1.0.11*. +This documentation was generated from the *books* API at revision *20181212*. The CLI is at version *1.0.12*. ```bash books1 [options] diff --git a/gen/books1-cli/mkdocs.yml b/gen/books1-cli/mkdocs.yml index 67b5aea17d..4e8c805d1f 100644 --- a/gen/books1-cli/mkdocs.yml +++ b/gen/books1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: books v1.0.11+20181212 +site_name: books v1.0.12+20181212 site_url: http://byron.github.io/google-apis-rs/google-books1-cli site_description: A complete library to interact with books (protocol v1) @@ -63,5 +63,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/books1-cli/src/cmn.rs b/gen/books1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/books1-cli/src/cmn.rs +++ b/gen/books1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/books1-cli/src/main.rs b/gen/books1-cli/src/main.rs index b38164d22a..3d207539ac 100644 --- a/gen/books1-cli/src/main.rs +++ b/gen/books1-cli/src/main.rs @@ -4928,7 +4928,7 @@ fn main() { let mut app = App::new("books1") .author("Sebastian Thiel ") - .version("1.0.11+20181212") + .version("1.0.12+20181212") .about("Searches for books and manages your Google Books library.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_books1_cli") .arg(Arg::with_name("url") diff --git a/gen/books1/Cargo.toml b/gen/books1/Cargo.toml index c47f8272c6..aaf5631222 100644 --- a/gen/books1/Cargo.toml +++ b/gen/books1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-books1" -version = "1.0.11+20181212" +version = "1.0.12+20181212" authors = ["Sebastian Thiel "] description = "A complete library to interact with books (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/books1" homepage = "https://developers.google.com/books/docs/v1/getting_started" -documentation = "https://docs.rs/google-books1/1.0.11+20181212" +documentation = "https://docs.rs/google-books1/1.0.12+20181212" license = "MIT" keywords = ["books", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/books1/LICENSE.md b/gen/books1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/books1/LICENSE.md +++ b/gen/books1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/books1/README.md b/gen/books1/README.md index 9070872e2a..37693f4130 100644 --- a/gen/books1/README.md +++ b/gen/books1/README.md @@ -5,40 +5,40 @@ DO NOT EDIT ! --> The `google-books1` library allows access to all features of the *Google books* service. -This documentation was generated from *books* crate version *1.0.11+20181212*, where *20181212* is the exact revision of the *books:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *books* crate version *1.0.12+20181212*, where *20181212* is the exact revision of the *books:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *books* *v1* API can be found at the [official documentation site](https://developers.google.com/books/docs/v1/getting_started). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.Books.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.Books.html) ... * bookshelves - * [*get*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.BookshelveGetCall.html), [*list*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.BookshelveListCall.html) and [*volumes list*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.BookshelveVolumeListCall.html) + * [*get*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.BookshelveGetCall.html), [*list*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.BookshelveListCall.html) and [*volumes list*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.BookshelveVolumeListCall.html) * cloudloading - * [*add book*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.CloudloadingAddBookCall.html), [*delete book*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.CloudloadingDeleteBookCall.html) and [*update book*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.CloudloadingUpdateBookCall.html) + * [*add book*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.CloudloadingAddBookCall.html), [*delete book*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.CloudloadingDeleteBookCall.html) and [*update book*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.CloudloadingUpdateBookCall.html) * dictionary - * [*list offline metadata*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.DictionaryListOfflineMetadataCall.html) + * [*list offline metadata*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.DictionaryListOfflineMetadataCall.html) * familysharing - * [*get family info*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.FamilysharingGetFamilyInfoCall.html), [*share*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.FamilysharingShareCall.html) and [*unshare*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.FamilysharingUnshareCall.html) + * [*get family info*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.FamilysharingGetFamilyInfoCall.html), [*share*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.FamilysharingShareCall.html) and [*unshare*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.FamilysharingUnshareCall.html) * layers - * [*annotation data get*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.LayerAnnotationDataGetCall.html), [*annotation data list*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.LayerAnnotationDataListCall.html), [*get*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.LayerGetCall.html), [*list*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.LayerListCall.html), [*volume annotations get*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.LayerVolumeAnnotationGetCall.html) and [*volume annotations list*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.LayerVolumeAnnotationListCall.html) + * [*annotation data get*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.LayerAnnotationDataGetCall.html), [*annotation data list*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.LayerAnnotationDataListCall.html), [*get*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.LayerGetCall.html), [*list*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.LayerListCall.html), [*volume annotations get*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.LayerVolumeAnnotationGetCall.html) and [*volume annotations list*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.LayerVolumeAnnotationListCall.html) * myconfig - * [*get user settings*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MyconfigGetUserSettingCall.html), [*release download access*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MyconfigReleaseDownloadAccesCall.html), [*request access*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MyconfigRequestAccesCall.html), [*sync volume licenses*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MyconfigSyncVolumeLicenseCall.html) and [*update user settings*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MyconfigUpdateUserSettingCall.html) + * [*get user settings*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MyconfigGetUserSettingCall.html), [*release download access*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MyconfigReleaseDownloadAccesCall.html), [*request access*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MyconfigRequestAccesCall.html), [*sync volume licenses*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MyconfigSyncVolumeLicenseCall.html) and [*update user settings*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MyconfigUpdateUserSettingCall.html) * mylibrary - * [*annotations delete*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MylibraryAnnotationDeleteCall.html), [*annotations insert*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MylibraryAnnotationInsertCall.html), [*annotations list*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MylibraryAnnotationListCall.html), [*annotations summary*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MylibraryAnnotationSummaryCall.html), [*annotations update*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MylibraryAnnotationUpdateCall.html), [*bookshelves add volume*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MylibraryBookshelveAddVolumeCall.html), [*bookshelves clear volumes*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MylibraryBookshelveClearVolumeCall.html), [*bookshelves get*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MylibraryBookshelveGetCall.html), [*bookshelves list*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MylibraryBookshelveListCall.html), [*bookshelves move volume*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MylibraryBookshelveMoveVolumeCall.html), [*bookshelves remove volume*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MylibraryBookshelveRemoveVolumeCall.html), [*bookshelves volumes list*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MylibraryBookshelveVolumeListCall.html), [*readingpositions get*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MylibraryReadingpositionGetCall.html) and [*readingpositions set position*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.MylibraryReadingpositionSetPositionCall.html) -* [notification](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.Notification.html) - * [*get*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.NotificationGetCall.html) + * [*annotations delete*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MylibraryAnnotationDeleteCall.html), [*annotations insert*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MylibraryAnnotationInsertCall.html), [*annotations list*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MylibraryAnnotationListCall.html), [*annotations summary*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MylibraryAnnotationSummaryCall.html), [*annotations update*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MylibraryAnnotationUpdateCall.html), [*bookshelves add volume*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MylibraryBookshelveAddVolumeCall.html), [*bookshelves clear volumes*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MylibraryBookshelveClearVolumeCall.html), [*bookshelves get*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MylibraryBookshelveGetCall.html), [*bookshelves list*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MylibraryBookshelveListCall.html), [*bookshelves move volume*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MylibraryBookshelveMoveVolumeCall.html), [*bookshelves remove volume*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MylibraryBookshelveRemoveVolumeCall.html), [*bookshelves volumes list*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MylibraryBookshelveVolumeListCall.html), [*readingpositions get*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MylibraryReadingpositionGetCall.html) and [*readingpositions set position*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.MylibraryReadingpositionSetPositionCall.html) +* [notification](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.Notification.html) + * [*get*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.NotificationGetCall.html) * onboarding - * [*list categories*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.OnboardingListCategoryCall.html) and [*list category volumes*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.OnboardingListCategoryVolumeCall.html) + * [*list categories*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.OnboardingListCategoryCall.html) and [*list category volumes*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.OnboardingListCategoryVolumeCall.html) * personalizedstream - * [*get*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.PersonalizedstreamGetCall.html) + * [*get*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.PersonalizedstreamGetCall.html) * promooffer - * [*accept*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.PromoofferAcceptCall.html), [*dismiss*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.PromoofferDismisCall.html) and [*get*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.PromoofferGetCall.html) + * [*accept*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.PromoofferAcceptCall.html), [*dismiss*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.PromoofferDismisCall.html) and [*get*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.PromoofferGetCall.html) * series - * [*get*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.SeryGetCall.html) and [*membership get*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.SeryMembershipGetCall.html) -* [volumes](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.Volume.html) - * [*associated list*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.VolumeAssociatedListCall.html), [*get*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.VolumeGetCall.html), [*list*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.VolumeListCall.html), [*mybooks list*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.VolumeMybookListCall.html), [*recommended list*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.VolumeRecommendedListCall.html), [*recommended rate*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.VolumeRecommendedRateCall.html) and [*useruploaded list*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.VolumeUseruploadedListCall.html) + * [*get*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.SeryGetCall.html) and [*membership get*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.SeryMembershipGetCall.html) +* [volumes](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.Volume.html) + * [*associated list*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.VolumeAssociatedListCall.html), [*get*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.VolumeGetCall.html), [*list*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.VolumeListCall.html), [*mybooks list*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.VolumeMybookListCall.html), [*recommended list*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.VolumeRecommendedListCall.html), [*recommended rate*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.VolumeRecommendedRateCall.html) and [*useruploaded list*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.VolumeUseruploadedListCall.html) @@ -47,17 +47,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-books1/1.0.11+20181212/google_books1/struct.Books.html)** +* **[Hub](https://docs.rs/google-books1/1.0.12+20181212/google_books1/struct.Books.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.Part.html)** + * **[Parts](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -168,17 +168,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-books1/1.0.11+20181212/google_books1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-books1/1.0.12+20181212/google_books1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-books1/1.0.11+20181212/google_books1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-books1/1.0.12+20181212/google_books1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -188,29 +188,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-books1/1.0.11+20181212/google_books1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-books1/1.0.12+20181212/google_books1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/books1/src/lib.rs b/gen/books1/src/lib.rs index 1c1a97ac8a..0bd44ae7af 100644 --- a/gen/books1/src/lib.rs +++ b/gen/books1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *books* crate version *1.0.11+20181212*, where *20181212* is the exact revision of the *books:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *books* crate version *1.0.12+20181212*, where *20181212* is the exact revision of the *books:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *books* *v1* API can be found at the //! [official documentation site](https://developers.google.com/books/docs/v1/getting_started). @@ -374,7 +374,7 @@ impl<'a, C, A> Books Books { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/books/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -421,7 +421,7 @@ impl<'a, C, A> Books } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/calendar3-cli/Cargo.toml b/gen/calendar3-cli/Cargo.toml index 74e845ed87..1a28b5d01d 100644 --- a/gen/calendar3-cli/Cargo.toml +++ b/gen/calendar3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-calendar3-cli" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with calendar (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/calendar3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-calendar3] path = "../calendar3" -version = "1.0.11+20190702" +version = "1.0.12+20190702" diff --git a/gen/calendar3-cli/LICENSE.md b/gen/calendar3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/calendar3-cli/LICENSE.md +++ b/gen/calendar3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/calendar3-cli/README.md b/gen/calendar3-cli/README.md index d76b8cb1fa..863db74173 100644 --- a/gen/calendar3-cli/README.md +++ b/gen/calendar3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *calendar* API at revision *20190702*. The CLI is at version *1.0.11*. +This documentation was generated from the *calendar* API at revision *20190702*. The CLI is at version *1.0.12*. ```bash calendar3 [options] diff --git a/gen/calendar3-cli/mkdocs.yml b/gen/calendar3-cli/mkdocs.yml index 16729ec1de..2b82b88564 100644 --- a/gen/calendar3-cli/mkdocs.yml +++ b/gen/calendar3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: calendar v1.0.11+20190702 +site_name: calendar v1.0.12+20190702 site_url: http://byron.github.io/google-apis-rs/google-calendar3-cli site_description: A complete library to interact with calendar (protocol v3) @@ -49,5 +49,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/calendar3-cli/src/cmn.rs b/gen/calendar3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/calendar3-cli/src/cmn.rs +++ b/gen/calendar3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/calendar3-cli/src/main.rs b/gen/calendar3-cli/src/main.rs index fe01cd6743..f210a28a1e 100644 --- a/gen/calendar3-cli/src/main.rs +++ b/gen/calendar3-cli/src/main.rs @@ -4474,7 +4474,7 @@ fn main() { let mut app = App::new("calendar3") .author("Sebastian Thiel ") - .version("1.0.11+20190702") + .version("1.0.12+20190702") .about("Manipulates events and other calendar data.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_calendar3_cli") .arg(Arg::with_name("url") diff --git a/gen/calendar3/Cargo.toml b/gen/calendar3/Cargo.toml index ce9d781dfc..f262e5e3a6 100644 --- a/gen/calendar3/Cargo.toml +++ b/gen/calendar3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-calendar3" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with calendar (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/calendar3" homepage = "https://developers.google.com/google-apps/calendar/firstapp" -documentation = "https://docs.rs/google-calendar3/1.0.11+20190702" +documentation = "https://docs.rs/google-calendar3/1.0.12+20190702" license = "MIT" keywords = ["calendar", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/calendar3/LICENSE.md b/gen/calendar3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/calendar3/LICENSE.md +++ b/gen/calendar3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/calendar3/README.md b/gen/calendar3/README.md index 1b42ae85d1..ff8ca5b557 100644 --- a/gen/calendar3/README.md +++ b/gen/calendar3/README.md @@ -5,43 +5,43 @@ DO NOT EDIT ! --> The `google-calendar3` library allows access to all features of the *Google calendar* service. -This documentation was generated from *calendar* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *calendar:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *calendar* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *calendar:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *calendar* *v3* API can be found at the [official documentation site](https://developers.google.com/google-apps/calendar/firstapp). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarHub.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarHub.html) ... -* [acl](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.Acl.html) - * [*delete*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.AclDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.AclGetCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.AclInsertCall.html), [*list*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.AclListCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.AclPatchCall.html), [*update*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.AclUpdateCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.AclWatchCall.html) -* [calendar list](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarList.html) - * [*delete*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarListDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarListGetCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarListInsertCall.html), [*list*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarListListCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarListPatchCall.html), [*update*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarListUpdateCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarListWatchCall.html) -* [calendars](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.Calendar.html) - * [*clear*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarClearCall.html), [*delete*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarGetCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarInsertCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarPatchCall.html) and [*update*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarUpdateCall.html) -* [channels](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.Channel.html) - * [*stop*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.ChannelStopCall.html) +* [acl](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.Acl.html) + * [*delete*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.AclDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.AclGetCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.AclInsertCall.html), [*list*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.AclListCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.AclPatchCall.html), [*update*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.AclUpdateCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.AclWatchCall.html) +* [calendar list](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarList.html) + * [*delete*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarListDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarListGetCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarListInsertCall.html), [*list*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarListListCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarListPatchCall.html), [*update*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarListUpdateCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarListWatchCall.html) +* [calendars](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.Calendar.html) + * [*clear*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarClearCall.html), [*delete*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarGetCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarInsertCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarPatchCall.html) and [*update*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarUpdateCall.html) +* [channels](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.Channel.html) + * [*stop*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.ChannelStopCall.html) * colors - * [*get*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.ColorGetCall.html) -* [events](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.Event.html) - * [*delete*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.EventDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.EventGetCall.html), [*import*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.EventImportCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.EventInsertCall.html), [*instances*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.EventInstanceCall.html), [*list*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.EventListCall.html), [*move*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.EventMoveCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.EventPatchCall.html), [*quick add*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.EventQuickAddCall.html), [*update*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.EventUpdateCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.EventWatchCall.html) + * [*get*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.ColorGetCall.html) +* [events](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.Event.html) + * [*delete*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.EventDeleteCall.html), [*get*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.EventGetCall.html), [*import*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.EventImportCall.html), [*insert*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.EventInsertCall.html), [*instances*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.EventInstanceCall.html), [*list*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.EventListCall.html), [*move*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.EventMoveCall.html), [*patch*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.EventPatchCall.html), [*quick add*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.EventQuickAddCall.html), [*update*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.EventUpdateCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.EventWatchCall.html) * freebusy - * [*query*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.FreebusyQueryCall.html) -* [settings](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.Setting.html) - * [*get*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.SettingGetCall.html), [*list*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.SettingListCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.SettingWatchCall.html) + * [*query*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.FreebusyQueryCall.html) +* [settings](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.Setting.html) + * [*get*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.SettingGetCall.html), [*list*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.SettingListCall.html) and [*watch*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.SettingWatchCall.html) Subscription supported by ... -* [*list settings*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.SettingListCall.html) -* [*list events*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.EventListCall.html) -* [*list calendar list*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarListListCall.html) -* [*watch events*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.EventWatchCall.html) -* [*instances events*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.EventInstanceCall.html) -* [*watch settings*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.SettingWatchCall.html) -* [*watch acl*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.AclWatchCall.html) -* [*list acl*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.AclListCall.html) -* [*watch calendar list*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarListWatchCall.html) +* [*list settings*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.SettingListCall.html) +* [*list events*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.EventListCall.html) +* [*list calendar list*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarListListCall.html) +* [*watch events*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.EventWatchCall.html) +* [*instances events*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.EventInstanceCall.html) +* [*watch settings*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.SettingWatchCall.html) +* [*watch acl*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.AclWatchCall.html) +* [*list acl*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.AclListCall.html) +* [*watch calendar list*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarListWatchCall.html) @@ -49,17 +49,17 @@ Subscription supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/struct.CalendarHub.html)** +* **[Hub](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/struct.CalendarHub.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.Part.html)** + * **[Parts](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -183,17 +183,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -203,29 +203,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-calendar3/1.0.11+20190702/google_calendar3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-calendar3/1.0.12+20190702/google_calendar3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/calendar3/src/lib.rs b/gen/calendar3/src/lib.rs index bc6c3eb690..59ab9c1ed0 100644 --- a/gen/calendar3/src/lib.rs +++ b/gen/calendar3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *calendar* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *calendar:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *calendar* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *calendar:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *calendar* *v3* API can be found at the //! [official documentation site](https://developers.google.com/google-apps/calendar/firstapp). @@ -415,7 +415,7 @@ impl<'a, C, A> CalendarHub CalendarHub { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/calendar/v3/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -447,7 +447,7 @@ impl<'a, C, A> CalendarHub } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/chat1-cli/Cargo.toml b/gen/chat1-cli/Cargo.toml index 5c65db3d8c..6b047a8738 100644 --- a/gen/chat1-cli/Cargo.toml +++ b/gen/chat1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-chat1-cli" -version = "1.0.11+20190622" +version = "1.0.12+20190622" authors = ["Sebastian Thiel "] description = "A complete library to interact with Hangouts Chat (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/chat1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-chat1] path = "../chat1" -version = "1.0.11+20190622" +version = "1.0.12+20190622" diff --git a/gen/chat1-cli/LICENSE.md b/gen/chat1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/chat1-cli/LICENSE.md +++ b/gen/chat1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/chat1-cli/README.md b/gen/chat1-cli/README.md index 612d491f22..22d666b045 100644 --- a/gen/chat1-cli/README.md +++ b/gen/chat1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Hangouts Chat* API at revision *20190622*. The CLI is at version *1.0.11*. +This documentation was generated from the *Hangouts Chat* API at revision *20190622*. The CLI is at version *1.0.12*. ```bash chat1 [options] diff --git a/gen/chat1-cli/mkdocs.yml b/gen/chat1-cli/mkdocs.yml index 38a30e9816..1198df7e20 100644 --- a/gen/chat1-cli/mkdocs.yml +++ b/gen/chat1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Hangouts Chat v1.0.11+20190622 +site_name: Hangouts Chat v1.0.12+20190622 site_url: http://byron.github.io/google-apis-rs/google-chat1-cli site_description: A complete library to interact with Hangouts Chat (protocol v1) @@ -20,5 +20,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/chat1-cli/src/cmn.rs b/gen/chat1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/chat1-cli/src/cmn.rs +++ b/gen/chat1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/chat1-cli/src/main.rs b/gen/chat1-cli/src/main.rs index d6da0d051d..3ae905f615 100644 --- a/gen/chat1-cli/src/main.rs +++ b/gen/chat1-cli/src/main.rs @@ -882,7 +882,7 @@ fn main() { let mut app = App::new("chat1") .author("Sebastian Thiel ") - .version("1.0.11+20190622") + .version("1.0.12+20190622") .about("Enables bots to fetch information and perform actions in Hangouts Chat.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_chat1_cli") .arg(Arg::with_name("folder") diff --git a/gen/chat1/Cargo.toml b/gen/chat1/Cargo.toml index 67b2b6ff31..49fcf9be82 100644 --- a/gen/chat1/Cargo.toml +++ b/gen/chat1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-chat1" -version = "1.0.11+20190622" +version = "1.0.12+20190622" authors = ["Sebastian Thiel "] description = "A complete library to interact with Hangouts Chat (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/chat1" homepage = "https://developers.google.com/hangouts/chat" -documentation = "https://docs.rs/google-chat1/1.0.11+20190622" +documentation = "https://docs.rs/google-chat1/1.0.12+20190622" license = "MIT" keywords = ["chat", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/chat1/LICENSE.md b/gen/chat1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/chat1/LICENSE.md +++ b/gen/chat1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/chat1/README.md b/gen/chat1/README.md index a20fe8e874..ec48764fb4 100644 --- a/gen/chat1/README.md +++ b/gen/chat1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-chat1` library allows access to all features of the *Google Hangouts Chat* service. -This documentation was generated from *Hangouts Chat* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *chat:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Hangouts Chat* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *chat:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Hangouts Chat* *v1* API can be found at the [official documentation site](https://developers.google.com/hangouts/chat). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/struct.HangoutsChat.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/struct.HangoutsChat.html) ... -* [spaces](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/struct.Space.html) - * [*get*](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/struct.SpaceGetCall.html), [*list*](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/struct.SpaceListCall.html), [*members get*](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/struct.SpaceMemberGetCall.html), [*members list*](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/struct.SpaceMemberListCall.html), [*messages create*](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/struct.SpaceMessageCreateCall.html), [*messages delete*](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/struct.SpaceMessageDeleteCall.html), [*messages get*](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/struct.SpaceMessageGetCall.html) and [*messages update*](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/struct.SpaceMessageUpdateCall.html) +* [spaces](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/struct.Space.html) + * [*get*](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/struct.SpaceGetCall.html), [*list*](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/struct.SpaceListCall.html), [*members get*](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/struct.SpaceMemberGetCall.html), [*members list*](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/struct.SpaceMemberListCall.html), [*messages create*](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/struct.SpaceMessageCreateCall.html), [*messages delete*](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/struct.SpaceMessageDeleteCall.html), [*messages get*](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/struct.SpaceMessageGetCall.html) and [*messages update*](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/struct.SpaceMessageUpdateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/struct.HangoutsChat.html)** +* **[Hub](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/struct.HangoutsChat.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.Part.html)** + * **[Parts](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -138,17 +138,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -158,29 +158,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-chat1/1.0.11+20190622/google_chat1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-chat1/1.0.12+20190622/google_chat1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/chat1/src/lib.rs b/gen/chat1/src/lib.rs index 775bc79a91..bf48830ec5 100644 --- a/gen/chat1/src/lib.rs +++ b/gen/chat1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Hangouts Chat* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *chat:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Hangouts Chat* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *chat:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Hangouts Chat* *v1* API can be found at the //! [official documentation site](https://developers.google.com/hangouts/chat). @@ -316,7 +316,7 @@ impl<'a, C, A> HangoutsChat HangoutsChat { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://chat.googleapis.com/".to_string(), _root_url: "https://chat.googleapis.com/".to_string(), } @@ -327,7 +327,7 @@ impl<'a, C, A> HangoutsChat } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/classroom1-cli/Cargo.toml b/gen/classroom1-cli/Cargo.toml index ff45c23a9d..d328976801 100644 --- a/gen/classroom1-cli/Cargo.toml +++ b/gen/classroom1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-classroom1-cli" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with classroom (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/classroom1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-classroom1] path = "../classroom1" -version = "1.0.11+20190701" +version = "1.0.12+20190701" diff --git a/gen/classroom1-cli/LICENSE.md b/gen/classroom1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/classroom1-cli/LICENSE.md +++ b/gen/classroom1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/classroom1-cli/README.md b/gen/classroom1-cli/README.md index e75ce15a97..2974916f01 100644 --- a/gen/classroom1-cli/README.md +++ b/gen/classroom1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *classroom* API at revision *20190701*. The CLI is at version *1.0.11*. +This documentation was generated from the *classroom* API at revision *20190701*. The CLI is at version *1.0.12*. ```bash classroom1 [options] diff --git a/gen/classroom1-cli/mkdocs.yml b/gen/classroom1-cli/mkdocs.yml index 2d1faf8f41..8c10edae15 100644 --- a/gen/classroom1-cli/mkdocs.yml +++ b/gen/classroom1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: classroom v1.0.11+20190701 +site_name: classroom v1.0.12+20190701 site_url: http://byron.github.io/google-apis-rs/google-classroom1-cli site_description: A complete library to interact with classroom (protocol v1) @@ -68,5 +68,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/classroom1-cli/src/cmn.rs b/gen/classroom1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/classroom1-cli/src/cmn.rs +++ b/gen/classroom1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/classroom1-cli/src/main.rs b/gen/classroom1-cli/src/main.rs index 24f6662387..0fbe0ea67b 100644 --- a/gen/classroom1-cli/src/main.rs +++ b/gen/classroom1-cli/src/main.rs @@ -6660,7 +6660,7 @@ fn main() { let mut app = App::new("classroom1") .author("Sebastian Thiel ") - .version("1.0.11+20190701") + .version("1.0.12+20190701") .about("Manages classes, rosters, and invitations in Google Classroom.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_classroom1_cli") .arg(Arg::with_name("url") diff --git a/gen/classroom1/Cargo.toml b/gen/classroom1/Cargo.toml index 7ef8655c41..fad798114a 100644 --- a/gen/classroom1/Cargo.toml +++ b/gen/classroom1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-classroom1" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with classroom (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/classroom1" homepage = "https://developers.google.com/classroom/" -documentation = "https://docs.rs/google-classroom1/1.0.11+20190701" +documentation = "https://docs.rs/google-classroom1/1.0.12+20190701" license = "MIT" keywords = ["classroom", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/classroom1/LICENSE.md b/gen/classroom1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/classroom1/LICENSE.md +++ b/gen/classroom1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/classroom1/README.md b/gen/classroom1/README.md index 09119d932a..18b16e4c0e 100644 --- a/gen/classroom1/README.md +++ b/gen/classroom1/README.md @@ -5,22 +5,22 @@ DO NOT EDIT ! --> The `google-classroom1` library allows access to all features of the *Google classroom* service. -This documentation was generated from *classroom* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *classroom:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *classroom* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *classroom:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *classroom* *v1* API can be found at the [official documentation site](https://developers.google.com/classroom/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.Classroom.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.Classroom.html) ... -* [courses](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.Course.html) - * [*aliases create*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseAliaseCreateCall.html), [*aliases delete*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseAliaseDeleteCall.html), [*aliases list*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseAliaseListCall.html), [*announcements create*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseAnnouncementCreateCall.html), [*announcements delete*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseAnnouncementDeleteCall.html), [*announcements get*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseAnnouncementGetCall.html), [*announcements list*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseAnnouncementListCall.html), [*announcements modify assignees*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseAnnouncementModifyAssigneeCall.html), [*announcements patch*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseAnnouncementPatchCall.html), [*course work create*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseCourseWorkCreateCall.html), [*course work delete*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseCourseWorkDeleteCall.html), [*course work get*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseCourseWorkGetCall.html), [*course work list*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseCourseWorkListCall.html), [*course work modify assignees*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseCourseWorkModifyAssigneeCall.html), [*course work patch*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseCourseWorkPatchCall.html), [*course work student submissions get*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseCourseWorkStudentSubmissionGetCall.html), [*course work student submissions list*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseCourseWorkStudentSubmissionListCall.html), [*course work student submissions modify attachments*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseCourseWorkStudentSubmissionModifyAttachmentCall.html), [*course work student submissions patch*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseCourseWorkStudentSubmissionPatchCall.html), [*course work student submissions reclaim*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseCourseWorkStudentSubmissionReclaimCall.html), [*course work student submissions return*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseCourseWorkStudentSubmissionReturnCall.html), [*course work student submissions turn in*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseCourseWorkStudentSubmissionTurnInCall.html), [*create*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseCreateCall.html), [*delete*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseDeleteCall.html), [*get*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseGetCall.html), [*list*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseListCall.html), [*patch*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CoursePatchCall.html), [*students create*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseStudentCreateCall.html), [*students delete*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseStudentDeleteCall.html), [*students get*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseStudentGetCall.html), [*students list*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseStudentListCall.html), [*teachers create*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseTeacherCreateCall.html), [*teachers delete*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseTeacherDeleteCall.html), [*teachers get*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseTeacherGetCall.html), [*teachers list*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseTeacherListCall.html), [*topics create*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseTopicCreateCall.html), [*topics delete*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseTopicDeleteCall.html), [*topics get*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseTopicGetCall.html), [*topics list*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseTopicListCall.html), [*topics patch*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseTopicPatchCall.html) and [*update*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.CourseUpdateCall.html) -* [invitations](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.Invitation.html) - * [*accept*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.InvitationAcceptCall.html), [*create*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.InvitationCreateCall.html), [*delete*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.InvitationDeleteCall.html), [*get*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.InvitationGetCall.html) and [*list*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.InvitationListCall.html) -* [registrations](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.Registration.html) - * [*create*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.RegistrationCreateCall.html) and [*delete*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.RegistrationDeleteCall.html) -* [user profiles](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.UserProfile.html) - * [*get*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.UserProfileGetCall.html), [*guardian invitations create*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.UserProfileGuardianInvitationCreateCall.html), [*guardian invitations get*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.UserProfileGuardianInvitationGetCall.html), [*guardian invitations list*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.UserProfileGuardianInvitationListCall.html), [*guardian invitations patch*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.UserProfileGuardianInvitationPatchCall.html), [*guardians delete*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.UserProfileGuardianDeleteCall.html), [*guardians get*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.UserProfileGuardianGetCall.html) and [*guardians list*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.UserProfileGuardianListCall.html) +* [courses](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.Course.html) + * [*aliases create*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseAliaseCreateCall.html), [*aliases delete*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseAliaseDeleteCall.html), [*aliases list*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseAliaseListCall.html), [*announcements create*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseAnnouncementCreateCall.html), [*announcements delete*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseAnnouncementDeleteCall.html), [*announcements get*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseAnnouncementGetCall.html), [*announcements list*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseAnnouncementListCall.html), [*announcements modify assignees*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseAnnouncementModifyAssigneeCall.html), [*announcements patch*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseAnnouncementPatchCall.html), [*course work create*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseCourseWorkCreateCall.html), [*course work delete*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseCourseWorkDeleteCall.html), [*course work get*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseCourseWorkGetCall.html), [*course work list*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseCourseWorkListCall.html), [*course work modify assignees*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseCourseWorkModifyAssigneeCall.html), [*course work patch*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseCourseWorkPatchCall.html), [*course work student submissions get*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseCourseWorkStudentSubmissionGetCall.html), [*course work student submissions list*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseCourseWorkStudentSubmissionListCall.html), [*course work student submissions modify attachments*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseCourseWorkStudentSubmissionModifyAttachmentCall.html), [*course work student submissions patch*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseCourseWorkStudentSubmissionPatchCall.html), [*course work student submissions reclaim*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseCourseWorkStudentSubmissionReclaimCall.html), [*course work student submissions return*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseCourseWorkStudentSubmissionReturnCall.html), [*course work student submissions turn in*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseCourseWorkStudentSubmissionTurnInCall.html), [*create*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseCreateCall.html), [*delete*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseDeleteCall.html), [*get*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseGetCall.html), [*list*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseListCall.html), [*patch*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CoursePatchCall.html), [*students create*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseStudentCreateCall.html), [*students delete*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseStudentDeleteCall.html), [*students get*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseStudentGetCall.html), [*students list*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseStudentListCall.html), [*teachers create*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseTeacherCreateCall.html), [*teachers delete*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseTeacherDeleteCall.html), [*teachers get*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseTeacherGetCall.html), [*teachers list*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseTeacherListCall.html), [*topics create*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseTopicCreateCall.html), [*topics delete*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseTopicDeleteCall.html), [*topics get*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseTopicGetCall.html), [*topics list*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseTopicListCall.html), [*topics patch*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseTopicPatchCall.html) and [*update*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.CourseUpdateCall.html) +* [invitations](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.Invitation.html) + * [*accept*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.InvitationAcceptCall.html), [*create*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.InvitationCreateCall.html), [*delete*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.InvitationDeleteCall.html), [*get*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.InvitationGetCall.html) and [*list*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.InvitationListCall.html) +* [registrations](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.Registration.html) + * [*create*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.RegistrationCreateCall.html) and [*delete*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.RegistrationDeleteCall.html) +* [user profiles](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.UserProfile.html) + * [*get*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.UserProfileGetCall.html), [*guardian invitations create*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.UserProfileGuardianInvitationCreateCall.html), [*guardian invitations get*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.UserProfileGuardianInvitationGetCall.html), [*guardian invitations list*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.UserProfileGuardianInvitationListCall.html), [*guardian invitations patch*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.UserProfileGuardianInvitationPatchCall.html), [*guardians delete*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.UserProfileGuardianDeleteCall.html), [*guardians get*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.UserProfileGuardianGetCall.html) and [*guardians list*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.UserProfileGuardianListCall.html) @@ -29,17 +29,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/struct.Classroom.html)** +* **[Hub](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/struct.Classroom.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.Part.html)** + * **[Parts](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -175,17 +175,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -195,29 +195,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-classroom1/1.0.11+20190701/google_classroom1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-classroom1/1.0.12+20190701/google_classroom1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/classroom1/src/lib.rs b/gen/classroom1/src/lib.rs index bfbb59a991..c7ca3bf479 100644 --- a/gen/classroom1/src/lib.rs +++ b/gen/classroom1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *classroom* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *classroom:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *classroom* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *classroom:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *classroom* *v1* API can be found at the //! [official documentation site](https://developers.google.com/classroom/). @@ -449,7 +449,7 @@ impl<'a, C, A> Classroom Classroom { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://classroom.googleapis.com/".to_string(), _root_url: "https://classroom.googleapis.com/".to_string(), } @@ -469,7 +469,7 @@ impl<'a, C, A> Classroom } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudasset1-cli/Cargo.toml b/gen/cloudasset1-cli/Cargo.toml index 4e3ec71fff..9da281e601 100644 --- a/gen/cloudasset1-cli/Cargo.toml +++ b/gen/cloudasset1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudasset1-cli" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Asset (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudasset1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudasset1] path = "../cloudasset1" -version = "1.0.11+20190625" +version = "1.0.12+20190625" diff --git a/gen/cloudasset1-cli/LICENSE.md b/gen/cloudasset1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudasset1-cli/LICENSE.md +++ b/gen/cloudasset1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudasset1-cli/README.md b/gen/cloudasset1-cli/README.md index 5b5eb2c90d..01868bf36f 100644 --- a/gen/cloudasset1-cli/README.md +++ b/gen/cloudasset1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Asset* API at revision *20190625*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Asset* API at revision *20190625*. The CLI is at version *1.0.12*. ```bash cloudasset1 [options] diff --git a/gen/cloudasset1-cli/mkdocs.yml b/gen/cloudasset1-cli/mkdocs.yml index 3db5bff6b7..ce6be52507 100644 --- a/gen/cloudasset1-cli/mkdocs.yml +++ b/gen/cloudasset1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Asset v1.0.11+20190625 +site_name: Cloud Asset v1.0.12+20190625 site_url: http://byron.github.io/google-apis-rs/google-cloudasset1-cli site_description: A complete library to interact with Cloud Asset (protocol v1) @@ -15,5 +15,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudasset1-cli/src/cmn.rs b/gen/cloudasset1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudasset1-cli/src/cmn.rs +++ b/gen/cloudasset1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudasset1-cli/src/main.rs b/gen/cloudasset1-cli/src/main.rs index 57eda601ad..7df509a5d4 100644 --- a/gen/cloudasset1-cli/src/main.rs +++ b/gen/cloudasset1-cli/src/main.rs @@ -465,7 +465,7 @@ fn main() { let mut app = App::new("cloudasset1") .author("Sebastian Thiel ") - .version("1.0.11+20190625") + .version("1.0.12+20190625") .about("The cloud asset API manages the history and inventory of cloud resources.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudasset1_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudasset1/Cargo.toml b/gen/cloudasset1/Cargo.toml index c931234bf3..84adf786be 100644 --- a/gen/cloudasset1/Cargo.toml +++ b/gen/cloudasset1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudasset1" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Asset (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudasset1" homepage = "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory" -documentation = "https://docs.rs/google-cloudasset1/1.0.11+20190625" +documentation = "https://docs.rs/google-cloudasset1/1.0.12+20190625" license = "MIT" keywords = ["cloudasset", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudasset1/LICENSE.md b/gen/cloudasset1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudasset1/LICENSE.md +++ b/gen/cloudasset1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudasset1/README.md b/gen/cloudasset1/README.md index d559275512..a276257ed0 100644 --- a/gen/cloudasset1/README.md +++ b/gen/cloudasset1/README.md @@ -5,21 +5,21 @@ DO NOT EDIT ! --> The `google-cloudasset1` library allows access to all features of the *Google Cloud Asset* service. -This documentation was generated from *Cloud Asset* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *cloudasset:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Asset* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *cloudasset:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Asset* *v1* API can be found at the [official documentation site](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/struct.CloudAsset.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/struct.CloudAsset.html) ... -* [operations](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/struct.Operation.html) - * [*get*](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/struct.OperationGetCall.html) +* [operations](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/struct.Operation.html) + * [*get*](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/struct.OperationGetCall.html) Other activities are ... -* [batch get assets history](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/struct.MethodBatchGetAssetsHistoryCall.html) -* [export assets](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/struct.MethodExportAssetCall.html) +* [batch get assets history](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/struct.MethodBatchGetAssetsHistoryCall.html) +* [export assets](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/struct.MethodExportAssetCall.html) @@ -27,17 +27,17 @@ Other activities are ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/struct.CloudAsset.html)** +* **[Hub](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/struct.CloudAsset.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -135,17 +135,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -155,29 +155,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudasset1/1.0.11+20190625/google_cloudasset1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudasset1/1.0.12+20190625/google_cloudasset1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudasset1/src/lib.rs b/gen/cloudasset1/src/lib.rs index 940bf27391..34f597bf73 100644 --- a/gen/cloudasset1/src/lib.rs +++ b/gen/cloudasset1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Asset* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *cloudasset:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Asset* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *cloudasset:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Asset* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory). @@ -334,7 +334,7 @@ impl<'a, C, A> CloudAsset CloudAsset { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudasset.googleapis.com/".to_string(), _root_url: "https://cloudasset.googleapis.com/".to_string(), } @@ -348,7 +348,7 @@ impl<'a, C, A> CloudAsset } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudasset1_beta1-cli/Cargo.toml b/gen/cloudasset1_beta1-cli/Cargo.toml index b081cd37ed..27a74be0c6 100644 --- a/gen/cloudasset1_beta1-cli/Cargo.toml +++ b/gen/cloudasset1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudasset1_beta1-cli" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Asset (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudasset1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudasset1_beta1] path = "../cloudasset1_beta1" -version = "1.0.11+20190625" +version = "1.0.12+20190625" diff --git a/gen/cloudasset1_beta1-cli/LICENSE.md b/gen/cloudasset1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudasset1_beta1-cli/LICENSE.md +++ b/gen/cloudasset1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudasset1_beta1-cli/README.md b/gen/cloudasset1_beta1-cli/README.md index 65a21be5fa..262ee7b9ef 100644 --- a/gen/cloudasset1_beta1-cli/README.md +++ b/gen/cloudasset1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Asset* API at revision *20190625*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Asset* API at revision *20190625*. The CLI is at version *1.0.12*. ```bash cloudasset1-beta1 [options] diff --git a/gen/cloudasset1_beta1-cli/mkdocs.yml b/gen/cloudasset1_beta1-cli/mkdocs.yml index 08b1d6622e..3446352e46 100644 --- a/gen/cloudasset1_beta1-cli/mkdocs.yml +++ b/gen/cloudasset1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Asset v1.0.11+20190625 +site_name: Cloud Asset v1.0.12+20190625 site_url: http://byron.github.io/google-apis-rs/google-cloudasset1_beta1-cli site_description: A complete library to interact with Cloud Asset (protocol v1beta1) @@ -20,5 +20,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudasset1_beta1-cli/src/cmn.rs b/gen/cloudasset1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudasset1_beta1-cli/src/cmn.rs +++ b/gen/cloudasset1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudasset1_beta1-cli/src/main.rs b/gen/cloudasset1_beta1-cli/src/main.rs index 95a3c5dc79..765e015361 100644 --- a/gen/cloudasset1_beta1-cli/src/main.rs +++ b/gen/cloudasset1_beta1-cli/src/main.rs @@ -984,7 +984,7 @@ fn main() { let mut app = App::new("cloudasset1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190625") + .version("1.0.12+20190625") .about("The cloud asset API manages the history and inventory of cloud resources.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudasset1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudasset1_beta1/Cargo.toml b/gen/cloudasset1_beta1/Cargo.toml index 52a3399a68..da771961a6 100644 --- a/gen/cloudasset1_beta1/Cargo.toml +++ b/gen/cloudasset1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudasset1_beta1" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Asset (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudasset1_beta1" homepage = "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory" -documentation = "https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625" +documentation = "https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625" license = "MIT" keywords = ["cloudasset", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudasset1_beta1/LICENSE.md b/gen/cloudasset1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudasset1_beta1/LICENSE.md +++ b/gen/cloudasset1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudasset1_beta1/README.md b/gen/cloudasset1_beta1/README.md index 640ce6a132..9cca6534d3 100644 --- a/gen/cloudasset1_beta1/README.md +++ b/gen/cloudasset1_beta1/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-cloudasset1_beta1` library allows access to all features of the *Google Cloud Asset* service. -This documentation was generated from *Cloud Asset* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *cloudasset:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Asset* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *cloudasset:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Asset* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/struct.CloudAsset.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/struct.CloudAsset.html) ... * folders - * [*export assets*](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/struct.FolderExportAssetCall.html) and [*operations get*](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/struct.FolderOperationGetCall.html) + * [*export assets*](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/struct.FolderExportAssetCall.html) and [*operations get*](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/struct.FolderOperationGetCall.html) * organizations - * [*batch get assets history*](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/struct.OrganizationBatchGetAssetsHistoryCall.html), [*export assets*](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/struct.OrganizationExportAssetCall.html) and [*operations get*](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/struct.OrganizationOperationGetCall.html) + * [*batch get assets history*](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/struct.OrganizationBatchGetAssetsHistoryCall.html), [*export assets*](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/struct.OrganizationExportAssetCall.html) and [*operations get*](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/struct.OrganizationOperationGetCall.html) * projects - * [*batch get assets history*](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/struct.ProjectBatchGetAssetsHistoryCall.html), [*export assets*](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/struct.ProjectExportAssetCall.html) and [*operations get*](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/struct.ProjectOperationGetCall.html) + * [*batch get assets history*](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/struct.ProjectBatchGetAssetsHistoryCall.html), [*export assets*](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/struct.ProjectExportAssetCall.html) and [*operations get*](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/struct.ProjectOperationGetCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/struct.CloudAsset.html)** +* **[Hub](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/struct.CloudAsset.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -139,17 +139,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -159,29 +159,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudasset1_beta1/1.0.11+20190625/google_cloudasset1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudasset1_beta1/1.0.12+20190625/google_cloudasset1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudasset1_beta1/src/lib.rs b/gen/cloudasset1_beta1/src/lib.rs index b41eb239ec..e21ddc8fa8 100644 --- a/gen/cloudasset1_beta1/src/lib.rs +++ b/gen/cloudasset1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Asset* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *cloudasset:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Asset* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *cloudasset:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Asset* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory). @@ -338,7 +338,7 @@ impl<'a, C, A> CloudAsset CloudAsset { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudasset.googleapis.com/".to_string(), _root_url: "https://cloudasset.googleapis.com/".to_string(), } @@ -355,7 +355,7 @@ impl<'a, C, A> CloudAsset } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudbilling1-cli/Cargo.toml b/gen/cloudbilling1-cli/Cargo.toml index 65717352c9..8c8dc29211 100644 --- a/gen/cloudbilling1-cli/Cargo.toml +++ b/gen/cloudbilling1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudbilling1-cli" -version = "1.0.11+20190617" +version = "1.0.12+20190617" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloudbilling (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudbilling1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudbilling1] path = "../cloudbilling1" -version = "1.0.11+20190617" +version = "1.0.12+20190617" diff --git a/gen/cloudbilling1-cli/LICENSE.md b/gen/cloudbilling1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudbilling1-cli/LICENSE.md +++ b/gen/cloudbilling1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudbilling1-cli/README.md b/gen/cloudbilling1-cli/README.md index 0f442b6f83..538609ab5e 100644 --- a/gen/cloudbilling1-cli/README.md +++ b/gen/cloudbilling1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloudbilling* API at revision *20190617*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloudbilling* API at revision *20190617*. The CLI is at version *1.0.12*. ```bash cloudbilling1 [options] diff --git a/gen/cloudbilling1-cli/mkdocs.yml b/gen/cloudbilling1-cli/mkdocs.yml index ebb52e0efd..79b7552393 100644 --- a/gen/cloudbilling1-cli/mkdocs.yml +++ b/gen/cloudbilling1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloudbilling v1.0.11+20190617 +site_name: Cloudbilling v1.0.12+20190617 site_url: http://byron.github.io/google-apis-rs/google-cloudbilling1-cli site_description: A complete library to interact with Cloudbilling (protocol v1) @@ -24,5 +24,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudbilling1-cli/src/cmn.rs b/gen/cloudbilling1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudbilling1-cli/src/cmn.rs +++ b/gen/cloudbilling1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudbilling1-cli/src/main.rs b/gen/cloudbilling1-cli/src/main.rs index b4af5e343a..7b6446df0a 100644 --- a/gen/cloudbilling1-cli/src/main.rs +++ b/gen/cloudbilling1-cli/src/main.rs @@ -1400,7 +1400,7 @@ fn main() { let mut app = App::new("cloudbilling1") .author("Sebastian Thiel ") - .version("1.0.11+20190617") + .version("1.0.12+20190617") .about("Allows developers to manage billing for their Google Cloud Platform projects programmatically.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudbilling1_cli") diff --git a/gen/cloudbilling1/Cargo.toml b/gen/cloudbilling1/Cargo.toml index 302acbd341..37dc91dcae 100644 --- a/gen/cloudbilling1/Cargo.toml +++ b/gen/cloudbilling1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudbilling1" -version = "1.0.11+20190617" +version = "1.0.12+20190617" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloudbilling (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudbilling1" homepage = "https://cloud.google.com/billing/" -documentation = "https://docs.rs/google-cloudbilling1/1.0.11+20190617" +documentation = "https://docs.rs/google-cloudbilling1/1.0.12+20190617" license = "MIT" keywords = ["cloudbilling", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudbilling1/LICENSE.md b/gen/cloudbilling1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudbilling1/LICENSE.md +++ b/gen/cloudbilling1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudbilling1/README.md b/gen/cloudbilling1/README.md index e1d89d742b..0b5698dee2 100644 --- a/gen/cloudbilling1/README.md +++ b/gen/cloudbilling1/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-cloudbilling1` library allows access to all features of the *Google Cloudbilling* service. -This documentation was generated from *Cloudbilling* crate version *1.0.11+20190617*, where *20190617* is the exact revision of the *cloudbilling:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloudbilling* crate version *1.0.12+20190617*, where *20190617* is the exact revision of the *cloudbilling:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloudbilling* *v1* API can be found at the [official documentation site](https://cloud.google.com/billing/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.Cloudbilling.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.Cloudbilling.html) ... -* [billing accounts](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.BillingAccount.html) - * [*create*](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.BillingAccountCreateCall.html), [*get*](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.BillingAccountGetCall.html), [*get iam policy*](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.BillingAccountGetIamPolicyCall.html), [*list*](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.BillingAccountListCall.html), [*patch*](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.BillingAccountPatchCall.html), [*projects list*](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.BillingAccountProjectListCall.html), [*set iam policy*](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.BillingAccountSetIamPolicyCall.html) and [*test iam permissions*](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.BillingAccountTestIamPermissionCall.html) +* [billing accounts](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.BillingAccount.html) + * [*create*](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.BillingAccountCreateCall.html), [*get*](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.BillingAccountGetCall.html), [*get iam policy*](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.BillingAccountGetIamPolicyCall.html), [*list*](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.BillingAccountListCall.html), [*patch*](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.BillingAccountPatchCall.html), [*projects list*](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.BillingAccountProjectListCall.html), [*set iam policy*](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.BillingAccountSetIamPolicyCall.html) and [*test iam permissions*](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.BillingAccountTestIamPermissionCall.html) * projects - * [*get billing info*](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.ProjectGetBillingInfoCall.html) and [*update billing info*](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.ProjectUpdateBillingInfoCall.html) -* [services](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.Service.html) - * [*list*](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.ServiceListCall.html) and [*skus list*](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.ServiceSkuListCall.html) + * [*get billing info*](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.ProjectGetBillingInfoCall.html) and [*update billing info*](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.ProjectUpdateBillingInfoCall.html) +* [services](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.Service.html) + * [*list*](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.ServiceListCall.html) and [*skus list*](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.ServiceSkuListCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/struct.Cloudbilling.html)** +* **[Hub](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/struct.Cloudbilling.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -138,17 +138,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -158,29 +158,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudbilling1/1.0.11+20190617/google_cloudbilling1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudbilling1/1.0.12+20190617/google_cloudbilling1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudbilling1/src/lib.rs b/gen/cloudbilling1/src/lib.rs index 940d2f4c17..8c88d31f4f 100644 --- a/gen/cloudbilling1/src/lib.rs +++ b/gen/cloudbilling1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloudbilling* crate version *1.0.11+20190617*, where *20190617* is the exact revision of the *cloudbilling:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloudbilling* crate version *1.0.12+20190617*, where *20190617* is the exact revision of the *cloudbilling:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloudbilling* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/billing/). @@ -334,7 +334,7 @@ impl<'a, C, A> Cloudbilling Cloudbilling { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudbilling.googleapis.com/".to_string(), _root_url: "https://cloudbilling.googleapis.com/".to_string(), } @@ -351,7 +351,7 @@ impl<'a, C, A> Cloudbilling } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudbuild1-cli/Cargo.toml b/gen/cloudbuild1-cli/Cargo.toml index c19092bb23..5050279ced 100644 --- a/gen/cloudbuild1-cli/Cargo.toml +++ b/gen/cloudbuild1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudbuild1-cli" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Build (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudbuild1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudbuild1] path = "../cloudbuild1" -version = "1.0.11+20190702" +version = "1.0.12+20190702" diff --git a/gen/cloudbuild1-cli/LICENSE.md b/gen/cloudbuild1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudbuild1-cli/LICENSE.md +++ b/gen/cloudbuild1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudbuild1-cli/README.md b/gen/cloudbuild1-cli/README.md index 0698083521..af05e98617 100644 --- a/gen/cloudbuild1-cli/README.md +++ b/gen/cloudbuild1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Build* API at revision *20190702*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Build* API at revision *20190702*. The CLI is at version *1.0.12*. ```bash cloudbuild1 [options] diff --git a/gen/cloudbuild1-cli/mkdocs.yml b/gen/cloudbuild1-cli/mkdocs.yml index 35244e623f..9af718ee7c 100644 --- a/gen/cloudbuild1-cli/mkdocs.yml +++ b/gen/cloudbuild1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Build v1.0.11+20190702 +site_name: Cloud Build v1.0.12+20190702 site_url: http://byron.github.io/google-apis-rs/google-cloudbuild1-cli site_description: A complete library to interact with Cloud Build (protocol v1) @@ -26,5 +26,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudbuild1-cli/src/cmn.rs b/gen/cloudbuild1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudbuild1-cli/src/cmn.rs +++ b/gen/cloudbuild1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudbuild1-cli/src/main.rs b/gen/cloudbuild1-cli/src/main.rs index 23f8bccdfc..8ab1afb297 100644 --- a/gen/cloudbuild1-cli/src/main.rs +++ b/gen/cloudbuild1-cli/src/main.rs @@ -1850,7 +1850,7 @@ fn main() { let mut app = App::new("cloudbuild1") .author("Sebastian Thiel ") - .version("1.0.11+20190702") + .version("1.0.12+20190702") .about("Creates and manages builds on Google Cloud Platform.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudbuild1_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudbuild1/Cargo.toml b/gen/cloudbuild1/Cargo.toml index 02afc3c5c2..063289e643 100644 --- a/gen/cloudbuild1/Cargo.toml +++ b/gen/cloudbuild1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudbuild1" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Build (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudbuild1" homepage = "https://cloud.google.com/cloud-build/docs/" -documentation = "https://docs.rs/google-cloudbuild1/1.0.11+20190702" +documentation = "https://docs.rs/google-cloudbuild1/1.0.12+20190702" license = "MIT" keywords = ["cloudbuild", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudbuild1/LICENSE.md b/gen/cloudbuild1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudbuild1/LICENSE.md +++ b/gen/cloudbuild1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudbuild1/README.md b/gen/cloudbuild1/README.md index 2717d08760..4009e2f6f8 100644 --- a/gen/cloudbuild1/README.md +++ b/gen/cloudbuild1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-cloudbuild1` library allows access to all features of the *Google Cloud Build* service. -This documentation was generated from *Cloud Build* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *cloudbuild:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Build* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *cloudbuild:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Build* *v1* API can be found at the [official documentation site](https://cloud.google.com/cloud-build/docs/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.CloudBuild.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.CloudBuild.html) ... -* [operations](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.Operation.html) - * [*cancel*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.OperationCancelCall.html), [*get*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.OperationListCall.html) +* [operations](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.Operation.html) + * [*cancel*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.OperationCancelCall.html), [*get*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.OperationListCall.html) * projects - * [*builds cancel*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.ProjectBuildCancelCall.html), [*builds create*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.ProjectBuildCreateCall.html), [*builds get*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.ProjectBuildGetCall.html), [*builds list*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.ProjectBuildListCall.html), [*builds retry*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.ProjectBuildRetryCall.html), [*triggers create*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.ProjectTriggerCreateCall.html), [*triggers delete*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.ProjectTriggerDeleteCall.html), [*triggers get*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.ProjectTriggerGetCall.html), [*triggers list*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.ProjectTriggerListCall.html), [*triggers patch*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.ProjectTriggerPatchCall.html) and [*triggers run*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.ProjectTriggerRunCall.html) + * [*builds cancel*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.ProjectBuildCancelCall.html), [*builds create*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.ProjectBuildCreateCall.html), [*builds get*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.ProjectBuildGetCall.html), [*builds list*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.ProjectBuildListCall.html), [*builds retry*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.ProjectBuildRetryCall.html), [*triggers create*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.ProjectTriggerCreateCall.html), [*triggers delete*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.ProjectTriggerDeleteCall.html), [*triggers get*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.ProjectTriggerGetCall.html), [*triggers list*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.ProjectTriggerListCall.html), [*triggers patch*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.ProjectTriggerPatchCall.html) and [*triggers run*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.ProjectTriggerRunCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/struct.CloudBuild.html)** +* **[Hub](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/struct.CloudBuild.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -134,17 +134,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -154,29 +154,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudbuild1/1.0.11+20190702/google_cloudbuild1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudbuild1/1.0.12+20190702/google_cloudbuild1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudbuild1/src/lib.rs b/gen/cloudbuild1/src/lib.rs index b258341143..0b4370efea 100644 --- a/gen/cloudbuild1/src/lib.rs +++ b/gen/cloudbuild1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Build* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *cloudbuild:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Build* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *cloudbuild:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Build* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/cloud-build/docs/). @@ -330,7 +330,7 @@ impl<'a, C, A> CloudBuild CloudBuild { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudbuild.googleapis.com/".to_string(), _root_url: "https://cloudbuild.googleapis.com/".to_string(), } @@ -344,7 +344,7 @@ impl<'a, C, A> CloudBuild } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/clouddebugger2-cli/Cargo.toml b/gen/clouddebugger2-cli/Cargo.toml index 4769812b64..d6f70a4f66 100644 --- a/gen/clouddebugger2-cli/Cargo.toml +++ b/gen/clouddebugger2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-clouddebugger2-cli" -version = "1.0.11+20190614" +version = "1.0.12+20190614" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Debugger (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/clouddebugger2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-clouddebugger2] path = "../clouddebugger2" -version = "1.0.11+20190614" +version = "1.0.12+20190614" diff --git a/gen/clouddebugger2-cli/LICENSE.md b/gen/clouddebugger2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/clouddebugger2-cli/LICENSE.md +++ b/gen/clouddebugger2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/clouddebugger2-cli/README.md b/gen/clouddebugger2-cli/README.md index bc942c018b..658cbbf602 100644 --- a/gen/clouddebugger2-cli/README.md +++ b/gen/clouddebugger2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Debugger* API at revision *20190614*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Debugger* API at revision *20190614*. The CLI is at version *1.0.12*. ```bash clouddebugger2 [options] diff --git a/gen/clouddebugger2-cli/mkdocs.yml b/gen/clouddebugger2-cli/mkdocs.yml index 3e42c2d74a..42d3704595 100644 --- a/gen/clouddebugger2-cli/mkdocs.yml +++ b/gen/clouddebugger2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Debugger v1.0.11+20190614 +site_name: Cloud Debugger v1.0.12+20190614 site_url: http://byron.github.io/google-apis-rs/google-clouddebugger2-cli site_description: A complete library to interact with Cloud Debugger (protocol v2) @@ -20,5 +20,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/clouddebugger2-cli/src/cmn.rs b/gen/clouddebugger2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/clouddebugger2-cli/src/cmn.rs +++ b/gen/clouddebugger2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/clouddebugger2-cli/src/main.rs b/gen/clouddebugger2-cli/src/main.rs index ed15d00cc4..f4296cf2ad 100644 --- a/gen/clouddebugger2-cli/src/main.rs +++ b/gen/clouddebugger2-cli/src/main.rs @@ -1022,7 +1022,7 @@ fn main() { let mut app = App::new("clouddebugger2") .author("Sebastian Thiel ") - .version("1.0.11+20190614") + .version("1.0.12+20190614") .about("Examines the call stack and variables of a running application without stopping or slowing it down. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_clouddebugger2_cli") diff --git a/gen/clouddebugger2/Cargo.toml b/gen/clouddebugger2/Cargo.toml index d98ed9d963..4547663f4a 100644 --- a/gen/clouddebugger2/Cargo.toml +++ b/gen/clouddebugger2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-clouddebugger2" -version = "1.0.11+20190614" +version = "1.0.12+20190614" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Debugger (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/clouddebugger2" homepage = "https://cloud.google.com/debugger" -documentation = "https://docs.rs/google-clouddebugger2/1.0.11+20190614" +documentation = "https://docs.rs/google-clouddebugger2/1.0.12+20190614" license = "MIT" keywords = ["clouddebugger", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/clouddebugger2/LICENSE.md b/gen/clouddebugger2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/clouddebugger2/LICENSE.md +++ b/gen/clouddebugger2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/clouddebugger2/README.md b/gen/clouddebugger2/README.md index 6c13817972..0b755e4faa 100644 --- a/gen/clouddebugger2/README.md +++ b/gen/clouddebugger2/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-clouddebugger2` library allows access to all features of the *Google Cloud Debugger* service. -This documentation was generated from *Cloud Debugger* crate version *1.0.11+20190614*, where *20190614* is the exact revision of the *clouddebugger:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Debugger* crate version *1.0.12+20190614*, where *20190614* is the exact revision of the *clouddebugger:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Debugger* *v2* API can be found at the [official documentation site](https://cloud.google.com/debugger). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/struct.CloudDebugger.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/struct.CloudDebugger.html) ... * controller - * [*debuggees breakpoints list*](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/struct.ControllerDebuggeeBreakpointListCall.html), [*debuggees breakpoints update*](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/struct.ControllerDebuggeeBreakpointUpdateCall.html) and [*debuggees register*](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/struct.ControllerDebuggeeRegisterCall.html) + * [*debuggees breakpoints list*](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/struct.ControllerDebuggeeBreakpointListCall.html), [*debuggees breakpoints update*](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/struct.ControllerDebuggeeBreakpointUpdateCall.html) and [*debuggees register*](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/struct.ControllerDebuggeeRegisterCall.html) * debugger - * [*debuggees breakpoints delete*](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/struct.DebuggerDebuggeeBreakpointDeleteCall.html), [*debuggees breakpoints get*](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/struct.DebuggerDebuggeeBreakpointGetCall.html), [*debuggees breakpoints list*](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/struct.DebuggerDebuggeeBreakpointListCall.html), [*debuggees breakpoints set*](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/struct.DebuggerDebuggeeBreakpointSetCall.html) and [*debuggees list*](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/struct.DebuggerDebuggeeListCall.html) + * [*debuggees breakpoints delete*](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/struct.DebuggerDebuggeeBreakpointDeleteCall.html), [*debuggees breakpoints get*](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/struct.DebuggerDebuggeeBreakpointGetCall.html), [*debuggees breakpoints list*](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/struct.DebuggerDebuggeeBreakpointListCall.html), [*debuggees breakpoints set*](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/struct.DebuggerDebuggeeBreakpointSetCall.html) and [*debuggees list*](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/struct.DebuggerDebuggeeListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/struct.CloudDebugger.html)** +* **[Hub](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/struct.CloudDebugger.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.Part.html)** + * **[Parts](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -133,17 +133,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -153,29 +153,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-clouddebugger2/1.0.11+20190614/google_clouddebugger2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-clouddebugger2/1.0.12+20190614/google_clouddebugger2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/clouddebugger2/src/lib.rs b/gen/clouddebugger2/src/lib.rs index 6d02aaed11..1a1b77bbfc 100644 --- a/gen/clouddebugger2/src/lib.rs +++ b/gen/clouddebugger2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Debugger* crate version *1.0.11+20190614*, where *20190614* is the exact revision of the *clouddebugger:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Debugger* crate version *1.0.12+20190614*, where *20190614* is the exact revision of the *clouddebugger:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Debugger* *v2* API can be found at the //! [official documentation site](https://cloud.google.com/debugger). @@ -337,7 +337,7 @@ impl<'a, C, A> CloudDebugger CloudDebugger { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://clouddebugger.googleapis.com/".to_string(), _root_url: "https://clouddebugger.googleapis.com/".to_string(), } @@ -351,7 +351,7 @@ impl<'a, C, A> CloudDebugger } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/clouderrorreporting1_beta1-cli/Cargo.toml b/gen/clouderrorreporting1_beta1-cli/Cargo.toml index 79a7aa00e1..580e31d542 100644 --- a/gen/clouderrorreporting1_beta1-cli/Cargo.toml +++ b/gen/clouderrorreporting1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-clouderrorreporting1_beta1-cli" -version = "1.0.11+20190626" +version = "1.0.12+20190626" authors = ["Sebastian Thiel "] description = "A complete library to interact with Clouderrorreporting (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/clouderrorreporting1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-clouderrorreporting1_beta1] path = "../clouderrorreporting1_beta1" -version = "1.0.11+20190626" +version = "1.0.12+20190626" diff --git a/gen/clouderrorreporting1_beta1-cli/LICENSE.md b/gen/clouderrorreporting1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/clouderrorreporting1_beta1-cli/LICENSE.md +++ b/gen/clouderrorreporting1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/clouderrorreporting1_beta1-cli/README.md b/gen/clouderrorreporting1_beta1-cli/README.md index fc6987a8c6..536f592ef8 100644 --- a/gen/clouderrorreporting1_beta1-cli/README.md +++ b/gen/clouderrorreporting1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Clouderrorreporting* API at revision *20190626*. The CLI is at version *1.0.11*. +This documentation was generated from the *Clouderrorreporting* API at revision *20190626*. The CLI is at version *1.0.12*. ```bash clouderrorreporting1-beta1 [options] diff --git a/gen/clouderrorreporting1_beta1-cli/mkdocs.yml b/gen/clouderrorreporting1_beta1-cli/mkdocs.yml index 1155b8d12a..ddce185f2b 100644 --- a/gen/clouderrorreporting1_beta1-cli/mkdocs.yml +++ b/gen/clouderrorreporting1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Clouderrorreporting v1.0.11+20190626 +site_name: Clouderrorreporting v1.0.12+20190626 site_url: http://byron.github.io/google-apis-rs/google-clouderrorreporting1_beta1-cli site_description: A complete library to interact with Clouderrorreporting (protocol v1beta1) @@ -18,5 +18,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/clouderrorreporting1_beta1-cli/src/cmn.rs b/gen/clouderrorreporting1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/clouderrorreporting1_beta1-cli/src/cmn.rs +++ b/gen/clouderrorreporting1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/clouderrorreporting1_beta1-cli/src/main.rs b/gen/clouderrorreporting1_beta1-cli/src/main.rs index a05f427b1b..13185323b2 100644 --- a/gen/clouderrorreporting1_beta1-cli/src/main.rs +++ b/gen/clouderrorreporting1_beta1-cli/src/main.rs @@ -796,7 +796,7 @@ fn main() { let mut app = App::new("clouderrorreporting1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190626") + .version("1.0.12+20190626") .about("Groups and counts similar errors from cloud services and applications, reports new errors, and provides access to error groups and their associated errors. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_clouderrorreporting1_beta1_cli") diff --git a/gen/clouderrorreporting1_beta1/Cargo.toml b/gen/clouderrorreporting1_beta1/Cargo.toml index 6faf241364..6fabdf122b 100644 --- a/gen/clouderrorreporting1_beta1/Cargo.toml +++ b/gen/clouderrorreporting1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-clouderrorreporting1_beta1" -version = "1.0.11+20190626" +version = "1.0.12+20190626" authors = ["Sebastian Thiel "] description = "A complete library to interact with Clouderrorreporting (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/clouderrorreporting1_beta1" homepage = "https://cloud.google.com/error-reporting/" -documentation = "https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626" +documentation = "https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626" license = "MIT" keywords = ["clouderrorreporting", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/clouderrorreporting1_beta1/LICENSE.md b/gen/clouderrorreporting1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/clouderrorreporting1_beta1/LICENSE.md +++ b/gen/clouderrorreporting1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/clouderrorreporting1_beta1/README.md b/gen/clouderrorreporting1_beta1/README.md index f25a57e857..f093d3f407 100644 --- a/gen/clouderrorreporting1_beta1/README.md +++ b/gen/clouderrorreporting1_beta1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-clouderrorreporting1_beta1` library allows access to all features of the *Google Clouderrorreporting* service. -This documentation was generated from *Clouderrorreporting* crate version *1.0.11+20190626*, where *20190626* is the exact revision of the *clouderrorreporting:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Clouderrorreporting* crate version *1.0.12+20190626*, where *20190626* is the exact revision of the *clouderrorreporting:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Clouderrorreporting* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/error-reporting/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/struct.Clouderrorreporting.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/struct.Clouderrorreporting.html) ... * projects - * [*delete events*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/struct.ProjectDeleteEventCall.html), [*events list*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/struct.ProjectEventListCall.html), [*events report*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/struct.ProjectEventReportCall.html), [*group stats list*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/struct.ProjectGroupStatListCall.html), [*groups get*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/struct.ProjectGroupGetCall.html) and [*groups update*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/struct.ProjectGroupUpdateCall.html) + * [*delete events*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/struct.ProjectDeleteEventCall.html), [*events list*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/struct.ProjectEventListCall.html), [*events report*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/struct.ProjectEventReportCall.html), [*group stats list*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/struct.ProjectGroupStatListCall.html), [*groups get*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/struct.ProjectGroupGetCall.html) and [*groups update*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/struct.ProjectGroupUpdateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/struct.Clouderrorreporting.html)** +* **[Hub](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/struct.Clouderrorreporting.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -131,17 +131,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -151,29 +151,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-clouderrorreporting1_beta1/1.0.11+20190626/google_clouderrorreporting1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-clouderrorreporting1_beta1/1.0.12+20190626/google_clouderrorreporting1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/clouderrorreporting1_beta1/src/lib.rs b/gen/clouderrorreporting1_beta1/src/lib.rs index 41a8c74ee4..daf2db180b 100644 --- a/gen/clouderrorreporting1_beta1/src/lib.rs +++ b/gen/clouderrorreporting1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Clouderrorreporting* crate version *1.0.11+20190626*, where *20190626* is the exact revision of the *clouderrorreporting:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Clouderrorreporting* crate version *1.0.12+20190626*, where *20190626* is the exact revision of the *clouderrorreporting:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Clouderrorreporting* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/error-reporting/). @@ -330,7 +330,7 @@ impl<'a, C, A> Clouderrorreporting Clouderrorreporting { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://clouderrorreporting.googleapis.com/".to_string(), _root_url: "https://clouderrorreporting.googleapis.com/".to_string(), } @@ -341,7 +341,7 @@ impl<'a, C, A> Clouderrorreporting } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudfunctions1-cli/Cargo.toml b/gen/cloudfunctions1-cli/Cargo.toml index 9ad4f676e3..4b7490eb21 100644 --- a/gen/cloudfunctions1-cli/Cargo.toml +++ b/gen/cloudfunctions1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudfunctions1-cli" -version = "1.0.11+20190620" +version = "1.0.12+20190620" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Functions (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudfunctions1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudfunctions1] path = "../cloudfunctions1" -version = "1.0.11+20190620" +version = "1.0.12+20190620" diff --git a/gen/cloudfunctions1-cli/LICENSE.md b/gen/cloudfunctions1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudfunctions1-cli/LICENSE.md +++ b/gen/cloudfunctions1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudfunctions1-cli/README.md b/gen/cloudfunctions1-cli/README.md index ef73232599..21e12f11c5 100644 --- a/gen/cloudfunctions1-cli/README.md +++ b/gen/cloudfunctions1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Functions* API at revision *20190620*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Functions* API at revision *20190620*. The CLI is at version *1.0.12*. ```bash cloudfunctions1 [options] diff --git a/gen/cloudfunctions1-cli/mkdocs.yml b/gen/cloudfunctions1-cli/mkdocs.yml index ac73a82d58..c2423ba0d2 100644 --- a/gen/cloudfunctions1-cli/mkdocs.yml +++ b/gen/cloudfunctions1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Functions v1.0.11+20190620 +site_name: Cloud Functions v1.0.12+20190620 site_url: http://byron.github.io/google-apis-rs/google-cloudfunctions1-cli site_description: A complete library to interact with Cloud Functions (protocol v1) @@ -26,5 +26,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudfunctions1-cli/src/cmn.rs b/gen/cloudfunctions1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudfunctions1-cli/src/cmn.rs +++ b/gen/cloudfunctions1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudfunctions1-cli/src/main.rs b/gen/cloudfunctions1-cli/src/main.rs index feb1d9b1b3..94b0902fd6 100644 --- a/gen/cloudfunctions1-cli/src/main.rs +++ b/gen/cloudfunctions1-cli/src/main.rs @@ -1648,7 +1648,7 @@ fn main() { let mut app = App::new("cloudfunctions1") .author("Sebastian Thiel ") - .version("1.0.11+20190620") + .version("1.0.12+20190620") .about("Manages lightweight user-provided functions executed in response to events.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudfunctions1_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudfunctions1/Cargo.toml b/gen/cloudfunctions1/Cargo.toml index 0d89c2db88..bc51dd3941 100644 --- a/gen/cloudfunctions1/Cargo.toml +++ b/gen/cloudfunctions1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudfunctions1" -version = "1.0.11+20190620" +version = "1.0.12+20190620" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Functions (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudfunctions1" homepage = "https://cloud.google.com/functions" -documentation = "https://docs.rs/google-cloudfunctions1/1.0.11+20190620" +documentation = "https://docs.rs/google-cloudfunctions1/1.0.12+20190620" license = "MIT" keywords = ["cloudfunctions", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudfunctions1/LICENSE.md b/gen/cloudfunctions1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudfunctions1/LICENSE.md +++ b/gen/cloudfunctions1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudfunctions1/README.md b/gen/cloudfunctions1/README.md index 935694962a..aef51b56b7 100644 --- a/gen/cloudfunctions1/README.md +++ b/gen/cloudfunctions1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-cloudfunctions1` library allows access to all features of the *Google Cloud Functions* service. -This documentation was generated from *Cloud Functions* crate version *1.0.11+20190620*, where *20190620* is the exact revision of the *cloudfunctions:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Functions* crate version *1.0.12+20190620*, where *20190620* is the exact revision of the *cloudfunctions:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Functions* *v1* API can be found at the [official documentation site](https://cloud.google.com/functions). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.CloudFunctions.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.CloudFunctions.html) ... -* [operations](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.Operation.html) - * [*get*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.OperationListCall.html) +* [operations](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.Operation.html) + * [*get*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.OperationListCall.html) * projects - * [*locations functions call*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionCallCall.html), [*locations functions create*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionCreateCall.html), [*locations functions delete*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionDeleteCall.html), [*locations functions generate download url*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionGenerateDownloadUrlCall.html), [*locations functions generate upload url*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionGenerateUploadUrlCall.html), [*locations functions get*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionGetCall.html), [*locations functions get iam policy*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionGetIamPolicyCall.html), [*locations functions list*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionListCall.html), [*locations functions patch*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionPatchCall.html), [*locations functions set iam policy*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionSetIamPolicyCall.html), [*locations functions test iam permissions*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionTestIamPermissionCall.html) and [*locations list*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.ProjectLocationListCall.html) + * [*locations functions call*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionCallCall.html), [*locations functions create*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionCreateCall.html), [*locations functions delete*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionDeleteCall.html), [*locations functions generate download url*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionGenerateDownloadUrlCall.html), [*locations functions generate upload url*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionGenerateUploadUrlCall.html), [*locations functions get*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionGetCall.html), [*locations functions get iam policy*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionGetIamPolicyCall.html), [*locations functions list*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionListCall.html), [*locations functions patch*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionPatchCall.html), [*locations functions set iam policy*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionSetIamPolicyCall.html), [*locations functions test iam permissions*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.ProjectLocationFunctionTestIamPermissionCall.html) and [*locations list*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.ProjectLocationListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/struct.CloudFunctions.html)** +* **[Hub](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/struct.CloudFunctions.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -134,17 +134,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -154,29 +154,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudfunctions1/1.0.11+20190620/google_cloudfunctions1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudfunctions1/1.0.12+20190620/google_cloudfunctions1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudfunctions1/src/lib.rs b/gen/cloudfunctions1/src/lib.rs index c9dd098822..47a908c68b 100644 --- a/gen/cloudfunctions1/src/lib.rs +++ b/gen/cloudfunctions1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Functions* crate version *1.0.11+20190620*, where *20190620* is the exact revision of the *cloudfunctions:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Functions* crate version *1.0.12+20190620*, where *20190620* is the exact revision of the *cloudfunctions:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Functions* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/functions). @@ -331,7 +331,7 @@ impl<'a, C, A> CloudFunctions CloudFunctions { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudfunctions.googleapis.com/".to_string(), _root_url: "https://cloudfunctions.googleapis.com/".to_string(), } @@ -345,7 +345,7 @@ impl<'a, C, A> CloudFunctions } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudidentity1-cli/Cargo.toml b/gen/cloudidentity1-cli/Cargo.toml index fd70e24132..1a6054d59c 100644 --- a/gen/cloudidentity1-cli/Cargo.toml +++ b/gen/cloudidentity1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudidentity1-cli" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Identity (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudidentity1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudidentity1] path = "../cloudidentity1" -version = "1.0.11+20190629" +version = "1.0.12+20190629" diff --git a/gen/cloudidentity1-cli/LICENSE.md b/gen/cloudidentity1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudidentity1-cli/LICENSE.md +++ b/gen/cloudidentity1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudidentity1-cli/README.md b/gen/cloudidentity1-cli/README.md index 3e7bb56d99..cfc9bf4034 100644 --- a/gen/cloudidentity1-cli/README.md +++ b/gen/cloudidentity1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Identity* API at revision *20190629*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Identity* API at revision *20190629*. The CLI is at version *1.0.12*. ```bash cloudidentity1 [options] diff --git a/gen/cloudidentity1-cli/mkdocs.yml b/gen/cloudidentity1-cli/mkdocs.yml index c9a178d908..1ec2b8ed6e 100644 --- a/gen/cloudidentity1-cli/mkdocs.yml +++ b/gen/cloudidentity1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Identity v1.0.11+20190629 +site_name: Cloud Identity v1.0.12+20190629 site_url: http://byron.github.io/google-apis-rs/google-cloudidentity1-cli site_description: A complete library to interact with Cloud Identity (protocol v1) @@ -24,5 +24,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudidentity1-cli/src/cmn.rs b/gen/cloudidentity1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudidentity1-cli/src/cmn.rs +++ b/gen/cloudidentity1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudidentity1-cli/src/main.rs b/gen/cloudidentity1-cli/src/main.rs index 72c9278674..ef989e9e1c 100644 --- a/gen/cloudidentity1-cli/src/main.rs +++ b/gen/cloudidentity1-cli/src/main.rs @@ -1274,7 +1274,7 @@ fn main() { let mut app = App::new("cloudidentity1") .author("Sebastian Thiel ") - .version("1.0.11+20190629") + .version("1.0.12+20190629") .about("API for provisioning and managing identity resources.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudidentity1_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudidentity1/Cargo.toml b/gen/cloudidentity1/Cargo.toml index 1414c8f157..a8a3408599 100644 --- a/gen/cloudidentity1/Cargo.toml +++ b/gen/cloudidentity1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudidentity1" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Identity (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudidentity1" homepage = "https://cloud.google.com/identity/" -documentation = "https://docs.rs/google-cloudidentity1/1.0.11+20190629" +documentation = "https://docs.rs/google-cloudidentity1/1.0.12+20190629" license = "MIT" keywords = ["cloudidentity", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudidentity1/LICENSE.md b/gen/cloudidentity1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudidentity1/LICENSE.md +++ b/gen/cloudidentity1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudidentity1/README.md b/gen/cloudidentity1/README.md index f7658483e0..3df51f7830 100644 --- a/gen/cloudidentity1/README.md +++ b/gen/cloudidentity1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-cloudidentity1` library allows access to all features of the *Google Cloud Identity* service. -This documentation was generated from *Cloud Identity* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *cloudidentity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Identity* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *cloudidentity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Identity* *v1* API can be found at the [official documentation site](https://cloud.google.com/identity/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.CloudIdentity.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.CloudIdentity.html) ... -* [groups](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.Group.html) - * [*create*](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.GroupCreateCall.html), [*delete*](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.GroupDeleteCall.html), [*get*](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.GroupGetCall.html), [*list*](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.GroupListCall.html), [*lookup*](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.GroupLookupCall.html), [*memberships create*](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.GroupMembershipCreateCall.html), [*memberships delete*](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.GroupMembershipDeleteCall.html), [*memberships get*](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.GroupMembershipGetCall.html), [*memberships list*](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.GroupMembershipListCall.html), [*memberships lookup*](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.GroupMembershipLookupCall.html), [*patch*](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.GroupPatchCall.html) and [*search*](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.GroupSearchCall.html) +* [groups](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.Group.html) + * [*create*](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.GroupCreateCall.html), [*delete*](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.GroupDeleteCall.html), [*get*](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.GroupGetCall.html), [*list*](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.GroupListCall.html), [*lookup*](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.GroupLookupCall.html), [*memberships create*](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.GroupMembershipCreateCall.html), [*memberships delete*](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.GroupMembershipDeleteCall.html), [*memberships get*](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.GroupMembershipGetCall.html), [*memberships list*](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.GroupMembershipListCall.html), [*memberships lookup*](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.GroupMembershipLookupCall.html), [*patch*](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.GroupPatchCall.html) and [*search*](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.GroupSearchCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/struct.CloudIdentity.html)** +* **[Hub](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/struct.CloudIdentity.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -138,17 +138,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -158,29 +158,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudidentity1/1.0.11+20190629/google_cloudidentity1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudidentity1/1.0.12+20190629/google_cloudidentity1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudidentity1/src/lib.rs b/gen/cloudidentity1/src/lib.rs index 9bee484bf5..4118affda1 100644 --- a/gen/cloudidentity1/src/lib.rs +++ b/gen/cloudidentity1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Identity* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *cloudidentity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Identity* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *cloudidentity:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Identity* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/identity/). @@ -338,7 +338,7 @@ impl<'a, C, A> CloudIdentity CloudIdentity { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudidentity.googleapis.com/".to_string(), _root_url: "https://cloudidentity.googleapis.com/".to_string(), } @@ -349,7 +349,7 @@ impl<'a, C, A> CloudIdentity } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudiot1-cli/Cargo.toml b/gen/cloudiot1-cli/Cargo.toml index 0b120b7c2d..aada7189e1 100644 --- a/gen/cloudiot1-cli/Cargo.toml +++ b/gen/cloudiot1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudiot1-cli" -version = "1.0.11+20190618" +version = "1.0.12+20190618" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Iot (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudiot1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudiot1] path = "../cloudiot1" -version = "1.0.11+20190618" +version = "1.0.12+20190618" diff --git a/gen/cloudiot1-cli/LICENSE.md b/gen/cloudiot1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudiot1-cli/LICENSE.md +++ b/gen/cloudiot1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudiot1-cli/README.md b/gen/cloudiot1-cli/README.md index 8b7036d09b..58df040d77 100644 --- a/gen/cloudiot1-cli/README.md +++ b/gen/cloudiot1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Iot* API at revision *20190618*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Iot* API at revision *20190618*. The CLI is at version *1.0.12*. ```bash cloudiot1 [options] diff --git a/gen/cloudiot1-cli/mkdocs.yml b/gen/cloudiot1-cli/mkdocs.yml index b00ea2b05e..348f4ab4f6 100644 --- a/gen/cloudiot1-cli/mkdocs.yml +++ b/gen/cloudiot1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Iot v1.0.11+20190618 +site_name: Cloud Iot v1.0.12+20190618 site_url: http://byron.github.io/google-apis-rs/google-cloudiot1-cli site_description: A complete library to interact with Cloud Iot (protocol v1) @@ -35,5 +35,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudiot1-cli/src/cmn.rs b/gen/cloudiot1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudiot1-cli/src/cmn.rs +++ b/gen/cloudiot1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudiot1-cli/src/main.rs b/gen/cloudiot1-cli/src/main.rs index 828773f477..288590dfa4 100644 --- a/gen/cloudiot1-cli/src/main.rs +++ b/gen/cloudiot1-cli/src/main.rs @@ -2664,7 +2664,7 @@ fn main() { let mut app = App::new("cloudiot1") .author("Sebastian Thiel ") - .version("1.0.11+20190618") + .version("1.0.12+20190618") .about("Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudiot1_cli") diff --git a/gen/cloudiot1/Cargo.toml b/gen/cloudiot1/Cargo.toml index 2cc2a5d978..9ca933016c 100644 --- a/gen/cloudiot1/Cargo.toml +++ b/gen/cloudiot1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudiot1" -version = "1.0.11+20190618" +version = "1.0.12+20190618" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Iot (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudiot1" homepage = "https://cloud.google.com/iot" -documentation = "https://docs.rs/google-cloudiot1/1.0.11+20190618" +documentation = "https://docs.rs/google-cloudiot1/1.0.12+20190618" license = "MIT" keywords = ["cloudiot", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudiot1/LICENSE.md b/gen/cloudiot1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudiot1/LICENSE.md +++ b/gen/cloudiot1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudiot1/README.md b/gen/cloudiot1/README.md index f926dfa34a..8f24509bfa 100644 --- a/gen/cloudiot1/README.md +++ b/gen/cloudiot1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-cloudiot1` library allows access to all features of the *Google Cloud Iot* service. -This documentation was generated from *Cloud Iot* crate version *1.0.11+20190618*, where *20190618* is the exact revision of the *cloudiot:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Iot* crate version *1.0.12+20190618*, where *20190618* is the exact revision of the *cloudiot:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Iot* *v1* API can be found at the [official documentation site](https://cloud.google.com/iot). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.CloudIot.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.CloudIot.html) ... * projects - * [*locations registries bind device to gateway*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryBindDeviceToGatewayCall.html), [*locations registries create*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryCreateCall.html), [*locations registries delete*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeleteCall.html), [*locations registries devices config versions list*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceConfigVersionListCall.html), [*locations registries devices create*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceCreateCall.html), [*locations registries devices delete*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceDeleteCall.html), [*locations registries devices get*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceGetCall.html), [*locations registries devices list*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceListCall.html), [*locations registries devices modify cloud to device config*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceModifyCloudToDeviceConfigCall.html), [*locations registries devices patch*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryDevicePatchCall.html), [*locations registries devices send command to device*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceSendCommandToDeviceCall.html), [*locations registries devices states list*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceStateListCall.html), [*locations registries get*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryGetCall.html), [*locations registries get iam policy*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryGetIamPolicyCall.html), [*locations registries groups devices list*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryGroupDeviceListCall.html), [*locations registries groups get iam policy*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryGroupGetIamPolicyCall.html), [*locations registries groups set iam policy*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryGroupSetIamPolicyCall.html), [*locations registries groups test iam permissions*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryGroupTestIamPermissionCall.html), [*locations registries list*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryListCall.html), [*locations registries patch*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryPatchCall.html), [*locations registries set iam policy*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistrySetIamPolicyCall.html), [*locations registries test iam permissions*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryTestIamPermissionCall.html) and [*locations registries unbind device from gateway*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.ProjectLocationRegistryUnbindDeviceFromGatewayCall.html) + * [*locations registries bind device to gateway*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryBindDeviceToGatewayCall.html), [*locations registries create*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryCreateCall.html), [*locations registries delete*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeleteCall.html), [*locations registries devices config versions list*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceConfigVersionListCall.html), [*locations registries devices create*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceCreateCall.html), [*locations registries devices delete*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceDeleteCall.html), [*locations registries devices get*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceGetCall.html), [*locations registries devices list*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceListCall.html), [*locations registries devices modify cloud to device config*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceModifyCloudToDeviceConfigCall.html), [*locations registries devices patch*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryDevicePatchCall.html), [*locations registries devices send command to device*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceSendCommandToDeviceCall.html), [*locations registries devices states list*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryDeviceStateListCall.html), [*locations registries get*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryGetCall.html), [*locations registries get iam policy*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryGetIamPolicyCall.html), [*locations registries groups devices list*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryGroupDeviceListCall.html), [*locations registries groups get iam policy*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryGroupGetIamPolicyCall.html), [*locations registries groups set iam policy*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryGroupSetIamPolicyCall.html), [*locations registries groups test iam permissions*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryGroupTestIamPermissionCall.html), [*locations registries list*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryListCall.html), [*locations registries patch*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryPatchCall.html), [*locations registries set iam policy*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistrySetIamPolicyCall.html), [*locations registries test iam permissions*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryTestIamPermissionCall.html) and [*locations registries unbind device from gateway*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.ProjectLocationRegistryUnbindDeviceFromGatewayCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/struct.CloudIot.html)** +* **[Hub](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/struct.CloudIot.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -133,17 +133,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -153,29 +153,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudiot1/1.0.11+20190618/google_cloudiot1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudiot1/1.0.12+20190618/google_cloudiot1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudiot1/src/lib.rs b/gen/cloudiot1/src/lib.rs index 51e20f0c6e..9d4d663ac0 100644 --- a/gen/cloudiot1/src/lib.rs +++ b/gen/cloudiot1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Iot* crate version *1.0.11+20190618*, where *20190618* is the exact revision of the *cloudiot:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Iot* crate version *1.0.12+20190618*, where *20190618* is the exact revision of the *cloudiot:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Iot* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/iot). @@ -336,7 +336,7 @@ impl<'a, C, A> CloudIot CloudIot { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudiot.googleapis.com/".to_string(), _root_url: "https://cloudiot.googleapis.com/".to_string(), } @@ -347,7 +347,7 @@ impl<'a, C, A> CloudIot } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudkms1-cli/Cargo.toml b/gen/cloudkms1-cli/Cargo.toml index cbd13adb86..9a8c6af848 100644 --- a/gen/cloudkms1-cli/Cargo.toml +++ b/gen/cloudkms1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudkms1-cli" -version = "1.0.11+20190626" +version = "1.0.12+20190626" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud KMS (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudkms1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudkms1] path = "../cloudkms1" -version = "1.0.11+20190626" +version = "1.0.12+20190626" diff --git a/gen/cloudkms1-cli/LICENSE.md b/gen/cloudkms1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudkms1-cli/LICENSE.md +++ b/gen/cloudkms1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudkms1-cli/README.md b/gen/cloudkms1-cli/README.md index 0125c9a491..e7e5b80023 100644 --- a/gen/cloudkms1-cli/README.md +++ b/gen/cloudkms1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud KMS* API at revision *20190626*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud KMS* API at revision *20190626*. The CLI is at version *1.0.12*. ```bash cloudkms1 [options] diff --git a/gen/cloudkms1-cli/mkdocs.yml b/gen/cloudkms1-cli/mkdocs.yml index 14c9ceae62..7446bcdeed 100644 --- a/gen/cloudkms1-cli/mkdocs.yml +++ b/gen/cloudkms1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud KMS v1.0.11+20190626 +site_name: Cloud KMS v1.0.12+20190626 site_url: http://byron.github.io/google-apis-rs/google-cloudkms1-cli site_description: A complete library to interact with Cloud KMS (protocol v1) @@ -46,5 +46,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudkms1-cli/src/cmn.rs b/gen/cloudkms1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudkms1-cli/src/cmn.rs +++ b/gen/cloudkms1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudkms1-cli/src/main.rs b/gen/cloudkms1-cli/src/main.rs index 4a27f58d94..15bbe35624 100644 --- a/gen/cloudkms1-cli/src/main.rs +++ b/gen/cloudkms1-cli/src/main.rs @@ -3841,7 +3841,7 @@ fn main() { let mut app = App::new("cloudkms1") .author("Sebastian Thiel ") - .version("1.0.11+20190626") + .version("1.0.12+20190626") .about("Manages keys and performs cryptographic operations in a central cloud service, for direct use by other cloud resources and applications. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudkms1_cli") diff --git a/gen/cloudkms1/Cargo.toml b/gen/cloudkms1/Cargo.toml index d2c405c336..b21e16adc4 100644 --- a/gen/cloudkms1/Cargo.toml +++ b/gen/cloudkms1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudkms1" -version = "1.0.11+20190626" +version = "1.0.12+20190626" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud KMS (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudkms1" homepage = "https://cloud.google.com/kms/" -documentation = "https://docs.rs/google-cloudkms1/1.0.11+20190626" +documentation = "https://docs.rs/google-cloudkms1/1.0.12+20190626" license = "MIT" keywords = ["cloudkms", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudkms1/LICENSE.md b/gen/cloudkms1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudkms1/LICENSE.md +++ b/gen/cloudkms1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudkms1/README.md b/gen/cloudkms1/README.md index cae2d89657..68711efc7c 100644 --- a/gen/cloudkms1/README.md +++ b/gen/cloudkms1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-cloudkms1` library allows access to all features of the *Google Cloud KMS* service. -This documentation was generated from *Cloud KMS* crate version *1.0.11+20190626*, where *20190626* is the exact revision of the *cloudkms:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud KMS* crate version *1.0.12+20190626*, where *20190626* is the exact revision of the *cloudkms:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud KMS* *v1* API can be found at the [official documentation site](https://cloud.google.com/kms/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.CloudKMS.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.CloudKMS.html) ... * projects - * [*locations get*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationGetCall.html), [*locations key rings create*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCreateCall.html), [*locations key rings crypto keys create*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCreateCall.html), [*locations key rings crypto keys crypto key versions asymmetric decrypt*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionAsymmetricDecryptCall.html), [*locations key rings crypto keys crypto key versions asymmetric sign*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionAsymmetricSignCall.html), [*locations key rings crypto keys crypto key versions create*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionCreateCall.html), [*locations key rings crypto keys crypto key versions destroy*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionDestroyCall.html), [*locations key rings crypto keys crypto key versions get*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionGetCall.html), [*locations key rings crypto keys crypto key versions get public key*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionGetPublicKeyCall.html), [*locations key rings crypto keys crypto key versions import*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionImportCall.html), [*locations key rings crypto keys crypto key versions list*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionListCall.html), [*locations key rings crypto keys crypto key versions patch*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionPatchCall.html), [*locations key rings crypto keys crypto key versions restore*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionRestoreCall.html), [*locations key rings crypto keys decrypt*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyDecryptCall.html), [*locations key rings crypto keys encrypt*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyEncryptCall.html), [*locations key rings crypto keys get*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyGetCall.html), [*locations key rings crypto keys get iam policy*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyGetIamPolicyCall.html), [*locations key rings crypto keys list*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyListCall.html), [*locations key rings crypto keys patch*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyPatchCall.html), [*locations key rings crypto keys set iam policy*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeySetIamPolicyCall.html), [*locations key rings crypto keys test iam permissions*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyTestIamPermissionCall.html), [*locations key rings crypto keys update primary version*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyUpdatePrimaryVersionCall.html), [*locations key rings get*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingGetCall.html), [*locations key rings get iam policy*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingGetIamPolicyCall.html), [*locations key rings import jobs create*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingImportJobCreateCall.html), [*locations key rings import jobs get*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingImportJobGetCall.html), [*locations key rings import jobs get iam policy*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingImportJobGetIamPolicyCall.html), [*locations key rings import jobs list*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingImportJobListCall.html), [*locations key rings import jobs set iam policy*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingImportJobSetIamPolicyCall.html), [*locations key rings import jobs test iam permissions*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingImportJobTestIamPermissionCall.html), [*locations key rings list*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingListCall.html), [*locations key rings set iam policy*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingSetIamPolicyCall.html), [*locations key rings test iam permissions*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationKeyRingTestIamPermissionCall.html) and [*locations list*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.ProjectLocationListCall.html) + * [*locations get*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationGetCall.html), [*locations key rings create*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCreateCall.html), [*locations key rings crypto keys create*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCreateCall.html), [*locations key rings crypto keys crypto key versions asymmetric decrypt*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionAsymmetricDecryptCall.html), [*locations key rings crypto keys crypto key versions asymmetric sign*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionAsymmetricSignCall.html), [*locations key rings crypto keys crypto key versions create*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionCreateCall.html), [*locations key rings crypto keys crypto key versions destroy*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionDestroyCall.html), [*locations key rings crypto keys crypto key versions get*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionGetCall.html), [*locations key rings crypto keys crypto key versions get public key*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionGetPublicKeyCall.html), [*locations key rings crypto keys crypto key versions import*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionImportCall.html), [*locations key rings crypto keys crypto key versions list*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionListCall.html), [*locations key rings crypto keys crypto key versions patch*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionPatchCall.html), [*locations key rings crypto keys crypto key versions restore*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionRestoreCall.html), [*locations key rings crypto keys decrypt*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyDecryptCall.html), [*locations key rings crypto keys encrypt*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyEncryptCall.html), [*locations key rings crypto keys get*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyGetCall.html), [*locations key rings crypto keys get iam policy*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyGetIamPolicyCall.html), [*locations key rings crypto keys list*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyListCall.html), [*locations key rings crypto keys patch*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyPatchCall.html), [*locations key rings crypto keys set iam policy*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeySetIamPolicyCall.html), [*locations key rings crypto keys test iam permissions*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyTestIamPermissionCall.html), [*locations key rings crypto keys update primary version*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingCryptoKeyUpdatePrimaryVersionCall.html), [*locations key rings get*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingGetCall.html), [*locations key rings get iam policy*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingGetIamPolicyCall.html), [*locations key rings import jobs create*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingImportJobCreateCall.html), [*locations key rings import jobs get*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingImportJobGetCall.html), [*locations key rings import jobs get iam policy*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingImportJobGetIamPolicyCall.html), [*locations key rings import jobs list*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingImportJobListCall.html), [*locations key rings import jobs set iam policy*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingImportJobSetIamPolicyCall.html), [*locations key rings import jobs test iam permissions*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingImportJobTestIamPermissionCall.html), [*locations key rings list*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingListCall.html), [*locations key rings set iam policy*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingSetIamPolicyCall.html), [*locations key rings test iam permissions*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationKeyRingTestIamPermissionCall.html) and [*locations list*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.ProjectLocationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/struct.CloudKMS.html)** +* **[Hub](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/struct.CloudKMS.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudkms1/1.0.11+20190626/google_cloudkms1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudkms1/1.0.12+20190626/google_cloudkms1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudkms1/src/lib.rs b/gen/cloudkms1/src/lib.rs index 00f1b31a81..e202aae878 100644 --- a/gen/cloudkms1/src/lib.rs +++ b/gen/cloudkms1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud KMS* crate version *1.0.11+20190626*, where *20190626* is the exact revision of the *cloudkms:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud KMS* crate version *1.0.12+20190626*, where *20190626* is the exact revision of the *cloudkms:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud KMS* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/kms/). @@ -340,7 +340,7 @@ impl<'a, C, A> CloudKMS CloudKMS { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudkms.googleapis.com/".to_string(), _root_url: "https://cloudkms.googleapis.com/".to_string(), } @@ -351,7 +351,7 @@ impl<'a, C, A> CloudKMS } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudkms1_beta1-cli/Cargo.toml b/gen/cloudkms1_beta1-cli/Cargo.toml index 23831f1387..33655a9359 100644 --- a/gen/cloudkms1_beta1-cli/Cargo.toml +++ b/gen/cloudkms1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudkms1_beta1-cli" -version = "1.0.11+20170515" +version = "1.0.12+20170515" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud KMS (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudkms1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudkms1_beta1] path = "../cloudkms1_beta1" -version = "1.0.11+20170515" +version = "1.0.12+20170515" diff --git a/gen/cloudkms1_beta1-cli/LICENSE.md b/gen/cloudkms1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudkms1_beta1-cli/LICENSE.md +++ b/gen/cloudkms1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudkms1_beta1-cli/README.md b/gen/cloudkms1_beta1-cli/README.md index 65191e6ad3..f96552e79e 100644 --- a/gen/cloudkms1_beta1-cli/README.md +++ b/gen/cloudkms1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud KMS* API at revision *20170515*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud KMS* API at revision *20170515*. The CLI is at version *1.0.12*. ```bash cloudkms1-beta1 [options] diff --git a/gen/cloudkms1_beta1-cli/mkdocs.yml b/gen/cloudkms1_beta1-cli/mkdocs.yml index df54faf984..488a206dba 100644 --- a/gen/cloudkms1_beta1-cli/mkdocs.yml +++ b/gen/cloudkms1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud KMS v1.0.11+20170515 +site_name: Cloud KMS v1.0.12+20170515 site_url: http://byron.github.io/google-apis-rs/google-cloudkms1_beta1-cli site_description: A complete library to interact with Cloud KMS (protocol v1beta1) @@ -36,5 +36,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudkms1_beta1-cli/src/cmn.rs b/gen/cloudkms1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudkms1_beta1-cli/src/cmn.rs +++ b/gen/cloudkms1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudkms1_beta1-cli/src/main.rs b/gen/cloudkms1_beta1-cli/src/main.rs index 924bdf4d4a..26cca4059b 100644 --- a/gen/cloudkms1_beta1-cli/src/main.rs +++ b/gen/cloudkms1_beta1-cli/src/main.rs @@ -2693,7 +2693,7 @@ fn main() { let mut app = App::new("cloudkms1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20170515") + .version("1.0.12+20170515") .about("Manages encryption for your cloud services the same way you do on-premise. You can generate, use, rotate, and destroy AES256 encryption keys.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudkms1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudkms1_beta1/Cargo.toml b/gen/cloudkms1_beta1/Cargo.toml index ab5af803d2..4b05e2f7c6 100644 --- a/gen/cloudkms1_beta1/Cargo.toml +++ b/gen/cloudkms1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudkms1_beta1" -version = "1.0.11+20170515" +version = "1.0.12+20170515" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud KMS (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudkms1_beta1" homepage = "https://cloud.google.com/kms/" -documentation = "https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515" +documentation = "https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515" license = "MIT" keywords = ["cloudkms", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudkms1_beta1/LICENSE.md b/gen/cloudkms1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudkms1_beta1/LICENSE.md +++ b/gen/cloudkms1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudkms1_beta1/README.md b/gen/cloudkms1_beta1/README.md index 8087745bad..010af7df86 100644 --- a/gen/cloudkms1_beta1/README.md +++ b/gen/cloudkms1_beta1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-cloudkms1_beta1` library allows access to all features of the *Google Cloud KMS* service. -This documentation was generated from *Cloud KMS* crate version *1.0.11+20170515*, where *20170515* is the exact revision of the *cloudkms:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud KMS* crate version *1.0.12+20170515*, where *20170515* is the exact revision of the *cloudkms:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud KMS* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/kms/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.CloudKMS.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.CloudKMS.html) ... * projects - * [*locations get*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationGetCall.html), [*locations key rings create*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCreateCall.html), [*locations key rings crypto keys create*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyCreateCall.html), [*locations key rings crypto keys crypto key versions create*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionCreateCall.html), [*locations key rings crypto keys crypto key versions destroy*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionDestroyCall.html), [*locations key rings crypto keys crypto key versions get*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionGetCall.html), [*locations key rings crypto keys crypto key versions list*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionListCall.html), [*locations key rings crypto keys crypto key versions patch*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionPatchCall.html), [*locations key rings crypto keys crypto key versions restore*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionRestoreCall.html), [*locations key rings crypto keys decrypt*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyDecryptCall.html), [*locations key rings crypto keys encrypt*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyEncryptCall.html), [*locations key rings crypto keys get*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyGetCall.html), [*locations key rings crypto keys get iam policy*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyGetIamPolicyCall.html), [*locations key rings crypto keys list*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyListCall.html), [*locations key rings crypto keys patch*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyPatchCall.html), [*locations key rings crypto keys set iam policy*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeySetIamPolicyCall.html), [*locations key rings crypto keys test iam permissions*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyTestIamPermissionCall.html), [*locations key rings crypto keys update primary version*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyUpdatePrimaryVersionCall.html), [*locations key rings get*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingGetCall.html), [*locations key rings get iam policy*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingGetIamPolicyCall.html), [*locations key rings list*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingListCall.html), [*locations key rings set iam policy*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingSetIamPolicyCall.html), [*locations key rings test iam permissions*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingTestIamPermissionCall.html) and [*locations list*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.ProjectLocationListCall.html) + * [*locations get*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationGetCall.html), [*locations key rings create*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCreateCall.html), [*locations key rings crypto keys create*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyCreateCall.html), [*locations key rings crypto keys crypto key versions create*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionCreateCall.html), [*locations key rings crypto keys crypto key versions destroy*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionDestroyCall.html), [*locations key rings crypto keys crypto key versions get*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionGetCall.html), [*locations key rings crypto keys crypto key versions list*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionListCall.html), [*locations key rings crypto keys crypto key versions patch*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionPatchCall.html), [*locations key rings crypto keys crypto key versions restore*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionRestoreCall.html), [*locations key rings crypto keys decrypt*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyDecryptCall.html), [*locations key rings crypto keys encrypt*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyEncryptCall.html), [*locations key rings crypto keys get*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyGetCall.html), [*locations key rings crypto keys get iam policy*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyGetIamPolicyCall.html), [*locations key rings crypto keys list*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyListCall.html), [*locations key rings crypto keys patch*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyPatchCall.html), [*locations key rings crypto keys set iam policy*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeySetIamPolicyCall.html), [*locations key rings crypto keys test iam permissions*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyTestIamPermissionCall.html), [*locations key rings crypto keys update primary version*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingCryptoKeyUpdatePrimaryVersionCall.html), [*locations key rings get*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingGetCall.html), [*locations key rings get iam policy*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingGetIamPolicyCall.html), [*locations key rings list*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingListCall.html), [*locations key rings set iam policy*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingSetIamPolicyCall.html), [*locations key rings test iam permissions*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationKeyRingTestIamPermissionCall.html) and [*locations list*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.ProjectLocationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/struct.CloudKMS.html)** +* **[Hub](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/struct.CloudKMS.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -135,17 +135,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -155,29 +155,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudkms1_beta1/1.0.11+20170515/google_cloudkms1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudkms1_beta1/1.0.12+20170515/google_cloudkms1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudkms1_beta1/src/lib.rs b/gen/cloudkms1_beta1/src/lib.rs index 461d9d5ea7..515c845418 100644 --- a/gen/cloudkms1_beta1/src/lib.rs +++ b/gen/cloudkms1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud KMS* crate version *1.0.11+20170515*, where *20170515* is the exact revision of the *cloudkms:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud KMS* crate version *1.0.12+20170515*, where *20170515* is the exact revision of the *cloudkms:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud KMS* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/kms/). @@ -335,7 +335,7 @@ impl<'a, C, A> CloudKMS CloudKMS { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudkms.googleapis.com/".to_string(), _root_url: "https://cloudkms.googleapis.com/".to_string(), } @@ -346,7 +346,7 @@ impl<'a, C, A> CloudKMS } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudlatencytest2-cli/Cargo.toml b/gen/cloudlatencytest2-cli/Cargo.toml index b8bea9008e..bd2f63b9ea 100644 --- a/gen/cloudlatencytest2-cli/Cargo.toml +++ b/gen/cloudlatencytest2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudlatencytest2-cli" -version = "1.0.11+20160309" +version = "1.0.12+20160309" authors = ["Sebastian Thiel "] description = "A complete library to interact with cloudlatencytest (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudlatencytest2-cli" @@ -41,4 +41,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudlatencytest2] path = "../cloudlatencytest2" -version = "1.0.11+20160309" +version = "1.0.12+20160309" diff --git a/gen/cloudlatencytest2-cli/LICENSE.md b/gen/cloudlatencytest2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudlatencytest2-cli/LICENSE.md +++ b/gen/cloudlatencytest2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudlatencytest2-cli/README.md b/gen/cloudlatencytest2-cli/README.md index 7159ec6757..191df84809 100644 --- a/gen/cloudlatencytest2-cli/README.md +++ b/gen/cloudlatencytest2-cli/README.md @@ -22,7 +22,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *cloudlatencytest* API at revision *20160309*. The CLI is at version *1.0.11*. +This documentation was generated from the *cloudlatencytest* API at revision *20160309*. The CLI is at version *1.0.12*. ```bash cloudlatencytest2 [options] diff --git a/gen/cloudlatencytest2-cli/mkdocs.yml b/gen/cloudlatencytest2-cli/mkdocs.yml index c38ef7e4da..a7d006b9bc 100644 --- a/gen/cloudlatencytest2-cli/mkdocs.yml +++ b/gen/cloudlatencytest2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: cloudlatencytest v1.0.11+20160309 +site_name: cloudlatencytest v1.0.12+20160309 site_url: http://byron.github.io/google-apis-rs/google-cloudlatencytest2-cli site_description: A complete library to interact with cloudlatencytest (protocol v2) @@ -14,5 +14,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudlatencytest2-cli/src/cmn.rs b/gen/cloudlatencytest2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudlatencytest2-cli/src/cmn.rs +++ b/gen/cloudlatencytest2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudlatencytest2-cli/src/main.rs b/gen/cloudlatencytest2-cli/src/main.rs index 41980fe126..5e8c651855 100644 --- a/gen/cloudlatencytest2-cli/src/main.rs +++ b/gen/cloudlatencytest2-cli/src/main.rs @@ -367,7 +367,7 @@ fn main() { let mut app = App::new("cloudlatencytest2") .author("Sebastian Thiel ") - .version("1.0.11+20160309") + .version("1.0.12+20160309") .about("Reports latency data.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudlatencytest2_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudlatencytest2/Cargo.toml b/gen/cloudlatencytest2/Cargo.toml index 7706f67106..4adea393f7 100644 --- a/gen/cloudlatencytest2/Cargo.toml +++ b/gen/cloudlatencytest2/Cargo.toml @@ -4,11 +4,11 @@ [package] name = "google-cloudlatencytest2" -version = "1.0.11+20160309" +version = "1.0.12+20160309" authors = ["Sebastian Thiel "] description = "A complete library to interact with cloudlatencytest (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudlatencytest2" -documentation = "https://docs.rs/google-cloudlatencytest2/1.0.11+20160309" +documentation = "https://docs.rs/google-cloudlatencytest2/1.0.12+20160309" license = "MIT" keywords = ["cloudlatencytest", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudlatencytest2/LICENSE.md b/gen/cloudlatencytest2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudlatencytest2/LICENSE.md +++ b/gen/cloudlatencytest2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudlatencytest2/README.md b/gen/cloudlatencytest2/README.md index 89100dd1b6..ca0f8327f1 100644 --- a/gen/cloudlatencytest2/README.md +++ b/gen/cloudlatencytest2/README.md @@ -5,13 +5,13 @@ DO NOT EDIT ! --> The `google-cloudlatencytest2` library allows access to all features of the *Google cloudlatencytest* service. -This documentation was generated from *cloudlatencytest* crate version *1.0.11+20160309*, where *20160309* is the exact revision of the *cloudlatencytest:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *cloudlatencytest* crate version *1.0.12+20160309*, where *20160309* is the exact revision of the *cloudlatencytest:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/struct.Cloudlatencytest.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/struct.Cloudlatencytest.html) ... * statscollection - * [*updateaggregatedstats*](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/struct.StatscollectionUpdateaggregatedstatCall.html) and [*updatestats*](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/struct.StatscollectionUpdatestatCall.html) + * [*updateaggregatedstats*](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/struct.StatscollectionUpdateaggregatedstatCall.html) and [*updatestats*](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/struct.StatscollectionUpdatestatCall.html) @@ -20,17 +20,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/struct.Cloudlatencytest.html)** +* **[Hub](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/struct.Cloudlatencytest.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -127,17 +127,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -147,29 +147,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudlatencytest2/1.0.11+20160309/google_cloudlatencytest2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudlatencytest2/1.0.12+20160309/google_cloudlatencytest2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudlatencytest2/src/lib.rs b/gen/cloudlatencytest2/src/lib.rs index 65adb9ef14..437dc9e311 100644 --- a/gen/cloudlatencytest2/src/lib.rs +++ b/gen/cloudlatencytest2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *cloudlatencytest* crate version *1.0.11+20160309*, where *20160309* is the exact revision of the *cloudlatencytest:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *cloudlatencytest* crate version *1.0.12+20160309*, where *20160309* is the exact revision of the *cloudlatencytest:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/master/gen/cloudlatencytest2). //! # Features //! @@ -326,7 +326,7 @@ impl<'a, C, A> Cloudlatencytest Cloudlatencytest { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudlatencytest-pa.googleapis.com/v2/statscollection/".to_string(), _root_url: "https://cloudlatencytest-pa.googleapis.com/".to_string(), } @@ -337,7 +337,7 @@ impl<'a, C, A> Cloudlatencytest } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudmonitoring2_beta2-cli/Cargo.toml b/gen/cloudmonitoring2_beta2-cli/Cargo.toml index 4bd245d3b7..45373145a8 100644 --- a/gen/cloudmonitoring2_beta2-cli/Cargo.toml +++ b/gen/cloudmonitoring2_beta2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudmonitoring2_beta2-cli" -version = "1.0.11+20170501" +version = "1.0.12+20170501" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Monitoring (protocol v2beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudmonitoring2_beta2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudmonitoring2_beta2] path = "../cloudmonitoring2_beta2" -version = "1.0.11+20170501" +version = "1.0.12+20170501" diff --git a/gen/cloudmonitoring2_beta2-cli/LICENSE.md b/gen/cloudmonitoring2_beta2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudmonitoring2_beta2-cli/LICENSE.md +++ b/gen/cloudmonitoring2_beta2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudmonitoring2_beta2-cli/README.md b/gen/cloudmonitoring2_beta2-cli/README.md index d25cef46eb..0509375570 100644 --- a/gen/cloudmonitoring2_beta2-cli/README.md +++ b/gen/cloudmonitoring2_beta2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Monitoring* API at revision *20170501*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Monitoring* API at revision *20170501*. The CLI is at version *1.0.12*. ```bash cloudmonitoring2-beta2 [options] diff --git a/gen/cloudmonitoring2_beta2-cli/mkdocs.yml b/gen/cloudmonitoring2_beta2-cli/mkdocs.yml index 770fe273ee..a89e953bd2 100644 --- a/gen/cloudmonitoring2_beta2-cli/mkdocs.yml +++ b/gen/cloudmonitoring2_beta2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Monitoring v1.0.11+20170501 +site_name: Cloud Monitoring v1.0.12+20170501 site_url: http://byron.github.io/google-apis-rs/google-cloudmonitoring2_beta2-cli site_description: A complete library to interact with Cloud Monitoring (protocol v2beta2) @@ -18,5 +18,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudmonitoring2_beta2-cli/src/cmn.rs b/gen/cloudmonitoring2_beta2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudmonitoring2_beta2-cli/src/cmn.rs +++ b/gen/cloudmonitoring2_beta2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudmonitoring2_beta2-cli/src/main.rs b/gen/cloudmonitoring2_beta2-cli/src/main.rs index c15ce3bdea..cee6e53864 100644 --- a/gen/cloudmonitoring2_beta2-cli/src/main.rs +++ b/gen/cloudmonitoring2_beta2-cli/src/main.rs @@ -915,7 +915,7 @@ fn main() { let mut app = App::new("cloudmonitoring2-beta2") .author("Sebastian Thiel ") - .version("1.0.11+20170501") + .version("1.0.12+20170501") .about("Accesses Google Cloud Monitoring data.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudmonitoring2_beta2_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudmonitoring2_beta2/Cargo.toml b/gen/cloudmonitoring2_beta2/Cargo.toml index f0ad8fe86a..3043258104 100644 --- a/gen/cloudmonitoring2_beta2/Cargo.toml +++ b/gen/cloudmonitoring2_beta2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudmonitoring2_beta2" -version = "1.0.11+20170501" +version = "1.0.12+20170501" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Monitoring (protocol v2beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudmonitoring2_beta2" homepage = "https://cloud.google.com/monitoring/v2beta2/" -documentation = "https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501" +documentation = "https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501" license = "MIT" keywords = ["cloudmonitoring", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudmonitoring2_beta2/LICENSE.md b/gen/cloudmonitoring2_beta2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudmonitoring2_beta2/LICENSE.md +++ b/gen/cloudmonitoring2_beta2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudmonitoring2_beta2/README.md b/gen/cloudmonitoring2_beta2/README.md index 8d83836080..cc5f011101 100644 --- a/gen/cloudmonitoring2_beta2/README.md +++ b/gen/cloudmonitoring2_beta2/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-cloudmonitoring2_beta2` library allows access to all features of the *Google Cloud Monitoring* service. -This documentation was generated from *Cloud Monitoring* crate version *1.0.11+20170501*, where *20170501* is the exact revision of the *cloudmonitoring:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Monitoring* crate version *1.0.12+20170501*, where *20170501* is the exact revision of the *cloudmonitoring:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Monitoring* *v2_beta2* API can be found at the [official documentation site](https://cloud.google.com/monitoring/v2beta2/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/struct.CloudMonitoring.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/struct.CloudMonitoring.html) ... -* [metric descriptors](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/struct.MetricDescriptor.html) - * [*create*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/struct.MetricDescriptorCreateCall.html), [*delete*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/struct.MetricDescriptorDeleteCall.html) and [*list*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/struct.MetricDescriptorListCall.html) +* [metric descriptors](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/struct.MetricDescriptor.html) + * [*create*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/struct.MetricDescriptorCreateCall.html), [*delete*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/struct.MetricDescriptorDeleteCall.html) and [*list*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/struct.MetricDescriptorListCall.html) * timeseries - * [*list*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/struct.TimeseryListCall.html) and [*write*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/struct.TimeseryWriteCall.html) -* [timeseries descriptors](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/struct.TimeseriesDescriptor.html) - * [*list*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/struct.TimeseriesDescriptorListCall.html) + * [*list*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/struct.TimeseryListCall.html) and [*write*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/struct.TimeseryWriteCall.html) +* [timeseries descriptors](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/struct.TimeseriesDescriptor.html) + * [*list*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/struct.TimeseriesDescriptorListCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/struct.CloudMonitoring.html)** +* **[Hub](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/struct.CloudMonitoring.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -139,17 +139,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -159,29 +159,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudmonitoring2_beta2/1.0.11+20170501/google_cloudmonitoring2_beta2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudmonitoring2_beta2/1.0.12+20170501/google_cloudmonitoring2_beta2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudmonitoring2_beta2/src/lib.rs b/gen/cloudmonitoring2_beta2/src/lib.rs index 13d2074f05..6e6e782f3f 100644 --- a/gen/cloudmonitoring2_beta2/src/lib.rs +++ b/gen/cloudmonitoring2_beta2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Monitoring* crate version *1.0.11+20170501*, where *20170501* is the exact revision of the *cloudmonitoring:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Monitoring* crate version *1.0.12+20170501*, where *20170501* is the exact revision of the *cloudmonitoring:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Monitoring* *v2_beta2* API can be found at the //! [official documentation site](https://cloud.google.com/monitoring/v2beta2/). @@ -345,7 +345,7 @@ impl<'a, C, A> CloudMonitoring CloudMonitoring { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/cloudmonitoring/v2beta2/projects/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -362,7 +362,7 @@ impl<'a, C, A> CloudMonitoring } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudprivatecatalog1_beta1-cli/Cargo.toml b/gen/cloudprivatecatalog1_beta1-cli/Cargo.toml index be8dc319b5..a7d9e1841e 100644 --- a/gen/cloudprivatecatalog1_beta1-cli/Cargo.toml +++ b/gen/cloudprivatecatalog1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudprivatecatalog1_beta1-cli" -version = "1.0.11+20190622" +version = "1.0.12+20190622" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Private Catalog (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudprivatecatalog1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudprivatecatalog1_beta1] path = "../cloudprivatecatalog1_beta1" -version = "1.0.11+20190622" +version = "1.0.12+20190622" diff --git a/gen/cloudprivatecatalog1_beta1-cli/LICENSE.md b/gen/cloudprivatecatalog1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudprivatecatalog1_beta1-cli/LICENSE.md +++ b/gen/cloudprivatecatalog1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudprivatecatalog1_beta1-cli/README.md b/gen/cloudprivatecatalog1_beta1-cli/README.md index 2c94ad26d4..625693612e 100644 --- a/gen/cloudprivatecatalog1_beta1-cli/README.md +++ b/gen/cloudprivatecatalog1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Private Catalog* API at revision *20190622*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Private Catalog* API at revision *20190622*. The CLI is at version *1.0.12*. ```bash cloudprivatecatalog1-beta1 [options] diff --git a/gen/cloudprivatecatalog1_beta1-cli/mkdocs.yml b/gen/cloudprivatecatalog1_beta1-cli/mkdocs.yml index d060dc00ec..39268a923d 100644 --- a/gen/cloudprivatecatalog1_beta1-cli/mkdocs.yml +++ b/gen/cloudprivatecatalog1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Private Catalog v1.0.11+20190622 +site_name: Cloud Private Catalog v1.0.12+20190622 site_url: http://byron.github.io/google-apis-rs/google-cloudprivatecatalog1_beta1-cli site_description: A complete library to interact with Cloud Private Catalog (protocol v1beta1) @@ -21,5 +21,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudprivatecatalog1_beta1-cli/src/cmn.rs b/gen/cloudprivatecatalog1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudprivatecatalog1_beta1-cli/src/cmn.rs +++ b/gen/cloudprivatecatalog1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudprivatecatalog1_beta1-cli/src/main.rs b/gen/cloudprivatecatalog1_beta1-cli/src/main.rs index 25300a9159..e03678ab9a 100644 --- a/gen/cloudprivatecatalog1_beta1-cli/src/main.rs +++ b/gen/cloudprivatecatalog1_beta1-cli/src/main.rs @@ -983,7 +983,7 @@ fn main() { let mut app = App::new("cloudprivatecatalog1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190622") + .version("1.0.12+20190622") .about("Enable cloud users to discover enterprise catalogs and products in their organizations.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudprivatecatalog1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudprivatecatalog1_beta1/Cargo.toml b/gen/cloudprivatecatalog1_beta1/Cargo.toml index 46c95b7281..10ac848782 100644 --- a/gen/cloudprivatecatalog1_beta1/Cargo.toml +++ b/gen/cloudprivatecatalog1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudprivatecatalog1_beta1" -version = "1.0.11+20190622" +version = "1.0.12+20190622" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Private Catalog (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudprivatecatalog1_beta1" homepage = "https://cloud.google.com/private-catalog/" -documentation = "https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622" +documentation = "https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622" license = "MIT" keywords = ["cloudprivatecatalog", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudprivatecatalog1_beta1/LICENSE.md b/gen/cloudprivatecatalog1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudprivatecatalog1_beta1/LICENSE.md +++ b/gen/cloudprivatecatalog1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudprivatecatalog1_beta1/README.md b/gen/cloudprivatecatalog1_beta1/README.md index 4322ef5055..de44baec39 100644 --- a/gen/cloudprivatecatalog1_beta1/README.md +++ b/gen/cloudprivatecatalog1_beta1/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-cloudprivatecatalog1_beta1` library allows access to all features of the *Google Cloud Private Catalog* service. -This documentation was generated from *Cloud Private Catalog* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *cloudprivatecatalog:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Private Catalog* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *cloudprivatecatalog:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Private Catalog* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/private-catalog/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/struct.CloudPrivateCatalog.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/struct.CloudPrivateCatalog.html) ... * folders - * [*catalogs search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/struct.FolderCatalogSearchCall.html), [*products search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/struct.FolderProductSearchCall.html) and [*versions search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/struct.FolderVersionSearchCall.html) + * [*catalogs search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/struct.FolderCatalogSearchCall.html), [*products search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/struct.FolderProductSearchCall.html) and [*versions search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/struct.FolderVersionSearchCall.html) * organizations - * [*catalogs search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/struct.OrganizationCatalogSearchCall.html), [*products search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/struct.OrganizationProductSearchCall.html) and [*versions search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/struct.OrganizationVersionSearchCall.html) + * [*catalogs search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/struct.OrganizationCatalogSearchCall.html), [*products search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/struct.OrganizationProductSearchCall.html) and [*versions search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/struct.OrganizationVersionSearchCall.html) * projects - * [*catalogs search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/struct.ProjectCatalogSearchCall.html), [*products search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/struct.ProjectProductSearchCall.html) and [*versions search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/struct.ProjectVersionSearchCall.html) + * [*catalogs search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/struct.ProjectCatalogSearchCall.html), [*products search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/struct.ProjectProductSearchCall.html) and [*versions search*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/struct.ProjectVersionSearchCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/struct.CloudPrivateCatalog.html)** +* **[Hub](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/struct.CloudPrivateCatalog.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -133,17 +133,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -153,29 +153,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.11+20190622/google_cloudprivatecatalog1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudprivatecatalog1_beta1/1.0.12+20190622/google_cloudprivatecatalog1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudprivatecatalog1_beta1/src/lib.rs b/gen/cloudprivatecatalog1_beta1/src/lib.rs index 88e7130b53..af0c7df530 100644 --- a/gen/cloudprivatecatalog1_beta1/src/lib.rs +++ b/gen/cloudprivatecatalog1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Private Catalog* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *cloudprivatecatalog:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Private Catalog* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *cloudprivatecatalog:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Private Catalog* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/private-catalog/). @@ -329,7 +329,7 @@ impl<'a, C, A> CloudPrivateCatalog CloudPrivateCatalog { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudprivatecatalog.googleapis.com/".to_string(), _root_url: "https://cloudprivatecatalog.googleapis.com/".to_string(), } @@ -346,7 +346,7 @@ impl<'a, C, A> CloudPrivateCatalog } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudprivatecatalogproducer1_beta1-cli/Cargo.toml b/gen/cloudprivatecatalogproducer1_beta1-cli/Cargo.toml index d5b4d423e4..8b33b773ed 100644 --- a/gen/cloudprivatecatalogproducer1_beta1-cli/Cargo.toml +++ b/gen/cloudprivatecatalogproducer1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudprivatecatalogproducer1_beta1-cli" -version = "1.0.11+20190622" +version = "1.0.12+20190622" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud PrivateCatalog Producer (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudprivatecatalogproducer1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudprivatecatalogproducer1_beta1] path = "../cloudprivatecatalogproducer1_beta1" -version = "1.0.11+20190622" +version = "1.0.12+20190622" diff --git a/gen/cloudprivatecatalogproducer1_beta1-cli/LICENSE.md b/gen/cloudprivatecatalogproducer1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudprivatecatalogproducer1_beta1-cli/LICENSE.md +++ b/gen/cloudprivatecatalogproducer1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudprivatecatalogproducer1_beta1-cli/README.md b/gen/cloudprivatecatalogproducer1_beta1-cli/README.md index ef04e558c5..4bd7aa2fe0 100644 --- a/gen/cloudprivatecatalogproducer1_beta1-cli/README.md +++ b/gen/cloudprivatecatalogproducer1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud PrivateCatalog Producer* API at revision *20190622*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud PrivateCatalog Producer* API at revision *20190622*. The CLI is at version *1.0.12*. ```bash cloudprivatecatalogproducer1-beta1 [options] diff --git a/gen/cloudprivatecatalogproducer1_beta1-cli/mkdocs.yml b/gen/cloudprivatecatalogproducer1_beta1-cli/mkdocs.yml index ba4fbe6e1a..6966d625be 100644 --- a/gen/cloudprivatecatalogproducer1_beta1-cli/mkdocs.yml +++ b/gen/cloudprivatecatalogproducer1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud PrivateCatalog Producer v1.0.11+20190622 +site_name: Cloud PrivateCatalog Producer v1.0.12+20190622 site_url: http://byron.github.io/google-apis-rs/google-cloudprivatecatalogproducer1_beta1-cli site_description: A complete library to interact with Cloud PrivateCatalog Producer (protocol v1beta1) @@ -41,5 +41,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudprivatecatalogproducer1_beta1-cli/src/cmn.rs b/gen/cloudprivatecatalogproducer1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudprivatecatalogproducer1_beta1-cli/src/cmn.rs +++ b/gen/cloudprivatecatalogproducer1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudprivatecatalogproducer1_beta1-cli/src/main.rs b/gen/cloudprivatecatalogproducer1_beta1-cli/src/main.rs index d124a67af1..8d7460bedc 100644 --- a/gen/cloudprivatecatalogproducer1_beta1-cli/src/main.rs +++ b/gen/cloudprivatecatalogproducer1_beta1-cli/src/main.rs @@ -3026,7 +3026,7 @@ fn main() { let mut app = App::new("cloudprivatecatalogproducer1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190622") + .version("1.0.12+20190622") .about("Enables cloud users to manage and share enterprise catalogs intheir organizations.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudprivatecatalogproducer1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudprivatecatalogproducer1_beta1/Cargo.toml b/gen/cloudprivatecatalogproducer1_beta1/Cargo.toml index 5a2584034c..d295645b6e 100644 --- a/gen/cloudprivatecatalogproducer1_beta1/Cargo.toml +++ b/gen/cloudprivatecatalogproducer1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudprivatecatalogproducer1_beta1" -version = "1.0.11+20190622" +version = "1.0.12+20190622" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud PrivateCatalog Producer (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudprivatecatalogproducer1_beta1" homepage = "https://cloud.google.com/private-catalog/" -documentation = "https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622" +documentation = "https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622" license = "MIT" keywords = ["cloudprivatecatalogp", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudprivatecatalogproducer1_beta1/LICENSE.md b/gen/cloudprivatecatalogproducer1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudprivatecatalogproducer1_beta1/LICENSE.md +++ b/gen/cloudprivatecatalogproducer1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudprivatecatalogproducer1_beta1/README.md b/gen/cloudprivatecatalogproducer1_beta1/README.md index e3469ad35c..e7055ff4b8 100644 --- a/gen/cloudprivatecatalogproducer1_beta1/README.md +++ b/gen/cloudprivatecatalogproducer1_beta1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-cloudprivatecatalogproducer1_beta1` library allows access to all features of the *Google Cloud PrivateCatalog Producer* service. -This documentation was generated from *Cloud PrivateCatalog Producer* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *cloudprivatecatalogproducer:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud PrivateCatalog Producer* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *cloudprivatecatalogproducer:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud PrivateCatalog Producer* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/private-catalog/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CloudPrivateCatalogProducer.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CloudPrivateCatalogProducer.html) ... * catalogs - * [*associations create*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogAssociationCreateCall.html), [*associations delete*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogAssociationDeleteCall.html), [*associations get*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogAssociationGetCall.html), [*associations list*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogAssociationListCall.html), [*create*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogCreateCall.html), [*delete*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogDeleteCall.html), [*get*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogGetCall.html), [*get iam policy*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogGetIamPolicyCall.html), [*list*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogListCall.html), [*patch*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogPatchCall.html), [*products copy*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductCopyCall.html), [*products create*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductCreateCall.html), [*products delete*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductDeleteCall.html), [*products get*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductGetCall.html), [*products icons upload*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductIconUploadCall.html), [*products list*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductListCall.html), [*products patch*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductPatchCall.html), [*products versions create*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductVersionCreateCall.html), [*products versions delete*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductVersionDeleteCall.html), [*products versions get*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductVersionGetCall.html), [*products versions list*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductVersionListCall.html), [*products versions patch*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductVersionPatchCall.html), [*set iam policy*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogTestIamPermissionCall.html) and [*undelete*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogUndeleteCall.html) + * [*associations create*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogAssociationCreateCall.html), [*associations delete*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogAssociationDeleteCall.html), [*associations get*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogAssociationGetCall.html), [*associations list*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogAssociationListCall.html), [*create*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogCreateCall.html), [*delete*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogDeleteCall.html), [*get*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogGetCall.html), [*get iam policy*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogGetIamPolicyCall.html), [*list*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogListCall.html), [*patch*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogPatchCall.html), [*products copy*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductCopyCall.html), [*products create*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductCreateCall.html), [*products delete*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductDeleteCall.html), [*products get*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductGetCall.html), [*products icons upload*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductIconUploadCall.html), [*products list*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductListCall.html), [*products patch*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductPatchCall.html), [*products versions create*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductVersionCreateCall.html), [*products versions delete*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductVersionDeleteCall.html), [*products versions get*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductVersionGetCall.html), [*products versions list*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductVersionListCall.html), [*products versions patch*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogProductVersionPatchCall.html), [*set iam policy*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogTestIamPermissionCall.html) and [*undelete*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CatalogUndeleteCall.html) * operations - * [*cancel*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.OperationDeleteCall.html), [*get*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.OperationListCall.html) + * [*cancel*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.OperationDeleteCall.html), [*get*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.OperationListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CloudPrivateCatalogProducer.html)** +* **[Hub](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/struct.CloudPrivateCatalogProducer.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -137,17 +137,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -157,29 +157,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.11+20190622/google_cloudprivatecatalogproducer1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudprivatecatalogproducer1_beta1/1.0.12+20190622/google_cloudprivatecatalogproducer1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudprivatecatalogproducer1_beta1/src/lib.rs b/gen/cloudprivatecatalogproducer1_beta1/src/lib.rs index 64f0e8e585..a628e68a41 100644 --- a/gen/cloudprivatecatalogproducer1_beta1/src/lib.rs +++ b/gen/cloudprivatecatalogproducer1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud PrivateCatalog Producer* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *cloudprivatecatalogproducer:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud PrivateCatalog Producer* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *cloudprivatecatalogproducer:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud PrivateCatalog Producer* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/private-catalog/). @@ -336,7 +336,7 @@ impl<'a, C, A> CloudPrivateCatalogProducer CloudPrivateCatalogProducer { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudprivatecatalogproducer.googleapis.com/".to_string(), _root_url: "https://cloudprivatecatalogproducer.googleapis.com/".to_string(), } @@ -350,7 +350,7 @@ impl<'a, C, A> CloudPrivateCatalogProducer } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudprofiler2-cli/Cargo.toml b/gen/cloudprofiler2-cli/Cargo.toml index 7b4846179d..9887f824cc 100644 --- a/gen/cloudprofiler2-cli/Cargo.toml +++ b/gen/cloudprofiler2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudprofiler2-cli" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Profiler (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudprofiler2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudprofiler2] path = "../cloudprofiler2" -version = "1.0.11+20190629" +version = "1.0.12+20190629" diff --git a/gen/cloudprofiler2-cli/LICENSE.md b/gen/cloudprofiler2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudprofiler2-cli/LICENSE.md +++ b/gen/cloudprofiler2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudprofiler2-cli/README.md b/gen/cloudprofiler2-cli/README.md index 1951d1629c..67a2e53402 100644 --- a/gen/cloudprofiler2-cli/README.md +++ b/gen/cloudprofiler2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Profiler* API at revision *20190629*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Profiler* API at revision *20190629*. The CLI is at version *1.0.12*. ```bash cloudprofiler2 [options] diff --git a/gen/cloudprofiler2-cli/mkdocs.yml b/gen/cloudprofiler2-cli/mkdocs.yml index d578e9eabe..0db4740353 100644 --- a/gen/cloudprofiler2-cli/mkdocs.yml +++ b/gen/cloudprofiler2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Profiler v1.0.11+20190629 +site_name: Cloud Profiler v1.0.12+20190629 site_url: http://byron.github.io/google-apis-rs/google-cloudprofiler2-cli site_description: A complete library to interact with Cloud Profiler (protocol v2) @@ -15,5 +15,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudprofiler2-cli/src/cmn.rs b/gen/cloudprofiler2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudprofiler2-cli/src/cmn.rs +++ b/gen/cloudprofiler2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudprofiler2-cli/src/main.rs b/gen/cloudprofiler2-cli/src/main.rs index c6970eb3a0..3fef9b0962 100644 --- a/gen/cloudprofiler2-cli/src/main.rs +++ b/gen/cloudprofiler2-cli/src/main.rs @@ -537,7 +537,7 @@ fn main() { let mut app = App::new("cloudprofiler2") .author("Sebastian Thiel ") - .version("1.0.11+20190629") + .version("1.0.12+20190629") .about("Manages continuous profiling information.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudprofiler2_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudprofiler2/Cargo.toml b/gen/cloudprofiler2/Cargo.toml index 030b28429b..dacee6e2db 100644 --- a/gen/cloudprofiler2/Cargo.toml +++ b/gen/cloudprofiler2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudprofiler2" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Profiler (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudprofiler2" homepage = "https://cloud.google.com/profiler/" -documentation = "https://docs.rs/google-cloudprofiler2/1.0.11+20190629" +documentation = "https://docs.rs/google-cloudprofiler2/1.0.12+20190629" license = "MIT" keywords = ["cloudprofiler", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudprofiler2/LICENSE.md b/gen/cloudprofiler2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudprofiler2/LICENSE.md +++ b/gen/cloudprofiler2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudprofiler2/README.md b/gen/cloudprofiler2/README.md index 1aa99beaec..ec141427d4 100644 --- a/gen/cloudprofiler2/README.md +++ b/gen/cloudprofiler2/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-cloudprofiler2` library allows access to all features of the *Google Cloud Profiler* service. -This documentation was generated from *Cloud Profiler* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *cloudprofiler:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Profiler* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *cloudprofiler:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Profiler* *v2* API can be found at the [official documentation site](https://cloud.google.com/profiler/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/struct.CloudProfiler.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/struct.CloudProfiler.html) ... * projects - * [*profiles create*](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/struct.ProjectProfileCreateCall.html), [*profiles create offline*](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/struct.ProjectProfileCreateOfflineCall.html) and [*profiles patch*](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/struct.ProjectProfilePatchCall.html) + * [*profiles create*](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/struct.ProjectProfileCreateCall.html), [*profiles create offline*](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/struct.ProjectProfileCreateOfflineCall.html) and [*profiles patch*](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/struct.ProjectProfilePatchCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/struct.CloudProfiler.html)** +* **[Hub](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/struct.CloudProfiler.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -133,17 +133,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -153,29 +153,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudprofiler2/1.0.11+20190629/google_cloudprofiler2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudprofiler2/1.0.12+20190629/google_cloudprofiler2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudprofiler2/src/lib.rs b/gen/cloudprofiler2/src/lib.rs index 979f735886..19d57efbdb 100644 --- a/gen/cloudprofiler2/src/lib.rs +++ b/gen/cloudprofiler2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Profiler* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *cloudprofiler:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Profiler* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *cloudprofiler:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Profiler* *v2* API can be found at the //! [official documentation site](https://cloud.google.com/profiler/). @@ -341,7 +341,7 @@ impl<'a, C, A> CloudProfiler CloudProfiler { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudprofiler.googleapis.com/".to_string(), _root_url: "https://cloudprofiler.googleapis.com/".to_string(), } @@ -352,7 +352,7 @@ impl<'a, C, A> CloudProfiler } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudresourcemanager1-cli/Cargo.toml b/gen/cloudresourcemanager1-cli/Cargo.toml index 31256ea12e..9668865a9d 100644 --- a/gen/cloudresourcemanager1-cli/Cargo.toml +++ b/gen/cloudresourcemanager1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudresourcemanager1-cli" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Resource Manager (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudresourcemanager1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudresourcemanager1] path = "../cloudresourcemanager1" -version = "1.0.11+20190701" +version = "1.0.12+20190701" diff --git a/gen/cloudresourcemanager1-cli/LICENSE.md b/gen/cloudresourcemanager1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudresourcemanager1-cli/LICENSE.md +++ b/gen/cloudresourcemanager1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudresourcemanager1-cli/README.md b/gen/cloudresourcemanager1-cli/README.md index d08bf9380c..5a1bd76837 100644 --- a/gen/cloudresourcemanager1-cli/README.md +++ b/gen/cloudresourcemanager1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Resource Manager* API at revision *20190701*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Resource Manager* API at revision *20190701*. The CLI is at version *1.0.12*. ```bash cloudresourcemanager1 [options] diff --git a/gen/cloudresourcemanager1-cli/mkdocs.yml b/gen/cloudresourcemanager1-cli/mkdocs.yml index 0ec8063d45..9636d11173 100644 --- a/gen/cloudresourcemanager1-cli/mkdocs.yml +++ b/gen/cloudresourcemanager1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Resource Manager v1.0.11+20190701 +site_name: Cloud Resource Manager v1.0.12+20190701 site_url: http://byron.github.io/google-apis-rs/google-cloudresourcemanager1-cli site_description: A complete library to interact with Cloud Resource Manager (protocol v1) @@ -50,5 +50,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudresourcemanager1-cli/src/cmn.rs b/gen/cloudresourcemanager1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudresourcemanager1-cli/src/cmn.rs +++ b/gen/cloudresourcemanager1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudresourcemanager1-cli/src/main.rs b/gen/cloudresourcemanager1-cli/src/main.rs index 621533e6b6..3f2ac0a319 100644 --- a/gen/cloudresourcemanager1-cli/src/main.rs +++ b/gen/cloudresourcemanager1-cli/src/main.rs @@ -4558,7 +4558,7 @@ fn main() { let mut app = App::new("cloudresourcemanager1") .author("Sebastian Thiel ") - .version("1.0.11+20190701") + .version("1.0.12+20190701") .about("Creates, reads, and updates metadata for Google Cloud Platform resource containers.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudresourcemanager1_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudresourcemanager1/Cargo.toml b/gen/cloudresourcemanager1/Cargo.toml index f09326a0f9..08e8a1fb5d 100644 --- a/gen/cloudresourcemanager1/Cargo.toml +++ b/gen/cloudresourcemanager1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudresourcemanager1" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Resource Manager (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudresourcemanager1" homepage = "https://cloud.google.com/resource-manager" -documentation = "https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701" +documentation = "https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701" license = "MIT" keywords = ["cloudresourcemanager", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudresourcemanager1/LICENSE.md b/gen/cloudresourcemanager1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudresourcemanager1/LICENSE.md +++ b/gen/cloudresourcemanager1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudresourcemanager1/README.md b/gen/cloudresourcemanager1/README.md index d5bb6e5a03..5c44de26ba 100644 --- a/gen/cloudresourcemanager1/README.md +++ b/gen/cloudresourcemanager1/README.md @@ -5,24 +5,24 @@ DO NOT EDIT ! --> The `google-cloudresourcemanager1` library allows access to all features of the *Google Cloud Resource Manager* service. -This documentation was generated from *Cloud Resource Manager* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *cloudresourcemanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Resource Manager* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *cloudresourcemanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Resource Manager* *v1* API can be found at the [official documentation site](https://cloud.google.com/resource-manager). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.CloudResourceManager.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.CloudResourceManager.html) ... * folders - * [*clear org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.FolderClearOrgPolicyCall.html), [*get effective org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.FolderGetEffectiveOrgPolicyCall.html), [*get org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.FolderGetOrgPolicyCall.html), [*list available org policy constraints*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.FolderListAvailableOrgPolicyConstraintCall.html), [*list org policies*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.FolderListOrgPolicyCall.html) and [*set org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.FolderSetOrgPolicyCall.html) -* [liens](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.Lien.html) - * [*create*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.LienCreateCall.html), [*delete*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.LienDeleteCall.html), [*get*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.LienGetCall.html) and [*list*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.LienListCall.html) -* [operations](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.Operation.html) - * [*get*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.OperationGetCall.html) -* [organizations](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.Organization.html) - * [*clear org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.OrganizationClearOrgPolicyCall.html), [*get*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.OrganizationGetCall.html), [*get effective org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.OrganizationGetEffectiveOrgPolicyCall.html), [*get iam policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.OrganizationGetIamPolicyCall.html), [*get org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.OrganizationGetOrgPolicyCall.html), [*list available org policy constraints*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.OrganizationListAvailableOrgPolicyConstraintCall.html), [*list org policies*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.OrganizationListOrgPolicyCall.html), [*search*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.OrganizationSearchCall.html), [*set iam policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.OrganizationSetIamPolicyCall.html), [*set org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.OrganizationSetOrgPolicyCall.html) and [*test iam permissions*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.OrganizationTestIamPermissionCall.html) -* [projects](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.Project.html) - * [*clear org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectClearOrgPolicyCall.html), [*create*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectCreateCall.html), [*delete*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectDeleteCall.html), [*get*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectGetCall.html), [*get ancestry*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectGetAncestryCall.html), [*get effective org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectGetEffectiveOrgPolicyCall.html), [*get iam policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectGetIamPolicyCall.html), [*get org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectGetOrgPolicyCall.html), [*list*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectListCall.html), [*list available org policy constraints*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectListAvailableOrgPolicyConstraintCall.html), [*list org policies*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectListOrgPolicyCall.html), [*set iam policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectSetIamPolicyCall.html), [*set org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectSetOrgPolicyCall.html), [*test iam permissions*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectTestIamPermissionCall.html), [*undelete*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectUndeleteCall.html) and [*update*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.ProjectUpdateCall.html) + * [*clear org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.FolderClearOrgPolicyCall.html), [*get effective org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.FolderGetEffectiveOrgPolicyCall.html), [*get org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.FolderGetOrgPolicyCall.html), [*list available org policy constraints*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.FolderListAvailableOrgPolicyConstraintCall.html), [*list org policies*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.FolderListOrgPolicyCall.html) and [*set org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.FolderSetOrgPolicyCall.html) +* [liens](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.Lien.html) + * [*create*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.LienCreateCall.html), [*delete*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.LienDeleteCall.html), [*get*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.LienGetCall.html) and [*list*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.LienListCall.html) +* [operations](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.Operation.html) + * [*get*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.OperationGetCall.html) +* [organizations](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.Organization.html) + * [*clear org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.OrganizationClearOrgPolicyCall.html), [*get*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.OrganizationGetCall.html), [*get effective org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.OrganizationGetEffectiveOrgPolicyCall.html), [*get iam policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.OrganizationGetIamPolicyCall.html), [*get org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.OrganizationGetOrgPolicyCall.html), [*list available org policy constraints*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.OrganizationListAvailableOrgPolicyConstraintCall.html), [*list org policies*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.OrganizationListOrgPolicyCall.html), [*search*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.OrganizationSearchCall.html), [*set iam policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.OrganizationSetIamPolicyCall.html), [*set org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.OrganizationSetOrgPolicyCall.html) and [*test iam permissions*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.OrganizationTestIamPermissionCall.html) +* [projects](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.Project.html) + * [*clear org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectClearOrgPolicyCall.html), [*create*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectCreateCall.html), [*delete*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectDeleteCall.html), [*get*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectGetCall.html), [*get ancestry*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectGetAncestryCall.html), [*get effective org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectGetEffectiveOrgPolicyCall.html), [*get iam policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectGetIamPolicyCall.html), [*get org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectGetOrgPolicyCall.html), [*list*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectListCall.html), [*list available org policy constraints*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectListAvailableOrgPolicyConstraintCall.html), [*list org policies*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectListOrgPolicyCall.html), [*set iam policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectSetIamPolicyCall.html), [*set org policy*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectSetOrgPolicyCall.html), [*test iam permissions*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectTestIamPermissionCall.html), [*undelete*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectUndeleteCall.html) and [*update*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.ProjectUpdateCall.html) @@ -31,17 +31,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/struct.CloudResourceManager.html)** +* **[Hub](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/struct.CloudResourceManager.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -150,17 +150,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -170,29 +170,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudresourcemanager1/1.0.11+20190701/google_cloudresourcemanager1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudresourcemanager1/1.0.12+20190701/google_cloudresourcemanager1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudresourcemanager1/src/lib.rs b/gen/cloudresourcemanager1/src/lib.rs index f03a43ea60..a81b702659 100644 --- a/gen/cloudresourcemanager1/src/lib.rs +++ b/gen/cloudresourcemanager1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Resource Manager* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *cloudresourcemanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Resource Manager* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *cloudresourcemanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Resource Manager* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/resource-manager). @@ -350,7 +350,7 @@ impl<'a, C, A> CloudResourceManager CloudResourceManager { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudresourcemanager.googleapis.com/".to_string(), _root_url: "https://cloudresourcemanager.googleapis.com/".to_string(), } @@ -373,7 +373,7 @@ impl<'a, C, A> CloudResourceManager } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudresourcemanager1_beta1-cli/Cargo.toml b/gen/cloudresourcemanager1_beta1-cli/Cargo.toml index 3e706bf7b1..eaf6945617 100644 --- a/gen/cloudresourcemanager1_beta1-cli/Cargo.toml +++ b/gen/cloudresourcemanager1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudresourcemanager1_beta1-cli" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Resource Manager (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudresourcemanager1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudresourcemanager1_beta1] path = "../cloudresourcemanager1_beta1" -version = "1.0.11+20190701" +version = "1.0.12+20190701" diff --git a/gen/cloudresourcemanager1_beta1-cli/LICENSE.md b/gen/cloudresourcemanager1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudresourcemanager1_beta1-cli/LICENSE.md +++ b/gen/cloudresourcemanager1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudresourcemanager1_beta1-cli/README.md b/gen/cloudresourcemanager1_beta1-cli/README.md index b8db3041bf..fe8778d806 100644 --- a/gen/cloudresourcemanager1_beta1-cli/README.md +++ b/gen/cloudresourcemanager1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Resource Manager* API at revision *20190701*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Resource Manager* API at revision *20190701*. The CLI is at version *1.0.12*. ```bash cloudresourcemanager1-beta1 [options] diff --git a/gen/cloudresourcemanager1_beta1-cli/mkdocs.yml b/gen/cloudresourcemanager1_beta1-cli/mkdocs.yml index 98bb1dd74d..8e2b40de0e 100644 --- a/gen/cloudresourcemanager1_beta1-cli/mkdocs.yml +++ b/gen/cloudresourcemanager1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Resource Manager v1.0.11+20190701 +site_name: Cloud Resource Manager v1.0.12+20190701 site_url: http://byron.github.io/google-apis-rs/google-cloudresourcemanager1_beta1-cli site_description: A complete library to interact with Cloud Resource Manager (protocol v1beta1) @@ -28,5 +28,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudresourcemanager1_beta1-cli/src/cmn.rs b/gen/cloudresourcemanager1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudresourcemanager1_beta1-cli/src/cmn.rs +++ b/gen/cloudresourcemanager1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudresourcemanager1_beta1-cli/src/main.rs b/gen/cloudresourcemanager1_beta1-cli/src/main.rs index 07888b305b..736f7b2eed 100644 --- a/gen/cloudresourcemanager1_beta1-cli/src/main.rs +++ b/gen/cloudresourcemanager1_beta1-cli/src/main.rs @@ -1989,7 +1989,7 @@ fn main() { let mut app = App::new("cloudresourcemanager1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190701") + .version("1.0.12+20190701") .about("Creates, reads, and updates metadata for Google Cloud Platform resource containers.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudresourcemanager1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudresourcemanager1_beta1/Cargo.toml b/gen/cloudresourcemanager1_beta1/Cargo.toml index 00592e12c4..ac9b746952 100644 --- a/gen/cloudresourcemanager1_beta1/Cargo.toml +++ b/gen/cloudresourcemanager1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudresourcemanager1_beta1" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Resource Manager (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudresourcemanager1_beta1" homepage = "https://cloud.google.com/resource-manager" -documentation = "https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701" +documentation = "https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701" license = "MIT" keywords = ["cloudresourcemanager", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudresourcemanager1_beta1/LICENSE.md b/gen/cloudresourcemanager1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudresourcemanager1_beta1/LICENSE.md +++ b/gen/cloudresourcemanager1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudresourcemanager1_beta1/README.md b/gen/cloudresourcemanager1_beta1/README.md index 70e26555f7..9ffdbaa7fd 100644 --- a/gen/cloudresourcemanager1_beta1/README.md +++ b/gen/cloudresourcemanager1_beta1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-cloudresourcemanager1_beta1` library allows access to all features of the *Google Cloud Resource Manager* service. -This documentation was generated from *Cloud Resource Manager* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *cloudresourcemanager:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Resource Manager* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *cloudresourcemanager:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Resource Manager* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/resource-manager). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.CloudResourceManager.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.CloudResourceManager.html) ... -* [organizations](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.Organization.html) - * [*get*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.OrganizationGetCall.html), [*get iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.OrganizationGetIamPolicyCall.html), [*list*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.OrganizationListCall.html), [*set iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.OrganizationSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.OrganizationTestIamPermissionCall.html) and [*update*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.OrganizationUpdateCall.html) -* [projects](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.Project.html) - * [*create*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.ProjectCreateCall.html), [*delete*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.ProjectDeleteCall.html), [*get*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.ProjectGetCall.html), [*get ancestry*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.ProjectGetAncestryCall.html), [*get iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.ProjectGetIamPolicyCall.html), [*list*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.ProjectListCall.html), [*set iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.ProjectSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.ProjectTestIamPermissionCall.html), [*undelete*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.ProjectUndeleteCall.html) and [*update*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.ProjectUpdateCall.html) +* [organizations](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.Organization.html) + * [*get*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.OrganizationGetCall.html), [*get iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.OrganizationGetIamPolicyCall.html), [*list*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.OrganizationListCall.html), [*set iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.OrganizationSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.OrganizationTestIamPermissionCall.html) and [*update*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.OrganizationUpdateCall.html) +* [projects](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.Project.html) + * [*create*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.ProjectCreateCall.html), [*delete*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.ProjectDeleteCall.html), [*get*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.ProjectGetCall.html), [*get ancestry*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.ProjectGetAncestryCall.html), [*get iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.ProjectGetIamPolicyCall.html), [*list*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.ProjectListCall.html), [*set iam policy*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.ProjectSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.ProjectTestIamPermissionCall.html), [*undelete*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.ProjectUndeleteCall.html) and [*update*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.ProjectUpdateCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/struct.CloudResourceManager.html)** +* **[Hub](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/struct.CloudResourceManager.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -138,17 +138,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -158,29 +158,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.11+20190701/google_cloudresourcemanager1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudresourcemanager1_beta1/1.0.12+20190701/google_cloudresourcemanager1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudresourcemanager1_beta1/src/lib.rs b/gen/cloudresourcemanager1_beta1/src/lib.rs index 58dc76323a..7752ee7ddd 100644 --- a/gen/cloudresourcemanager1_beta1/src/lib.rs +++ b/gen/cloudresourcemanager1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Resource Manager* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *cloudresourcemanager:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Resource Manager* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *cloudresourcemanager:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Resource Manager* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/resource-manager). @@ -338,7 +338,7 @@ impl<'a, C, A> CloudResourceManager CloudResourceManager { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudresourcemanager.googleapis.com/".to_string(), _root_url: "https://cloudresourcemanager.googleapis.com/".to_string(), } @@ -352,7 +352,7 @@ impl<'a, C, A> CloudResourceManager } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudresourcemanager2-cli/Cargo.toml b/gen/cloudresourcemanager2-cli/Cargo.toml index fda988cd61..6f1811cd01 100644 --- a/gen/cloudresourcemanager2-cli/Cargo.toml +++ b/gen/cloudresourcemanager2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudresourcemanager2-cli" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Resource Manager (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudresourcemanager2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudresourcemanager2] path = "../cloudresourcemanager2" -version = "1.0.11+20190701" +version = "1.0.12+20190701" diff --git a/gen/cloudresourcemanager2-cli/LICENSE.md b/gen/cloudresourcemanager2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudresourcemanager2-cli/LICENSE.md +++ b/gen/cloudresourcemanager2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudresourcemanager2-cli/README.md b/gen/cloudresourcemanager2-cli/README.md index b39e5d39c2..b87de64c5c 100644 --- a/gen/cloudresourcemanager2-cli/README.md +++ b/gen/cloudresourcemanager2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Resource Manager* API at revision *20190701*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Resource Manager* API at revision *20190701*. The CLI is at version *1.0.12*. ```bash cloudresourcemanager2 [options] diff --git a/gen/cloudresourcemanager2-cli/mkdocs.yml b/gen/cloudresourcemanager2-cli/mkdocs.yml index 13fc9dfc8b..f7c7c11211 100644 --- a/gen/cloudresourcemanager2-cli/mkdocs.yml +++ b/gen/cloudresourcemanager2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Resource Manager v1.0.11+20190701 +site_name: Cloud Resource Manager v1.0.12+20190701 site_url: http://byron.github.io/google-apis-rs/google-cloudresourcemanager2-cli site_description: A complete library to interact with Cloud Resource Manager (protocol v2) @@ -24,5 +24,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudresourcemanager2-cli/src/cmn.rs b/gen/cloudresourcemanager2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudresourcemanager2-cli/src/cmn.rs +++ b/gen/cloudresourcemanager2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudresourcemanager2-cli/src/main.rs b/gen/cloudresourcemanager2-cli/src/main.rs index 7469d2921a..8f73e5a2a9 100644 --- a/gen/cloudresourcemanager2-cli/src/main.rs +++ b/gen/cloudresourcemanager2-cli/src/main.rs @@ -1522,7 +1522,7 @@ fn main() { let mut app = App::new("cloudresourcemanager2") .author("Sebastian Thiel ") - .version("1.0.11+20190701") + .version("1.0.12+20190701") .about("Creates, reads, and updates metadata for Google Cloud Platform resource containers.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudresourcemanager2_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudresourcemanager2/Cargo.toml b/gen/cloudresourcemanager2/Cargo.toml index 8c5b0301b2..b7406090d7 100644 --- a/gen/cloudresourcemanager2/Cargo.toml +++ b/gen/cloudresourcemanager2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudresourcemanager2" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Resource Manager (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudresourcemanager2" homepage = "https://cloud.google.com/resource-manager" -documentation = "https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701" +documentation = "https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701" license = "MIT" keywords = ["cloudresourcemanager", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudresourcemanager2/LICENSE.md b/gen/cloudresourcemanager2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudresourcemanager2/LICENSE.md +++ b/gen/cloudresourcemanager2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudresourcemanager2/README.md b/gen/cloudresourcemanager2/README.md index ada03b405e..6f54e5abb6 100644 --- a/gen/cloudresourcemanager2/README.md +++ b/gen/cloudresourcemanager2/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-cloudresourcemanager2` library allows access to all features of the *Google Cloud Resource Manager* service. -This documentation was generated from *Cloud Resource Manager* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *cloudresourcemanager:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Resource Manager* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *cloudresourcemanager:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Resource Manager* *v2* API can be found at the [official documentation site](https://cloud.google.com/resource-manager). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.CloudResourceManager.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.CloudResourceManager.html) ... -* [folders](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.Folder.html) - * [*create*](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.FolderCreateCall.html), [*delete*](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.FolderDeleteCall.html), [*get*](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.FolderGetCall.html), [*get iam policy*](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.FolderGetIamPolicyCall.html), [*list*](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.FolderListCall.html), [*move*](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.FolderMoveCall.html), [*patch*](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.FolderPatchCall.html), [*search*](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.FolderSearchCall.html), [*set iam policy*](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.FolderSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.FolderTestIamPermissionCall.html) and [*undelete*](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.FolderUndeleteCall.html) -* [operations](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.Operation.html) - * [*get*](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.OperationGetCall.html) +* [folders](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.Folder.html) + * [*create*](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.FolderCreateCall.html), [*delete*](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.FolderDeleteCall.html), [*get*](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.FolderGetCall.html), [*get iam policy*](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.FolderGetIamPolicyCall.html), [*list*](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.FolderListCall.html), [*move*](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.FolderMoveCall.html), [*patch*](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.FolderPatchCall.html), [*search*](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.FolderSearchCall.html), [*set iam policy*](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.FolderSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.FolderTestIamPermissionCall.html) and [*undelete*](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.FolderUndeleteCall.html) +* [operations](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.Operation.html) + * [*get*](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.OperationGetCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/struct.CloudResourceManager.html)** +* **[Hub](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/struct.CloudResourceManager.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -140,17 +140,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -160,29 +160,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudresourcemanager2/1.0.11+20190701/google_cloudresourcemanager2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudresourcemanager2/1.0.12+20190701/google_cloudresourcemanager2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudresourcemanager2/src/lib.rs b/gen/cloudresourcemanager2/src/lib.rs index 8ebec69aef..6d5184e8a6 100644 --- a/gen/cloudresourcemanager2/src/lib.rs +++ b/gen/cloudresourcemanager2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Resource Manager* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *cloudresourcemanager:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Resource Manager* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *cloudresourcemanager:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Resource Manager* *v2* API can be found at the //! [official documentation site](https://cloud.google.com/resource-manager). @@ -341,7 +341,7 @@ impl<'a, C, A> CloudResourceManager CloudResourceManager { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudresourcemanager.googleapis.com/".to_string(), _root_url: "https://cloudresourcemanager.googleapis.com/".to_string(), } @@ -355,7 +355,7 @@ impl<'a, C, A> CloudResourceManager } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudscheduler1-cli/Cargo.toml b/gen/cloudscheduler1-cli/Cargo.toml index 4788d775ef..acda3cfad3 100644 --- a/gen/cloudscheduler1-cli/Cargo.toml +++ b/gen/cloudscheduler1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudscheduler1-cli" -version = "1.0.11+20190617" +version = "1.0.12+20190617" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Scheduler (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudscheduler1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudscheduler1] path = "../cloudscheduler1" -version = "1.0.11+20190617" +version = "1.0.12+20190617" diff --git a/gen/cloudscheduler1-cli/LICENSE.md b/gen/cloudscheduler1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudscheduler1-cli/LICENSE.md +++ b/gen/cloudscheduler1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudscheduler1-cli/README.md b/gen/cloudscheduler1-cli/README.md index 9621d62860..1b75ef08f3 100644 --- a/gen/cloudscheduler1-cli/README.md +++ b/gen/cloudscheduler1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Scheduler* API at revision *20190617*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Scheduler* API at revision *20190617*. The CLI is at version *1.0.12*. ```bash cloudscheduler1 [options] diff --git a/gen/cloudscheduler1-cli/mkdocs.yml b/gen/cloudscheduler1-cli/mkdocs.yml index b73616a41d..36103f575e 100644 --- a/gen/cloudscheduler1-cli/mkdocs.yml +++ b/gen/cloudscheduler1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Scheduler v1.0.11+20190617 +site_name: Cloud Scheduler v1.0.12+20190617 site_url: http://byron.github.io/google-apis-rs/google-cloudscheduler1-cli site_description: A complete library to interact with Cloud Scheduler (protocol v1) @@ -22,5 +22,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudscheduler1-cli/src/cmn.rs b/gen/cloudscheduler1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudscheduler1-cli/src/cmn.rs +++ b/gen/cloudscheduler1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudscheduler1-cli/src/main.rs b/gen/cloudscheduler1-cli/src/main.rs index 7dff5b0a0d..f4f1168e6d 100644 --- a/gen/cloudscheduler1-cli/src/main.rs +++ b/gen/cloudscheduler1-cli/src/main.rs @@ -1261,7 +1261,7 @@ fn main() { let mut app = App::new("cloudscheduler1") .author("Sebastian Thiel ") - .version("1.0.11+20190617") + .version("1.0.12+20190617") .about("Creates and manages jobs run on a regular recurring schedule.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudscheduler1_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudscheduler1/Cargo.toml b/gen/cloudscheduler1/Cargo.toml index 61805da9be..c941d7c6fb 100644 --- a/gen/cloudscheduler1/Cargo.toml +++ b/gen/cloudscheduler1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudscheduler1" -version = "1.0.11+20190617" +version = "1.0.12+20190617" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Scheduler (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudscheduler1" homepage = "https://cloud.google.com/scheduler/" -documentation = "https://docs.rs/google-cloudscheduler1/1.0.11+20190617" +documentation = "https://docs.rs/google-cloudscheduler1/1.0.12+20190617" license = "MIT" keywords = ["cloudscheduler", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudscheduler1/LICENSE.md b/gen/cloudscheduler1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudscheduler1/LICENSE.md +++ b/gen/cloudscheduler1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudscheduler1/README.md b/gen/cloudscheduler1/README.md index 4aa5564fa4..bf88d050d7 100644 --- a/gen/cloudscheduler1/README.md +++ b/gen/cloudscheduler1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-cloudscheduler1` library allows access to all features of the *Google Cloud Scheduler* service. -This documentation was generated from *Cloud Scheduler* crate version *1.0.11+20190617*, where *20190617* is the exact revision of the *cloudscheduler:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Scheduler* crate version *1.0.12+20190617*, where *20190617* is the exact revision of the *cloudscheduler:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Scheduler* *v1* API can be found at the [official documentation site](https://cloud.google.com/scheduler/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/struct.CloudScheduler.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/struct.CloudScheduler.html) ... * projects - * [*locations get*](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/struct.ProjectLocationGetCall.html), [*locations jobs create*](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/struct.ProjectLocationJobCreateCall.html), [*locations jobs delete*](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/struct.ProjectLocationJobDeleteCall.html), [*locations jobs get*](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/struct.ProjectLocationJobGetCall.html), [*locations jobs list*](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/struct.ProjectLocationJobListCall.html), [*locations jobs patch*](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/struct.ProjectLocationJobPatchCall.html), [*locations jobs pause*](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/struct.ProjectLocationJobPauseCall.html), [*locations jobs resume*](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/struct.ProjectLocationJobResumeCall.html), [*locations jobs run*](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/struct.ProjectLocationJobRunCall.html) and [*locations list*](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/struct.ProjectLocationListCall.html) + * [*locations get*](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/struct.ProjectLocationGetCall.html), [*locations jobs create*](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/struct.ProjectLocationJobCreateCall.html), [*locations jobs delete*](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/struct.ProjectLocationJobDeleteCall.html), [*locations jobs get*](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/struct.ProjectLocationJobGetCall.html), [*locations jobs list*](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/struct.ProjectLocationJobListCall.html), [*locations jobs patch*](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/struct.ProjectLocationJobPatchCall.html), [*locations jobs pause*](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/struct.ProjectLocationJobPauseCall.html), [*locations jobs resume*](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/struct.ProjectLocationJobResumeCall.html), [*locations jobs run*](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/struct.ProjectLocationJobRunCall.html) and [*locations list*](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/struct.ProjectLocationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/struct.CloudScheduler.html)** +* **[Hub](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/struct.CloudScheduler.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudscheduler1/1.0.11+20190617/google_cloudscheduler1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudscheduler1/1.0.12+20190617/google_cloudscheduler1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudscheduler1/src/lib.rs b/gen/cloudscheduler1/src/lib.rs index c591320139..010a41023c 100644 --- a/gen/cloudscheduler1/src/lib.rs +++ b/gen/cloudscheduler1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Scheduler* crate version *1.0.11+20190617*, where *20190617* is the exact revision of the *cloudscheduler:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Scheduler* crate version *1.0.12+20190617*, where *20190617* is the exact revision of the *cloudscheduler:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Scheduler* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/scheduler/). @@ -336,7 +336,7 @@ impl<'a, C, A> CloudScheduler CloudScheduler { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudscheduler.googleapis.com/".to_string(), _root_url: "https://cloudscheduler.googleapis.com/".to_string(), } @@ -347,7 +347,7 @@ impl<'a, C, A> CloudScheduler } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudscheduler1_beta1-cli/Cargo.toml b/gen/cloudscheduler1_beta1-cli/Cargo.toml index 79ff1a1cf9..10c5edfc82 100644 --- a/gen/cloudscheduler1_beta1-cli/Cargo.toml +++ b/gen/cloudscheduler1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudscheduler1_beta1-cli" -version = "1.0.11+20190617" +version = "1.0.12+20190617" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Scheduler (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudscheduler1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudscheduler1_beta1] path = "../cloudscheduler1_beta1" -version = "1.0.11+20190617" +version = "1.0.12+20190617" diff --git a/gen/cloudscheduler1_beta1-cli/LICENSE.md b/gen/cloudscheduler1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudscheduler1_beta1-cli/LICENSE.md +++ b/gen/cloudscheduler1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudscheduler1_beta1-cli/README.md b/gen/cloudscheduler1_beta1-cli/README.md index f350f5a6c5..5cfa346a8b 100644 --- a/gen/cloudscheduler1_beta1-cli/README.md +++ b/gen/cloudscheduler1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Scheduler* API at revision *20190617*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Scheduler* API at revision *20190617*. The CLI is at version *1.0.12*. ```bash cloudscheduler1-beta1 [options] diff --git a/gen/cloudscheduler1_beta1-cli/mkdocs.yml b/gen/cloudscheduler1_beta1-cli/mkdocs.yml index ed09d660f9..e0288adb3a 100644 --- a/gen/cloudscheduler1_beta1-cli/mkdocs.yml +++ b/gen/cloudscheduler1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Scheduler v1.0.11+20190617 +site_name: Cloud Scheduler v1.0.12+20190617 site_url: http://byron.github.io/google-apis-rs/google-cloudscheduler1_beta1-cli site_description: A complete library to interact with Cloud Scheduler (protocol v1beta1) @@ -22,5 +22,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudscheduler1_beta1-cli/src/cmn.rs b/gen/cloudscheduler1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudscheduler1_beta1-cli/src/cmn.rs +++ b/gen/cloudscheduler1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudscheduler1_beta1-cli/src/main.rs b/gen/cloudscheduler1_beta1-cli/src/main.rs index 0a10aa4f49..3fb03c4997 100644 --- a/gen/cloudscheduler1_beta1-cli/src/main.rs +++ b/gen/cloudscheduler1_beta1-cli/src/main.rs @@ -1261,7 +1261,7 @@ fn main() { let mut app = App::new("cloudscheduler1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190617") + .version("1.0.12+20190617") .about("Creates and manages jobs run on a regular recurring schedule.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudscheduler1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudscheduler1_beta1/Cargo.toml b/gen/cloudscheduler1_beta1/Cargo.toml index 085684cb6f..aa14862736 100644 --- a/gen/cloudscheduler1_beta1/Cargo.toml +++ b/gen/cloudscheduler1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudscheduler1_beta1" -version = "1.0.11+20190617" +version = "1.0.12+20190617" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Scheduler (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudscheduler1_beta1" homepage = "https://cloud.google.com/scheduler/" -documentation = "https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617" +documentation = "https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617" license = "MIT" keywords = ["cloudscheduler", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudscheduler1_beta1/LICENSE.md b/gen/cloudscheduler1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudscheduler1_beta1/LICENSE.md +++ b/gen/cloudscheduler1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudscheduler1_beta1/README.md b/gen/cloudscheduler1_beta1/README.md index 0e3d3c8415..1a76941c39 100644 --- a/gen/cloudscheduler1_beta1/README.md +++ b/gen/cloudscheduler1_beta1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-cloudscheduler1_beta1` library allows access to all features of the *Google Cloud Scheduler* service. -This documentation was generated from *Cloud Scheduler* crate version *1.0.11+20190617*, where *20190617* is the exact revision of the *cloudscheduler:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Scheduler* crate version *1.0.12+20190617*, where *20190617* is the exact revision of the *cloudscheduler:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Scheduler* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/scheduler/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/struct.CloudScheduler.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/struct.CloudScheduler.html) ... * projects - * [*locations get*](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationGetCall.html), [*locations jobs create*](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobCreateCall.html), [*locations jobs delete*](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobDeleteCall.html), [*locations jobs get*](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobGetCall.html), [*locations jobs list*](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobListCall.html), [*locations jobs patch*](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobPatchCall.html), [*locations jobs pause*](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobPauseCall.html), [*locations jobs resume*](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobResumeCall.html), [*locations jobs run*](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobRunCall.html) and [*locations list*](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationListCall.html) + * [*locations get*](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationGetCall.html), [*locations jobs create*](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobCreateCall.html), [*locations jobs delete*](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobDeleteCall.html), [*locations jobs get*](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobGetCall.html), [*locations jobs list*](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobListCall.html), [*locations jobs patch*](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobPatchCall.html), [*locations jobs pause*](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobPauseCall.html), [*locations jobs resume*](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobResumeCall.html), [*locations jobs run*](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationJobRunCall.html) and [*locations list*](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/struct.ProjectLocationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/struct.CloudScheduler.html)** +* **[Hub](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/struct.CloudScheduler.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudscheduler1_beta1/1.0.11+20190617/google_cloudscheduler1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudscheduler1_beta1/1.0.12+20190617/google_cloudscheduler1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudscheduler1_beta1/src/lib.rs b/gen/cloudscheduler1_beta1/src/lib.rs index b4b1405b8f..91c13b96f4 100644 --- a/gen/cloudscheduler1_beta1/src/lib.rs +++ b/gen/cloudscheduler1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Scheduler* crate version *1.0.11+20190617*, where *20190617* is the exact revision of the *cloudscheduler:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Scheduler* crate version *1.0.12+20190617*, where *20190617* is the exact revision of the *cloudscheduler:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Scheduler* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/scheduler/). @@ -336,7 +336,7 @@ impl<'a, C, A> CloudScheduler CloudScheduler { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudscheduler.googleapis.com/".to_string(), _root_url: "https://cloudscheduler.googleapis.com/".to_string(), } @@ -347,7 +347,7 @@ impl<'a, C, A> CloudScheduler } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudshell1-cli/Cargo.toml b/gen/cloudshell1-cli/Cargo.toml index ba9ee18d7e..a66cbd82da 100644 --- a/gen/cloudshell1-cli/Cargo.toml +++ b/gen/cloudshell1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudshell1-cli" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Shell (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudshell1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudshell1] path = "../cloudshell1" -version = "1.0.11+20190701" +version = "1.0.12+20190701" diff --git a/gen/cloudshell1-cli/LICENSE.md b/gen/cloudshell1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudshell1-cli/LICENSE.md +++ b/gen/cloudshell1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudshell1-cli/README.md b/gen/cloudshell1-cli/README.md index 1b40c451f8..0e095b2fef 100644 --- a/gen/cloudshell1-cli/README.md +++ b/gen/cloudshell1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Shell* API at revision *20190701*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Shell* API at revision *20190701*. The CLI is at version *1.0.12*. ```bash cloudshell1 [options] diff --git a/gen/cloudshell1-cli/mkdocs.yml b/gen/cloudshell1-cli/mkdocs.yml index cf77bc4a05..381f5bffd2 100644 --- a/gen/cloudshell1-cli/mkdocs.yml +++ b/gen/cloudshell1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Shell v1.0.11+20190701 +site_name: Cloud Shell v1.0.12+20190701 site_url: http://byron.github.io/google-apis-rs/google-cloudshell1-cli site_description: A complete library to interact with Cloud Shell (protocol v1) @@ -16,5 +16,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudshell1-cli/src/cmn.rs b/gen/cloudshell1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudshell1-cli/src/cmn.rs +++ b/gen/cloudshell1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudshell1-cli/src/main.rs b/gen/cloudshell1-cli/src/main.rs index a336114955..4fec9ffa20 100644 --- a/gen/cloudshell1-cli/src/main.rs +++ b/gen/cloudshell1-cli/src/main.rs @@ -530,7 +530,7 @@ fn main() { let mut app = App::new("cloudshell1") .author("Sebastian Thiel ") - .version("1.0.11+20190701") + .version("1.0.12+20190701") .about("Allows users to start, configure, and connect to interactive shell sessions running in the cloud. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudshell1_cli") diff --git a/gen/cloudshell1/Cargo.toml b/gen/cloudshell1/Cargo.toml index 185d2779da..77b5cf09e0 100644 --- a/gen/cloudshell1/Cargo.toml +++ b/gen/cloudshell1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudshell1" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Shell (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudshell1" homepage = "https://cloud.google.com/shell/docs/" -documentation = "https://docs.rs/google-cloudshell1/1.0.11+20190701" +documentation = "https://docs.rs/google-cloudshell1/1.0.12+20190701" license = "MIT" keywords = ["cloudshell", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudshell1/LICENSE.md b/gen/cloudshell1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudshell1/LICENSE.md +++ b/gen/cloudshell1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudshell1/README.md b/gen/cloudshell1/README.md index c62bcc7e83..1a8d1583d6 100644 --- a/gen/cloudshell1/README.md +++ b/gen/cloudshell1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-cloudshell1` library allows access to all features of the *Google Cloud Shell* service. -This documentation was generated from *Cloud Shell* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *cloudshell:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Shell* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *cloudshell:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Shell* *v1* API can be found at the [official documentation site](https://cloud.google.com/shell/docs/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/struct.CloudShell.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/struct.CloudShell.html) ... -* [operations](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/struct.Operation.html) - * [*cancel*](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/struct.OperationDeleteCall.html), [*get*](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/struct.OperationListCall.html) +* [operations](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/struct.Operation.html) + * [*cancel*](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/struct.OperationDeleteCall.html), [*get*](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/struct.OperationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/struct.CloudShell.html)** +* **[Hub](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/struct.CloudShell.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -130,17 +130,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudshell1/1.0.11+20190701/google_cloudshell1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudshell1/1.0.12+20190701/google_cloudshell1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudshell1/src/lib.rs b/gen/cloudshell1/src/lib.rs index cd6e2888c2..37afdd68d1 100644 --- a/gen/cloudshell1/src/lib.rs +++ b/gen/cloudshell1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Shell* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *cloudshell:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Shell* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *cloudshell:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Shell* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/shell/docs/). @@ -326,7 +326,7 @@ impl<'a, C, A> CloudShell CloudShell { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudshell.googleapis.com/".to_string(), _root_url: "https://cloudshell.googleapis.com/".to_string(), } @@ -337,7 +337,7 @@ impl<'a, C, A> CloudShell } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudtasks2-cli/Cargo.toml b/gen/cloudtasks2-cli/Cargo.toml index d97489d760..dfab2e61b4 100644 --- a/gen/cloudtasks2-cli/Cargo.toml +++ b/gen/cloudtasks2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudtasks2-cli" -version = "1.0.11+20190618" +version = "1.0.12+20190618" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Tasks (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudtasks2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudtasks2] path = "../cloudtasks2" -version = "1.0.11+20190618" +version = "1.0.12+20190618" diff --git a/gen/cloudtasks2-cli/LICENSE.md b/gen/cloudtasks2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudtasks2-cli/LICENSE.md +++ b/gen/cloudtasks2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudtasks2-cli/README.md b/gen/cloudtasks2-cli/README.md index 69b2621d35..8374edeafa 100644 --- a/gen/cloudtasks2-cli/README.md +++ b/gen/cloudtasks2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Tasks* API at revision *20190618*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Tasks* API at revision *20190618*. The CLI is at version *1.0.12*. ```bash cloudtasks2 [options] diff --git a/gen/cloudtasks2-cli/mkdocs.yml b/gen/cloudtasks2-cli/mkdocs.yml index 1b7bffc276..cab0610cd4 100644 --- a/gen/cloudtasks2-cli/mkdocs.yml +++ b/gen/cloudtasks2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Tasks v1.0.11+20190618 +site_name: Cloud Tasks v1.0.12+20190618 site_url: http://byron.github.io/google-apis-rs/google-cloudtasks2-cli site_description: A complete library to interact with Cloud Tasks (protocol v2) @@ -30,5 +30,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudtasks2-cli/src/cmn.rs b/gen/cloudtasks2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudtasks2-cli/src/cmn.rs +++ b/gen/cloudtasks2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudtasks2-cli/src/main.rs b/gen/cloudtasks2-cli/src/main.rs index 658d6485a9..987a7f143c 100644 --- a/gen/cloudtasks2-cli/src/main.rs +++ b/gen/cloudtasks2-cli/src/main.rs @@ -2203,7 +2203,7 @@ fn main() { let mut app = App::new("cloudtasks2") .author("Sebastian Thiel ") - .version("1.0.11+20190618") + .version("1.0.12+20190618") .about("Manages the execution of large numbers of distributed requests.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudtasks2_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudtasks2/Cargo.toml b/gen/cloudtasks2/Cargo.toml index 188a907c6b..ada4ce6c16 100644 --- a/gen/cloudtasks2/Cargo.toml +++ b/gen/cloudtasks2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudtasks2" -version = "1.0.11+20190618" +version = "1.0.12+20190618" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Tasks (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudtasks2" homepage = "https://cloud.google.com/tasks/" -documentation = "https://docs.rs/google-cloudtasks2/1.0.11+20190618" +documentation = "https://docs.rs/google-cloudtasks2/1.0.12+20190618" license = "MIT" keywords = ["cloudtasks", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudtasks2/LICENSE.md b/gen/cloudtasks2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudtasks2/LICENSE.md +++ b/gen/cloudtasks2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudtasks2/README.md b/gen/cloudtasks2/README.md index 505910052d..11aca0ef76 100644 --- a/gen/cloudtasks2/README.md +++ b/gen/cloudtasks2/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-cloudtasks2` library allows access to all features of the *Google Cloud Tasks* service. -This documentation was generated from *Cloud Tasks* crate version *1.0.11+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Tasks* crate version *1.0.12+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Tasks* *v2* API can be found at the [official documentation site](https://cloud.google.com/tasks/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.CloudTasks.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.CloudTasks.html) ... * projects - * [*locations get*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationListCall.html), [*locations queues create*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueueCreateCall.html), [*locations queues delete*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueueDeleteCall.html), [*locations queues get*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueueGetCall.html), [*locations queues get iam policy*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueueGetIamPolicyCall.html), [*locations queues list*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueueListCall.html), [*locations queues patch*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueuePatchCall.html), [*locations queues pause*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueuePauseCall.html), [*locations queues purge*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueuePurgeCall.html), [*locations queues resume*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueueResumeCall.html), [*locations queues set iam policy*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueueSetIamPolicyCall.html), [*locations queues tasks create*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskCreateCall.html), [*locations queues tasks delete*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskDeleteCall.html), [*locations queues tasks get*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskGetCall.html), [*locations queues tasks list*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskListCall.html), [*locations queues tasks run*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskRunCall.html) and [*locations queues test iam permissions*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.ProjectLocationQueueTestIamPermissionCall.html) + * [*locations get*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationListCall.html), [*locations queues create*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueueCreateCall.html), [*locations queues delete*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueueDeleteCall.html), [*locations queues get*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueueGetCall.html), [*locations queues get iam policy*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueueGetIamPolicyCall.html), [*locations queues list*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueueListCall.html), [*locations queues patch*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueuePatchCall.html), [*locations queues pause*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueuePauseCall.html), [*locations queues purge*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueuePurgeCall.html), [*locations queues resume*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueueResumeCall.html), [*locations queues set iam policy*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueueSetIamPolicyCall.html), [*locations queues tasks create*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskCreateCall.html), [*locations queues tasks delete*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskDeleteCall.html), [*locations queues tasks get*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskGetCall.html), [*locations queues tasks list*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskListCall.html), [*locations queues tasks run*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueueTaskRunCall.html) and [*locations queues test iam permissions*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.ProjectLocationQueueTestIamPermissionCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/struct.CloudTasks.html)** +* **[Hub](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/struct.CloudTasks.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudtasks2/1.0.11+20190618/google_cloudtasks2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudtasks2/1.0.12+20190618/google_cloudtasks2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudtasks2/src/lib.rs b/gen/cloudtasks2/src/lib.rs index 11f9850b62..f3a94cc3d4 100644 --- a/gen/cloudtasks2/src/lib.rs +++ b/gen/cloudtasks2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Tasks* crate version *1.0.11+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Tasks* crate version *1.0.12+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Tasks* *v2* API can be found at the //! [official documentation site](https://cloud.google.com/tasks/). @@ -336,7 +336,7 @@ impl<'a, C, A> CloudTasks CloudTasks { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudtasks.googleapis.com/".to_string(), _root_url: "https://cloudtasks.googleapis.com/".to_string(), } @@ -347,7 +347,7 @@ impl<'a, C, A> CloudTasks } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudtasks2_beta2-cli/Cargo.toml b/gen/cloudtasks2_beta2-cli/Cargo.toml index 143d5ffc5b..ae9e2e6027 100644 --- a/gen/cloudtasks2_beta2-cli/Cargo.toml +++ b/gen/cloudtasks2_beta2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudtasks2_beta2-cli" -version = "1.0.11+20190618" +version = "1.0.12+20190618" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Tasks (protocol v2beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudtasks2_beta2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudtasks2_beta2] path = "../cloudtasks2_beta2" -version = "1.0.11+20190618" +version = "1.0.12+20190618" diff --git a/gen/cloudtasks2_beta2-cli/LICENSE.md b/gen/cloudtasks2_beta2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudtasks2_beta2-cli/LICENSE.md +++ b/gen/cloudtasks2_beta2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudtasks2_beta2-cli/README.md b/gen/cloudtasks2_beta2-cli/README.md index 6d1d91e337..9f2e8d9fe2 100644 --- a/gen/cloudtasks2_beta2-cli/README.md +++ b/gen/cloudtasks2_beta2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Tasks* API at revision *20190618*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Tasks* API at revision *20190618*. The CLI is at version *1.0.12*. ```bash cloudtasks2-beta2 [options] diff --git a/gen/cloudtasks2_beta2-cli/mkdocs.yml b/gen/cloudtasks2_beta2-cli/mkdocs.yml index 8171c86b1f..99a1460941 100644 --- a/gen/cloudtasks2_beta2-cli/mkdocs.yml +++ b/gen/cloudtasks2_beta2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Tasks v1.0.11+20190618 +site_name: Cloud Tasks v1.0.12+20190618 site_url: http://byron.github.io/google-apis-rs/google-cloudtasks2_beta2-cli site_description: A complete library to interact with Cloud Tasks (protocol v2beta2) @@ -34,5 +34,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudtasks2_beta2-cli/src/cmn.rs b/gen/cloudtasks2_beta2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudtasks2_beta2-cli/src/cmn.rs +++ b/gen/cloudtasks2_beta2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudtasks2_beta2-cli/src/main.rs b/gen/cloudtasks2_beta2-cli/src/main.rs index 89df0241f0..54b693bb24 100644 --- a/gen/cloudtasks2_beta2-cli/src/main.rs +++ b/gen/cloudtasks2_beta2-cli/src/main.rs @@ -2735,7 +2735,7 @@ fn main() { let mut app = App::new("cloudtasks2-beta2") .author("Sebastian Thiel ") - .version("1.0.11+20190618") + .version("1.0.12+20190618") .about("Manages the execution of large numbers of distributed requests.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudtasks2_beta2_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudtasks2_beta2/Cargo.toml b/gen/cloudtasks2_beta2/Cargo.toml index c5e1bf762d..bc49693c54 100644 --- a/gen/cloudtasks2_beta2/Cargo.toml +++ b/gen/cloudtasks2_beta2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudtasks2_beta2" -version = "1.0.11+20190618" +version = "1.0.12+20190618" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Tasks (protocol v2beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudtasks2_beta2" homepage = "https://cloud.google.com/tasks/" -documentation = "https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618" +documentation = "https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618" license = "MIT" keywords = ["cloudtasks", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudtasks2_beta2/LICENSE.md b/gen/cloudtasks2_beta2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudtasks2_beta2/LICENSE.md +++ b/gen/cloudtasks2_beta2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudtasks2_beta2/README.md b/gen/cloudtasks2_beta2/README.md index b04703f2da..65da0690a7 100644 --- a/gen/cloudtasks2_beta2/README.md +++ b/gen/cloudtasks2_beta2/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-cloudtasks2_beta2` library allows access to all features of the *Google Cloud Tasks* service. -This documentation was generated from *Cloud Tasks* crate version *1.0.11+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Tasks* crate version *1.0.12+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Tasks* *v2_beta2* API can be found at the [official documentation site](https://cloud.google.com/tasks/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.CloudTasks.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.CloudTasks.html) ... * projects - * [*locations get*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationListCall.html), [*locations queues create*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueCreateCall.html), [*locations queues delete*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueDeleteCall.html), [*locations queues get*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueGetCall.html), [*locations queues get iam policy*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueGetIamPolicyCall.html), [*locations queues list*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueListCall.html), [*locations queues patch*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueuePatchCall.html), [*locations queues pause*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueuePauseCall.html), [*locations queues purge*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueuePurgeCall.html), [*locations queues resume*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueResumeCall.html), [*locations queues set iam policy*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueSetIamPolicyCall.html), [*locations queues tasks acknowledge*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskAcknowledgeCall.html), [*locations queues tasks cancel lease*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskCancelLeaseCall.html), [*locations queues tasks create*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskCreateCall.html), [*locations queues tasks delete*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskDeleteCall.html), [*locations queues tasks get*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskGetCall.html), [*locations queues tasks lease*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskLeaseCall.html), [*locations queues tasks list*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskListCall.html), [*locations queues tasks renew lease*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskRenewLeaseCall.html), [*locations queues tasks run*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskRunCall.html) and [*locations queues test iam permissions*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTestIamPermissionCall.html) + * [*locations get*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationListCall.html), [*locations queues create*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueCreateCall.html), [*locations queues delete*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueDeleteCall.html), [*locations queues get*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueGetCall.html), [*locations queues get iam policy*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueGetIamPolicyCall.html), [*locations queues list*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueListCall.html), [*locations queues patch*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueuePatchCall.html), [*locations queues pause*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueuePauseCall.html), [*locations queues purge*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueuePurgeCall.html), [*locations queues resume*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueResumeCall.html), [*locations queues set iam policy*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueSetIamPolicyCall.html), [*locations queues tasks acknowledge*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskAcknowledgeCall.html), [*locations queues tasks cancel lease*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskCancelLeaseCall.html), [*locations queues tasks create*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskCreateCall.html), [*locations queues tasks delete*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskDeleteCall.html), [*locations queues tasks get*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskGetCall.html), [*locations queues tasks lease*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskLeaseCall.html), [*locations queues tasks list*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskListCall.html), [*locations queues tasks renew lease*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskRenewLeaseCall.html), [*locations queues tasks run*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTaskRunCall.html) and [*locations queues test iam permissions*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.ProjectLocationQueueTestIamPermissionCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/struct.CloudTasks.html)** +* **[Hub](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/struct.CloudTasks.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudtasks2_beta2/1.0.11+20190618/google_cloudtasks2_beta2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudtasks2_beta2/1.0.12+20190618/google_cloudtasks2_beta2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudtasks2_beta2/src/lib.rs b/gen/cloudtasks2_beta2/src/lib.rs index 0d60cedb92..f812bc998a 100644 --- a/gen/cloudtasks2_beta2/src/lib.rs +++ b/gen/cloudtasks2_beta2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Tasks* crate version *1.0.11+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Tasks* crate version *1.0.12+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Tasks* *v2_beta2* API can be found at the //! [official documentation site](https://cloud.google.com/tasks/). @@ -336,7 +336,7 @@ impl<'a, C, A> CloudTasks CloudTasks { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudtasks.googleapis.com/".to_string(), _root_url: "https://cloudtasks.googleapis.com/".to_string(), } @@ -347,7 +347,7 @@ impl<'a, C, A> CloudTasks } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudtasks2_beta3-cli/Cargo.toml b/gen/cloudtasks2_beta3-cli/Cargo.toml index 1c88d573ab..2bb9312c54 100644 --- a/gen/cloudtasks2_beta3-cli/Cargo.toml +++ b/gen/cloudtasks2_beta3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudtasks2_beta3-cli" -version = "1.0.11+20190618" +version = "1.0.12+20190618" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Tasks (protocol v2beta3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudtasks2_beta3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudtasks2_beta3] path = "../cloudtasks2_beta3" -version = "1.0.11+20190618" +version = "1.0.12+20190618" diff --git a/gen/cloudtasks2_beta3-cli/LICENSE.md b/gen/cloudtasks2_beta3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudtasks2_beta3-cli/LICENSE.md +++ b/gen/cloudtasks2_beta3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudtasks2_beta3-cli/README.md b/gen/cloudtasks2_beta3-cli/README.md index 75fd5fdd9f..81b938a200 100644 --- a/gen/cloudtasks2_beta3-cli/README.md +++ b/gen/cloudtasks2_beta3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Tasks* API at revision *20190618*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Tasks* API at revision *20190618*. The CLI is at version *1.0.12*. ```bash cloudtasks2-beta3 [options] diff --git a/gen/cloudtasks2_beta3-cli/mkdocs.yml b/gen/cloudtasks2_beta3-cli/mkdocs.yml index 4208ff21f4..52513012c5 100644 --- a/gen/cloudtasks2_beta3-cli/mkdocs.yml +++ b/gen/cloudtasks2_beta3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Tasks v1.0.11+20190618 +site_name: Cloud Tasks v1.0.12+20190618 site_url: http://byron.github.io/google-apis-rs/google-cloudtasks2_beta3-cli site_description: A complete library to interact with Cloud Tasks (protocol v2beta3) @@ -30,5 +30,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudtasks2_beta3-cli/src/cmn.rs b/gen/cloudtasks2_beta3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudtasks2_beta3-cli/src/cmn.rs +++ b/gen/cloudtasks2_beta3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudtasks2_beta3-cli/src/main.rs b/gen/cloudtasks2_beta3-cli/src/main.rs index f16b8efe31..8aa128f243 100644 --- a/gen/cloudtasks2_beta3-cli/src/main.rs +++ b/gen/cloudtasks2_beta3-cli/src/main.rs @@ -2213,7 +2213,7 @@ fn main() { let mut app = App::new("cloudtasks2-beta3") .author("Sebastian Thiel ") - .version("1.0.11+20190618") + .version("1.0.12+20190618") .about("Manages the execution of large numbers of distributed requests.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudtasks2_beta3_cli") .arg(Arg::with_name("url") diff --git a/gen/cloudtasks2_beta3/Cargo.toml b/gen/cloudtasks2_beta3/Cargo.toml index cbd6eac775..78de7e9a7c 100644 --- a/gen/cloudtasks2_beta3/Cargo.toml +++ b/gen/cloudtasks2_beta3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudtasks2_beta3" -version = "1.0.11+20190618" +version = "1.0.12+20190618" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Tasks (protocol v2beta3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudtasks2_beta3" homepage = "https://cloud.google.com/tasks/" -documentation = "https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618" +documentation = "https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618" license = "MIT" keywords = ["cloudtasks", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudtasks2_beta3/LICENSE.md b/gen/cloudtasks2_beta3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudtasks2_beta3/LICENSE.md +++ b/gen/cloudtasks2_beta3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudtasks2_beta3/README.md b/gen/cloudtasks2_beta3/README.md index 313943896e..c628a24e7b 100644 --- a/gen/cloudtasks2_beta3/README.md +++ b/gen/cloudtasks2_beta3/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-cloudtasks2_beta3` library allows access to all features of the *Google Cloud Tasks* service. -This documentation was generated from *Cloud Tasks* crate version *1.0.11+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2beta3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Tasks* crate version *1.0.12+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2beta3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Tasks* *v2_beta3* API can be found at the [official documentation site](https://cloud.google.com/tasks/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.CloudTasks.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.CloudTasks.html) ... * projects - * [*locations get*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationListCall.html), [*locations queues create*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueCreateCall.html), [*locations queues delete*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueDeleteCall.html), [*locations queues get*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueGetCall.html), [*locations queues get iam policy*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueGetIamPolicyCall.html), [*locations queues list*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueListCall.html), [*locations queues patch*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueuePatchCall.html), [*locations queues pause*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueuePauseCall.html), [*locations queues purge*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueuePurgeCall.html), [*locations queues resume*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueResumeCall.html), [*locations queues set iam policy*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueSetIamPolicyCall.html), [*locations queues tasks create*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueTaskCreateCall.html), [*locations queues tasks delete*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueTaskDeleteCall.html), [*locations queues tasks get*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueTaskGetCall.html), [*locations queues tasks list*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueTaskListCall.html), [*locations queues tasks run*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueTaskRunCall.html) and [*locations queues test iam permissions*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueTestIamPermissionCall.html) + * [*locations get*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationListCall.html), [*locations queues create*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueCreateCall.html), [*locations queues delete*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueDeleteCall.html), [*locations queues get*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueGetCall.html), [*locations queues get iam policy*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueGetIamPolicyCall.html), [*locations queues list*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueListCall.html), [*locations queues patch*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueuePatchCall.html), [*locations queues pause*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueuePauseCall.html), [*locations queues purge*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueuePurgeCall.html), [*locations queues resume*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueResumeCall.html), [*locations queues set iam policy*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueSetIamPolicyCall.html), [*locations queues tasks create*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueTaskCreateCall.html), [*locations queues tasks delete*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueTaskDeleteCall.html), [*locations queues tasks get*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueTaskGetCall.html), [*locations queues tasks list*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueTaskListCall.html), [*locations queues tasks run*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueTaskRunCall.html) and [*locations queues test iam permissions*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.ProjectLocationQueueTestIamPermissionCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/struct.CloudTasks.html)** +* **[Hub](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/struct.CloudTasks.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudtasks2_beta3/1.0.11+20190618/google_cloudtasks2_beta3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudtasks2_beta3/1.0.12+20190618/google_cloudtasks2_beta3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudtasks2_beta3/src/lib.rs b/gen/cloudtasks2_beta3/src/lib.rs index 42799fc547..2257a7d926 100644 --- a/gen/cloudtasks2_beta3/src/lib.rs +++ b/gen/cloudtasks2_beta3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Tasks* crate version *1.0.11+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2beta3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Tasks* crate version *1.0.12+20190618*, where *20190618* is the exact revision of the *cloudtasks:v2beta3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Tasks* *v2_beta3* API can be found at the //! [official documentation site](https://cloud.google.com/tasks/). @@ -336,7 +336,7 @@ impl<'a, C, A> CloudTasks CloudTasks { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudtasks.googleapis.com/".to_string(), _root_url: "https://cloudtasks.googleapis.com/".to_string(), } @@ -347,7 +347,7 @@ impl<'a, C, A> CloudTasks } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudtrace1-cli/Cargo.toml b/gen/cloudtrace1-cli/Cargo.toml index 019067d482..768faa0255 100644 --- a/gen/cloudtrace1-cli/Cargo.toml +++ b/gen/cloudtrace1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudtrace1-cli" -version = "1.0.11+20190622" +version = "1.0.12+20190622" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Trace (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudtrace1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudtrace1] path = "../cloudtrace1" -version = "1.0.11+20190622" +version = "1.0.12+20190622" diff --git a/gen/cloudtrace1-cli/LICENSE.md b/gen/cloudtrace1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudtrace1-cli/LICENSE.md +++ b/gen/cloudtrace1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudtrace1-cli/README.md b/gen/cloudtrace1-cli/README.md index 498e336ae6..8e7fa4b755 100644 --- a/gen/cloudtrace1-cli/README.md +++ b/gen/cloudtrace1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Trace* API at revision *20190622*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Trace* API at revision *20190622*. The CLI is at version *1.0.12*. ```bash cloudtrace1 [options] diff --git a/gen/cloudtrace1-cli/mkdocs.yml b/gen/cloudtrace1-cli/mkdocs.yml index 29d05e2e1e..a93919736c 100644 --- a/gen/cloudtrace1-cli/mkdocs.yml +++ b/gen/cloudtrace1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Trace v1.0.11+20190622 +site_name: Cloud Trace v1.0.12+20190622 site_url: http://byron.github.io/google-apis-rs/google-cloudtrace1-cli site_description: A complete library to interact with Cloud Trace (protocol v1) @@ -15,5 +15,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudtrace1-cli/src/cmn.rs b/gen/cloudtrace1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudtrace1-cli/src/cmn.rs +++ b/gen/cloudtrace1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudtrace1-cli/src/main.rs b/gen/cloudtrace1-cli/src/main.rs index c56f77f497..85f470698b 100644 --- a/gen/cloudtrace1-cli/src/main.rs +++ b/gen/cloudtrace1-cli/src/main.rs @@ -452,7 +452,7 @@ fn main() { let mut app = App::new("cloudtrace1") .author("Sebastian Thiel ") - .version("1.0.11+20190622") + .version("1.0.12+20190622") .about("Sends application trace data to Stackdriver Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Trace API directly. If you are looking to instrument your application for Stackdriver Trace, we recommend using OpenCensus. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudtrace1_cli") diff --git a/gen/cloudtrace1/Cargo.toml b/gen/cloudtrace1/Cargo.toml index de27512391..978555d23d 100644 --- a/gen/cloudtrace1/Cargo.toml +++ b/gen/cloudtrace1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudtrace1" -version = "1.0.11+20190622" +version = "1.0.12+20190622" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Trace (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudtrace1" homepage = "https://cloud.google.com/trace" -documentation = "https://docs.rs/google-cloudtrace1/1.0.11+20190622" +documentation = "https://docs.rs/google-cloudtrace1/1.0.12+20190622" license = "MIT" keywords = ["cloudtrace", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudtrace1/LICENSE.md b/gen/cloudtrace1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudtrace1/LICENSE.md +++ b/gen/cloudtrace1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudtrace1/README.md b/gen/cloudtrace1/README.md index c1a92a08b0..bf22777f6e 100644 --- a/gen/cloudtrace1/README.md +++ b/gen/cloudtrace1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-cloudtrace1` library allows access to all features of the *Google Cloud Trace* service. -This documentation was generated from *Cloud Trace* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *cloudtrace:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Trace* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *cloudtrace:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Trace* *v1* API can be found at the [official documentation site](https://cloud.google.com/trace). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/struct.CloudTrace.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/struct.CloudTrace.html) ... * projects - * [*patch traces*](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/struct.ProjectPatchTraceCall.html), [*traces get*](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/struct.ProjectTraceGetCall.html) and [*traces list*](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/struct.ProjectTraceListCall.html) + * [*patch traces*](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/struct.ProjectPatchTraceCall.html), [*traces get*](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/struct.ProjectTraceGetCall.html) and [*traces list*](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/struct.ProjectTraceListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/struct.CloudTrace.html)** +* **[Hub](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/struct.CloudTrace.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -124,17 +124,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -144,29 +144,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudtrace1/1.0.11+20190622/google_cloudtrace1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudtrace1/1.0.12+20190622/google_cloudtrace1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudtrace1/src/lib.rs b/gen/cloudtrace1/src/lib.rs index 3dffd6998b..fadc780a92 100644 --- a/gen/cloudtrace1/src/lib.rs +++ b/gen/cloudtrace1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Trace* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *cloudtrace:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Trace* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *cloudtrace:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Trace* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/trace). @@ -325,7 +325,7 @@ impl<'a, C, A> CloudTrace CloudTrace { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudtrace.googleapis.com/".to_string(), _root_url: "https://cloudtrace.googleapis.com/".to_string(), } @@ -336,7 +336,7 @@ impl<'a, C, A> CloudTrace } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/cloudtrace2-cli/Cargo.toml b/gen/cloudtrace2-cli/Cargo.toml index 4241cff02a..831f5b460e 100644 --- a/gen/cloudtrace2-cli/Cargo.toml +++ b/gen/cloudtrace2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-cloudtrace2-cli" -version = "1.0.11+20190622" +version = "1.0.12+20190622" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Trace (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudtrace2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-cloudtrace2] path = "../cloudtrace2" -version = "1.0.11+20190622" +version = "1.0.12+20190622" diff --git a/gen/cloudtrace2-cli/LICENSE.md b/gen/cloudtrace2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudtrace2-cli/LICENSE.md +++ b/gen/cloudtrace2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudtrace2-cli/README.md b/gen/cloudtrace2-cli/README.md index f6784a4348..eab961fd6a 100644 --- a/gen/cloudtrace2-cli/README.md +++ b/gen/cloudtrace2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Trace* API at revision *20190622*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Trace* API at revision *20190622*. The CLI is at version *1.0.12*. ```bash cloudtrace2 [options] diff --git a/gen/cloudtrace2-cli/mkdocs.yml b/gen/cloudtrace2-cli/mkdocs.yml index 1f9001d111..412cab63b7 100644 --- a/gen/cloudtrace2-cli/mkdocs.yml +++ b/gen/cloudtrace2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Trace v1.0.11+20190622 +site_name: Cloud Trace v1.0.12+20190622 site_url: http://byron.github.io/google-apis-rs/google-cloudtrace2-cli site_description: A complete library to interact with Cloud Trace (protocol v2) @@ -14,5 +14,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/cloudtrace2-cli/src/cmn.rs b/gen/cloudtrace2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/cloudtrace2-cli/src/cmn.rs +++ b/gen/cloudtrace2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/cloudtrace2-cli/src/main.rs b/gen/cloudtrace2-cli/src/main.rs index 67cbfac403..46f4b195b1 100644 --- a/gen/cloudtrace2-cli/src/main.rs +++ b/gen/cloudtrace2-cli/src/main.rs @@ -406,7 +406,7 @@ fn main() { let mut app = App::new("cloudtrace2") .author("Sebastian Thiel ") - .version("1.0.11+20190622") + .version("1.0.12+20190622") .about("Sends application trace data to Stackdriver Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Trace API directly. If you are looking to instrument your application for Stackdriver Trace, we recommend using OpenCensus. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_cloudtrace2_cli") diff --git a/gen/cloudtrace2/Cargo.toml b/gen/cloudtrace2/Cargo.toml index 08fd7fa419..32bb54521a 100644 --- a/gen/cloudtrace2/Cargo.toml +++ b/gen/cloudtrace2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-cloudtrace2" -version = "1.0.11+20190622" +version = "1.0.12+20190622" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Trace (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/cloudtrace2" homepage = "https://cloud.google.com/trace" -documentation = "https://docs.rs/google-cloudtrace2/1.0.11+20190622" +documentation = "https://docs.rs/google-cloudtrace2/1.0.12+20190622" license = "MIT" keywords = ["cloudtrace", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/cloudtrace2/LICENSE.md b/gen/cloudtrace2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/cloudtrace2/LICENSE.md +++ b/gen/cloudtrace2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/cloudtrace2/README.md b/gen/cloudtrace2/README.md index 2ad2f1b724..28d5df54fc 100644 --- a/gen/cloudtrace2/README.md +++ b/gen/cloudtrace2/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-cloudtrace2` library allows access to all features of the *Google Cloud Trace* service. -This documentation was generated from *Cloud Trace* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *cloudtrace:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Trace* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *cloudtrace:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Trace* *v2* API can be found at the [official documentation site](https://cloud.google.com/trace). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/struct.CloudTrace.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/struct.CloudTrace.html) ... * projects - * [*traces batch write*](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/struct.ProjectTraceBatchWriteCall.html) and [*traces spans create span*](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/struct.ProjectTraceSpanCreateSpanCall.html) + * [*traces batch write*](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/struct.ProjectTraceBatchWriteCall.html) and [*traces spans create span*](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/struct.ProjectTraceSpanCreateSpanCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/struct.CloudTrace.html)** +* **[Hub](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/struct.CloudTrace.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.Part.html)** + * **[Parts](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -130,17 +130,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-cloudtrace2/1.0.11+20190622/google_cloudtrace2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-cloudtrace2/1.0.12+20190622/google_cloudtrace2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/cloudtrace2/src/lib.rs b/gen/cloudtrace2/src/lib.rs index 1bc52be5e0..438fa90b24 100644 --- a/gen/cloudtrace2/src/lib.rs +++ b/gen/cloudtrace2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Trace* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *cloudtrace:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Trace* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *cloudtrace:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Trace* *v2* API can be found at the //! [official documentation site](https://cloud.google.com/trace). @@ -333,7 +333,7 @@ impl<'a, C, A> CloudTrace CloudTrace { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://cloudtrace.googleapis.com/".to_string(), _root_url: "https://cloudtrace.googleapis.com/".to_string(), } @@ -344,7 +344,7 @@ impl<'a, C, A> CloudTrace } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/clouduseraccountsvm_beta-cli/Cargo.toml b/gen/clouduseraccountsvm_beta-cli/Cargo.toml index d1eff381de..3c293ab90f 100644 --- a/gen/clouduseraccountsvm_beta-cli/Cargo.toml +++ b/gen/clouduseraccountsvm_beta-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-clouduseraccountsvm_beta-cli" -version = "1.0.11+20160316" +version = "1.0.12+20160316" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud User Accounts (protocol vm_beta)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/clouduseraccountsvm_beta-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-clouduseraccountsvm_beta] path = "../clouduseraccountsvm_beta" -version = "1.0.11+20160316" +version = "1.0.12+20160316" diff --git a/gen/clouduseraccountsvm_beta-cli/LICENSE.md b/gen/clouduseraccountsvm_beta-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/clouduseraccountsvm_beta-cli/LICENSE.md +++ b/gen/clouduseraccountsvm_beta-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/clouduseraccountsvm_beta-cli/README.md b/gen/clouduseraccountsvm_beta-cli/README.md index f29b98bf7b..1c197850e8 100644 --- a/gen/clouduseraccountsvm_beta-cli/README.md +++ b/gen/clouduseraccountsvm_beta-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud User Accounts* API at revision *20160316*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud User Accounts* API at revision *20160316*. The CLI is at version *1.0.12*. ```bash clouduseraccountsvm-beta [options] diff --git a/gen/clouduseraccountsvm_beta-cli/mkdocs.yml b/gen/clouduseraccountsvm_beta-cli/mkdocs.yml index 77a6901401..39100700cb 100644 --- a/gen/clouduseraccountsvm_beta-cli/mkdocs.yml +++ b/gen/clouduseraccountsvm_beta-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud User Accounts v1.0.11+20160316 +site_name: Cloud User Accounts v1.0.12+20160316 site_url: http://byron.github.io/google-apis-rs/google-clouduseraccountsvm_beta-cli site_description: A complete library to interact with Cloud User Accounts (protocol vm_beta) @@ -29,5 +29,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/clouduseraccountsvm_beta-cli/src/cmn.rs b/gen/clouduseraccountsvm_beta-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/clouduseraccountsvm_beta-cli/src/cmn.rs +++ b/gen/clouduseraccountsvm_beta-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/clouduseraccountsvm_beta-cli/src/main.rs b/gen/clouduseraccountsvm_beta-cli/src/main.rs index 4f46b66e38..99eb9021d9 100644 --- a/gen/clouduseraccountsvm_beta-cli/src/main.rs +++ b/gen/clouduseraccountsvm_beta-cli/src/main.rs @@ -1840,7 +1840,7 @@ fn main() { let mut app = App::new("clouduseraccountsvm-beta") .author("Sebastian Thiel ") - .version("1.0.11+20160316") + .version("1.0.12+20160316") .about("Creates and manages users and groups for accessing Google Compute Engine virtual machines.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_clouduseraccountsvm_beta_cli") .arg(Arg::with_name("url") diff --git a/gen/clouduseraccountsvm_beta/Cargo.toml b/gen/clouduseraccountsvm_beta/Cargo.toml index b5e9e65016..d3ba14c0dd 100644 --- a/gen/clouduseraccountsvm_beta/Cargo.toml +++ b/gen/clouduseraccountsvm_beta/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-clouduseraccountsvm_beta" -version = "1.0.11+20160316" +version = "1.0.12+20160316" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud User Accounts (protocol vm_beta)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/clouduseraccountsvm_beta" homepage = "https://cloud.google.com/compute/docs/access/user-accounts/api/latest/" -documentation = "https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316" +documentation = "https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316" license = "MIT" keywords = ["clouduseraccounts", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/clouduseraccountsvm_beta/LICENSE.md b/gen/clouduseraccountsvm_beta/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/clouduseraccountsvm_beta/LICENSE.md +++ b/gen/clouduseraccountsvm_beta/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/clouduseraccountsvm_beta/README.md b/gen/clouduseraccountsvm_beta/README.md index 781b726933..3ce6ae4b49 100644 --- a/gen/clouduseraccountsvm_beta/README.md +++ b/gen/clouduseraccountsvm_beta/README.md @@ -5,22 +5,22 @@ DO NOT EDIT ! --> The `google-clouduseraccountsvm_beta` library allows access to all features of the *Google Cloud User Accounts* service. -This documentation was generated from *Cloud User Accounts* crate version *1.0.11+20160316*, where *20160316* is the exact revision of the *clouduseraccounts:vm_beta* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud User Accounts* crate version *1.0.12+20160316*, where *20160316* is the exact revision of the *clouduseraccounts:vm_beta* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud User Accounts* *vm_beta* API can be found at the [official documentation site](https://cloud.google.com/compute/docs/access/user-accounts/api/latest/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.CloudUserAccounts.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.CloudUserAccounts.html) ... * global accounts operations - * [*delete*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.GlobalAccountsOperationDeleteCall.html), [*get*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.GlobalAccountsOperationGetCall.html) and [*list*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.GlobalAccountsOperationListCall.html) -* [groups](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.Group.html) - * [*add member*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.GroupAddMemberCall.html), [*delete*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.GroupDeleteCall.html), [*get*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.GroupGetCall.html), [*insert*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.GroupInsertCall.html), [*list*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.GroupListCall.html) and [*remove member*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.GroupRemoveMemberCall.html) + * [*delete*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.GlobalAccountsOperationDeleteCall.html), [*get*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.GlobalAccountsOperationGetCall.html) and [*list*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.GlobalAccountsOperationListCall.html) +* [groups](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.Group.html) + * [*add member*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.GroupAddMemberCall.html), [*delete*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.GroupDeleteCall.html), [*get*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.GroupGetCall.html), [*insert*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.GroupInsertCall.html), [*list*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.GroupListCall.html) and [*remove member*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.GroupRemoveMemberCall.html) * linux - * [*get authorized keys view*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.LinuxGetAuthorizedKeysViewCall.html) and [*get linux account views*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.LinuxGetLinuxAccountViewCall.html) -* [users](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.User.html) - * [*add public key*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.UserAddPublicKeyCall.html), [*delete*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.UserDeleteCall.html), [*get*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.UserGetCall.html), [*insert*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.UserInsertCall.html), [*list*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.UserListCall.html) and [*remove public key*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.UserRemovePublicKeyCall.html) + * [*get authorized keys view*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.LinuxGetAuthorizedKeysViewCall.html) and [*get linux account views*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.LinuxGetLinuxAccountViewCall.html) +* [users](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.User.html) + * [*add public key*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.UserAddPublicKeyCall.html), [*delete*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.UserDeleteCall.html), [*get*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.UserGetCall.html), [*insert*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.UserInsertCall.html), [*list*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.UserListCall.html) and [*remove public key*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.UserRemovePublicKeyCall.html) @@ -29,17 +29,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/struct.CloudUserAccounts.html)** +* **[Hub](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/struct.CloudUserAccounts.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.Part.html)** + * **[Parts](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -144,17 +144,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -164,29 +164,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.RequestValue.html) and -[decodable](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.RequestValue.html) and +[decodable](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-clouduseraccountsvm_beta/1.0.11+20160316/google_clouduseraccountsvm_beta/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-clouduseraccountsvm_beta/1.0.12+20160316/google_clouduseraccountsvm_beta/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/clouduseraccountsvm_beta/src/lib.rs b/gen/clouduseraccountsvm_beta/src/lib.rs index fd1506f6df..61afe08bb0 100644 --- a/gen/clouduseraccountsvm_beta/src/lib.rs +++ b/gen/clouduseraccountsvm_beta/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud User Accounts* crate version *1.0.11+20160316*, where *20160316* is the exact revision of the *clouduseraccounts:vm_beta* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud User Accounts* crate version *1.0.12+20160316*, where *20160316* is the exact revision of the *clouduseraccounts:vm_beta* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud User Accounts* *vm_beta* API can be found at the //! [official documentation site](https://cloud.google.com/compute/docs/access/user-accounts/api/latest/). @@ -355,7 +355,7 @@ impl<'a, C, A> CloudUserAccounts CloudUserAccounts { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/clouduseraccounts/vm_beta/projects/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -375,7 +375,7 @@ impl<'a, C, A> CloudUserAccounts } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/commentanalyzer1_alpha1-cli/Cargo.toml b/gen/commentanalyzer1_alpha1-cli/Cargo.toml index f48cadd167..80ad2748aa 100644 --- a/gen/commentanalyzer1_alpha1-cli/Cargo.toml +++ b/gen/commentanalyzer1_alpha1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-commentanalyzer1_alpha1-cli" -version = "1.0.11+20190616" +version = "1.0.12+20190616" authors = ["Sebastian Thiel "] description = "A complete library to interact with Comment Analyzer (protocol v1alpha1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/commentanalyzer1_alpha1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-commentanalyzer1_alpha1] path = "../commentanalyzer1_alpha1" -version = "1.0.11+20190616" +version = "1.0.12+20190616" diff --git a/gen/commentanalyzer1_alpha1-cli/LICENSE.md b/gen/commentanalyzer1_alpha1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/commentanalyzer1_alpha1-cli/LICENSE.md +++ b/gen/commentanalyzer1_alpha1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/commentanalyzer1_alpha1-cli/README.md b/gen/commentanalyzer1_alpha1-cli/README.md index 8a06b699ec..ba8f19c544 100644 --- a/gen/commentanalyzer1_alpha1-cli/README.md +++ b/gen/commentanalyzer1_alpha1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Comment Analyzer* API at revision *20190616*. The CLI is at version *1.0.11*. +This documentation was generated from the *Comment Analyzer* API at revision *20190616*. The CLI is at version *1.0.12*. ```bash commentanalyzer1-alpha1 [options] diff --git a/gen/commentanalyzer1_alpha1-cli/mkdocs.yml b/gen/commentanalyzer1_alpha1-cli/mkdocs.yml index 886a54e19b..3d0629c83b 100644 --- a/gen/commentanalyzer1_alpha1-cli/mkdocs.yml +++ b/gen/commentanalyzer1_alpha1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Comment Analyzer v1.0.11+20190616 +site_name: Comment Analyzer v1.0.12+20190616 site_url: http://byron.github.io/google-apis-rs/google-commentanalyzer1_alpha1-cli site_description: A complete library to interact with Comment Analyzer (protocol v1alpha1) @@ -14,5 +14,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/commentanalyzer1_alpha1-cli/src/cmn.rs b/gen/commentanalyzer1_alpha1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/commentanalyzer1_alpha1-cli/src/cmn.rs +++ b/gen/commentanalyzer1_alpha1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/commentanalyzer1_alpha1-cli/src/main.rs b/gen/commentanalyzer1_alpha1-cli/src/main.rs index 33df0061f7..8af9e1e60b 100644 --- a/gen/commentanalyzer1_alpha1-cli/src/main.rs +++ b/gen/commentanalyzer1_alpha1-cli/src/main.rs @@ -391,7 +391,7 @@ fn main() { let mut app = App::new("commentanalyzer1-alpha1") .author("Sebastian Thiel ") - .version("1.0.11+20190616") + .version("1.0.12+20190616") .about("The Perspective Comment Analyzer API provides information about the potential impact of a comment on a conversation (e.g. it can provide a score for the \"toxicity\" of a comment). Users can leverage the \"SuggestCommentScore\" method to submit corrections to improve Perspective over time. Users can set the \"doNotStore\" flag to ensure that all submitted comments are automatically deleted after scores are returned.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_commentanalyzer1_alpha1_cli") .arg(Arg::with_name("url") diff --git a/gen/commentanalyzer1_alpha1/Cargo.toml b/gen/commentanalyzer1_alpha1/Cargo.toml index 8610876acb..ebad77ca37 100644 --- a/gen/commentanalyzer1_alpha1/Cargo.toml +++ b/gen/commentanalyzer1_alpha1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-commentanalyzer1_alpha1" -version = "1.0.11+20190616" +version = "1.0.12+20190616" authors = ["Sebastian Thiel "] description = "A complete library to interact with Comment Analyzer (protocol v1alpha1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/commentanalyzer1_alpha1" homepage = "https://github.com/conversationai/perspectiveapi/blob/master/README.md" -documentation = "https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616" +documentation = "https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616" license = "MIT" keywords = ["commentanalyzer", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/commentanalyzer1_alpha1/LICENSE.md b/gen/commentanalyzer1_alpha1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/commentanalyzer1_alpha1/LICENSE.md +++ b/gen/commentanalyzer1_alpha1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/commentanalyzer1_alpha1/README.md b/gen/commentanalyzer1_alpha1/README.md index b14c5d6bc5..232d942edd 100644 --- a/gen/commentanalyzer1_alpha1/README.md +++ b/gen/commentanalyzer1_alpha1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-commentanalyzer1_alpha1` library allows access to all features of the *Google Comment Analyzer* service. -This documentation was generated from *Comment Analyzer* crate version *1.0.11+20190616*, where *20190616* is the exact revision of the *commentanalyzer:v1alpha1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Comment Analyzer* crate version *1.0.12+20190616*, where *20190616* is the exact revision of the *commentanalyzer:v1alpha1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Comment Analyzer* *v1_alpha1* API can be found at the [official documentation site](https://github.com/conversationai/perspectiveapi/blob/master/README.md). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/struct.CommentAnalyzer.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/struct.CommentAnalyzer.html) ... * comments - * [*analyze*](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/struct.CommentAnalyzeCall.html) and [*suggestscore*](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/struct.CommentSuggestscoreCall.html) + * [*analyze*](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/struct.CommentAnalyzeCall.html) and [*suggestscore*](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/struct.CommentSuggestscoreCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/struct.CommentAnalyzer.html)** +* **[Hub](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/struct.CommentAnalyzer.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.Part.html)** + * **[Parts](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -130,17 +130,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-commentanalyzer1_alpha1/1.0.11+20190616/google_commentanalyzer1_alpha1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-commentanalyzer1_alpha1/1.0.12+20190616/google_commentanalyzer1_alpha1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/commentanalyzer1_alpha1/src/lib.rs b/gen/commentanalyzer1_alpha1/src/lib.rs index 3b2b275099..3afcf223f5 100644 --- a/gen/commentanalyzer1_alpha1/src/lib.rs +++ b/gen/commentanalyzer1_alpha1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Comment Analyzer* crate version *1.0.11+20190616*, where *20190616* is the exact revision of the *commentanalyzer:v1alpha1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Comment Analyzer* crate version *1.0.12+20190616*, where *20190616* is the exact revision of the *commentanalyzer:v1alpha1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Comment Analyzer* *v1_alpha1* API can be found at the //! [official documentation site](https://github.com/conversationai/perspectiveapi/blob/master/README.md). @@ -329,7 +329,7 @@ impl<'a, C, A> CommentAnalyzer CommentAnalyzer { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://commentanalyzer.googleapis.com/".to_string(), _root_url: "https://commentanalyzer.googleapis.com/".to_string(), } @@ -340,7 +340,7 @@ impl<'a, C, A> CommentAnalyzer } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/composer1-cli/Cargo.toml b/gen/composer1-cli/Cargo.toml index 801f1191f4..6858f9ecba 100644 --- a/gen/composer1-cli/Cargo.toml +++ b/gen/composer1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-composer1-cli" -version = "1.0.11+20190613" +version = "1.0.12+20190613" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Composer (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/composer1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-composer1] path = "../composer1" -version = "1.0.11+20190613" +version = "1.0.12+20190613" diff --git a/gen/composer1-cli/LICENSE.md b/gen/composer1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/composer1-cli/LICENSE.md +++ b/gen/composer1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/composer1-cli/README.md b/gen/composer1-cli/README.md index fd55ebc11a..fd5e1a5be4 100644 --- a/gen/composer1-cli/README.md +++ b/gen/composer1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Composer* API at revision *20190613*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Composer* API at revision *20190613*. The CLI is at version *1.0.12*. ```bash composer1 [options] diff --git a/gen/composer1-cli/mkdocs.yml b/gen/composer1-cli/mkdocs.yml index 36af4842e3..004e22d7aa 100644 --- a/gen/composer1-cli/mkdocs.yml +++ b/gen/composer1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Composer v1.0.11+20190613 +site_name: Cloud Composer v1.0.12+20190613 site_url: http://byron.github.io/google-apis-rs/google-composer1-cli site_description: A complete library to interact with Cloud Composer (protocol v1) @@ -21,5 +21,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/composer1-cli/src/cmn.rs b/gen/composer1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/composer1-cli/src/cmn.rs +++ b/gen/composer1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/composer1-cli/src/main.rs b/gen/composer1-cli/src/main.rs index 74a28c8743..0662c9ebd8 100644 --- a/gen/composer1-cli/src/main.rs +++ b/gen/composer1-cli/src/main.rs @@ -1014,7 +1014,7 @@ fn main() { let mut app = App::new("composer1") .author("Sebastian Thiel ") - .version("1.0.11+20190613") + .version("1.0.12+20190613") .about("Manages Apache Airflow environments on Google Cloud Platform.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_composer1_cli") .arg(Arg::with_name("url") diff --git a/gen/composer1/Cargo.toml b/gen/composer1/Cargo.toml index fb043cf9ff..d0d442d38b 100644 --- a/gen/composer1/Cargo.toml +++ b/gen/composer1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-composer1" -version = "1.0.11+20190613" +version = "1.0.12+20190613" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Composer (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/composer1" homepage = "https://cloud.google.com/composer/" -documentation = "https://docs.rs/google-composer1/1.0.11+20190613" +documentation = "https://docs.rs/google-composer1/1.0.12+20190613" license = "MIT" keywords = ["composer", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/composer1/LICENSE.md b/gen/composer1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/composer1/LICENSE.md +++ b/gen/composer1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/composer1/README.md b/gen/composer1/README.md index e39daf3859..81c4c3fab3 100644 --- a/gen/composer1/README.md +++ b/gen/composer1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-composer1` library allows access to all features of the *Google Cloud Composer* service. -This documentation was generated from *Cloud Composer* crate version *1.0.11+20190613*, where *20190613* is the exact revision of the *composer:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Composer* crate version *1.0.12+20190613*, where *20190613* is the exact revision of the *composer:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Composer* *v1* API can be found at the [official documentation site](https://cloud.google.com/composer/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/struct.CloudComposer.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/struct.CloudComposer.html) ... * projects - * [*locations environments create*](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/struct.ProjectLocationEnvironmentCreateCall.html), [*locations environments delete*](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/struct.ProjectLocationEnvironmentDeleteCall.html), [*locations environments get*](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/struct.ProjectLocationEnvironmentGetCall.html), [*locations environments list*](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/struct.ProjectLocationEnvironmentListCall.html), [*locations environments patch*](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/struct.ProjectLocationEnvironmentPatchCall.html), [*locations image versions list*](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/struct.ProjectLocationImageVersionListCall.html), [*locations operations delete*](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/struct.ProjectLocationOperationGetCall.html) and [*locations operations list*](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/struct.ProjectLocationOperationListCall.html) + * [*locations environments create*](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/struct.ProjectLocationEnvironmentCreateCall.html), [*locations environments delete*](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/struct.ProjectLocationEnvironmentDeleteCall.html), [*locations environments get*](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/struct.ProjectLocationEnvironmentGetCall.html), [*locations environments list*](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/struct.ProjectLocationEnvironmentListCall.html), [*locations environments patch*](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/struct.ProjectLocationEnvironmentPatchCall.html), [*locations image versions list*](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/struct.ProjectLocationImageVersionListCall.html), [*locations operations delete*](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/struct.ProjectLocationOperationGetCall.html) and [*locations operations list*](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/struct.ProjectLocationOperationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/struct.CloudComposer.html)** +* **[Hub](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/struct.CloudComposer.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.Part.html)** + * **[Parts](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -134,17 +134,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -154,29 +154,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-composer1/1.0.11+20190613/google_composer1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-composer1/1.0.12+20190613/google_composer1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/composer1/src/lib.rs b/gen/composer1/src/lib.rs index 3d029795bf..baf8c330a2 100644 --- a/gen/composer1/src/lib.rs +++ b/gen/composer1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Composer* crate version *1.0.11+20190613*, where *20190613* is the exact revision of the *composer:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Composer* crate version *1.0.12+20190613*, where *20190613* is the exact revision of the *composer:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Composer* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/composer/). @@ -334,7 +334,7 @@ impl<'a, C, A> CloudComposer CloudComposer { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://composer.googleapis.com/".to_string(), _root_url: "https://composer.googleapis.com/".to_string(), } @@ -345,7 +345,7 @@ impl<'a, C, A> CloudComposer } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/compute1-cli/Cargo.toml b/gen/compute1-cli/Cargo.toml index c0f7f6aefe..9883d4ea00 100644 --- a/gen/compute1-cli/Cargo.toml +++ b/gen/compute1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-compute1-cli" -version = "1.0.11+20190618" +version = "1.0.12+20190618" authors = ["Sebastian Thiel "] description = "A complete library to interact with compute (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/compute1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-compute1] path = "../compute1" -version = "1.0.11+20190618" +version = "1.0.12+20190618" diff --git a/gen/compute1-cli/LICENSE.md b/gen/compute1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/compute1-cli/LICENSE.md +++ b/gen/compute1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/compute1-cli/README.md b/gen/compute1-cli/README.md index 4005f25338..f3cca095a5 100644 --- a/gen/compute1-cli/README.md +++ b/gen/compute1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *compute* API at revision *20190618*. The CLI is at version *1.0.11*. +This documentation was generated from the *compute* API at revision *20190618*. The CLI is at version *1.0.12*. ```bash compute1 [options] diff --git a/gen/compute1-cli/mkdocs.yml b/gen/compute1-cli/mkdocs.yml index 6a21d4910a..fbf8581171 100644 --- a/gen/compute1-cli/mkdocs.yml +++ b/gen/compute1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: compute v1.0.11+20190618 +site_name: compute v1.0.12+20190618 site_url: http://byron.github.io/google-apis-rs/google-compute1-cli site_description: A complete library to interact with compute (protocol v1) @@ -443,5 +443,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/compute1-cli/src/cmn.rs b/gen/compute1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/compute1-cli/src/cmn.rs +++ b/gen/compute1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/compute1-cli/src/main.rs b/gen/compute1-cli/src/main.rs index 6a978ef1a6..6ef83e1593 100644 --- a/gen/compute1-cli/src/main.rs +++ b/gen/compute1-cli/src/main.rs @@ -48319,7 +48319,7 @@ fn main() { let mut app = App::new("compute1") .author("Sebastian Thiel ") - .version("1.0.11+20190618") + .version("1.0.12+20190618") .about("Creates and runs virtual machines on Google Cloud Platform.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_compute1_cli") .arg(Arg::with_name("url") diff --git a/gen/compute1/Cargo.toml b/gen/compute1/Cargo.toml index f37dee58ff..e2d9d7a420 100644 --- a/gen/compute1/Cargo.toml +++ b/gen/compute1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-compute1" -version = "1.0.11+20190618" +version = "1.0.12+20190618" authors = ["Sebastian Thiel "] description = "A complete library to interact with compute (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/compute1" homepage = "https://developers.google.com/compute/docs/reference/latest/" -documentation = "https://docs.rs/google-compute1/1.0.11+20190618" +documentation = "https://docs.rs/google-compute1/1.0.12+20190618" license = "MIT" keywords = ["compute", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/compute1/LICENSE.md b/gen/compute1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/compute1/LICENSE.md +++ b/gen/compute1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/compute1/README.md b/gen/compute1/README.md index d27fed1c0d..5743f5d821 100644 --- a/gen/compute1/README.md +++ b/gen/compute1/README.md @@ -5,136 +5,136 @@ DO NOT EDIT ! --> The `google-compute1` library allows access to all features of the *Google compute* service. -This documentation was generated from *compute* crate version *1.0.11+20190618*, where *20190618* is the exact revision of the *compute:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *compute* crate version *1.0.12+20190618*, where *20190618* is the exact revision of the *compute:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *compute* *v1* API can be found at the [official documentation site](https://developers.google.com/compute/docs/reference/latest/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Compute.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Compute.html) ... -* [accelerator types](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AcceleratorType.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AcceleratorTypeAggregatedListCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AcceleratorTypeGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AcceleratorTypeListCall.html) +* [accelerator types](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AcceleratorType.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AcceleratorTypeAggregatedListCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AcceleratorTypeGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AcceleratorTypeListCall.html) * addresses - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AddresseAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AddresseDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AddresseGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AddresseInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AddresseListCall.html) -* [autoscalers](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Autoscaler.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AutoscalerAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AutoscalerDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AutoscalerGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AutoscalerInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AutoscalerListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AutoscalerPatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.AutoscalerUpdateCall.html) -* [backend buckets](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendBucket.html) - * [*add signed url key*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendBucketAddSignedUrlKeyCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendBucketDeleteCall.html), [*delete signed url key*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendBucketDeleteSignedUrlKeyCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendBucketGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendBucketInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendBucketListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendBucketPatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendBucketUpdateCall.html) -* [backend services](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendService.html) - * [*add signed url key*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendServiceAddSignedUrlKeyCall.html), [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendServiceAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendServiceDeleteCall.html), [*delete signed url key*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendServiceDeleteSignedUrlKeyCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendServiceGetCall.html), [*get health*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendServiceGetHealthCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendServiceInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendServiceListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendServicePatchCall.html), [*set security policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendServiceSetSecurityPolicyCall.html) and [*update*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.BackendServiceUpdateCall.html) -* [disk types](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskType.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskTypeAggregatedListCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskTypeGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskTypeListCall.html) -* [disks](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Disk.html) - * [*add resource policies*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskAddResourcePolicyCall.html), [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskAggregatedListCall.html), [*create snapshot*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskCreateSnapshotCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskListCall.html), [*remove resource policies*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskRemoveResourcePolicyCall.html), [*resize*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskResizeCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskSetIamPolicyCall.html), [*set labels*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskSetLabelCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.DiskTestIamPermissionCall.html) -* [firewalls](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Firewall.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.FirewallDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.FirewallGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.FirewallInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.FirewallListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.FirewallPatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.FirewallUpdateCall.html) -* [forwarding rules](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ForwardingRule.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ForwardingRuleAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ForwardingRuleDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ForwardingRuleGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ForwardingRuleInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ForwardingRuleListCall.html) and [*set target*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ForwardingRuleSetTargetCall.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AddresseAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AddresseDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AddresseGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AddresseInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AddresseListCall.html) +* [autoscalers](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Autoscaler.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AutoscalerAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AutoscalerDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AutoscalerGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AutoscalerInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AutoscalerListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AutoscalerPatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.AutoscalerUpdateCall.html) +* [backend buckets](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendBucket.html) + * [*add signed url key*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendBucketAddSignedUrlKeyCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendBucketDeleteCall.html), [*delete signed url key*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendBucketDeleteSignedUrlKeyCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendBucketGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendBucketInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendBucketListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendBucketPatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendBucketUpdateCall.html) +* [backend services](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendService.html) + * [*add signed url key*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendServiceAddSignedUrlKeyCall.html), [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendServiceAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendServiceDeleteCall.html), [*delete signed url key*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendServiceDeleteSignedUrlKeyCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendServiceGetCall.html), [*get health*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendServiceGetHealthCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendServiceInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendServiceListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendServicePatchCall.html), [*set security policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendServiceSetSecurityPolicyCall.html) and [*update*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.BackendServiceUpdateCall.html) +* [disk types](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskType.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskTypeAggregatedListCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskTypeGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskTypeListCall.html) +* [disks](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Disk.html) + * [*add resource policies*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskAddResourcePolicyCall.html), [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskAggregatedListCall.html), [*create snapshot*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskCreateSnapshotCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskListCall.html), [*remove resource policies*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskRemoveResourcePolicyCall.html), [*resize*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskResizeCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskSetIamPolicyCall.html), [*set labels*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskSetLabelCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.DiskTestIamPermissionCall.html) +* [firewalls](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Firewall.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.FirewallDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.FirewallGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.FirewallInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.FirewallListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.FirewallPatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.FirewallUpdateCall.html) +* [forwarding rules](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ForwardingRule.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ForwardingRuleAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ForwardingRuleDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ForwardingRuleGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ForwardingRuleInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ForwardingRuleListCall.html) and [*set target*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ForwardingRuleSetTargetCall.html) * global addresses - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.GlobalAddresseDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.GlobalAddresseGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.GlobalAddresseInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.GlobalAddresseListCall.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.GlobalAddresseDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.GlobalAddresseGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.GlobalAddresseInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.GlobalAddresseListCall.html) * global forwarding rules - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.GlobalForwardingRuleDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.GlobalForwardingRuleGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.GlobalForwardingRuleInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.GlobalForwardingRuleListCall.html) and [*set target*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.GlobalForwardingRuleSetTargetCall.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.GlobalForwardingRuleDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.GlobalForwardingRuleGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.GlobalForwardingRuleInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.GlobalForwardingRuleListCall.html) and [*set target*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.GlobalForwardingRuleSetTargetCall.html) * global operations - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.GlobalOperationAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.GlobalOperationDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.GlobalOperationGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.GlobalOperationListCall.html) -* [health checks](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HealthCheck.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HealthCheckDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HealthCheckGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HealthCheckInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HealthCheckListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HealthCheckPatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HealthCheckUpdateCall.html) -* [http health checks](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HttpHealthCheck.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HttpHealthCheckDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HttpHealthCheckGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HttpHealthCheckInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HttpHealthCheckListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HttpHealthCheckPatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HttpHealthCheckUpdateCall.html) -* [https health checks](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HttpsHealthCheck.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HttpsHealthCheckDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HttpsHealthCheckGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HttpsHealthCheckInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HttpsHealthCheckListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HttpsHealthCheckPatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.HttpsHealthCheckUpdateCall.html) -* [images](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Image.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ImageDeleteCall.html), [*deprecate*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ImageDeprecateCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ImageGetCall.html), [*get from family*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ImageGetFromFamilyCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ImageGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ImageInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ImageListCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ImageSetIamPolicyCall.html), [*set labels*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ImageSetLabelCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ImageTestIamPermissionCall.html) -* [instance group managers](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupManager.html) - * [*abandon instances*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupManagerAbandonInstanceCall.html), [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupManagerAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupManagerDeleteCall.html), [*delete instances*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupManagerDeleteInstanceCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupManagerGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupManagerInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupManagerListCall.html), [*list managed instances*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupManagerListManagedInstanceCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupManagerPatchCall.html), [*recreate instances*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupManagerRecreateInstanceCall.html), [*resize*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupManagerResizeCall.html), [*set instance template*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupManagerSetInstanceTemplateCall.html) and [*set target pools*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupManagerSetTargetPoolCall.html) -* [instance groups](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroup.html) - * [*add instances*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupAddInstanceCall.html), [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupListCall.html), [*list instances*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupListInstanceCall.html), [*remove instances*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupRemoveInstanceCall.html) and [*set named ports*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGroupSetNamedPortCall.html) -* [instance templates](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceTemplate.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceTemplateDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceTemplateGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceTemplateGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceTemplateInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceTemplateListCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceTemplateSetIamPolicyCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceTemplateTestIamPermissionCall.html) -* [instances](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Instance.html) - * [*add access config*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceAddAccessConfigCall.html), [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceAggregatedListCall.html), [*attach disk*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceAttachDiskCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceDeleteCall.html), [*delete access config*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceDeleteAccessConfigCall.html), [*detach disk*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceDetachDiskCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGetCall.html), [*get guest attributes*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGetGuestAttributeCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGetIamPolicyCall.html), [*get serial port output*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGetSerialPortOutputCall.html), [*get shielded instance identity*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceGetShieldedInstanceIdentityCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceListCall.html), [*list referrers*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceListReferrerCall.html), [*reset*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceResetCall.html), [*set deletion protection*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceSetDeletionProtectionCall.html), [*set disk auto delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceSetDiskAutoDeleteCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceSetIamPolicyCall.html), [*set labels*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceSetLabelCall.html), [*set machine resources*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceSetMachineResourceCall.html), [*set machine type*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceSetMachineTypeCall.html), [*set metadata*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceSetMetadataCall.html), [*set min cpu platform*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceSetMinCpuPlatformCall.html), [*set scheduling*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceSetSchedulingCall.html), [*set service account*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceSetServiceAccountCall.html), [*set shielded instance integrity policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceSetShieldedInstanceIntegrityPolicyCall.html), [*set tags*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceSetTagCall.html), [*simulate maintenance event*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceSimulateMaintenanceEventCall.html), [*start*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceStartCall.html), [*start with encryption key*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceStartWithEncryptionKeyCall.html), [*stop*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceStopCall.html), [*test iam permissions*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceTestIamPermissionCall.html), [*update access config*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceUpdateAccessConfigCall.html), [*update network interface*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceUpdateNetworkInterfaceCall.html) and [*update shielded instance config*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InstanceUpdateShieldedInstanceConfigCall.html) -* [interconnect attachments](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectAttachment.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectAttachmentAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectAttachmentDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectAttachmentGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectAttachmentInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectAttachmentListCall.html) and [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectAttachmentPatchCall.html) -* [interconnect locations](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectLocation.html) - * [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectLocationGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectLocationListCall.html) -* [interconnects](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Interconnect.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectGetCall.html), [*get diagnostics*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectGetDiagnosticCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectListCall.html) and [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.InterconnectPatchCall.html) -* [license codes](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.LicenseCode.html) - * [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.LicenseCodeGetCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.LicenseCodeTestIamPermissionCall.html) -* [licenses](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.License.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.LicenseDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.LicenseGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.LicenseGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.LicenseInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.LicenseListCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.LicenseSetIamPolicyCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.LicenseTestIamPermissionCall.html) -* [machine types](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.MachineType.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.MachineTypeAggregatedListCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.MachineTypeGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.MachineTypeListCall.html) -* [network endpoint groups](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkEndpointGroup.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkEndpointGroupAggregatedListCall.html), [*attach network endpoints*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkEndpointGroupAttachNetworkEndpointCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkEndpointGroupDeleteCall.html), [*detach network endpoints*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkEndpointGroupDetachNetworkEndpointCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkEndpointGroupGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkEndpointGroupInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkEndpointGroupListCall.html), [*list network endpoints*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkEndpointGroupListNetworkEndpointCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkEndpointGroupTestIamPermissionCall.html) -* [networks](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Network.html) - * [*add peering*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkAddPeeringCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkPatchCall.html), [*remove peering*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkRemovePeeringCall.html) and [*switch to custom mode*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NetworkSwitchToCustomModeCall.html) -* [node groups](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeGroup.html) - * [*add nodes*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeGroupAddNodeCall.html), [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeGroupAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeGroupDeleteCall.html), [*delete nodes*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeGroupDeleteNodeCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeGroupGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeGroupGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeGroupInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeGroupListCall.html), [*list nodes*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeGroupListNodeCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeGroupSetIamPolicyCall.html), [*set node template*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeGroupSetNodeTemplateCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeGroupTestIamPermissionCall.html) -* [node templates](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeTemplate.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeTemplateAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeTemplateDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeTemplateGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeTemplateGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeTemplateInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeTemplateListCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeTemplateSetIamPolicyCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeTemplateTestIamPermissionCall.html) -* [node types](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeType.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeTypeAggregatedListCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeTypeGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.NodeTypeListCall.html) -* [projects](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Project.html) - * [*disable xpn host*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ProjectDisableXpnHostCall.html), [*disable xpn resource*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ProjectDisableXpnResourceCall.html), [*enable xpn host*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ProjectEnableXpnHostCall.html), [*enable xpn resource*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ProjectEnableXpnResourceCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ProjectGetCall.html), [*get xpn host*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ProjectGetXpnHostCall.html), [*get xpn resources*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ProjectGetXpnResourceCall.html), [*list xpn hosts*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ProjectListXpnHostCall.html), [*move disk*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ProjectMoveDiskCall.html), [*move instance*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ProjectMoveInstanceCall.html), [*set common instance metadata*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ProjectSetCommonInstanceMetadataCall.html), [*set default network tier*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ProjectSetDefaultNetworkTierCall.html) and [*set usage export bucket*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ProjectSetUsageExportBucketCall.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.GlobalOperationAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.GlobalOperationDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.GlobalOperationGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.GlobalOperationListCall.html) +* [health checks](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HealthCheck.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HealthCheckDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HealthCheckGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HealthCheckInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HealthCheckListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HealthCheckPatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HealthCheckUpdateCall.html) +* [http health checks](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HttpHealthCheck.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HttpHealthCheckDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HttpHealthCheckGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HttpHealthCheckInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HttpHealthCheckListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HttpHealthCheckPatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HttpHealthCheckUpdateCall.html) +* [https health checks](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HttpsHealthCheck.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HttpsHealthCheckDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HttpsHealthCheckGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HttpsHealthCheckInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HttpsHealthCheckListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HttpsHealthCheckPatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.HttpsHealthCheckUpdateCall.html) +* [images](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Image.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ImageDeleteCall.html), [*deprecate*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ImageDeprecateCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ImageGetCall.html), [*get from family*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ImageGetFromFamilyCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ImageGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ImageInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ImageListCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ImageSetIamPolicyCall.html), [*set labels*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ImageSetLabelCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ImageTestIamPermissionCall.html) +* [instance group managers](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupManager.html) + * [*abandon instances*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupManagerAbandonInstanceCall.html), [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupManagerAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupManagerDeleteCall.html), [*delete instances*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupManagerDeleteInstanceCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupManagerGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupManagerInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupManagerListCall.html), [*list managed instances*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupManagerListManagedInstanceCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupManagerPatchCall.html), [*recreate instances*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupManagerRecreateInstanceCall.html), [*resize*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupManagerResizeCall.html), [*set instance template*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupManagerSetInstanceTemplateCall.html) and [*set target pools*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupManagerSetTargetPoolCall.html) +* [instance groups](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroup.html) + * [*add instances*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupAddInstanceCall.html), [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupListCall.html), [*list instances*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupListInstanceCall.html), [*remove instances*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupRemoveInstanceCall.html) and [*set named ports*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGroupSetNamedPortCall.html) +* [instance templates](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceTemplate.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceTemplateDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceTemplateGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceTemplateGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceTemplateInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceTemplateListCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceTemplateSetIamPolicyCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceTemplateTestIamPermissionCall.html) +* [instances](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Instance.html) + * [*add access config*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceAddAccessConfigCall.html), [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceAggregatedListCall.html), [*attach disk*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceAttachDiskCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceDeleteCall.html), [*delete access config*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceDeleteAccessConfigCall.html), [*detach disk*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceDetachDiskCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGetCall.html), [*get guest attributes*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGetGuestAttributeCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGetIamPolicyCall.html), [*get serial port output*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGetSerialPortOutputCall.html), [*get shielded instance identity*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceGetShieldedInstanceIdentityCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceListCall.html), [*list referrers*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceListReferrerCall.html), [*reset*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceResetCall.html), [*set deletion protection*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceSetDeletionProtectionCall.html), [*set disk auto delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceSetDiskAutoDeleteCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceSetIamPolicyCall.html), [*set labels*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceSetLabelCall.html), [*set machine resources*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceSetMachineResourceCall.html), [*set machine type*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceSetMachineTypeCall.html), [*set metadata*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceSetMetadataCall.html), [*set min cpu platform*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceSetMinCpuPlatformCall.html), [*set scheduling*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceSetSchedulingCall.html), [*set service account*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceSetServiceAccountCall.html), [*set shielded instance integrity policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceSetShieldedInstanceIntegrityPolicyCall.html), [*set tags*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceSetTagCall.html), [*simulate maintenance event*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceSimulateMaintenanceEventCall.html), [*start*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceStartCall.html), [*start with encryption key*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceStartWithEncryptionKeyCall.html), [*stop*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceStopCall.html), [*test iam permissions*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceTestIamPermissionCall.html), [*update access config*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceUpdateAccessConfigCall.html), [*update network interface*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceUpdateNetworkInterfaceCall.html) and [*update shielded instance config*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InstanceUpdateShieldedInstanceConfigCall.html) +* [interconnect attachments](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectAttachment.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectAttachmentAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectAttachmentDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectAttachmentGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectAttachmentInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectAttachmentListCall.html) and [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectAttachmentPatchCall.html) +* [interconnect locations](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectLocation.html) + * [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectLocationGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectLocationListCall.html) +* [interconnects](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Interconnect.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectGetCall.html), [*get diagnostics*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectGetDiagnosticCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectListCall.html) and [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.InterconnectPatchCall.html) +* [license codes](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.LicenseCode.html) + * [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.LicenseCodeGetCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.LicenseCodeTestIamPermissionCall.html) +* [licenses](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.License.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.LicenseDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.LicenseGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.LicenseGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.LicenseInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.LicenseListCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.LicenseSetIamPolicyCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.LicenseTestIamPermissionCall.html) +* [machine types](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.MachineType.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.MachineTypeAggregatedListCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.MachineTypeGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.MachineTypeListCall.html) +* [network endpoint groups](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkEndpointGroup.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkEndpointGroupAggregatedListCall.html), [*attach network endpoints*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkEndpointGroupAttachNetworkEndpointCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkEndpointGroupDeleteCall.html), [*detach network endpoints*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkEndpointGroupDetachNetworkEndpointCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkEndpointGroupGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkEndpointGroupInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkEndpointGroupListCall.html), [*list network endpoints*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkEndpointGroupListNetworkEndpointCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkEndpointGroupTestIamPermissionCall.html) +* [networks](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Network.html) + * [*add peering*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkAddPeeringCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkPatchCall.html), [*remove peering*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkRemovePeeringCall.html) and [*switch to custom mode*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NetworkSwitchToCustomModeCall.html) +* [node groups](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeGroup.html) + * [*add nodes*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeGroupAddNodeCall.html), [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeGroupAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeGroupDeleteCall.html), [*delete nodes*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeGroupDeleteNodeCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeGroupGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeGroupGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeGroupInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeGroupListCall.html), [*list nodes*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeGroupListNodeCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeGroupSetIamPolicyCall.html), [*set node template*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeGroupSetNodeTemplateCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeGroupTestIamPermissionCall.html) +* [node templates](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeTemplate.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeTemplateAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeTemplateDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeTemplateGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeTemplateGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeTemplateInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeTemplateListCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeTemplateSetIamPolicyCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeTemplateTestIamPermissionCall.html) +* [node types](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeType.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeTypeAggregatedListCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeTypeGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.NodeTypeListCall.html) +* [projects](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Project.html) + * [*disable xpn host*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ProjectDisableXpnHostCall.html), [*disable xpn resource*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ProjectDisableXpnResourceCall.html), [*enable xpn host*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ProjectEnableXpnHostCall.html), [*enable xpn resource*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ProjectEnableXpnResourceCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ProjectGetCall.html), [*get xpn host*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ProjectGetXpnHostCall.html), [*get xpn resources*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ProjectGetXpnResourceCall.html), [*list xpn hosts*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ProjectListXpnHostCall.html), [*move disk*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ProjectMoveDiskCall.html), [*move instance*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ProjectMoveInstanceCall.html), [*set common instance metadata*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ProjectSetCommonInstanceMetadataCall.html), [*set default network tier*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ProjectSetDefaultNetworkTierCall.html) and [*set usage export bucket*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ProjectSetUsageExportBucketCall.html) * region autoscalers - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionAutoscalerDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionAutoscalerGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionAutoscalerInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionAutoscalerListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionAutoscalerPatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionAutoscalerUpdateCall.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionAutoscalerDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionAutoscalerGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionAutoscalerInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionAutoscalerListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionAutoscalerPatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionAutoscalerUpdateCall.html) * region backend services - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionBackendServiceDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionBackendServiceGetCall.html), [*get health*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionBackendServiceGetHealthCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionBackendServiceInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionBackendServiceListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionBackendServicePatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionBackendServiceUpdateCall.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionBackendServiceDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionBackendServiceGetCall.html), [*get health*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionBackendServiceGetHealthCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionBackendServiceInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionBackendServiceListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionBackendServicePatchCall.html) and [*update*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionBackendServiceUpdateCall.html) * region commitments - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionCommitmentAggregatedListCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionCommitmentGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionCommitmentInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionCommitmentListCall.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionCommitmentAggregatedListCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionCommitmentGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionCommitmentInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionCommitmentListCall.html) * region disk types - * [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionDiskTypeGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionDiskTypeListCall.html) + * [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionDiskTypeGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionDiskTypeListCall.html) * region disks - * [*add resource policies*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionDiskAddResourcePolicyCall.html), [*create snapshot*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionDiskCreateSnapshotCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionDiskDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionDiskGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionDiskInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionDiskListCall.html), [*remove resource policies*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionDiskRemoveResourcePolicyCall.html), [*resize*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionDiskResizeCall.html), [*set labels*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionDiskSetLabelCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionDiskTestIamPermissionCall.html) + * [*add resource policies*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionDiskAddResourcePolicyCall.html), [*create snapshot*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionDiskCreateSnapshotCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionDiskDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionDiskGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionDiskInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionDiskListCall.html), [*remove resource policies*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionDiskRemoveResourcePolicyCall.html), [*resize*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionDiskResizeCall.html), [*set labels*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionDiskSetLabelCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionDiskTestIamPermissionCall.html) * region instance group managers - * [*abandon instances*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupManagerAbandonInstanceCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupManagerDeleteCall.html), [*delete instances*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupManagerDeleteInstanceCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupManagerGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupManagerInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupManagerListCall.html), [*list managed instances*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupManagerListManagedInstanceCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupManagerPatchCall.html), [*recreate instances*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupManagerRecreateInstanceCall.html), [*resize*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupManagerResizeCall.html), [*set instance template*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupManagerSetInstanceTemplateCall.html) and [*set target pools*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupManagerSetTargetPoolCall.html) + * [*abandon instances*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupManagerAbandonInstanceCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupManagerDeleteCall.html), [*delete instances*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupManagerDeleteInstanceCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupManagerGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupManagerInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupManagerListCall.html), [*list managed instances*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupManagerListManagedInstanceCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupManagerPatchCall.html), [*recreate instances*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupManagerRecreateInstanceCall.html), [*resize*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupManagerResizeCall.html), [*set instance template*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupManagerSetInstanceTemplateCall.html) and [*set target pools*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupManagerSetTargetPoolCall.html) * region instance groups - * [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupGetCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupListCall.html), [*list instances*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupListInstanceCall.html) and [*set named ports*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionInstanceGroupSetNamedPortCall.html) + * [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupGetCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupListCall.html), [*list instances*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupListInstanceCall.html) and [*set named ports*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionInstanceGroupSetNamedPortCall.html) * region operations - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionOperationDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionOperationGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionOperationListCall.html) -* [regions](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Region.html) - * [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RegionListCall.html) -* [reservations](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Reservation.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ReservationAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ReservationDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ReservationGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ReservationGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ReservationInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ReservationListCall.html), [*resize*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ReservationResizeCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ReservationSetIamPolicyCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ReservationTestIamPermissionCall.html) -* [resource policies](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ResourcePolicy.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ResourcePolicyAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ResourcePolicyDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ResourcePolicyGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ResourcePolicyGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ResourcePolicyInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ResourcePolicyListCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ResourcePolicySetIamPolicyCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ResourcePolicyTestIamPermissionCall.html) -* [routers](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Router.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RouterAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RouterDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RouterGetCall.html), [*get nat mapping info*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RouterGetNatMappingInfoCall.html), [*get router status*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RouterGetRouterStatuCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RouterInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RouterListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RouterPatchCall.html), [*preview*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RouterPreviewCall.html) and [*update*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RouterUpdateCall.html) -* [routes](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Route.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RouteDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RouteGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RouteInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.RouteListCall.html) -* [security policies](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SecurityPolicy.html) - * [*add rule*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SecurityPolicyAddRuleCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SecurityPolicyDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SecurityPolicyGetCall.html), [*get rule*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SecurityPolicyGetRuleCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SecurityPolicyInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SecurityPolicyListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SecurityPolicyPatchCall.html), [*patch rule*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SecurityPolicyPatchRuleCall.html) and [*remove rule*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SecurityPolicyRemoveRuleCall.html) -* [snapshots](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Snapshot.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SnapshotDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SnapshotGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SnapshotGetIamPolicyCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SnapshotListCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SnapshotSetIamPolicyCall.html), [*set labels*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SnapshotSetLabelCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SnapshotTestIamPermissionCall.html) -* [ssl certificates](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SslCertificate.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SslCertificateDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SslCertificateGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SslCertificateInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SslCertificateListCall.html) -* [ssl policies](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SslPolicy.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SslPolicyDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SslPolicyGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SslPolicyInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SslPolicyListCall.html), [*list available features*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SslPolicyListAvailableFeatureCall.html) and [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SslPolicyPatchCall.html) -* [subnetworks](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Subnetwork.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SubnetworkAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SubnetworkDeleteCall.html), [*expand ip cidr range*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SubnetworkExpandIpCidrRangeCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SubnetworkGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SubnetworkGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SubnetworkInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SubnetworkListCall.html), [*list usable*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SubnetworkListUsableCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SubnetworkPatchCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SubnetworkSetIamPolicyCall.html), [*set private ip google access*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SubnetworkSetPrivateIpGoogleAccesCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.SubnetworkTestIamPermissionCall.html) -* [target http proxies](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpProxy.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpProxyDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpProxyGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpProxyInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpProxyListCall.html) and [*set url map*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpProxySetUrlMapCall.html) -* [target https proxies](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpsProxy.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpsProxyDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpsProxyGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpsProxyInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpsProxyListCall.html), [*set quic override*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpsProxySetQuicOverrideCall.html), [*set ssl certificates*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpsProxySetSslCertificateCall.html), [*set ssl policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpsProxySetSslPolicyCall.html) and [*set url map*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetHttpsProxySetUrlMapCall.html) -* [target instances](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetInstance.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetInstanceAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetInstanceDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetInstanceGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetInstanceInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetInstanceListCall.html) -* [target pools](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetPool.html) - * [*add health check*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetPoolAddHealthCheckCall.html), [*add instance*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetPoolAddInstanceCall.html), [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetPoolAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetPoolDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetPoolGetCall.html), [*get health*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetPoolGetHealthCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetPoolInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetPoolListCall.html), [*remove health check*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetPoolRemoveHealthCheckCall.html), [*remove instance*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetPoolRemoveInstanceCall.html) and [*set backup*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetPoolSetBackupCall.html) -* [target ssl proxies](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetSslProxy.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetSslProxyDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetSslProxyGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetSslProxyInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetSslProxyListCall.html), [*set backend service*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetSslProxySetBackendServiceCall.html), [*set proxy header*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetSslProxySetProxyHeaderCall.html), [*set ssl certificates*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetSslProxySetSslCertificateCall.html) and [*set ssl policy*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetSslProxySetSslPolicyCall.html) -* [target tcp proxies](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetTcpProxy.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetTcpProxyDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetTcpProxyGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetTcpProxyInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetTcpProxyListCall.html), [*set backend service*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetTcpProxySetBackendServiceCall.html) and [*set proxy header*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetTcpProxySetProxyHeaderCall.html) -* [target vpn gateways](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetVpnGateway.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetVpnGatewayAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetVpnGatewayDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetVpnGatewayGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetVpnGatewayInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.TargetVpnGatewayListCall.html) -* [url maps](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.UrlMap.html) - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.UrlMapDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.UrlMapGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.UrlMapInsertCall.html), [*invalidate cache*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.UrlMapInvalidateCacheCall.html), [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.UrlMapListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.UrlMapPatchCall.html), [*update*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.UrlMapUpdateCall.html) and [*validate*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.UrlMapValidateCall.html) -* [vpn tunnels](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.VpnTunnel.html) - * [*aggregated list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.VpnTunnelAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.VpnTunnelDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.VpnTunnelGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.VpnTunnelInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.VpnTunnelListCall.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionOperationDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionOperationGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionOperationListCall.html) +* [regions](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Region.html) + * [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RegionListCall.html) +* [reservations](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Reservation.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ReservationAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ReservationDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ReservationGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ReservationGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ReservationInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ReservationListCall.html), [*resize*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ReservationResizeCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ReservationSetIamPolicyCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ReservationTestIamPermissionCall.html) +* [resource policies](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ResourcePolicy.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ResourcePolicyAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ResourcePolicyDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ResourcePolicyGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ResourcePolicyGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ResourcePolicyInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ResourcePolicyListCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ResourcePolicySetIamPolicyCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ResourcePolicyTestIamPermissionCall.html) +* [routers](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Router.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RouterAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RouterDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RouterGetCall.html), [*get nat mapping info*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RouterGetNatMappingInfoCall.html), [*get router status*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RouterGetRouterStatuCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RouterInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RouterListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RouterPatchCall.html), [*preview*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RouterPreviewCall.html) and [*update*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RouterUpdateCall.html) +* [routes](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Route.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RouteDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RouteGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RouteInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.RouteListCall.html) +* [security policies](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SecurityPolicy.html) + * [*add rule*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SecurityPolicyAddRuleCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SecurityPolicyDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SecurityPolicyGetCall.html), [*get rule*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SecurityPolicyGetRuleCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SecurityPolicyInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SecurityPolicyListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SecurityPolicyPatchCall.html), [*patch rule*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SecurityPolicyPatchRuleCall.html) and [*remove rule*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SecurityPolicyRemoveRuleCall.html) +* [snapshots](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Snapshot.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SnapshotDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SnapshotGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SnapshotGetIamPolicyCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SnapshotListCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SnapshotSetIamPolicyCall.html), [*set labels*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SnapshotSetLabelCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SnapshotTestIamPermissionCall.html) +* [ssl certificates](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SslCertificate.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SslCertificateDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SslCertificateGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SslCertificateInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SslCertificateListCall.html) +* [ssl policies](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SslPolicy.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SslPolicyDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SslPolicyGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SslPolicyInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SslPolicyListCall.html), [*list available features*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SslPolicyListAvailableFeatureCall.html) and [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SslPolicyPatchCall.html) +* [subnetworks](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Subnetwork.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SubnetworkAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SubnetworkDeleteCall.html), [*expand ip cidr range*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SubnetworkExpandIpCidrRangeCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SubnetworkGetCall.html), [*get iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SubnetworkGetIamPolicyCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SubnetworkInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SubnetworkListCall.html), [*list usable*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SubnetworkListUsableCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SubnetworkPatchCall.html), [*set iam policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SubnetworkSetIamPolicyCall.html), [*set private ip google access*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SubnetworkSetPrivateIpGoogleAccesCall.html) and [*test iam permissions*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.SubnetworkTestIamPermissionCall.html) +* [target http proxies](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpProxy.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpProxyDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpProxyGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpProxyInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpProxyListCall.html) and [*set url map*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpProxySetUrlMapCall.html) +* [target https proxies](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpsProxy.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpsProxyDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpsProxyGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpsProxyInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpsProxyListCall.html), [*set quic override*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpsProxySetQuicOverrideCall.html), [*set ssl certificates*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpsProxySetSslCertificateCall.html), [*set ssl policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpsProxySetSslPolicyCall.html) and [*set url map*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetHttpsProxySetUrlMapCall.html) +* [target instances](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetInstance.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetInstanceAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetInstanceDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetInstanceGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetInstanceInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetInstanceListCall.html) +* [target pools](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetPool.html) + * [*add health check*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetPoolAddHealthCheckCall.html), [*add instance*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetPoolAddInstanceCall.html), [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetPoolAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetPoolDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetPoolGetCall.html), [*get health*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetPoolGetHealthCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetPoolInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetPoolListCall.html), [*remove health check*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetPoolRemoveHealthCheckCall.html), [*remove instance*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetPoolRemoveInstanceCall.html) and [*set backup*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetPoolSetBackupCall.html) +* [target ssl proxies](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetSslProxy.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetSslProxyDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetSslProxyGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetSslProxyInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetSslProxyListCall.html), [*set backend service*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetSslProxySetBackendServiceCall.html), [*set proxy header*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetSslProxySetProxyHeaderCall.html), [*set ssl certificates*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetSslProxySetSslCertificateCall.html) and [*set ssl policy*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetSslProxySetSslPolicyCall.html) +* [target tcp proxies](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetTcpProxy.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetTcpProxyDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetTcpProxyGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetTcpProxyInsertCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetTcpProxyListCall.html), [*set backend service*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetTcpProxySetBackendServiceCall.html) and [*set proxy header*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetTcpProxySetProxyHeaderCall.html) +* [target vpn gateways](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetVpnGateway.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetVpnGatewayAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetVpnGatewayDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetVpnGatewayGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetVpnGatewayInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.TargetVpnGatewayListCall.html) +* [url maps](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.UrlMap.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.UrlMapDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.UrlMapGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.UrlMapInsertCall.html), [*invalidate cache*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.UrlMapInvalidateCacheCall.html), [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.UrlMapListCall.html), [*patch*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.UrlMapPatchCall.html), [*update*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.UrlMapUpdateCall.html) and [*validate*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.UrlMapValidateCall.html) +* [vpn tunnels](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.VpnTunnel.html) + * [*aggregated list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.VpnTunnelAggregatedListCall.html), [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.VpnTunnelDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.VpnTunnelGetCall.html), [*insert*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.VpnTunnelInsertCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.VpnTunnelListCall.html) * zone operations - * [*delete*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ZoneOperationDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ZoneOperationGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ZoneOperationListCall.html) -* [zones](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Zone.html) - * [*get*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ZoneGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.ZoneListCall.html) + * [*delete*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ZoneOperationDeleteCall.html), [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ZoneOperationGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ZoneOperationListCall.html) +* [zones](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Zone.html) + * [*get*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ZoneGetCall.html) and [*list*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.ZoneListCall.html) @@ -143,17 +143,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/struct.Compute.html)** +* **[Hub](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/struct.Compute.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.Part.html)** + * **[Parts](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -468,17 +468,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -488,29 +488,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-compute1/1.0.11+20190618/google_compute1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-compute1/1.0.12+20190618/google_compute1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/compute1/src/lib.rs b/gen/compute1/src/lib.rs index 8406380cc8..3f73ad43be 100644 --- a/gen/compute1/src/lib.rs +++ b/gen/compute1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *compute* crate version *1.0.11+20190618*, where *20190618* is the exact revision of the *compute:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *compute* crate version *1.0.12+20190618*, where *20190618* is the exact revision of the *compute:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *compute* *v1* API can be found at the //! [official documentation site](https://developers.google.com/compute/docs/reference/latest/). @@ -682,7 +682,7 @@ impl<'a, C, A> Compute Compute { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/compute/v1/projects/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -873,7 +873,7 @@ impl<'a, C, A> Compute } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/consumersurveys2-cli/Cargo.toml b/gen/consumersurveys2-cli/Cargo.toml index f68bd8044e..96b897c3b6 100644 --- a/gen/consumersurveys2-cli/Cargo.toml +++ b/gen/consumersurveys2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-consumersurveys2-cli" -version = "1.0.11+20170407" +version = "1.0.12+20170407" authors = ["Sebastian Thiel "] description = "A complete library to interact with Consumer Surveys (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/consumersurveys2-cli" @@ -41,4 +41,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-consumersurveys2] path = "../consumersurveys2" -version = "1.0.11+20170407" +version = "1.0.12+20170407" diff --git a/gen/consumersurveys2-cli/LICENSE.md b/gen/consumersurveys2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/consumersurveys2-cli/LICENSE.md +++ b/gen/consumersurveys2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/consumersurveys2-cli/README.md b/gen/consumersurveys2-cli/README.md index 04d3709ea9..30a0533c1a 100644 --- a/gen/consumersurveys2-cli/README.md +++ b/gen/consumersurveys2-cli/README.md @@ -22,7 +22,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Consumer Surveys* API at revision *20170407*. The CLI is at version *1.0.11*. +This documentation was generated from the *Consumer Surveys* API at revision *20170407*. The CLI is at version *1.0.12*. ```bash consumersurveys2 [options] diff --git a/gen/consumersurveys2-cli/mkdocs.yml b/gen/consumersurveys2-cli/mkdocs.yml index 2f99e5a3a4..cd178906b5 100644 --- a/gen/consumersurveys2-cli/mkdocs.yml +++ b/gen/consumersurveys2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Consumer Surveys v1.0.11+20170407 +site_name: Consumer Surveys v1.0.12+20170407 site_url: http://byron.github.io/google-apis-rs/google-consumersurveys2-cli site_description: A complete library to interact with Consumer Surveys (protocol v2) @@ -23,5 +23,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/consumersurveys2-cli/src/cmn.rs b/gen/consumersurveys2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/consumersurveys2-cli/src/cmn.rs +++ b/gen/consumersurveys2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/consumersurveys2-cli/src/main.rs b/gen/consumersurveys2-cli/src/main.rs index 05672c9b8c..aab8369a91 100644 --- a/gen/consumersurveys2-cli/src/main.rs +++ b/gen/consumersurveys2-cli/src/main.rs @@ -1266,7 +1266,7 @@ fn main() { let mut app = App::new("consumersurveys2") .author("Sebastian Thiel ") - .version("1.0.11+20170407") + .version("1.0.12+20170407") .about("Creates and conducts surveys, lists the surveys that an authenticated user owns, and retrieves survey results and information about specified surveys.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_consumersurveys2_cli") .arg(Arg::with_name("url") diff --git a/gen/consumersurveys2/Cargo.toml b/gen/consumersurveys2/Cargo.toml index 726e9da4b0..7a68f7e3d5 100644 --- a/gen/consumersurveys2/Cargo.toml +++ b/gen/consumersurveys2/Cargo.toml @@ -4,11 +4,11 @@ [package] name = "google-consumersurveys2" -version = "1.0.11+20170407" +version = "1.0.12+20170407" authors = ["Sebastian Thiel "] description = "A complete library to interact with Consumer Surveys (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/consumersurveys2" -documentation = "https://docs.rs/google-consumersurveys2/1.0.11+20170407" +documentation = "https://docs.rs/google-consumersurveys2/1.0.12+20170407" license = "MIT" keywords = ["consumersurveys", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/consumersurveys2/LICENSE.md b/gen/consumersurveys2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/consumersurveys2/LICENSE.md +++ b/gen/consumersurveys2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/consumersurveys2/README.md b/gen/consumersurveys2/README.md index 97d0861db1..5cc8cc71d0 100644 --- a/gen/consumersurveys2/README.md +++ b/gen/consumersurveys2/README.md @@ -5,22 +5,22 @@ DO NOT EDIT ! --> The `google-consumersurveys2` library allows access to all features of the *Google Consumer Surveys* service. -This documentation was generated from *Consumer Surveys* crate version *1.0.11+20170407*, where *20170407* is the exact revision of the *consumersurveys:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Consumer Surveys* crate version *1.0.12+20170407*, where *20170407* is the exact revision of the *consumersurveys:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.ConsumerSurveys.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.ConsumerSurveys.html) ... * mobileapppanels - * [*get*](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.MobileapppanelGetCall.html), [*list*](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.MobileapppanelListCall.html) and [*update*](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.MobileapppanelUpdateCall.html) + * [*get*](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.MobileapppanelGetCall.html), [*list*](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.MobileapppanelListCall.html) and [*update*](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.MobileapppanelUpdateCall.html) * results - * [*get*](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.ResultGetCall.html) -* [surveys](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.Survey.html) - * [*delete*](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.SurveyDeleteCall.html), [*get*](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.SurveyGetCall.html), [*insert*](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.SurveyInsertCall.html), [*list*](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.SurveyListCall.html), [*start*](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.SurveyStartCall.html), [*stop*](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.SurveyStopCall.html) and [*update*](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.SurveyUpdateCall.html) + * [*get*](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.ResultGetCall.html) +* [surveys](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.Survey.html) + * [*delete*](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.SurveyDeleteCall.html), [*get*](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.SurveyGetCall.html), [*insert*](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.SurveyInsertCall.html), [*list*](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.SurveyListCall.html), [*start*](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.SurveyStartCall.html), [*stop*](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.SurveyStopCall.html) and [*update*](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.SurveyUpdateCall.html) Download supported by ... -* [*get results*](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.ResultGetCall.html) +* [*get results*](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.ResultGetCall.html) @@ -28,17 +28,17 @@ Download supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/struct.ConsumerSurveys.html)** +* **[Hub](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/struct.ConsumerSurveys.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.Part.html)** + * **[Parts](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -138,17 +138,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -158,29 +158,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-consumersurveys2/1.0.11+20170407/google_consumersurveys2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-consumersurveys2/1.0.12+20170407/google_consumersurveys2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/consumersurveys2/src/lib.rs b/gen/consumersurveys2/src/lib.rs index 5af090334a..97b7c19612 100644 --- a/gen/consumersurveys2/src/lib.rs +++ b/gen/consumersurveys2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Consumer Surveys* crate version *1.0.11+20170407*, where *20170407* is the exact revision of the *consumersurveys:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Consumer Surveys* crate version *1.0.12+20170407*, where *20170407* is the exact revision of the *consumersurveys:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/master/gen/consumersurveys2). //! # Features //! @@ -342,7 +342,7 @@ impl<'a, C, A> ConsumerSurveys ConsumerSurveys { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/consumersurveys/v2/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -359,7 +359,7 @@ impl<'a, C, A> ConsumerSurveys } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/container1-cli/Cargo.toml b/gen/container1-cli/Cargo.toml index 9a07ee6237..add66a42f1 100644 --- a/gen/container1-cli/Cargo.toml +++ b/gen/container1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-container1-cli" -version = "1.0.11+20190610" +version = "1.0.12+20190610" authors = ["Sebastian Thiel "] description = "A complete library to interact with Container (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/container1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-container1] path = "../container1" -version = "1.0.11+20190610" +version = "1.0.12+20190610" diff --git a/gen/container1-cli/LICENSE.md b/gen/container1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/container1-cli/LICENSE.md +++ b/gen/container1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/container1-cli/README.md b/gen/container1-cli/README.md index b7be205547..e53a221406 100644 --- a/gen/container1-cli/README.md +++ b/gen/container1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Container* API at revision *20190610*. The CLI is at version *1.0.11*. +This documentation was generated from the *Container* API at revision *20190610*. The CLI is at version *1.0.12*. ```bash container1 [options] diff --git a/gen/container1-cli/mkdocs.yml b/gen/container1-cli/mkdocs.yml index 03637daeec..04719f3648 100644 --- a/gen/container1-cli/mkdocs.yml +++ b/gen/container1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Container v1.0.11+20190610 +site_name: Container v1.0.12+20190610 site_url: http://byron.github.io/google-apis-rs/google-container1-cli site_description: A complete library to interact with Container (protocol v1) @@ -75,5 +75,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/container1-cli/src/cmn.rs b/gen/container1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/container1-cli/src/cmn.rs +++ b/gen/container1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/container1-cli/src/main.rs b/gen/container1-cli/src/main.rs index c5ced4eaca..714fe21eed 100644 --- a/gen/container1-cli/src/main.rs +++ b/gen/container1-cli/src/main.rs @@ -7875,7 +7875,7 @@ fn main() { let mut app = App::new("container1") .author("Sebastian Thiel ") - .version("1.0.11+20190610") + .version("1.0.12+20190610") .about("Builds and manages container-based applications, powered by the open source Kubernetes technology.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_container1_cli") .arg(Arg::with_name("url") diff --git a/gen/container1/Cargo.toml b/gen/container1/Cargo.toml index 0facfd1ffa..45ba53e75c 100644 --- a/gen/container1/Cargo.toml +++ b/gen/container1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-container1" -version = "1.0.11+20190610" +version = "1.0.12+20190610" authors = ["Sebastian Thiel "] description = "A complete library to interact with Container (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/container1" homepage = "https://cloud.google.com/container-engine/" -documentation = "https://docs.rs/google-container1/1.0.11+20190610" +documentation = "https://docs.rs/google-container1/1.0.12+20190610" license = "MIT" keywords = ["container", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/container1/LICENSE.md b/gen/container1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/container1/LICENSE.md +++ b/gen/container1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/container1/README.md b/gen/container1/README.md index fe43ad73f5..26881a0aa9 100644 --- a/gen/container1/README.md +++ b/gen/container1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-container1` library allows access to all features of the *Google Container* service. -This documentation was generated from *Container* crate version *1.0.11+20190610*, where *20190610* is the exact revision of the *container:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Container* crate version *1.0.12+20190610*, where *20190610* is the exact revision of the *container:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Container* *v1* API can be found at the [official documentation site](https://cloud.google.com/container-engine/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.Container.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.Container.html) ... * projects - * [*aggregated usable subnetworks list*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectAggregatedUsableSubnetworkListCall.html), [*locations clusters complete ip rotation*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterCompleteIpRotationCall.html), [*locations clusters create*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterCreateCall.html), [*locations clusters delete*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterDeleteCall.html), [*locations clusters get*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterGetCall.html), [*locations clusters get jwks*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterGetJwkCall.html), [*locations clusters list*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterListCall.html), [*locations clusters node pools create*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterNodePoolCreateCall.html), [*locations clusters node pools delete*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterNodePoolDeleteCall.html), [*locations clusters node pools get*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterNodePoolGetCall.html), [*locations clusters node pools list*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterNodePoolListCall.html), [*locations clusters node pools rollback*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterNodePoolRollbackCall.html), [*locations clusters node pools set autoscaling*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterNodePoolSetAutoscalingCall.html), [*locations clusters node pools set management*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterNodePoolSetManagementCall.html), [*locations clusters node pools set size*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterNodePoolSetSizeCall.html), [*locations clusters node pools update*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterNodePoolUpdateCall.html), [*locations clusters set addons*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterSetAddonCall.html), [*locations clusters set legacy abac*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterSetLegacyAbacCall.html), [*locations clusters set locations*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterSetLocationCall.html), [*locations clusters set logging*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterSetLoggingCall.html), [*locations clusters set maintenance policy*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterSetMaintenancePolicyCall.html), [*locations clusters set master auth*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterSetMasterAuthCall.html), [*locations clusters set monitoring*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterSetMonitoringCall.html), [*locations clusters set network policy*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterSetNetworkPolicyCall.html), [*locations clusters set resource labels*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterSetResourceLabelCall.html), [*locations clusters start ip rotation*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterStartIpRotationCall.html), [*locations clusters update*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterUpdateCall.html), [*locations clusters update master*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterUpdateMasterCall.html), [*locations clusters well-known get openid-configuration*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationClusterWellKnownGetOpenidConfigurationCall.html), [*locations get server config*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationGetServerConfigCall.html), [*locations operations cancel*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationOperationCancelCall.html), [*locations operations get*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationOperationGetCall.html), [*locations operations list*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectLocationOperationListCall.html), [*zones clusters addons*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterAddonCall.html), [*zones clusters complete ip rotation*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterCompleteIpRotationCall.html), [*zones clusters create*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterCreateCall.html), [*zones clusters delete*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterDeleteCall.html), [*zones clusters get*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterGetCall.html), [*zones clusters legacy abac*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterLegacyAbacCall.html), [*zones clusters list*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterListCall.html), [*zones clusters locations*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterLocationCall.html), [*zones clusters logging*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterLoggingCall.html), [*zones clusters master*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterMasterCall.html), [*zones clusters monitoring*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterMonitoringCall.html), [*zones clusters node pools autoscaling*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterNodePoolAutoscalingCall.html), [*zones clusters node pools create*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterNodePoolCreateCall.html), [*zones clusters node pools delete*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterNodePoolDeleteCall.html), [*zones clusters node pools get*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterNodePoolGetCall.html), [*zones clusters node pools list*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterNodePoolListCall.html), [*zones clusters node pools rollback*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterNodePoolRollbackCall.html), [*zones clusters node pools set management*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterNodePoolSetManagementCall.html), [*zones clusters node pools set size*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterNodePoolSetSizeCall.html), [*zones clusters node pools update*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterNodePoolUpdateCall.html), [*zones clusters resource labels*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterResourceLabelCall.html), [*zones clusters set maintenance policy*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterSetMaintenancePolicyCall.html), [*zones clusters set master auth*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterSetMasterAuthCall.html), [*zones clusters set network policy*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterSetNetworkPolicyCall.html), [*zones clusters start ip rotation*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterStartIpRotationCall.html), [*zones clusters update*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneClusterUpdateCall.html), [*zones get serverconfig*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneGetServerconfigCall.html), [*zones operations cancel*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneOperationCancelCall.html), [*zones operations get*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneOperationGetCall.html) and [*zones operations list*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.ProjectZoneOperationListCall.html) + * [*aggregated usable subnetworks list*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectAggregatedUsableSubnetworkListCall.html), [*locations clusters complete ip rotation*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterCompleteIpRotationCall.html), [*locations clusters create*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterCreateCall.html), [*locations clusters delete*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterDeleteCall.html), [*locations clusters get*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterGetCall.html), [*locations clusters get jwks*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterGetJwkCall.html), [*locations clusters list*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterListCall.html), [*locations clusters node pools create*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterNodePoolCreateCall.html), [*locations clusters node pools delete*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterNodePoolDeleteCall.html), [*locations clusters node pools get*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterNodePoolGetCall.html), [*locations clusters node pools list*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterNodePoolListCall.html), [*locations clusters node pools rollback*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterNodePoolRollbackCall.html), [*locations clusters node pools set autoscaling*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterNodePoolSetAutoscalingCall.html), [*locations clusters node pools set management*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterNodePoolSetManagementCall.html), [*locations clusters node pools set size*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterNodePoolSetSizeCall.html), [*locations clusters node pools update*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterNodePoolUpdateCall.html), [*locations clusters set addons*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterSetAddonCall.html), [*locations clusters set legacy abac*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterSetLegacyAbacCall.html), [*locations clusters set locations*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterSetLocationCall.html), [*locations clusters set logging*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterSetLoggingCall.html), [*locations clusters set maintenance policy*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterSetMaintenancePolicyCall.html), [*locations clusters set master auth*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterSetMasterAuthCall.html), [*locations clusters set monitoring*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterSetMonitoringCall.html), [*locations clusters set network policy*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterSetNetworkPolicyCall.html), [*locations clusters set resource labels*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterSetResourceLabelCall.html), [*locations clusters start ip rotation*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterStartIpRotationCall.html), [*locations clusters update*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterUpdateCall.html), [*locations clusters update master*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterUpdateMasterCall.html), [*locations clusters well-known get openid-configuration*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationClusterWellKnownGetOpenidConfigurationCall.html), [*locations get server config*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationGetServerConfigCall.html), [*locations operations cancel*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationOperationCancelCall.html), [*locations operations get*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationOperationGetCall.html), [*locations operations list*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectLocationOperationListCall.html), [*zones clusters addons*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterAddonCall.html), [*zones clusters complete ip rotation*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterCompleteIpRotationCall.html), [*zones clusters create*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterCreateCall.html), [*zones clusters delete*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterDeleteCall.html), [*zones clusters get*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterGetCall.html), [*zones clusters legacy abac*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterLegacyAbacCall.html), [*zones clusters list*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterListCall.html), [*zones clusters locations*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterLocationCall.html), [*zones clusters logging*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterLoggingCall.html), [*zones clusters master*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterMasterCall.html), [*zones clusters monitoring*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterMonitoringCall.html), [*zones clusters node pools autoscaling*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterNodePoolAutoscalingCall.html), [*zones clusters node pools create*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterNodePoolCreateCall.html), [*zones clusters node pools delete*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterNodePoolDeleteCall.html), [*zones clusters node pools get*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterNodePoolGetCall.html), [*zones clusters node pools list*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterNodePoolListCall.html), [*zones clusters node pools rollback*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterNodePoolRollbackCall.html), [*zones clusters node pools set management*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterNodePoolSetManagementCall.html), [*zones clusters node pools set size*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterNodePoolSetSizeCall.html), [*zones clusters node pools update*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterNodePoolUpdateCall.html), [*zones clusters resource labels*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterResourceLabelCall.html), [*zones clusters set maintenance policy*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterSetMaintenancePolicyCall.html), [*zones clusters set master auth*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterSetMasterAuthCall.html), [*zones clusters set network policy*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterSetNetworkPolicyCall.html), [*zones clusters start ip rotation*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterStartIpRotationCall.html), [*zones clusters update*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneClusterUpdateCall.html), [*zones get serverconfig*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneGetServerconfigCall.html), [*zones operations cancel*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneOperationCancelCall.html), [*zones operations get*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneOperationGetCall.html) and [*zones operations list*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.ProjectZoneOperationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-container1/1.0.11+20190610/google_container1/struct.Container.html)** +* **[Hub](https://docs.rs/google-container1/1.0.12+20190610/google_container1/struct.Container.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.Part.html)** + * **[Parts](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -175,17 +175,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-container1/1.0.11+20190610/google_container1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-container1/1.0.12+20190610/google_container1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-container1/1.0.11+20190610/google_container1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-container1/1.0.12+20190610/google_container1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -195,29 +195,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-container1/1.0.11+20190610/google_container1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-container1/1.0.12+20190610/google_container1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/container1/src/lib.rs b/gen/container1/src/lib.rs index 0299b09157..788cd8510a 100644 --- a/gen/container1/src/lib.rs +++ b/gen/container1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Container* crate version *1.0.11+20190610*, where *20190610* is the exact revision of the *container:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Container* crate version *1.0.12+20190610*, where *20190610* is the exact revision of the *container:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Container* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/container-engine/). @@ -374,7 +374,7 @@ impl<'a, C, A> Container Container { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://container.googleapis.com/".to_string(), _root_url: "https://container.googleapis.com/".to_string(), } @@ -385,7 +385,7 @@ impl<'a, C, A> Container } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/containeranalysis1_beta1-cli/Cargo.toml b/gen/containeranalysis1_beta1-cli/Cargo.toml index b35b3dc253..56292a0a42 100644 --- a/gen/containeranalysis1_beta1-cli/Cargo.toml +++ b/gen/containeranalysis1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-containeranalysis1_beta1-cli" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with Container Analysis (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/containeranalysis1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-containeranalysis1_beta1] path = "../containeranalysis1_beta1" -version = "1.0.11+20190625" +version = "1.0.12+20190625" diff --git a/gen/containeranalysis1_beta1-cli/LICENSE.md b/gen/containeranalysis1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/containeranalysis1_beta1-cli/LICENSE.md +++ b/gen/containeranalysis1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/containeranalysis1_beta1-cli/README.md b/gen/containeranalysis1_beta1-cli/README.md index 88fdb672b6..c112e7291b 100644 --- a/gen/containeranalysis1_beta1-cli/README.md +++ b/gen/containeranalysis1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Container Analysis* API at revision *20190625*. The CLI is at version *1.0.11*. +This documentation was generated from the *Container Analysis* API at revision *20190625*. The CLI is at version *1.0.12*. ```bash containeranalysis1-beta1 [options] diff --git a/gen/containeranalysis1_beta1-cli/mkdocs.yml b/gen/containeranalysis1_beta1-cli/mkdocs.yml index 188d9b52b9..86774d51ec 100644 --- a/gen/containeranalysis1_beta1-cli/mkdocs.yml +++ b/gen/containeranalysis1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Container Analysis v1.0.11+20190625 +site_name: Container Analysis v1.0.12+20190625 site_url: http://byron.github.io/google-apis-rs/google-containeranalysis1_beta1-cli site_description: A complete library to interact with Container Analysis (protocol v1beta1) @@ -36,5 +36,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/containeranalysis1_beta1-cli/src/cmn.rs b/gen/containeranalysis1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/containeranalysis1_beta1-cli/src/cmn.rs +++ b/gen/containeranalysis1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/containeranalysis1_beta1-cli/src/main.rs b/gen/containeranalysis1_beta1-cli/src/main.rs index 1077e68ec9..f8675aa8c2 100644 --- a/gen/containeranalysis1_beta1-cli/src/main.rs +++ b/gen/containeranalysis1_beta1-cli/src/main.rs @@ -2829,7 +2829,7 @@ fn main() { let mut app = App::new("containeranalysis1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190625") + .version("1.0.12+20190625") .about("An implementation of the Grafeas API, which stores, and enables querying and retrieval of critical metadata about all of your software artifacts.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_containeranalysis1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/containeranalysis1_beta1/Cargo.toml b/gen/containeranalysis1_beta1/Cargo.toml index 92637eaf58..2a2fa50975 100644 --- a/gen/containeranalysis1_beta1/Cargo.toml +++ b/gen/containeranalysis1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-containeranalysis1_beta1" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with Container Analysis (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/containeranalysis1_beta1" homepage = "https://cloud.google.com/container-analysis/api/reference/rest/" -documentation = "https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625" +documentation = "https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625" license = "MIT" keywords = ["containeranalysis", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/containeranalysis1_beta1/LICENSE.md b/gen/containeranalysis1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/containeranalysis1_beta1/LICENSE.md +++ b/gen/containeranalysis1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/containeranalysis1_beta1/README.md b/gen/containeranalysis1_beta1/README.md index ebe22ae015..4177c0c29c 100644 --- a/gen/containeranalysis1_beta1/README.md +++ b/gen/containeranalysis1_beta1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-containeranalysis1_beta1` library allows access to all features of the *Google Container Analysis* service. -This documentation was generated from *Container Analysis* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *containeranalysis:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Container Analysis* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *containeranalysis:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Container Analysis* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/container-analysis/api/reference/rest/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ContainerAnalysis.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ContainerAnalysis.html) ... * projects - * [*notes batch create*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectNoteBatchCreateCall.html), [*notes create*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectNoteCreateCall.html), [*notes delete*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectNoteDeleteCall.html), [*notes get*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectNoteGetCall.html), [*notes get iam policy*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectNoteGetIamPolicyCall.html), [*notes list*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectNoteListCall.html), [*notes occurrences list*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectNoteOccurrenceListCall.html), [*notes patch*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectNotePatchCall.html), [*notes set iam policy*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectNoteSetIamPolicyCall.html), [*notes test iam permissions*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectNoteTestIamPermissionCall.html), [*occurrences batch create*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceBatchCreateCall.html), [*occurrences create*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceCreateCall.html), [*occurrences delete*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceDeleteCall.html), [*occurrences get*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceGetCall.html), [*occurrences get iam policy*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceGetIamPolicyCall.html), [*occurrences get notes*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceGetNoteCall.html), [*occurrences get vulnerability summary*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceGetVulnerabilitySummaryCall.html), [*occurrences list*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceListCall.html), [*occurrences patch*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrencePatchCall.html), [*occurrences set iam policy*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceSetIamPolicyCall.html), [*occurrences test iam permissions*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceTestIamPermissionCall.html), [*scan configs get*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectScanConfigGetCall.html), [*scan configs list*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectScanConfigListCall.html) and [*scan configs update*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ProjectScanConfigUpdateCall.html) + * [*notes batch create*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectNoteBatchCreateCall.html), [*notes create*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectNoteCreateCall.html), [*notes delete*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectNoteDeleteCall.html), [*notes get*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectNoteGetCall.html), [*notes get iam policy*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectNoteGetIamPolicyCall.html), [*notes list*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectNoteListCall.html), [*notes occurrences list*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectNoteOccurrenceListCall.html), [*notes patch*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectNotePatchCall.html), [*notes set iam policy*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectNoteSetIamPolicyCall.html), [*notes test iam permissions*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectNoteTestIamPermissionCall.html), [*occurrences batch create*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceBatchCreateCall.html), [*occurrences create*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceCreateCall.html), [*occurrences delete*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceDeleteCall.html), [*occurrences get*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceGetCall.html), [*occurrences get iam policy*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceGetIamPolicyCall.html), [*occurrences get notes*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceGetNoteCall.html), [*occurrences get vulnerability summary*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceGetVulnerabilitySummaryCall.html), [*occurrences list*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceListCall.html), [*occurrences patch*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrencePatchCall.html), [*occurrences set iam policy*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceSetIamPolicyCall.html), [*occurrences test iam permissions*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectOccurrenceTestIamPermissionCall.html), [*scan configs get*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectScanConfigGetCall.html), [*scan configs list*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectScanConfigListCall.html) and [*scan configs update*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ProjectScanConfigUpdateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/struct.ContainerAnalysis.html)** +* **[Hub](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/struct.ContainerAnalysis.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -134,17 +134,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -154,29 +154,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-containeranalysis1_beta1/1.0.11+20190625/google_containeranalysis1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-containeranalysis1_beta1/1.0.12+20190625/google_containeranalysis1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/containeranalysis1_beta1/src/lib.rs b/gen/containeranalysis1_beta1/src/lib.rs index b61ef9ae1b..f03fa8452c 100644 --- a/gen/containeranalysis1_beta1/src/lib.rs +++ b/gen/containeranalysis1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Container Analysis* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *containeranalysis:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Container Analysis* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *containeranalysis:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Container Analysis* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/container-analysis/api/reference/rest/). @@ -334,7 +334,7 @@ impl<'a, C, A> ContainerAnalysis ContainerAnalysis { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://containeranalysis.googleapis.com/".to_string(), _root_url: "https://containeranalysis.googleapis.com/".to_string(), } @@ -345,7 +345,7 @@ impl<'a, C, A> ContainerAnalysis } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/content2-cli/Cargo.toml b/gen/content2-cli/Cargo.toml index 640d7871d6..deecbee591 100644 --- a/gen/content2-cli/Cargo.toml +++ b/gen/content2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-content2-cli" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Shopping Content (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/content2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-content2] path = "../content2" -version = "1.0.11+20190702" +version = "1.0.12+20190702" diff --git a/gen/content2-cli/LICENSE.md b/gen/content2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/content2-cli/LICENSE.md +++ b/gen/content2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/content2-cli/README.md b/gen/content2-cli/README.md index 1ce1a649b5..77fd48b984 100644 --- a/gen/content2-cli/README.md +++ b/gen/content2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Shopping Content* API at revision *20190702*. The CLI is at version *1.0.11*. +This documentation was generated from the *Shopping Content* API at revision *20190702*. The CLI is at version *1.0.12*. ```bash content2 [options] diff --git a/gen/content2-cli/mkdocs.yml b/gen/content2-cli/mkdocs.yml index 4c2d016f67..0cab9e2bbf 100644 --- a/gen/content2-cli/mkdocs.yml +++ b/gen/content2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Shopping Content v1.0.11+20190702 +site_name: Shopping Content v1.0.12+20190702 site_url: http://byron.github.io/google-apis-rs/google-content2-cli site_description: A complete library to interact with Shopping Content (protocol v2) @@ -108,5 +108,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/content2-cli/src/cmn.rs b/gen/content2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/content2-cli/src/cmn.rs +++ b/gen/content2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/content2-cli/src/main.rs b/gen/content2-cli/src/main.rs index f1c11ffdec..9e4ff0a84f 100644 --- a/gen/content2-cli/src/main.rs +++ b/gen/content2-cli/src/main.rs @@ -10688,7 +10688,7 @@ fn main() { let mut app = App::new("content2") .author("Sebastian Thiel ") - .version("1.0.11+20190702") + .version("1.0.12+20190702") .about("Manages product items, inventory, and Merchant Center accounts for Google Shopping.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_content2_cli") .arg(Arg::with_name("url") diff --git a/gen/content2/Cargo.toml b/gen/content2/Cargo.toml index 70a63b282f..045b988726 100644 --- a/gen/content2/Cargo.toml +++ b/gen/content2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-content2" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Shopping Content (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/content2" homepage = "https://developers.google.com/shopping-content" -documentation = "https://docs.rs/google-content2/1.0.11+20190702" +documentation = "https://docs.rs/google-content2/1.0.12+20190702" license = "MIT" keywords = ["content", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/content2/LICENSE.md b/gen/content2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/content2/LICENSE.md +++ b/gen/content2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/content2/README.md b/gen/content2/README.md index 73836f0901..51550d6b6a 100644 --- a/gen/content2/README.md +++ b/gen/content2/README.md @@ -5,46 +5,46 @@ DO NOT EDIT ! --> The `google-content2` library allows access to all features of the *Google Shopping Content* service. -This documentation was generated from *Shopping Content* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *content:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Shopping Content* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *content:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Shopping Content* *v2* API can be found at the [official documentation site](https://developers.google.com/shopping-content). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ShoppingContent.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ShoppingContent.html) ... -* [accounts](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.Account.html) - * [*authinfo*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccountAuthinfoCall.html), [*claimwebsite*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccountClaimwebsiteCall.html), [*custombatch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccountCustombatchCall.html), [*delete*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccountDeleteCall.html), [*get*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccountGetCall.html), [*insert*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccountInsertCall.html), [*link*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccountLinkCall.html), [*list*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccountListCall.html), [*patch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccountPatchCall.html) and [*update*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccountUpdateCall.html) +* [accounts](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.Account.html) + * [*authinfo*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccountAuthinfoCall.html), [*claimwebsite*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccountClaimwebsiteCall.html), [*custombatch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccountCustombatchCall.html), [*delete*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccountDeleteCall.html), [*get*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccountGetCall.html), [*insert*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccountInsertCall.html), [*link*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccountLinkCall.html), [*list*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccountListCall.html), [*patch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccountPatchCall.html) and [*update*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccountUpdateCall.html) * accountstatuses - * [*custombatch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccountstatuseCustombatchCall.html), [*get*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccountstatuseGetCall.html) and [*list*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccountstatuseListCall.html) + * [*custombatch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccountstatuseCustombatchCall.html), [*get*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccountstatuseGetCall.html) and [*list*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccountstatuseListCall.html) * accounttax - * [*custombatch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccounttaxCustombatchCall.html), [*get*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccounttaxGetCall.html), [*list*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccounttaxListCall.html), [*patch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccounttaxPatchCall.html) and [*update*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.AccounttaxUpdateCall.html) -* [datafeeds](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.Datafeed.html) - * [*custombatch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.DatafeedCustombatchCall.html), [*delete*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.DatafeedDeleteCall.html), [*fetchnow*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.DatafeedFetchnowCall.html), [*get*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.DatafeedGetCall.html), [*insert*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.DatafeedInsertCall.html), [*list*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.DatafeedListCall.html), [*patch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.DatafeedPatchCall.html) and [*update*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.DatafeedUpdateCall.html) + * [*custombatch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccounttaxCustombatchCall.html), [*get*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccounttaxGetCall.html), [*list*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccounttaxListCall.html), [*patch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccounttaxPatchCall.html) and [*update*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.AccounttaxUpdateCall.html) +* [datafeeds](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.Datafeed.html) + * [*custombatch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.DatafeedCustombatchCall.html), [*delete*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.DatafeedDeleteCall.html), [*fetchnow*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.DatafeedFetchnowCall.html), [*get*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.DatafeedGetCall.html), [*insert*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.DatafeedInsertCall.html), [*list*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.DatafeedListCall.html), [*patch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.DatafeedPatchCall.html) and [*update*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.DatafeedUpdateCall.html) * datafeedstatuses - * [*custombatch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.DatafeedstatuseCustombatchCall.html), [*get*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.DatafeedstatuseGetCall.html) and [*list*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.DatafeedstatuseListCall.html) -* [inventory](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.Inventory.html) - * [*custombatch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.InventoryCustombatchCall.html) and [*set*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.InventorySetCall.html) + * [*custombatch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.DatafeedstatuseCustombatchCall.html), [*get*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.DatafeedstatuseGetCall.html) and [*list*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.DatafeedstatuseListCall.html) +* [inventory](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.Inventory.html) + * [*custombatch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.InventoryCustombatchCall.html) and [*set*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.InventorySetCall.html) * liasettings - * [*custombatch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.LiasettingCustombatchCall.html), [*get*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.LiasettingGetCall.html), [*getaccessiblegmbaccounts*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.LiasettingGetaccessiblegmbaccountCall.html), [*list*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.LiasettingListCall.html), [*listposdataproviders*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.LiasettingListposdataproviderCall.html), [*patch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.LiasettingPatchCall.html), [*requestgmbaccess*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.LiasettingRequestgmbaccesCall.html), [*requestinventoryverification*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.LiasettingRequestinventoryverificationCall.html), [*setinventoryverificationcontact*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.LiasettingSetinventoryverificationcontactCall.html), [*setposdataprovider*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.LiasettingSetposdataproviderCall.html) and [*update*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.LiasettingUpdateCall.html) + * [*custombatch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.LiasettingCustombatchCall.html), [*get*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.LiasettingGetCall.html), [*getaccessiblegmbaccounts*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.LiasettingGetaccessiblegmbaccountCall.html), [*list*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.LiasettingListCall.html), [*listposdataproviders*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.LiasettingListposdataproviderCall.html), [*patch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.LiasettingPatchCall.html), [*requestgmbaccess*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.LiasettingRequestgmbaccesCall.html), [*requestinventoryverification*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.LiasettingRequestinventoryverificationCall.html), [*setinventoryverificationcontact*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.LiasettingSetinventoryverificationcontactCall.html), [*setposdataprovider*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.LiasettingSetposdataproviderCall.html) and [*update*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.LiasettingUpdateCall.html) * orderinvoices - * [*createchargeinvoice*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderinvoiceCreatechargeinvoiceCall.html) and [*createrefundinvoice*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderinvoiceCreaterefundinvoiceCall.html) + * [*createchargeinvoice*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderinvoiceCreatechargeinvoiceCall.html) and [*createrefundinvoice*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderinvoiceCreaterefundinvoiceCall.html) * orderpayments - * [*notifyauthapproved*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderpaymentNotifyauthapprovedCall.html), [*notifyauthdeclined*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderpaymentNotifyauthdeclinedCall.html), [*notifycharge*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderpaymentNotifychargeCall.html) and [*notifyrefund*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderpaymentNotifyrefundCall.html) + * [*notifyauthapproved*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderpaymentNotifyauthapprovedCall.html), [*notifyauthdeclined*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderpaymentNotifyauthdeclinedCall.html), [*notifycharge*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderpaymentNotifychargeCall.html) and [*notifyrefund*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderpaymentNotifyrefundCall.html) * orderreports - * [*listdisbursements*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderreportListdisbursementCall.html) and [*listtransactions*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderreportListtransactionCall.html) + * [*listdisbursements*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderreportListdisbursementCall.html) and [*listtransactions*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderreportListtransactionCall.html) * orderreturns - * [*get*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderreturnGetCall.html) and [*list*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderreturnListCall.html) -* [orders](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.Order.html) - * [*acknowledge*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderAcknowledgeCall.html), [*advancetestorder*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderAdvancetestorderCall.html), [*cancel*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderCancelCall.html), [*cancellineitem*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderCancellineitemCall.html), [*canceltestorderbycustomer*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderCanceltestorderbycustomerCall.html), [*createtestorder*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderCreatetestorderCall.html), [*createtestreturn*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderCreatetestreturnCall.html), [*custombatch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderCustombatchCall.html), [*get*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderGetCall.html), [*getbymerchantorderid*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderGetbymerchantorderidCall.html), [*gettestordertemplate*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderGettestordertemplateCall.html), [*instorerefundlineitem*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderInstorerefundlineitemCall.html), [*list*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderListCall.html), [*refund*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderRefundCall.html), [*rejectreturnlineitem*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderRejectreturnlineitemCall.html), [*returnlineitem*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderReturnlineitemCall.html), [*returnrefundlineitem*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderReturnrefundlineitemCall.html), [*setlineitemmetadata*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderSetlineitemmetadataCall.html), [*shiplineitems*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderShiplineitemCall.html), [*updatelineitemshippingdetails*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderUpdatelineitemshippingdetailCall.html), [*updatemerchantorderid*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderUpdatemerchantorderidCall.html) and [*updateshipment*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.OrderUpdateshipmentCall.html) + * [*get*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderreturnGetCall.html) and [*list*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderreturnListCall.html) +* [orders](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.Order.html) + * [*acknowledge*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderAcknowledgeCall.html), [*advancetestorder*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderAdvancetestorderCall.html), [*cancel*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderCancelCall.html), [*cancellineitem*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderCancellineitemCall.html), [*canceltestorderbycustomer*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderCanceltestorderbycustomerCall.html), [*createtestorder*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderCreatetestorderCall.html), [*createtestreturn*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderCreatetestreturnCall.html), [*custombatch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderCustombatchCall.html), [*get*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderGetCall.html), [*getbymerchantorderid*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderGetbymerchantorderidCall.html), [*gettestordertemplate*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderGettestordertemplateCall.html), [*instorerefundlineitem*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderInstorerefundlineitemCall.html), [*list*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderListCall.html), [*refund*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderRefundCall.html), [*rejectreturnlineitem*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderRejectreturnlineitemCall.html), [*returnlineitem*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderReturnlineitemCall.html), [*returnrefundlineitem*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderReturnrefundlineitemCall.html), [*setlineitemmetadata*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderSetlineitemmetadataCall.html), [*shiplineitems*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderShiplineitemCall.html), [*updatelineitemshippingdetails*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderUpdatelineitemshippingdetailCall.html), [*updatemerchantorderid*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderUpdatemerchantorderidCall.html) and [*updateshipment*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.OrderUpdateshipmentCall.html) * pos - * [*custombatch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.PoCustombatchCall.html), [*delete*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.PoDeleteCall.html), [*get*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.PoGetCall.html), [*insert*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.PoInsertCall.html), [*inventory*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.PoInventoryCall.html), [*list*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.PoListCall.html) and [*sale*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.PoSaleCall.html) -* [products](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.Product.html) - * [*custombatch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ProductCustombatchCall.html), [*delete*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ProductDeleteCall.html), [*get*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ProductGetCall.html), [*insert*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ProductInsertCall.html) and [*list*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ProductListCall.html) + * [*custombatch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.PoCustombatchCall.html), [*delete*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.PoDeleteCall.html), [*get*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.PoGetCall.html), [*insert*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.PoInsertCall.html), [*inventory*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.PoInventoryCall.html), [*list*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.PoListCall.html) and [*sale*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.PoSaleCall.html) +* [products](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.Product.html) + * [*custombatch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ProductCustombatchCall.html), [*delete*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ProductDeleteCall.html), [*get*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ProductGetCall.html), [*insert*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ProductInsertCall.html) and [*list*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ProductListCall.html) * productstatuses - * [*custombatch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ProductstatuseCustombatchCall.html), [*get*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ProductstatuseGetCall.html) and [*list*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ProductstatuseListCall.html) + * [*custombatch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ProductstatuseCustombatchCall.html), [*get*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ProductstatuseGetCall.html) and [*list*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ProductstatuseListCall.html) * shippingsettings - * [*custombatch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ShippingsettingCustombatchCall.html), [*get*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ShippingsettingGetCall.html), [*getsupportedcarriers*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ShippingsettingGetsupportedcarrierCall.html), [*getsupportedholidays*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ShippingsettingGetsupportedholidayCall.html), [*list*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ShippingsettingListCall.html), [*patch*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ShippingsettingPatchCall.html) and [*update*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ShippingsettingUpdateCall.html) + * [*custombatch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ShippingsettingCustombatchCall.html), [*get*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ShippingsettingGetCall.html), [*getsupportedcarriers*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ShippingsettingGetsupportedcarrierCall.html), [*getsupportedholidays*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ShippingsettingGetsupportedholidayCall.html), [*list*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ShippingsettingListCall.html), [*patch*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ShippingsettingPatchCall.html) and [*update*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ShippingsettingUpdateCall.html) @@ -53,17 +53,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-content2/1.0.11+20190702/google_content2/struct.ShoppingContent.html)** +* **[Hub](https://docs.rs/google-content2/1.0.12+20190702/google_content2/struct.ShoppingContent.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.Part.html)** + * **[Parts](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -182,17 +182,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-content2/1.0.11+20190702/google_content2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-content2/1.0.12+20190702/google_content2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-content2/1.0.11+20190702/google_content2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-content2/1.0.12+20190702/google_content2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -202,29 +202,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-content2/1.0.11+20190702/google_content2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-content2/1.0.12+20190702/google_content2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/content2/src/lib.rs b/gen/content2/src/lib.rs index 26f7c004ed..3a5984b95b 100644 --- a/gen/content2/src/lib.rs +++ b/gen/content2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Shopping Content* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *content:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Shopping Content* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *content:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Shopping Content* *v2* API can be found at the //! [official documentation site](https://developers.google.com/shopping-content). @@ -382,7 +382,7 @@ impl<'a, C, A> ShoppingContent ShoppingContent { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/content/v2/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -438,7 +438,7 @@ impl<'a, C, A> ShoppingContent } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/content2_sandbox-cli/Cargo.toml b/gen/content2_sandbox-cli/Cargo.toml index 0d2785a4e5..7d343b7338 100644 --- a/gen/content2_sandbox-cli/Cargo.toml +++ b/gen/content2_sandbox-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-content2_sandbox-cli" -version = "1.0.11+20181009" +version = "1.0.12+20181009" authors = ["Sebastian Thiel "] description = "A complete library to interact with Shopping Content (protocol v2sandbox)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/content2_sandbox-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-content2_sandbox] path = "../content2_sandbox" -version = "1.0.11+20181009" +version = "1.0.12+20181009" diff --git a/gen/content2_sandbox-cli/LICENSE.md b/gen/content2_sandbox-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/content2_sandbox-cli/LICENSE.md +++ b/gen/content2_sandbox-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/content2_sandbox-cli/README.md b/gen/content2_sandbox-cli/README.md index bc92dab4b7..6937980ee0 100644 --- a/gen/content2_sandbox-cli/README.md +++ b/gen/content2_sandbox-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Shopping Content* API at revision *20181009*. The CLI is at version *1.0.11*. +This documentation was generated from the *Shopping Content* API at revision *20181009*. The CLI is at version *1.0.12*. ```bash content2-sandbox [options] diff --git a/gen/content2_sandbox-cli/mkdocs.yml b/gen/content2_sandbox-cli/mkdocs.yml index d39caffe91..35a84e6b8f 100644 --- a/gen/content2_sandbox-cli/mkdocs.yml +++ b/gen/content2_sandbox-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Shopping Content v1.0.11+20181009 +site_name: Shopping Content v1.0.12+20181009 site_url: http://byron.github.io/google-apis-rs/google-content2_sandbox-cli site_description: A complete library to interact with Shopping Content (protocol v2sandbox) @@ -42,5 +42,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/content2_sandbox-cli/src/cmn.rs b/gen/content2_sandbox-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/content2_sandbox-cli/src/cmn.rs +++ b/gen/content2_sandbox-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/content2_sandbox-cli/src/main.rs b/gen/content2_sandbox-cli/src/main.rs index 739c4e744b..e04b3fc0aa 100644 --- a/gen/content2_sandbox-cli/src/main.rs +++ b/gen/content2_sandbox-cli/src/main.rs @@ -3693,7 +3693,7 @@ fn main() { let mut app = App::new("content2-sandbox") .author("Sebastian Thiel ") - .version("1.0.11+20181009") + .version("1.0.12+20181009") .about("Manages product items, inventory, and Merchant Center accounts for Google Shopping.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_content2_sandbox_cli") .arg(Arg::with_name("url") diff --git a/gen/content2_sandbox/Cargo.toml b/gen/content2_sandbox/Cargo.toml index f89d95fc49..5fc6326bdb 100644 --- a/gen/content2_sandbox/Cargo.toml +++ b/gen/content2_sandbox/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-content2_sandbox" -version = "1.0.11+20181009" +version = "1.0.12+20181009" authors = ["Sebastian Thiel "] description = "A complete library to interact with Shopping Content (protocol v2sandbox)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/content2_sandbox" homepage = "https://developers.google.com/shopping-content" -documentation = "https://docs.rs/google-content2_sandbox/1.0.11+20181009" +documentation = "https://docs.rs/google-content2_sandbox/1.0.12+20181009" license = "MIT" keywords = ["content", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/content2_sandbox/LICENSE.md b/gen/content2_sandbox/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/content2_sandbox/LICENSE.md +++ b/gen/content2_sandbox/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/content2_sandbox/README.md b/gen/content2_sandbox/README.md index 25d3fb86bd..bb0ae23349 100644 --- a/gen/content2_sandbox/README.md +++ b/gen/content2_sandbox/README.md @@ -5,22 +5,22 @@ DO NOT EDIT ! --> The `google-content2_sandbox` library allows access to all features of the *Google Shopping Content* service. -This documentation was generated from *Shopping Content* crate version *1.0.11+20181009*, where *20181009* is the exact revision of the *content:v2sandbox* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Shopping Content* crate version *1.0.12+20181009*, where *20181009* is the exact revision of the *content:v2sandbox* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Shopping Content* *v2_sandbox* API can be found at the [official documentation site](https://developers.google.com/shopping-content). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.ShoppingContent.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.ShoppingContent.html) ... * orderinvoices - * [*createchargeinvoice*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderinvoiceCreatechargeinvoiceCall.html) and [*createrefundinvoice*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderinvoiceCreaterefundinvoiceCall.html) + * [*createchargeinvoice*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderinvoiceCreatechargeinvoiceCall.html) and [*createrefundinvoice*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderinvoiceCreaterefundinvoiceCall.html) * orderpayments - * [*notifyauthapproved*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderpaymentNotifyauthapprovedCall.html), [*notifyauthdeclined*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderpaymentNotifyauthdeclinedCall.html), [*notifycharge*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderpaymentNotifychargeCall.html) and [*notifyrefund*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderpaymentNotifyrefundCall.html) + * [*notifyauthapproved*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderpaymentNotifyauthapprovedCall.html), [*notifyauthdeclined*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderpaymentNotifyauthdeclinedCall.html), [*notifycharge*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderpaymentNotifychargeCall.html) and [*notifyrefund*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderpaymentNotifyrefundCall.html) * orderreturns - * [*get*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderreturnGetCall.html) and [*list*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderreturnListCall.html) -* [orders](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.Order.html) - * [*acknowledge*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderAcknowledgeCall.html), [*advancetestorder*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderAdvancetestorderCall.html), [*cancel*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderCancelCall.html), [*cancellineitem*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderCancellineitemCall.html), [*canceltestorderbycustomer*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderCanceltestorderbycustomerCall.html), [*createtestorder*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderCreatetestorderCall.html), [*createtestreturn*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderCreatetestreturnCall.html), [*custombatch*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderCustombatchCall.html), [*get*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderGetCall.html), [*getbymerchantorderid*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderGetbymerchantorderidCall.html), [*gettestordertemplate*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderGettestordertemplateCall.html), [*instorerefundlineitem*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderInstorerefundlineitemCall.html), [*list*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderListCall.html), [*refund*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderRefundCall.html), [*rejectreturnlineitem*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderRejectreturnlineitemCall.html), [*returnlineitem*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderReturnlineitemCall.html), [*returnrefundlineitem*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderReturnrefundlineitemCall.html), [*setlineitemmetadata*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderSetlineitemmetadataCall.html), [*shiplineitems*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderShiplineitemCall.html), [*updatelineitemshippingdetails*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderUpdatelineitemshippingdetailCall.html), [*updatemerchantorderid*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderUpdatemerchantorderidCall.html) and [*updateshipment*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.OrderUpdateshipmentCall.html) + * [*get*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderreturnGetCall.html) and [*list*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderreturnListCall.html) +* [orders](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.Order.html) + * [*acknowledge*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderAcknowledgeCall.html), [*advancetestorder*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderAdvancetestorderCall.html), [*cancel*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderCancelCall.html), [*cancellineitem*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderCancellineitemCall.html), [*canceltestorderbycustomer*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderCanceltestorderbycustomerCall.html), [*createtestorder*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderCreatetestorderCall.html), [*createtestreturn*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderCreatetestreturnCall.html), [*custombatch*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderCustombatchCall.html), [*get*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderGetCall.html), [*getbymerchantorderid*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderGetbymerchantorderidCall.html), [*gettestordertemplate*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderGettestordertemplateCall.html), [*instorerefundlineitem*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderInstorerefundlineitemCall.html), [*list*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderListCall.html), [*refund*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderRefundCall.html), [*rejectreturnlineitem*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderRejectreturnlineitemCall.html), [*returnlineitem*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderReturnlineitemCall.html), [*returnrefundlineitem*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderReturnrefundlineitemCall.html), [*setlineitemmetadata*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderSetlineitemmetadataCall.html), [*shiplineitems*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderShiplineitemCall.html), [*updatelineitemshippingdetails*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderUpdatelineitemshippingdetailCall.html), [*updatemerchantorderid*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderUpdatemerchantorderidCall.html) and [*updateshipment*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.OrderUpdateshipmentCall.html) @@ -29,17 +29,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/struct.ShoppingContent.html)** +* **[Hub](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/struct.ShoppingContent.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.Part.html)** + * **[Parts](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -158,17 +158,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -178,29 +178,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.RequestValue.html) and -[decodable](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.RequestValue.html) and +[decodable](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-content2_sandbox/1.0.11+20181009/google_content2_sandbox/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-content2_sandbox/1.0.12+20181009/google_content2_sandbox/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/content2_sandbox/src/lib.rs b/gen/content2_sandbox/src/lib.rs index 6ded554732..8bc44d77a5 100644 --- a/gen/content2_sandbox/src/lib.rs +++ b/gen/content2_sandbox/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Shopping Content* crate version *1.0.11+20181009*, where *20181009* is the exact revision of the *content:v2sandbox* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Shopping Content* crate version *1.0.12+20181009*, where *20181009* is the exact revision of the *content:v2sandbox* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Shopping Content* *v2_sandbox* API can be found at the //! [official documentation site](https://developers.google.com/shopping-content). @@ -358,7 +358,7 @@ impl<'a, C, A> ShoppingContent ShoppingContent { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/content/v2sandbox/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -378,7 +378,7 @@ impl<'a, C, A> ShoppingContent } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/coordinate1-cli/Cargo.toml b/gen/coordinate1-cli/Cargo.toml index aee6c81510..277b385919 100644 --- a/gen/coordinate1-cli/Cargo.toml +++ b/gen/coordinate1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-coordinate1-cli" -version = "1.0.11+20150811" +version = "1.0.12+20150811" authors = ["Sebastian Thiel "] description = "A complete library to interact with coordinate (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/coordinate1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-coordinate1] path = "../coordinate1" -version = "1.0.11+20150811" +version = "1.0.12+20150811" diff --git a/gen/coordinate1-cli/LICENSE.md b/gen/coordinate1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/coordinate1-cli/LICENSE.md +++ b/gen/coordinate1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/coordinate1-cli/README.md b/gen/coordinate1-cli/README.md index b42310bb21..7747c5915e 100644 --- a/gen/coordinate1-cli/README.md +++ b/gen/coordinate1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *coordinate* API at revision *20150811*. The CLI is at version *1.0.11*. +This documentation was generated from the *coordinate* API at revision *20150811*. The CLI is at version *1.0.12*. ```bash coordinate1 [options] diff --git a/gen/coordinate1-cli/mkdocs.yml b/gen/coordinate1-cli/mkdocs.yml index e8f1802cb5..34e48271cd 100644 --- a/gen/coordinate1-cli/mkdocs.yml +++ b/gen/coordinate1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: coordinate v1.0.11+20150811 +site_name: coordinate v1.0.12+20150811 site_url: http://byron.github.io/google-apis-rs/google-coordinate1-cli site_description: A complete library to interact with coordinate (protocol v1) @@ -24,5 +24,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/coordinate1-cli/src/cmn.rs b/gen/coordinate1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/coordinate1-cli/src/cmn.rs +++ b/gen/coordinate1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/coordinate1-cli/src/main.rs b/gen/coordinate1-cli/src/main.rs index 0da9fe8e39..0bd6d6d21c 100644 --- a/gen/coordinate1-cli/src/main.rs +++ b/gen/coordinate1-cli/src/main.rs @@ -1571,7 +1571,7 @@ fn main() { let mut app = App::new("coordinate1") .author("Sebastian Thiel ") - .version("1.0.11+20150811") + .version("1.0.12+20150811") .about("Lets you view and manage jobs in a Coordinate team.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_coordinate1_cli") .arg(Arg::with_name("url") diff --git a/gen/coordinate1/Cargo.toml b/gen/coordinate1/Cargo.toml index dbb6b4e1ea..e8d436105b 100644 --- a/gen/coordinate1/Cargo.toml +++ b/gen/coordinate1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-coordinate1" -version = "1.0.11+20150811" +version = "1.0.12+20150811" authors = ["Sebastian Thiel "] description = "A complete library to interact with coordinate (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/coordinate1" homepage = "https://developers.google.com/coordinate/" -documentation = "https://docs.rs/google-coordinate1/1.0.11+20150811" +documentation = "https://docs.rs/google-coordinate1/1.0.12+20150811" license = "MIT" keywords = ["coordinate", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/coordinate1/LICENSE.md b/gen/coordinate1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/coordinate1/LICENSE.md +++ b/gen/coordinate1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/coordinate1/README.md b/gen/coordinate1/README.md index fdd0891ffb..8fdeb529c0 100644 --- a/gen/coordinate1/README.md +++ b/gen/coordinate1/README.md @@ -5,26 +5,26 @@ DO NOT EDIT ! --> The `google-coordinate1` library allows access to all features of the *Google coordinate* service. -This documentation was generated from *coordinate* crate version *1.0.11+20150811*, where *20150811* is the exact revision of the *coordinate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *coordinate* crate version *1.0.12+20150811*, where *20150811* is the exact revision of the *coordinate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *coordinate* *v1* API can be found at the [official documentation site](https://developers.google.com/coordinate/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.Coordinate.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.Coordinate.html) ... -* [custom field def](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.CustomFieldDef.html) - * [*list*](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.CustomFieldDefListCall.html) -* [jobs](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.Job.html) - * [*get*](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.JobGetCall.html), [*insert*](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.JobInsertCall.html), [*list*](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.JobListCall.html), [*patch*](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.JobPatchCall.html) and [*update*](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.JobUpdateCall.html) -* [location](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.Location.html) - * [*list*](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.LocationListCall.html) -* [schedule](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.Schedule.html) - * [*get*](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.ScheduleGetCall.html), [*patch*](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.SchedulePatchCall.html) and [*update*](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.ScheduleUpdateCall.html) -* [team](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.Team.html) - * [*list*](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.TeamListCall.html) -* [worker](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.Worker.html) - * [*list*](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.WorkerListCall.html) +* [custom field def](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.CustomFieldDef.html) + * [*list*](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.CustomFieldDefListCall.html) +* [jobs](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.Job.html) + * [*get*](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.JobGetCall.html), [*insert*](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.JobInsertCall.html), [*list*](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.JobListCall.html), [*patch*](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.JobPatchCall.html) and [*update*](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.JobUpdateCall.html) +* [location](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.Location.html) + * [*list*](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.LocationListCall.html) +* [schedule](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.Schedule.html) + * [*get*](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.ScheduleGetCall.html), [*patch*](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.SchedulePatchCall.html) and [*update*](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.ScheduleUpdateCall.html) +* [team](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.Team.html) + * [*list*](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.TeamListCall.html) +* [worker](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.Worker.html) + * [*list*](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.WorkerListCall.html) @@ -33,17 +33,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/struct.Coordinate.html)** +* **[Hub](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/struct.Coordinate.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.Part.html)** + * **[Parts](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -154,17 +154,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -174,29 +174,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-coordinate1/1.0.11+20150811/google_coordinate1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-coordinate1/1.0.12+20150811/google_coordinate1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/coordinate1/src/lib.rs b/gen/coordinate1/src/lib.rs index 8d4879cc6b..5d09eec9a6 100644 --- a/gen/coordinate1/src/lib.rs +++ b/gen/coordinate1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *coordinate* crate version *1.0.11+20150811*, where *20150811* is the exact revision of the *coordinate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *coordinate* crate version *1.0.12+20150811*, where *20150811* is the exact revision of the *coordinate:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *coordinate* *v1* API can be found at the //! [official documentation site](https://developers.google.com/coordinate/). @@ -367,7 +367,7 @@ impl<'a, C, A> Coordinate Coordinate { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/coordinate/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -393,7 +393,7 @@ impl<'a, C, A> Coordinate } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/customsearch1-cli/Cargo.toml b/gen/customsearch1-cli/Cargo.toml index 056a5847c4..5040f85bc9 100644 --- a/gen/customsearch1-cli/Cargo.toml +++ b/gen/customsearch1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-customsearch1-cli" -version = "1.0.11+20181001" +version = "1.0.12+20181001" authors = ["Sebastian Thiel "] description = "A complete library to interact with customsearch (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/customsearch1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-customsearch1] path = "../customsearch1" -version = "1.0.11+20181001" +version = "1.0.12+20181001" diff --git a/gen/customsearch1-cli/LICENSE.md b/gen/customsearch1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/customsearch1-cli/LICENSE.md +++ b/gen/customsearch1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/customsearch1-cli/README.md b/gen/customsearch1-cli/README.md index 6daf23ef62..2169463042 100644 --- a/gen/customsearch1-cli/README.md +++ b/gen/customsearch1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *customsearch* API at revision *20181001*. The CLI is at version *1.0.11*. +This documentation was generated from the *customsearch* API at revision *20181001*. The CLI is at version *1.0.12*. ```bash customsearch1 [options] diff --git a/gen/customsearch1-cli/mkdocs.yml b/gen/customsearch1-cli/mkdocs.yml index eade86c270..b86d267dda 100644 --- a/gen/customsearch1-cli/mkdocs.yml +++ b/gen/customsearch1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: customsearch v1.0.11+20181001 +site_name: customsearch v1.0.12+20181001 site_url: http://byron.github.io/google-apis-rs/google-customsearch1-cli site_description: A complete library to interact with customsearch (protocol v1) @@ -14,5 +14,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/customsearch1-cli/src/cmn.rs b/gen/customsearch1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/customsearch1-cli/src/cmn.rs +++ b/gen/customsearch1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/customsearch1-cli/src/main.rs b/gen/customsearch1-cli/src/main.rs index 1046e96af6..02f3f3a651 100644 --- a/gen/customsearch1-cli/src/main.rs +++ b/gen/customsearch1-cli/src/main.rs @@ -478,7 +478,7 @@ fn main() { let mut app = App::new("customsearch1") .author("Sebastian Thiel ") - .version("1.0.11+20181001") + .version("1.0.12+20181001") .about("Searches over a website or collection of websites") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_customsearch1_cli") .arg(Arg::with_name("folder") diff --git a/gen/customsearch1/Cargo.toml b/gen/customsearch1/Cargo.toml index d31fe6eff4..fdd9d7e78e 100644 --- a/gen/customsearch1/Cargo.toml +++ b/gen/customsearch1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-customsearch1" -version = "1.0.11+20181001" +version = "1.0.12+20181001" authors = ["Sebastian Thiel "] description = "A complete library to interact with customsearch (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/customsearch1" homepage = "https://developers.google.com/custom-search/v1/using_rest" -documentation = "https://docs.rs/google-customsearch1/1.0.11+20181001" +documentation = "https://docs.rs/google-customsearch1/1.0.12+20181001" license = "MIT" keywords = ["customsearch", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/customsearch1/LICENSE.md b/gen/customsearch1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/customsearch1/LICENSE.md +++ b/gen/customsearch1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/customsearch1/README.md b/gen/customsearch1/README.md index f9948267da..3339fcf549 100644 --- a/gen/customsearch1/README.md +++ b/gen/customsearch1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-customsearch1` library allows access to all features of the *Google customsearch* service. -This documentation was generated from *customsearch* crate version *1.0.11+20181001*, where *20181001* is the exact revision of the *customsearch:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *customsearch* crate version *1.0.12+20181001*, where *20181001* is the exact revision of the *customsearch:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *customsearch* *v1* API can be found at the [official documentation site](https://developers.google.com/custom-search/v1/using_rest). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/struct.Customsearch.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/struct.Customsearch.html) ... * cse - * [*list*](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/struct.CseListCall.html) and [*siterestrict list*](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/struct.CseSiterestrictListCall.html) + * [*list*](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/struct.CseListCall.html) and [*siterestrict list*](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/struct.CseSiterestrictListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/struct.Customsearch.html)** +* **[Hub](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/struct.Customsearch.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.Part.html)** + * **[Parts](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -155,17 +155,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -175,29 +175,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-customsearch1/1.0.11+20181001/google_customsearch1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-customsearch1/1.0.12+20181001/google_customsearch1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/customsearch1/src/lib.rs b/gen/customsearch1/src/lib.rs index 36e0c1a25c..fd47844e8d 100644 --- a/gen/customsearch1/src/lib.rs +++ b/gen/customsearch1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *customsearch* crate version *1.0.11+20181001*, where *20181001* is the exact revision of the *customsearch:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *customsearch* crate version *1.0.12+20181001*, where *20181001* is the exact revision of the *customsearch:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *customsearch* *v1* API can be found at the //! [official documentation site](https://developers.google.com/custom-search/v1/using_rest). @@ -356,7 +356,7 @@ impl<'a, C, A> Customsearch Customsearch { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/customsearch/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -367,7 +367,7 @@ impl<'a, C, A> Customsearch } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/datafusion1_beta1-cli/Cargo.toml b/gen/datafusion1_beta1-cli/Cargo.toml index 6a201f87a8..cee0e97356 100644 --- a/gen/datafusion1_beta1-cli/Cargo.toml +++ b/gen/datafusion1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-datafusion1_beta1-cli" -version = "1.0.11+20190617" +version = "1.0.12+20190617" authors = ["Sebastian Thiel "] description = "A complete library to interact with Data Fusion (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/datafusion1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-datafusion1_beta1] path = "../datafusion1_beta1" -version = "1.0.11+20190617" +version = "1.0.12+20190617" diff --git a/gen/datafusion1_beta1-cli/LICENSE.md b/gen/datafusion1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/datafusion1_beta1-cli/LICENSE.md +++ b/gen/datafusion1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/datafusion1_beta1-cli/README.md b/gen/datafusion1_beta1-cli/README.md index bcb589b03a..c3aa292cc8 100644 --- a/gen/datafusion1_beta1-cli/README.md +++ b/gen/datafusion1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Data Fusion* API at revision *20190617*. The CLI is at version *1.0.11*. +This documentation was generated from the *Data Fusion* API at revision *20190617*. The CLI is at version *1.0.12*. ```bash datafusion1-beta1 [options] diff --git a/gen/datafusion1_beta1-cli/mkdocs.yml b/gen/datafusion1_beta1-cli/mkdocs.yml index 0529a1c894..de412123f4 100644 --- a/gen/datafusion1_beta1-cli/mkdocs.yml +++ b/gen/datafusion1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Data Fusion v1.0.11+20190617 +site_name: Data Fusion v1.0.12+20190617 site_url: http://byron.github.io/google-apis-rs/google-datafusion1_beta1-cli site_description: A complete library to interact with Data Fusion (protocol v1beta1) @@ -28,5 +28,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/datafusion1_beta1-cli/src/cmn.rs b/gen/datafusion1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/datafusion1_beta1-cli/src/cmn.rs +++ b/gen/datafusion1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/datafusion1_beta1-cli/src/main.rs b/gen/datafusion1_beta1-cli/src/main.rs index 4061773469..ef78d7b0f6 100644 --- a/gen/datafusion1_beta1-cli/src/main.rs +++ b/gen/datafusion1_beta1-cli/src/main.rs @@ -1781,7 +1781,7 @@ fn main() { let mut app = App::new("datafusion1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190617") + .version("1.0.12+20190617") .about("Cloud Data Fusion is a fully-managed, cloud native, enterprise data integration service for quickly building and managing data pipelines. It provides a graphical interface to increase time efficiency and reduce complexity, and allows business users, developers, and data diff --git a/gen/datafusion1_beta1/Cargo.toml b/gen/datafusion1_beta1/Cargo.toml index 776772a577..8bbdc84482 100644 --- a/gen/datafusion1_beta1/Cargo.toml +++ b/gen/datafusion1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-datafusion1_beta1" -version = "1.0.11+20190617" +version = "1.0.12+20190617" authors = ["Sebastian Thiel "] description = "A complete library to interact with Data Fusion (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/datafusion1_beta1" homepage = "https://cloud.google.com/data-fusion/docs" -documentation = "https://docs.rs/google-datafusion1_beta1/1.0.11+20190617" +documentation = "https://docs.rs/google-datafusion1_beta1/1.0.12+20190617" license = "MIT" keywords = ["datafusion", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/datafusion1_beta1/LICENSE.md b/gen/datafusion1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/datafusion1_beta1/LICENSE.md +++ b/gen/datafusion1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/datafusion1_beta1/README.md b/gen/datafusion1_beta1/README.md index c3870e5d8f..995d6b3ce0 100644 --- a/gen/datafusion1_beta1/README.md +++ b/gen/datafusion1_beta1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-datafusion1_beta1` library allows access to all features of the *Google Data Fusion* service. -This documentation was generated from *Data Fusion* crate version *1.0.11+20190617*, where *20190617* is the exact revision of the *datafusion:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Data Fusion* crate version *1.0.12+20190617*, where *20190617* is the exact revision of the *datafusion:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Data Fusion* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/data-fusion/docs). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.DataFusion.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.DataFusion.html) ... * projects - * [*locations get*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationGetCall.html), [*locations instances create*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceCreateCall.html), [*locations instances delete*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceDeleteCall.html), [*locations instances get*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceGetCall.html), [*locations instances get iam policy*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceGetIamPolicyCall.html), [*locations instances list*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceListCall.html), [*locations instances patch*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationInstancePatchCall.html), [*locations instances restart*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceRestartCall.html), [*locations instances set iam policy*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceSetIamPolicyCall.html), [*locations instances test iam permissions*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceTestIamPermissionCall.html), [*locations instances upgrade*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceUpgradeCall.html), [*locations list*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationListCall.html), [*locations operations cancel*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationOperationCancelCall.html), [*locations operations delete*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationOperationGetCall.html) and [*locations operations list*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.ProjectLocationOperationListCall.html) + * [*locations get*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationGetCall.html), [*locations instances create*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceCreateCall.html), [*locations instances delete*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceDeleteCall.html), [*locations instances get*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceGetCall.html), [*locations instances get iam policy*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceGetIamPolicyCall.html), [*locations instances list*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceListCall.html), [*locations instances patch*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationInstancePatchCall.html), [*locations instances restart*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceRestartCall.html), [*locations instances set iam policy*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceSetIamPolicyCall.html), [*locations instances test iam permissions*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceTestIamPermissionCall.html), [*locations instances upgrade*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationInstanceUpgradeCall.html), [*locations list*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationListCall.html), [*locations operations cancel*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationOperationCancelCall.html), [*locations operations delete*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationOperationGetCall.html) and [*locations operations list*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.ProjectLocationOperationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/struct.DataFusion.html)** +* **[Hub](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/struct.DataFusion.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-datafusion1_beta1/1.0.11+20190617/google_datafusion1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-datafusion1_beta1/1.0.12+20190617/google_datafusion1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/datafusion1_beta1/src/lib.rs b/gen/datafusion1_beta1/src/lib.rs index e93b3159a9..d7a70f397f 100644 --- a/gen/datafusion1_beta1/src/lib.rs +++ b/gen/datafusion1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Data Fusion* crate version *1.0.11+20190617*, where *20190617* is the exact revision of the *datafusion:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Data Fusion* crate version *1.0.12+20190617*, where *20190617* is the exact revision of the *datafusion:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Data Fusion* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/data-fusion/docs). @@ -336,7 +336,7 @@ impl<'a, C, A> DataFusion DataFusion { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://datafusion.googleapis.com/".to_string(), _root_url: "https://datafusion.googleapis.com/".to_string(), } @@ -347,7 +347,7 @@ impl<'a, C, A> DataFusion } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/dataproc1-cli/Cargo.toml b/gen/dataproc1-cli/Cargo.toml index 0a7ec2c84a..90d71556d5 100644 --- a/gen/dataproc1-cli/Cargo.toml +++ b/gen/dataproc1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-dataproc1-cli" -version = "1.0.11+20190620" +version = "1.0.12+20190620" authors = ["Sebastian Thiel "] description = "A complete library to interact with Dataproc (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dataproc1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-dataproc1] path = "../dataproc1" -version = "1.0.11+20190620" +version = "1.0.12+20190620" diff --git a/gen/dataproc1-cli/LICENSE.md b/gen/dataproc1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dataproc1-cli/LICENSE.md +++ b/gen/dataproc1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dataproc1-cli/README.md b/gen/dataproc1-cli/README.md index d6ec6e3c2b..0c9a1b0881 100644 --- a/gen/dataproc1-cli/README.md +++ b/gen/dataproc1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Dataproc* API at revision *20190620*. The CLI is at version *1.0.11*. +This documentation was generated from the *Dataproc* API at revision *20190620*. The CLI is at version *1.0.12*. ```bash dataproc1 [options] diff --git a/gen/dataproc1-cli/mkdocs.yml b/gen/dataproc1-cli/mkdocs.yml index 78b4aa7c7e..923cd686a7 100644 --- a/gen/dataproc1-cli/mkdocs.yml +++ b/gen/dataproc1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Dataproc v1.0.11+20190620 +site_name: Dataproc v1.0.12+20190620 site_url: http://byron.github.io/google-apis-rs/google-dataproc1-cli site_description: A complete library to interact with Dataproc (protocol v1) @@ -63,5 +63,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/dataproc1-cli/src/cmn.rs b/gen/dataproc1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/dataproc1-cli/src/cmn.rs +++ b/gen/dataproc1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/dataproc1-cli/src/main.rs b/gen/dataproc1-cli/src/main.rs index 7e72fdd007..8a9bca99f0 100644 --- a/gen/dataproc1-cli/src/main.rs +++ b/gen/dataproc1-cli/src/main.rs @@ -6303,7 +6303,7 @@ fn main() { let mut app = App::new("dataproc1") .author("Sebastian Thiel ") - .version("1.0.11+20190620") + .version("1.0.12+20190620") .about("Manages Hadoop-based clusters and jobs on Google Cloud Platform.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_dataproc1_cli") .arg(Arg::with_name("url") diff --git a/gen/dataproc1/Cargo.toml b/gen/dataproc1/Cargo.toml index 84c5b91b67..50ee8c5c11 100644 --- a/gen/dataproc1/Cargo.toml +++ b/gen/dataproc1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-dataproc1" -version = "1.0.11+20190620" +version = "1.0.12+20190620" authors = ["Sebastian Thiel "] description = "A complete library to interact with Dataproc (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dataproc1" homepage = "https://cloud.google.com/dataproc/" -documentation = "https://docs.rs/google-dataproc1/1.0.11+20190620" +documentation = "https://docs.rs/google-dataproc1/1.0.12+20190620" license = "MIT" keywords = ["dataproc", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/dataproc1/LICENSE.md b/gen/dataproc1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dataproc1/LICENSE.md +++ b/gen/dataproc1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dataproc1/README.md b/gen/dataproc1/README.md index 2cb5bbc15f..048cd997e8 100644 --- a/gen/dataproc1/README.md +++ b/gen/dataproc1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-dataproc1` library allows access to all features of the *Google Dataproc* service. -This documentation was generated from *Dataproc* crate version *1.0.11+20190620*, where *20190620* is the exact revision of the *dataproc:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Dataproc* crate version *1.0.12+20190620*, where *20190620* is the exact revision of the *dataproc:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Dataproc* *v1* API can be found at the [official documentation site](https://cloud.google.com/dataproc/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.Dataproc.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.Dataproc.html) ... * projects - * [*locations autoscaling policies get iam policy*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectLocationAutoscalingPolicyGetIamPolicyCall.html), [*locations autoscaling policies set iam policy*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectLocationAutoscalingPolicySetIamPolicyCall.html), [*locations autoscaling policies test iam permissions*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectLocationAutoscalingPolicyTestIamPermissionCall.html), [*locations workflow templates create*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateCreateCall.html), [*locations workflow templates delete*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateDeleteCall.html), [*locations workflow templates get*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateGetCall.html), [*locations workflow templates get iam policy*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateGetIamPolicyCall.html), [*locations workflow templates instantiate*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateInstantiateCall.html), [*locations workflow templates instantiate inline*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateInstantiateInlineCall.html), [*locations workflow templates list*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateListCall.html), [*locations workflow templates set iam policy*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateSetIamPolicyCall.html), [*locations workflow templates test iam permissions*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateTestIamPermissionCall.html), [*locations workflow templates update*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateUpdateCall.html), [*regions autoscaling policies get iam policy*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionAutoscalingPolicyGetIamPolicyCall.html), [*regions autoscaling policies set iam policy*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionAutoscalingPolicySetIamPolicyCall.html), [*regions autoscaling policies test iam permissions*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionAutoscalingPolicyTestIamPermissionCall.html), [*regions clusters create*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionClusterCreateCall.html), [*regions clusters delete*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionClusterDeleteCall.html), [*regions clusters diagnose*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionClusterDiagnoseCall.html), [*regions clusters get*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionClusterGetCall.html), [*regions clusters get iam policy*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionClusterGetIamPolicyCall.html), [*regions clusters list*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionClusterListCall.html), [*regions clusters patch*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionClusterPatchCall.html), [*regions clusters set iam policy*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionClusterSetIamPolicyCall.html), [*regions clusters test iam permissions*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionClusterTestIamPermissionCall.html), [*regions jobs cancel*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionJobCancelCall.html), [*regions jobs delete*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionJobDeleteCall.html), [*regions jobs get*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionJobGetCall.html), [*regions jobs get iam policy*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionJobGetIamPolicyCall.html), [*regions jobs list*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionJobListCall.html), [*regions jobs patch*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionJobPatchCall.html), [*regions jobs set iam policy*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionJobSetIamPolicyCall.html), [*regions jobs submit*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionJobSubmitCall.html), [*regions jobs test iam permissions*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionJobTestIamPermissionCall.html), [*regions operations cancel*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionOperationCancelCall.html), [*regions operations delete*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionOperationDeleteCall.html), [*regions operations get*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionOperationGetCall.html), [*regions operations get iam policy*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionOperationGetIamPolicyCall.html), [*regions operations list*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionOperationListCall.html), [*regions operations set iam policy*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionOperationSetIamPolicyCall.html), [*regions operations test iam permissions*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionOperationTestIamPermissionCall.html), [*regions workflow templates create*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateCreateCall.html), [*regions workflow templates delete*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateDeleteCall.html), [*regions workflow templates get*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateGetCall.html), [*regions workflow templates get iam policy*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateGetIamPolicyCall.html), [*regions workflow templates instantiate*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateInstantiateCall.html), [*regions workflow templates instantiate inline*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateInstantiateInlineCall.html), [*regions workflow templates list*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateListCall.html), [*regions workflow templates set iam policy*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateSetIamPolicyCall.html), [*regions workflow templates test iam permissions*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateTestIamPermissionCall.html) and [*regions workflow templates update*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateUpdateCall.html) + * [*locations autoscaling policies get iam policy*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectLocationAutoscalingPolicyGetIamPolicyCall.html), [*locations autoscaling policies set iam policy*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectLocationAutoscalingPolicySetIamPolicyCall.html), [*locations autoscaling policies test iam permissions*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectLocationAutoscalingPolicyTestIamPermissionCall.html), [*locations workflow templates create*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateCreateCall.html), [*locations workflow templates delete*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateDeleteCall.html), [*locations workflow templates get*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateGetCall.html), [*locations workflow templates get iam policy*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateGetIamPolicyCall.html), [*locations workflow templates instantiate*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateInstantiateCall.html), [*locations workflow templates instantiate inline*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateInstantiateInlineCall.html), [*locations workflow templates list*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateListCall.html), [*locations workflow templates set iam policy*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateSetIamPolicyCall.html), [*locations workflow templates test iam permissions*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateTestIamPermissionCall.html), [*locations workflow templates update*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectLocationWorkflowTemplateUpdateCall.html), [*regions autoscaling policies get iam policy*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionAutoscalingPolicyGetIamPolicyCall.html), [*regions autoscaling policies set iam policy*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionAutoscalingPolicySetIamPolicyCall.html), [*regions autoscaling policies test iam permissions*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionAutoscalingPolicyTestIamPermissionCall.html), [*regions clusters create*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionClusterCreateCall.html), [*regions clusters delete*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionClusterDeleteCall.html), [*regions clusters diagnose*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionClusterDiagnoseCall.html), [*regions clusters get*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionClusterGetCall.html), [*regions clusters get iam policy*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionClusterGetIamPolicyCall.html), [*regions clusters list*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionClusterListCall.html), [*regions clusters patch*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionClusterPatchCall.html), [*regions clusters set iam policy*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionClusterSetIamPolicyCall.html), [*regions clusters test iam permissions*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionClusterTestIamPermissionCall.html), [*regions jobs cancel*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionJobCancelCall.html), [*regions jobs delete*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionJobDeleteCall.html), [*regions jobs get*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionJobGetCall.html), [*regions jobs get iam policy*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionJobGetIamPolicyCall.html), [*regions jobs list*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionJobListCall.html), [*regions jobs patch*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionJobPatchCall.html), [*regions jobs set iam policy*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionJobSetIamPolicyCall.html), [*regions jobs submit*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionJobSubmitCall.html), [*regions jobs test iam permissions*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionJobTestIamPermissionCall.html), [*regions operations cancel*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionOperationCancelCall.html), [*regions operations delete*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionOperationDeleteCall.html), [*regions operations get*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionOperationGetCall.html), [*regions operations get iam policy*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionOperationGetIamPolicyCall.html), [*regions operations list*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionOperationListCall.html), [*regions operations set iam policy*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionOperationSetIamPolicyCall.html), [*regions operations test iam permissions*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionOperationTestIamPermissionCall.html), [*regions workflow templates create*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateCreateCall.html), [*regions workflow templates delete*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateDeleteCall.html), [*regions workflow templates get*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateGetCall.html), [*regions workflow templates get iam policy*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateGetIamPolicyCall.html), [*regions workflow templates instantiate*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateInstantiateCall.html), [*regions workflow templates instantiate inline*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateInstantiateInlineCall.html), [*regions workflow templates list*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateListCall.html), [*regions workflow templates set iam policy*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateSetIamPolicyCall.html), [*regions workflow templates test iam permissions*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateTestIamPermissionCall.html) and [*regions workflow templates update*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.ProjectRegionWorkflowTemplateUpdateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/struct.Dataproc.html)** +* **[Hub](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/struct.Dataproc.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.Part.html)** + * **[Parts](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -143,17 +143,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -163,29 +163,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-dataproc1/1.0.11+20190620/google_dataproc1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-dataproc1/1.0.12+20190620/google_dataproc1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/dataproc1/src/lib.rs b/gen/dataproc1/src/lib.rs index fb1d546199..21e5cefba5 100644 --- a/gen/dataproc1/src/lib.rs +++ b/gen/dataproc1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Dataproc* crate version *1.0.11+20190620*, where *20190620* is the exact revision of the *dataproc:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Dataproc* crate version *1.0.12+20190620*, where *20190620* is the exact revision of the *dataproc:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Dataproc* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/dataproc/). @@ -342,7 +342,7 @@ impl<'a, C, A> Dataproc Dataproc { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://dataproc.googleapis.com/".to_string(), _root_url: "https://dataproc.googleapis.com/".to_string(), } @@ -353,7 +353,7 @@ impl<'a, C, A> Dataproc } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/datastore1-cli/Cargo.toml b/gen/datastore1-cli/Cargo.toml index 82e2997e44..2a23230fdf 100644 --- a/gen/datastore1-cli/Cargo.toml +++ b/gen/datastore1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-datastore1-cli" -version = "1.0.11+20190421" +version = "1.0.12+20190421" authors = ["Sebastian Thiel "] description = "A complete library to interact with datastore (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/datastore1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-datastore1] path = "../datastore1" -version = "1.0.11+20190421" +version = "1.0.12+20190421" diff --git a/gen/datastore1-cli/LICENSE.md b/gen/datastore1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/datastore1-cli/LICENSE.md +++ b/gen/datastore1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/datastore1-cli/README.md b/gen/datastore1-cli/README.md index 11f9b560c8..52f6e96cd8 100644 --- a/gen/datastore1-cli/README.md +++ b/gen/datastore1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *datastore* API at revision *20190421*. The CLI is at version *1.0.11*. +This documentation was generated from the *datastore* API at revision *20190421*. The CLI is at version *1.0.12*. ```bash datastore1 [options] diff --git a/gen/datastore1-cli/mkdocs.yml b/gen/datastore1-cli/mkdocs.yml index fbb29074c0..61f2ff00b9 100644 --- a/gen/datastore1-cli/mkdocs.yml +++ b/gen/datastore1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: datastore v1.0.11+20190421 +site_name: datastore v1.0.12+20190421 site_url: http://byron.github.io/google-apis-rs/google-datastore1-cli site_description: A complete library to interact with datastore (protocol v1) @@ -27,5 +27,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/datastore1-cli/src/cmn.rs b/gen/datastore1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/datastore1-cli/src/cmn.rs +++ b/gen/datastore1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/datastore1-cli/src/main.rs b/gen/datastore1-cli/src/main.rs index 80db416da5..4815008ff5 100644 --- a/gen/datastore1-cli/src/main.rs +++ b/gen/datastore1-cli/src/main.rs @@ -1756,7 +1756,7 @@ fn main() { let mut app = App::new("datastore1") .author("Sebastian Thiel ") - .version("1.0.11+20190421") + .version("1.0.12+20190421") .about("Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_datastore1_cli") diff --git a/gen/datastore1/Cargo.toml b/gen/datastore1/Cargo.toml index 3deb76caff..9cddf7663c 100644 --- a/gen/datastore1/Cargo.toml +++ b/gen/datastore1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-datastore1" -version = "1.0.11+20190421" +version = "1.0.12+20190421" authors = ["Sebastian Thiel "] description = "A complete library to interact with datastore (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/datastore1" homepage = "https://cloud.google.com/datastore/" -documentation = "https://docs.rs/google-datastore1/1.0.11+20190421" +documentation = "https://docs.rs/google-datastore1/1.0.12+20190421" license = "MIT" keywords = ["datastore", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/datastore1/LICENSE.md b/gen/datastore1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/datastore1/LICENSE.md +++ b/gen/datastore1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/datastore1/README.md b/gen/datastore1/README.md index 80c7efb27d..3c4623bac1 100644 --- a/gen/datastore1/README.md +++ b/gen/datastore1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-datastore1` library allows access to all features of the *Google datastore* service. -This documentation was generated from *datastore* crate version *1.0.11+20190421*, where *20190421* is the exact revision of the *datastore:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *datastore* crate version *1.0.12+20190421*, where *20190421* is the exact revision of the *datastore:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *datastore* *v1* API can be found at the [official documentation site](https://cloud.google.com/datastore/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.Datastore.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.Datastore.html) ... * projects - * [*allocate ids*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectAllocateIdCall.html), [*begin transaction*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectBeginTransactionCall.html), [*commit*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectCommitCall.html), [*export*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectExportCall.html), [*import*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectImportCall.html), [*indexes get*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectIndexeGetCall.html), [*indexes list*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectIndexeListCall.html), [*lookup*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectLookupCall.html), [*operations cancel*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectOperationCancelCall.html), [*operations delete*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectOperationDeleteCall.html), [*operations get*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectOperationGetCall.html), [*operations list*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectOperationListCall.html), [*reserve ids*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectReserveIdCall.html), [*rollback*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectRollbackCall.html) and [*run query*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.ProjectRunQueryCall.html) + * [*allocate ids*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectAllocateIdCall.html), [*begin transaction*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectBeginTransactionCall.html), [*commit*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectCommitCall.html), [*export*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectExportCall.html), [*import*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectImportCall.html), [*indexes get*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectIndexeGetCall.html), [*indexes list*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectIndexeListCall.html), [*lookup*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectLookupCall.html), [*operations cancel*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectOperationCancelCall.html), [*operations delete*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectOperationDeleteCall.html), [*operations get*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectOperationGetCall.html), [*operations list*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectOperationListCall.html), [*reserve ids*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectReserveIdCall.html), [*rollback*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectRollbackCall.html) and [*run query*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.ProjectRunQueryCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/struct.Datastore.html)** +* **[Hub](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/struct.Datastore.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.Part.html)** + * **[Parts](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-datastore1/1.0.11+20190421/google_datastore1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-datastore1/1.0.12+20190421/google_datastore1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/datastore1/src/lib.rs b/gen/datastore1/src/lib.rs index 2108b9a394..53882e37a0 100644 --- a/gen/datastore1/src/lib.rs +++ b/gen/datastore1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *datastore* crate version *1.0.11+20190421*, where *20190421* is the exact revision of the *datastore:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *datastore* crate version *1.0.12+20190421*, where *20190421* is the exact revision of the *datastore:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *datastore* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/datastore/). @@ -335,7 +335,7 @@ impl<'a, C, A> Datastore Datastore { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://datastore.googleapis.com/".to_string(), _root_url: "https://datastore.googleapis.com/".to_string(), } @@ -346,7 +346,7 @@ impl<'a, C, A> Datastore } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/datastore1_beta3-cli/Cargo.toml b/gen/datastore1_beta3-cli/Cargo.toml index 6238d3f22c..783d3fd1b5 100644 --- a/gen/datastore1_beta3-cli/Cargo.toml +++ b/gen/datastore1_beta3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-datastore1_beta3-cli" -version = "1.0.11+20190421" +version = "1.0.12+20190421" authors = ["Sebastian Thiel "] description = "A complete library to interact with datastore (protocol v1beta3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/datastore1_beta3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-datastore1_beta3] path = "../datastore1_beta3" -version = "1.0.11+20190421" +version = "1.0.12+20190421" diff --git a/gen/datastore1_beta3-cli/LICENSE.md b/gen/datastore1_beta3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/datastore1_beta3-cli/LICENSE.md +++ b/gen/datastore1_beta3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/datastore1_beta3-cli/README.md b/gen/datastore1_beta3-cli/README.md index 659fb8d0d3..24a088bac8 100644 --- a/gen/datastore1_beta3-cli/README.md +++ b/gen/datastore1_beta3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *datastore* API at revision *20190421*. The CLI is at version *1.0.11*. +This documentation was generated from the *datastore* API at revision *20190421*. The CLI is at version *1.0.12*. ```bash datastore1-beta3 [options] diff --git a/gen/datastore1_beta3-cli/mkdocs.yml b/gen/datastore1_beta3-cli/mkdocs.yml index 49a5f66318..40a868162a 100644 --- a/gen/datastore1_beta3-cli/mkdocs.yml +++ b/gen/datastore1_beta3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: datastore v1.0.11+20190421 +site_name: datastore v1.0.12+20190421 site_url: http://byron.github.io/google-apis-rs/google-datastore1_beta3-cli site_description: A complete library to interact with datastore (protocol v1beta3) @@ -19,5 +19,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/datastore1_beta3-cli/src/cmn.rs b/gen/datastore1_beta3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/datastore1_beta3-cli/src/cmn.rs +++ b/gen/datastore1_beta3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/datastore1_beta3-cli/src/main.rs b/gen/datastore1_beta3-cli/src/main.rs index 942219acd9..3d3f1c31cd 100644 --- a/gen/datastore1_beta3-cli/src/main.rs +++ b/gen/datastore1_beta3-cli/src/main.rs @@ -994,7 +994,7 @@ fn main() { let mut app = App::new("datastore1-beta3") .author("Sebastian Thiel ") - .version("1.0.11+20190421") + .version("1.0.12+20190421") .about("Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_datastore1_beta3_cli") diff --git a/gen/datastore1_beta3/Cargo.toml b/gen/datastore1_beta3/Cargo.toml index 8496b45b0b..89a828ea5f 100644 --- a/gen/datastore1_beta3/Cargo.toml +++ b/gen/datastore1_beta3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-datastore1_beta3" -version = "1.0.11+20190421" +version = "1.0.12+20190421" authors = ["Sebastian Thiel "] description = "A complete library to interact with datastore (protocol v1beta3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/datastore1_beta3" homepage = "https://cloud.google.com/datastore/" -documentation = "https://docs.rs/google-datastore1_beta3/1.0.11+20190421" +documentation = "https://docs.rs/google-datastore1_beta3/1.0.12+20190421" license = "MIT" keywords = ["datastore", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/datastore1_beta3/LICENSE.md b/gen/datastore1_beta3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/datastore1_beta3/LICENSE.md +++ b/gen/datastore1_beta3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/datastore1_beta3/README.md b/gen/datastore1_beta3/README.md index 292d40bc5a..c9234ee212 100644 --- a/gen/datastore1_beta3/README.md +++ b/gen/datastore1_beta3/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-datastore1_beta3` library allows access to all features of the *Google datastore* service. -This documentation was generated from *datastore* crate version *1.0.11+20190421*, where *20190421* is the exact revision of the *datastore:v1beta3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *datastore* crate version *1.0.12+20190421*, where *20190421* is the exact revision of the *datastore:v1beta3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *datastore* *v1_beta3* API can be found at the [official documentation site](https://cloud.google.com/datastore/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/struct.Datastore.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/struct.Datastore.html) ... * projects - * [*allocate ids*](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/struct.ProjectAllocateIdCall.html), [*begin transaction*](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/struct.ProjectBeginTransactionCall.html), [*commit*](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/struct.ProjectCommitCall.html), [*lookup*](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/struct.ProjectLookupCall.html), [*reserve ids*](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/struct.ProjectReserveIdCall.html), [*rollback*](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/struct.ProjectRollbackCall.html) and [*run query*](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/struct.ProjectRunQueryCall.html) + * [*allocate ids*](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/struct.ProjectAllocateIdCall.html), [*begin transaction*](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/struct.ProjectBeginTransactionCall.html), [*commit*](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/struct.ProjectCommitCall.html), [*lookup*](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/struct.ProjectLookupCall.html), [*reserve ids*](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/struct.ProjectReserveIdCall.html), [*rollback*](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/struct.ProjectRollbackCall.html) and [*run query*](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/struct.ProjectRunQueryCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/struct.Datastore.html)** +* **[Hub](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/struct.Datastore.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.Part.html)** + * **[Parts](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -130,17 +130,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-datastore1_beta3/1.0.11+20190421/google_datastore1_beta3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-datastore1_beta3/1.0.12+20190421/google_datastore1_beta3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/datastore1_beta3/src/lib.rs b/gen/datastore1_beta3/src/lib.rs index fd7f33353f..7bd83c144b 100644 --- a/gen/datastore1_beta3/src/lib.rs +++ b/gen/datastore1_beta3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *datastore* crate version *1.0.11+20190421*, where *20190421* is the exact revision of the *datastore:v1beta3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *datastore* crate version *1.0.12+20190421*, where *20190421* is the exact revision of the *datastore:v1beta3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *datastore* *v1_beta3* API can be found at the //! [official documentation site](https://cloud.google.com/datastore/). @@ -333,7 +333,7 @@ impl<'a, C, A> Datastore Datastore { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://datastore.googleapis.com/".to_string(), _root_url: "https://datastore.googleapis.com/".to_string(), } @@ -344,7 +344,7 @@ impl<'a, C, A> Datastore } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/deploymentmanager2-cli/Cargo.toml b/gen/deploymentmanager2-cli/Cargo.toml index 8d38909845..c21626b4a0 100644 --- a/gen/deploymentmanager2-cli/Cargo.toml +++ b/gen/deploymentmanager2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-deploymentmanager2-cli" -version = "1.0.11+20181207" +version = "1.0.12+20181207" authors = ["Sebastian Thiel "] description = "A complete library to interact with Deployment Manager (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/deploymentmanager2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-deploymentmanager2] path = "../deploymentmanager2" -version = "1.0.11+20181207" +version = "1.0.12+20181207" diff --git a/gen/deploymentmanager2-cli/LICENSE.md b/gen/deploymentmanager2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/deploymentmanager2-cli/LICENSE.md +++ b/gen/deploymentmanager2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/deploymentmanager2-cli/README.md b/gen/deploymentmanager2-cli/README.md index d0a26e4d6f..a130e6a92c 100644 --- a/gen/deploymentmanager2-cli/README.md +++ b/gen/deploymentmanager2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Deployment Manager* API at revision *20181207*. The CLI is at version *1.0.11*. +This documentation was generated from the *Deployment Manager* API at revision *20181207*. The CLI is at version *1.0.12*. ```bash deploymentmanager2 [options] diff --git a/gen/deploymentmanager2-cli/mkdocs.yml b/gen/deploymentmanager2-cli/mkdocs.yml index 9545834645..343909db9e 100644 --- a/gen/deploymentmanager2-cli/mkdocs.yml +++ b/gen/deploymentmanager2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Deployment Manager v1.0.11+20181207 +site_name: Deployment Manager v1.0.12+20181207 site_url: http://byron.github.io/google-apis-rs/google-deploymentmanager2-cli site_description: A complete library to interact with Deployment Manager (protocol v2) @@ -30,5 +30,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/deploymentmanager2-cli/src/cmn.rs b/gen/deploymentmanager2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/deploymentmanager2-cli/src/cmn.rs +++ b/gen/deploymentmanager2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/deploymentmanager2-cli/src/main.rs b/gen/deploymentmanager2-cli/src/main.rs index 7d9111a2a8..b5737d090a 100644 --- a/gen/deploymentmanager2-cli/src/main.rs +++ b/gen/deploymentmanager2-cli/src/main.rs @@ -2139,7 +2139,7 @@ fn main() { let mut app = App::new("deploymentmanager2") .author("Sebastian Thiel ") - .version("1.0.11+20181207") + .version("1.0.12+20181207") .about("Declares, configures, and deploys complex solutions on Google Cloud Platform.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_deploymentmanager2_cli") .arg(Arg::with_name("url") diff --git a/gen/deploymentmanager2/Cargo.toml b/gen/deploymentmanager2/Cargo.toml index 0ac4cc2a14..eb815edfe8 100644 --- a/gen/deploymentmanager2/Cargo.toml +++ b/gen/deploymentmanager2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-deploymentmanager2" -version = "1.0.11+20181207" +version = "1.0.12+20181207" authors = ["Sebastian Thiel "] description = "A complete library to interact with Deployment Manager (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/deploymentmanager2" homepage = "https://cloud.google.com/deployment-manager/" -documentation = "https://docs.rs/google-deploymentmanager2/1.0.11+20181207" +documentation = "https://docs.rs/google-deploymentmanager2/1.0.12+20181207" license = "MIT" keywords = ["deploymentmanager", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/deploymentmanager2/LICENSE.md b/gen/deploymentmanager2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/deploymentmanager2/LICENSE.md +++ b/gen/deploymentmanager2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/deploymentmanager2/README.md b/gen/deploymentmanager2/README.md index 199dd926b7..edcb7bd484 100644 --- a/gen/deploymentmanager2/README.md +++ b/gen/deploymentmanager2/README.md @@ -5,24 +5,24 @@ DO NOT EDIT ! --> The `google-deploymentmanager2` library allows access to all features of the *Google Deployment Manager* service. -This documentation was generated from *Deployment Manager* crate version *1.0.11+20181207*, where *20181207* is the exact revision of the *deploymentmanager:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Deployment Manager* crate version *1.0.12+20181207*, where *20181207* is the exact revision of the *deploymentmanager:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Deployment Manager* *v2* API can be found at the [official documentation site](https://cloud.google.com/deployment-manager/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.DeploymentManager.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.DeploymentManager.html) ... -* [deployments](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.Deployment.html) - * [*cancel preview*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.DeploymentCancelPreviewCall.html), [*delete*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.DeploymentDeleteCall.html), [*get*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.DeploymentGetCall.html), [*get iam policy*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.DeploymentGetIamPolicyCall.html), [*insert*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.DeploymentInsertCall.html), [*list*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.DeploymentListCall.html), [*patch*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.DeploymentPatchCall.html), [*set iam policy*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.DeploymentSetIamPolicyCall.html), [*stop*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.DeploymentStopCall.html), [*test iam permissions*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.DeploymentTestIamPermissionCall.html) and [*update*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.DeploymentUpdateCall.html) -* [manifests](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.Manifest.html) - * [*get*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.ManifestGetCall.html) and [*list*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.ManifestListCall.html) -* [operations](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.Operation.html) - * [*get*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.OperationListCall.html) -* [resources](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.ResourceType.html) - * [*get*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.ResourceGetCall.html) and [*list*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.ResourceListCall.html) -* [types](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.Type.html) - * [*list*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.TypeListCall.html) +* [deployments](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.Deployment.html) + * [*cancel preview*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.DeploymentCancelPreviewCall.html), [*delete*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.DeploymentDeleteCall.html), [*get*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.DeploymentGetCall.html), [*get iam policy*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.DeploymentGetIamPolicyCall.html), [*insert*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.DeploymentInsertCall.html), [*list*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.DeploymentListCall.html), [*patch*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.DeploymentPatchCall.html), [*set iam policy*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.DeploymentSetIamPolicyCall.html), [*stop*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.DeploymentStopCall.html), [*test iam permissions*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.DeploymentTestIamPermissionCall.html) and [*update*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.DeploymentUpdateCall.html) +* [manifests](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.Manifest.html) + * [*get*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.ManifestGetCall.html) and [*list*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.ManifestListCall.html) +* [operations](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.Operation.html) + * [*get*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.OperationListCall.html) +* [resources](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.ResourceType.html) + * [*get*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.ResourceGetCall.html) and [*list*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.ResourceListCall.html) +* [types](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.Type.html) + * [*list*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.TypeListCall.html) @@ -31,17 +31,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/struct.DeploymentManager.html)** +* **[Hub](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/struct.DeploymentManager.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.Part.html)** + * **[Parts](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -151,17 +151,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -171,29 +171,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-deploymentmanager2/1.0.11+20181207/google_deploymentmanager2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-deploymentmanager2/1.0.12+20181207/google_deploymentmanager2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/deploymentmanager2/src/lib.rs b/gen/deploymentmanager2/src/lib.rs index f06f473bdd..f8168141ca 100644 --- a/gen/deploymentmanager2/src/lib.rs +++ b/gen/deploymentmanager2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Deployment Manager* crate version *1.0.11+20181207*, where *20181207* is the exact revision of the *deploymentmanager:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Deployment Manager* crate version *1.0.12+20181207*, where *20181207* is the exact revision of the *deploymentmanager:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Deployment Manager* *v2* API can be found at the //! [official documentation site](https://cloud.google.com/deployment-manager/). @@ -365,7 +365,7 @@ impl<'a, C, A> DeploymentManager DeploymentManager { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/deploymentmanager/v2/projects/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -388,7 +388,7 @@ impl<'a, C, A> DeploymentManager } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/deploymentmanager2_beta2-cli/Cargo.toml b/gen/deploymentmanager2_beta2-cli/Cargo.toml index 5c14b6350d..66edeb8157 100644 --- a/gen/deploymentmanager2_beta2-cli/Cargo.toml +++ b/gen/deploymentmanager2_beta2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-deploymentmanager2_beta2-cli" -version = "1.0.11+20160201" +version = "1.0.12+20160201" authors = ["Sebastian Thiel "] description = "A complete library to interact with Deployment Manager (protocol v2beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/deploymentmanager2_beta2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-deploymentmanager2_beta2] path = "../deploymentmanager2_beta2" -version = "1.0.11+20160201" +version = "1.0.12+20160201" diff --git a/gen/deploymentmanager2_beta2-cli/LICENSE.md b/gen/deploymentmanager2_beta2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/deploymentmanager2_beta2-cli/LICENSE.md +++ b/gen/deploymentmanager2_beta2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/deploymentmanager2_beta2-cli/README.md b/gen/deploymentmanager2_beta2-cli/README.md index 39fdca9f3f..ab24c9de26 100644 --- a/gen/deploymentmanager2_beta2-cli/README.md +++ b/gen/deploymentmanager2_beta2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Deployment Manager* API at revision *20160201*. The CLI is at version *1.0.11*. +This documentation was generated from the *Deployment Manager* API at revision *20160201*. The CLI is at version *1.0.12*. ```bash deploymentmanager2-beta2 [options] diff --git a/gen/deploymentmanager2_beta2-cli/mkdocs.yml b/gen/deploymentmanager2_beta2-cli/mkdocs.yml index 366ff54286..6ae1f7293b 100644 --- a/gen/deploymentmanager2_beta2-cli/mkdocs.yml +++ b/gen/deploymentmanager2_beta2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Deployment Manager v1.0.11+20160201 +site_name: Deployment Manager v1.0.12+20160201 site_url: http://byron.github.io/google-apis-rs/google-deploymentmanager2_beta2-cli site_description: A complete library to interact with Deployment Manager (protocol v2beta2) @@ -25,5 +25,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/deploymentmanager2_beta2-cli/src/cmn.rs b/gen/deploymentmanager2_beta2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/deploymentmanager2_beta2-cli/src/cmn.rs +++ b/gen/deploymentmanager2_beta2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/deploymentmanager2_beta2-cli/src/main.rs b/gen/deploymentmanager2_beta2-cli/src/main.rs index 8a31910e94..027503878c 100644 --- a/gen/deploymentmanager2_beta2-cli/src/main.rs +++ b/gen/deploymentmanager2_beta2-cli/src/main.rs @@ -1479,7 +1479,7 @@ fn main() { let mut app = App::new("deploymentmanager2-beta2") .author("Sebastian Thiel ") - .version("1.0.11+20160201") + .version("1.0.12+20160201") .about("The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_deploymentmanager2_beta2_cli") .arg(Arg::with_name("url") diff --git a/gen/deploymentmanager2_beta2/Cargo.toml b/gen/deploymentmanager2_beta2/Cargo.toml index 15c24d9235..67f82552e4 100644 --- a/gen/deploymentmanager2_beta2/Cargo.toml +++ b/gen/deploymentmanager2_beta2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-deploymentmanager2_beta2" -version = "1.0.11+20160201" +version = "1.0.12+20160201" authors = ["Sebastian Thiel "] description = "A complete library to interact with Deployment Manager (protocol v2beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/deploymentmanager2_beta2" homepage = "https://developers.google.com/deployment-manager/" -documentation = "https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201" +documentation = "https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201" license = "MIT" keywords = ["deploymentmanager", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/deploymentmanager2_beta2/LICENSE.md b/gen/deploymentmanager2_beta2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/deploymentmanager2_beta2/LICENSE.md +++ b/gen/deploymentmanager2_beta2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/deploymentmanager2_beta2/README.md b/gen/deploymentmanager2_beta2/README.md index a00453d65c..bb3dde9ea2 100644 --- a/gen/deploymentmanager2_beta2/README.md +++ b/gen/deploymentmanager2_beta2/README.md @@ -5,24 +5,24 @@ DO NOT EDIT ! --> The `google-deploymentmanager2_beta2` library allows access to all features of the *Google Deployment Manager* service. -This documentation was generated from *Deployment Manager* crate version *1.0.11+20160201*, where *20160201* is the exact revision of the *deploymentmanager:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Deployment Manager* crate version *1.0.12+20160201*, where *20160201* is the exact revision of the *deploymentmanager:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Deployment Manager* *v2_beta2* API can be found at the [official documentation site](https://developers.google.com/deployment-manager/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.DeploymentManager.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.DeploymentManager.html) ... -* [deployments](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.Deployment.html) - * [*delete*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.DeploymentDeleteCall.html), [*get*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.DeploymentGetCall.html), [*insert*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.DeploymentInsertCall.html), [*list*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.DeploymentListCall.html), [*patch*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.DeploymentPatchCall.html) and [*update*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.DeploymentUpdateCall.html) -* [manifests](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.Manifest.html) - * [*get*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.ManifestGetCall.html) and [*list*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.ManifestListCall.html) -* [operations](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.Operation.html) - * [*get*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.OperationListCall.html) -* [resources](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.ResourceType.html) - * [*get*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.ResourceGetCall.html) and [*list*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.ResourceListCall.html) -* [types](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.Type.html) - * [*list*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.TypeListCall.html) +* [deployments](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.Deployment.html) + * [*delete*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.DeploymentDeleteCall.html), [*get*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.DeploymentGetCall.html), [*insert*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.DeploymentInsertCall.html), [*list*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.DeploymentListCall.html), [*patch*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.DeploymentPatchCall.html) and [*update*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.DeploymentUpdateCall.html) +* [manifests](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.Manifest.html) + * [*get*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.ManifestGetCall.html) and [*list*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.ManifestListCall.html) +* [operations](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.Operation.html) + * [*get*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.OperationListCall.html) +* [resources](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.ResourceType.html) + * [*get*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.ResourceGetCall.html) and [*list*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.ResourceListCall.html) +* [types](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.Type.html) + * [*list*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.TypeListCall.html) @@ -31,17 +31,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/struct.DeploymentManager.html)** +* **[Hub](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/struct.DeploymentManager.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.Part.html)** + * **[Parts](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -146,17 +146,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -166,29 +166,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-deploymentmanager2_beta2/1.0.11+20160201/google_deploymentmanager2_beta2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-deploymentmanager2_beta2/1.0.12+20160201/google_deploymentmanager2_beta2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/deploymentmanager2_beta2/src/lib.rs b/gen/deploymentmanager2_beta2/src/lib.rs index e909692137..bad1686269 100644 --- a/gen/deploymentmanager2_beta2/src/lib.rs +++ b/gen/deploymentmanager2_beta2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Deployment Manager* crate version *1.0.11+20160201*, where *20160201* is the exact revision of the *deploymentmanager:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Deployment Manager* crate version *1.0.12+20160201*, where *20160201* is the exact revision of the *deploymentmanager:v2beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Deployment Manager* *v2_beta2* API can be found at the //! [official documentation site](https://developers.google.com/deployment-manager/). @@ -360,7 +360,7 @@ impl<'a, C, A> DeploymentManager DeploymentManager { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/deploymentmanager/v2beta2/projects/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -383,7 +383,7 @@ impl<'a, C, A> DeploymentManager } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/dfareporting2d8-cli/Cargo.toml b/gen/dfareporting2d8-cli/Cargo.toml index e691e3356b..3354f08e00 100644 --- a/gen/dfareporting2d8-cli/Cargo.toml +++ b/gen/dfareporting2d8-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-dfareporting2d8-cli" -version = "1.0.11+20180830" +version = "1.0.12+20180830" authors = ["Sebastian Thiel "] description = "A complete library to interact with dfareporting (protocol v2.8)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dfareporting2d8-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-dfareporting2d8] path = "../dfareporting2d8" -version = "1.0.11+20180830" +version = "1.0.12+20180830" diff --git a/gen/dfareporting2d8-cli/LICENSE.md b/gen/dfareporting2d8-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dfareporting2d8-cli/LICENSE.md +++ b/gen/dfareporting2d8-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dfareporting2d8-cli/README.md b/gen/dfareporting2d8-cli/README.md index 3601e1b37c..8cc65783f5 100644 --- a/gen/dfareporting2d8-cli/README.md +++ b/gen/dfareporting2d8-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *dfareporting* API at revision *20180830*. The CLI is at version *1.0.11*. +This documentation was generated from the *dfareporting* API at revision *20180830*. The CLI is at version *1.0.12*. ```bash dfareporting2d8 [options] diff --git a/gen/dfareporting2d8-cli/mkdocs.yml b/gen/dfareporting2d8-cli/mkdocs.yml index c5587d6a36..3d3bdcb794 100644 --- a/gen/dfareporting2d8-cli/mkdocs.yml +++ b/gen/dfareporting2d8-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: dfareporting v1.0.11+20180830 +site_name: dfareporting v1.0.12+20180830 site_url: http://byron.github.io/google-apis-rs/google-dfareporting2d8-cli site_description: A complete library to interact with dfareporting (protocol v2.8) @@ -217,5 +217,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/dfareporting2d8-cli/src/cmn.rs b/gen/dfareporting2d8-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/dfareporting2d8-cli/src/cmn.rs +++ b/gen/dfareporting2d8-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/dfareporting2d8-cli/src/main.rs b/gen/dfareporting2d8-cli/src/main.rs index aa6e1cd642..2cc83d8ed8 100644 --- a/gen/dfareporting2d8-cli/src/main.rs +++ b/gen/dfareporting2d8-cli/src/main.rs @@ -23769,7 +23769,7 @@ fn main() { let mut app = App::new("dfareporting2d8") .author("Sebastian Thiel ") - .version("1.0.11+20180830") + .version("1.0.12+20180830") .about("Manages your DoubleClick Campaign Manager ad campaigns and reports.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_dfareporting2d8_cli") .arg(Arg::with_name("url") diff --git a/gen/dfareporting2d8/Cargo.toml b/gen/dfareporting2d8/Cargo.toml index bc6c309346..a4cc9b20a1 100644 --- a/gen/dfareporting2d8/Cargo.toml +++ b/gen/dfareporting2d8/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-dfareporting2d8" -version = "1.0.11+20180830" +version = "1.0.12+20180830" authors = ["Sebastian Thiel "] description = "A complete library to interact with dfareporting (protocol v2.8)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dfareporting2d8" homepage = "https://developers.google.com/doubleclick-advertisers/" -documentation = "https://docs.rs/google-dfareporting2d8/1.0.11+20180830" +documentation = "https://docs.rs/google-dfareporting2d8/1.0.12+20180830" license = "MIT" keywords = ["dfareporting", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/dfareporting2d8/LICENSE.md b/gen/dfareporting2d8/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dfareporting2d8/LICENSE.md +++ b/gen/dfareporting2d8/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dfareporting2d8/README.md b/gen/dfareporting2d8/README.md index 04040dd4d8..aaa729f4fc 100644 --- a/gen/dfareporting2d8/README.md +++ b/gen/dfareporting2d8/README.md @@ -5,144 +5,144 @@ DO NOT EDIT ! --> The `google-dfareporting2d8` library allows access to all features of the *Google dfareporting* service. -This documentation was generated from *dfareporting* crate version *1.0.11+20180830*, where *20180830* is the exact revision of the *dfareporting:v2.8* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *dfareporting* crate version *1.0.12+20180830*, where *20180830* is the exact revision of the *dfareporting:v2.8* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *dfareporting* *v2d8* API can be found at the [official documentation site](https://developers.google.com/doubleclick-advertisers/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Dfareporting.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Dfareporting.html) ... -* [account active ad summaries](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountActiveAdSummary.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountActiveAdSummaryGetCall.html) -* [account permission groups](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountPermissionGroup.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountPermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountPermissionGroupListCall.html) -* [account permissions](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountPermission.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountPermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountPermissionListCall.html) -* [account user profiles](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountUserProfile.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountUserProfileGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountUserProfileInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountUserProfileListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountUserProfilePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountUserProfileUpdateCall.html) -* [accounts](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Account.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountGetCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AccountUpdateCall.html) -* [ads](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Ad.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdUpdateCall.html) -* [advertiser groups](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdvertiserGroup.html) - * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdvertiserGroupDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdvertiserGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdvertiserGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdvertiserGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdvertiserGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdvertiserGroupUpdateCall.html) -* [advertisers](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Advertiser.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdvertiserGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdvertiserInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdvertiserListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdvertiserPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.AdvertiserUpdateCall.html) -* [browsers](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Browser.html) - * [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.BrowserListCall.html) -* [campaign creative associations](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CampaignCreativeAssociation.html) - * [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CampaignCreativeAssociationInsertCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CampaignCreativeAssociationListCall.html) -* [campaigns](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Campaign.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CampaignGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CampaignInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CampaignListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CampaignPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CampaignUpdateCall.html) -* [change logs](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ChangeLog.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ChangeLogGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ChangeLogListCall.html) -* [cities](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.City.html) - * [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CityListCall.html) -* [connection types](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ConnectionType.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ConnectionTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ConnectionTypeListCall.html) -* [content categories](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ContentCategory.html) - * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ContentCategoryDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ContentCategoryGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ContentCategoryInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ContentCategoryListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ContentCategoryPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ContentCategoryUpdateCall.html) -* [conversions](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Conversion.html) - * [*batchinsert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ConversionBatchinsertCall.html) and [*batchupdate*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ConversionBatchupdateCall.html) -* [countries](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Country.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CountryGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CountryListCall.html) -* [creative assets](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeAsset.html) - * [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeAssetInsertCall.html) -* [creative field values](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeFieldValue.html) - * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeFieldValueDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeFieldValueGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeFieldValueInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeFieldValueListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeFieldValuePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeFieldValueUpdateCall.html) -* [creative fields](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeField.html) - * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeFieldDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeFieldGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeFieldInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeFieldListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeFieldPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeFieldUpdateCall.html) -* [creative groups](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeGroup.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeGroupUpdateCall.html) -* [creatives](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Creative.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeUpdateCall.html) -* [dimension values](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.DimensionValue.html) - * [*query*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.DimensionValueQueryCall.html) -* [directory site contacts](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.DirectorySiteContact.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.DirectorySiteContactGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.DirectorySiteContactListCall.html) -* [directory sites](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.DirectorySite.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.DirectorySiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.DirectorySiteInsertCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.DirectorySiteListCall.html) -* [dynamic targeting keys](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.DynamicTargetingKey.html) - * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.DynamicTargetingKeyDeleteCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.DynamicTargetingKeyInsertCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.DynamicTargetingKeyListCall.html) -* [event tags](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.EventTag.html) - * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.EventTagDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.EventTagGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.EventTagInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.EventTagListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.EventTagPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.EventTagUpdateCall.html) -* [files](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.File.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FileGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FileListCall.html) -* [floodlight activities](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightActivity.html) - * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightActivityDeleteCall.html), [*generatetag*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightActivityGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightActivityGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightActivityInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightActivityListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightActivityPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightActivityUpdateCall.html) -* [floodlight activity groups](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightActivityGroup.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightActivityGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightActivityGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightActivityGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightActivityGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightActivityGroupUpdateCall.html) -* [floodlight configurations](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightConfiguration.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightConfigurationGetCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightConfigurationListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightConfigurationPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FloodlightConfigurationUpdateCall.html) -* [inventory items](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.InventoryItem.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.InventoryItemGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.InventoryItemListCall.html) -* [landing pages](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.LandingPage.html) - * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.LandingPageDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.LandingPageGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.LandingPageInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.LandingPageListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.LandingPagePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.LandingPageUpdateCall.html) -* [languages](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Language.html) - * [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.LanguageListCall.html) -* [metros](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Metro.html) - * [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.MetroListCall.html) -* [mobile carriers](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.MobileCarrier.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.MobileCarrierGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.MobileCarrierListCall.html) -* [operating system versions](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.OperatingSystemVersion.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.OperatingSystemVersionGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.OperatingSystemVersionListCall.html) -* [operating systems](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.OperatingSystem.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.OperatingSystemGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.OperatingSystemListCall.html) -* [order documents](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.OrderDocument.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.OrderDocumentGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.OrderDocumentListCall.html) -* [orders](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Order.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.OrderGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.OrderListCall.html) -* [placement groups](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementGroup.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementGroupUpdateCall.html) -* [placement strategies](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementStrategy.html) - * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementStrategyDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementStrategyGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementStrategyInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementStrategyListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementStrategyPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementStrategyUpdateCall.html) -* [placements](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Placement.html) - * [*generatetags*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlacementUpdateCall.html) -* [platform types](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlatformType.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlatformTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PlatformTypeListCall.html) -* [postal codes](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PostalCode.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PostalCodeGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.PostalCodeListCall.html) -* [projects](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Project.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ProjectGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ProjectListCall.html) -* [regions](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Region.html) - * [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.RegionListCall.html) -* [remarketing list shares](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.RemarketingListShare.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.RemarketingListShareGetCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.RemarketingListSharePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.RemarketingListShareUpdateCall.html) -* [remarketing lists](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.RemarketingList.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.RemarketingListGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.RemarketingListInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.RemarketingListListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.RemarketingListPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.RemarketingListUpdateCall.html) -* [reports](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Report.html) - * [*compatible fields query*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ReportCompatibleFieldQueryCall.html), [*delete*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ReportDeleteCall.html), [*files get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ReportFileGetCall.html), [*files list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ReportFileListCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ReportGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ReportInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ReportListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ReportPatchCall.html), [*run*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ReportRunCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ReportUpdateCall.html) -* [sites](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Site.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.SiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.SiteInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.SiteListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.SitePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.SiteUpdateCall.html) -* [sizes](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Size.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.SizeGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.SizeInsertCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.SizeListCall.html) -* [subaccounts](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Subaccount.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.SubaccountGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.SubaccountInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.SubaccountListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.SubaccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.SubaccountUpdateCall.html) -* [targetable remarketing lists](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.TargetableRemarketingList.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.TargetableRemarketingListGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.TargetableRemarketingListListCall.html) -* [targeting templates](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.TargetingTemplate.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.TargetingTemplateGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.TargetingTemplateInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.TargetingTemplateListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.TargetingTemplatePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.TargetingTemplateUpdateCall.html) -* [user profiles](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserProfile.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserProfileGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserProfileListCall.html) -* [user role permission groups](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserRolePermissionGroup.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserRolePermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserRolePermissionGroupListCall.html) -* [user role permissions](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserRolePermission.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserRolePermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserRolePermissionListCall.html) -* [user roles](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserRole.html) - * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserRoleDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserRoleGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserRoleInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserRoleListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserRolePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.UserRoleUpdateCall.html) -* [video formats](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.VideoFormat.html) - * [*get*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.VideoFormatGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.VideoFormatListCall.html) +* [account active ad summaries](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountActiveAdSummary.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountActiveAdSummaryGetCall.html) +* [account permission groups](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountPermissionGroup.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountPermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountPermissionGroupListCall.html) +* [account permissions](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountPermission.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountPermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountPermissionListCall.html) +* [account user profiles](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountUserProfile.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountUserProfileGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountUserProfileInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountUserProfileListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountUserProfilePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountUserProfileUpdateCall.html) +* [accounts](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Account.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountGetCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AccountUpdateCall.html) +* [ads](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Ad.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdUpdateCall.html) +* [advertiser groups](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdvertiserGroup.html) + * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdvertiserGroupDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdvertiserGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdvertiserGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdvertiserGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdvertiserGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdvertiserGroupUpdateCall.html) +* [advertisers](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Advertiser.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdvertiserGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdvertiserInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdvertiserListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdvertiserPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.AdvertiserUpdateCall.html) +* [browsers](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Browser.html) + * [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.BrowserListCall.html) +* [campaign creative associations](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CampaignCreativeAssociation.html) + * [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CampaignCreativeAssociationInsertCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CampaignCreativeAssociationListCall.html) +* [campaigns](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Campaign.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CampaignGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CampaignInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CampaignListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CampaignPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CampaignUpdateCall.html) +* [change logs](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ChangeLog.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ChangeLogGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ChangeLogListCall.html) +* [cities](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.City.html) + * [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CityListCall.html) +* [connection types](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ConnectionType.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ConnectionTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ConnectionTypeListCall.html) +* [content categories](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ContentCategory.html) + * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ContentCategoryDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ContentCategoryGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ContentCategoryInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ContentCategoryListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ContentCategoryPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ContentCategoryUpdateCall.html) +* [conversions](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Conversion.html) + * [*batchinsert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ConversionBatchinsertCall.html) and [*batchupdate*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ConversionBatchupdateCall.html) +* [countries](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Country.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CountryGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CountryListCall.html) +* [creative assets](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeAsset.html) + * [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeAssetInsertCall.html) +* [creative field values](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeFieldValue.html) + * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeFieldValueDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeFieldValueGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeFieldValueInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeFieldValueListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeFieldValuePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeFieldValueUpdateCall.html) +* [creative fields](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeField.html) + * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeFieldDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeFieldGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeFieldInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeFieldListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeFieldPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeFieldUpdateCall.html) +* [creative groups](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeGroup.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeGroupUpdateCall.html) +* [creatives](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Creative.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeUpdateCall.html) +* [dimension values](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.DimensionValue.html) + * [*query*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.DimensionValueQueryCall.html) +* [directory site contacts](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.DirectorySiteContact.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.DirectorySiteContactGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.DirectorySiteContactListCall.html) +* [directory sites](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.DirectorySite.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.DirectorySiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.DirectorySiteInsertCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.DirectorySiteListCall.html) +* [dynamic targeting keys](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.DynamicTargetingKey.html) + * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.DynamicTargetingKeyDeleteCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.DynamicTargetingKeyInsertCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.DynamicTargetingKeyListCall.html) +* [event tags](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.EventTag.html) + * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.EventTagDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.EventTagGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.EventTagInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.EventTagListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.EventTagPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.EventTagUpdateCall.html) +* [files](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.File.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FileGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FileListCall.html) +* [floodlight activities](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightActivity.html) + * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightActivityDeleteCall.html), [*generatetag*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightActivityGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightActivityGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightActivityInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightActivityListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightActivityPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightActivityUpdateCall.html) +* [floodlight activity groups](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightActivityGroup.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightActivityGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightActivityGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightActivityGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightActivityGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightActivityGroupUpdateCall.html) +* [floodlight configurations](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightConfiguration.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightConfigurationGetCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightConfigurationListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightConfigurationPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FloodlightConfigurationUpdateCall.html) +* [inventory items](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.InventoryItem.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.InventoryItemGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.InventoryItemListCall.html) +* [landing pages](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.LandingPage.html) + * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.LandingPageDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.LandingPageGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.LandingPageInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.LandingPageListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.LandingPagePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.LandingPageUpdateCall.html) +* [languages](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Language.html) + * [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.LanguageListCall.html) +* [metros](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Metro.html) + * [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.MetroListCall.html) +* [mobile carriers](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.MobileCarrier.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.MobileCarrierGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.MobileCarrierListCall.html) +* [operating system versions](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.OperatingSystemVersion.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.OperatingSystemVersionGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.OperatingSystemVersionListCall.html) +* [operating systems](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.OperatingSystem.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.OperatingSystemGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.OperatingSystemListCall.html) +* [order documents](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.OrderDocument.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.OrderDocumentGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.OrderDocumentListCall.html) +* [orders](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Order.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.OrderGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.OrderListCall.html) +* [placement groups](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementGroup.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementGroupUpdateCall.html) +* [placement strategies](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementStrategy.html) + * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementStrategyDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementStrategyGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementStrategyInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementStrategyListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementStrategyPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementStrategyUpdateCall.html) +* [placements](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Placement.html) + * [*generatetags*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlacementUpdateCall.html) +* [platform types](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlatformType.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlatformTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PlatformTypeListCall.html) +* [postal codes](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PostalCode.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PostalCodeGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.PostalCodeListCall.html) +* [projects](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Project.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ProjectGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ProjectListCall.html) +* [regions](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Region.html) + * [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.RegionListCall.html) +* [remarketing list shares](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.RemarketingListShare.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.RemarketingListShareGetCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.RemarketingListSharePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.RemarketingListShareUpdateCall.html) +* [remarketing lists](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.RemarketingList.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.RemarketingListGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.RemarketingListInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.RemarketingListListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.RemarketingListPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.RemarketingListUpdateCall.html) +* [reports](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Report.html) + * [*compatible fields query*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ReportCompatibleFieldQueryCall.html), [*delete*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ReportDeleteCall.html), [*files get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ReportFileGetCall.html), [*files list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ReportFileListCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ReportGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ReportInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ReportListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ReportPatchCall.html), [*run*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ReportRunCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ReportUpdateCall.html) +* [sites](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Site.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.SiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.SiteInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.SiteListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.SitePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.SiteUpdateCall.html) +* [sizes](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Size.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.SizeGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.SizeInsertCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.SizeListCall.html) +* [subaccounts](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Subaccount.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.SubaccountGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.SubaccountInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.SubaccountListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.SubaccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.SubaccountUpdateCall.html) +* [targetable remarketing lists](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.TargetableRemarketingList.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.TargetableRemarketingListGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.TargetableRemarketingListListCall.html) +* [targeting templates](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.TargetingTemplate.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.TargetingTemplateGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.TargetingTemplateInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.TargetingTemplateListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.TargetingTemplatePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.TargetingTemplateUpdateCall.html) +* [user profiles](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserProfile.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserProfileGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserProfileListCall.html) +* [user role permission groups](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserRolePermissionGroup.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserRolePermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserRolePermissionGroupListCall.html) +* [user role permissions](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserRolePermission.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserRolePermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserRolePermissionListCall.html) +* [user roles](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserRole.html) + * [*delete*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserRoleDeleteCall.html), [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserRoleGetCall.html), [*insert*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserRoleInsertCall.html), [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserRoleListCall.html), [*patch*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserRolePatchCall.html) and [*update*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.UserRoleUpdateCall.html) +* [video formats](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.VideoFormat.html) + * [*get*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.VideoFormatGetCall.html) and [*list*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.VideoFormatListCall.html) Upload supported by ... -* [*insert creative assets*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.CreativeAssetInsertCall.html) +* [*insert creative assets*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.CreativeAssetInsertCall.html) Download supported by ... -* [*get files*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.FileGetCall.html) -* [*files get reports*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.ReportFileGetCall.html) +* [*get files*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.FileGetCall.html) +* [*files get reports*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.ReportFileGetCall.html) @@ -150,17 +150,17 @@ Download supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/struct.Dfareporting.html)** +* **[Hub](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/struct.Dfareporting.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.Part.html)** + * **[Parts](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -265,17 +265,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -285,29 +285,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.RequestValue.html) and -[decodable](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.RequestValue.html) and +[decodable](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-dfareporting2d8/1.0.11+20180830/google_dfareporting2d8/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-dfareporting2d8/1.0.12+20180830/google_dfareporting2d8/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/dfareporting2d8/src/lib.rs b/gen/dfareporting2d8/src/lib.rs index f28275ac17..67776f85dc 100644 --- a/gen/dfareporting2d8/src/lib.rs +++ b/gen/dfareporting2d8/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *dfareporting* crate version *1.0.11+20180830*, where *20180830* is the exact revision of the *dfareporting:v2.8* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *dfareporting* crate version *1.0.12+20180830*, where *20180830* is the exact revision of the *dfareporting:v2.8* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *dfareporting* *v2d8* API can be found at the //! [official documentation site](https://developers.google.com/doubleclick-advertisers/). @@ -471,7 +471,7 @@ impl<'a, C, A> Dfareporting Dfareporting { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/dfareporting/v2.8/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -659,7 +659,7 @@ impl<'a, C, A> Dfareporting } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/dfareporting3-cli/Cargo.toml b/gen/dfareporting3-cli/Cargo.toml index fe9194d63e..3b26592d5b 100644 --- a/gen/dfareporting3-cli/Cargo.toml +++ b/gen/dfareporting3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-dfareporting3-cli" -version = "1.0.11+20180830" +version = "1.0.12+20180830" authors = ["Sebastian Thiel "] description = "A complete library to interact with dfareporting (protocol v3.0)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dfareporting3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-dfareporting3] path = "../dfareporting3" -version = "1.0.11+20180830" +version = "1.0.12+20180830" diff --git a/gen/dfareporting3-cli/LICENSE.md b/gen/dfareporting3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dfareporting3-cli/LICENSE.md +++ b/gen/dfareporting3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dfareporting3-cli/README.md b/gen/dfareporting3-cli/README.md index a1c0a86b17..9808523a0b 100644 --- a/gen/dfareporting3-cli/README.md +++ b/gen/dfareporting3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *dfareporting* API at revision *20180830*. The CLI is at version *1.0.11*. +This documentation was generated from the *dfareporting* API at revision *20180830*. The CLI is at version *1.0.12*. ```bash dfareporting3 [options] diff --git a/gen/dfareporting3-cli/mkdocs.yml b/gen/dfareporting3-cli/mkdocs.yml index a1bbb3f457..b028829438 100644 --- a/gen/dfareporting3-cli/mkdocs.yml +++ b/gen/dfareporting3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: dfareporting v1.0.11+20180830 +site_name: dfareporting v1.0.12+20180830 site_url: http://byron.github.io/google-apis-rs/google-dfareporting3-cli site_description: A complete library to interact with dfareporting (protocol v3.0) @@ -216,5 +216,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/dfareporting3-cli/src/cmn.rs b/gen/dfareporting3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/dfareporting3-cli/src/cmn.rs +++ b/gen/dfareporting3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/dfareporting3-cli/src/main.rs b/gen/dfareporting3-cli/src/main.rs index 5e7fa79bc9..9bf9f01a1d 100644 --- a/gen/dfareporting3-cli/src/main.rs +++ b/gen/dfareporting3-cli/src/main.rs @@ -23698,7 +23698,7 @@ fn main() { let mut app = App::new("dfareporting3") .author("Sebastian Thiel ") - .version("1.0.11+20180830") + .version("1.0.12+20180830") .about("Manages your DoubleClick Campaign Manager ad campaigns and reports.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_dfareporting3_cli") .arg(Arg::with_name("url") diff --git a/gen/dfareporting3/Cargo.toml b/gen/dfareporting3/Cargo.toml index d45a8b2ec9..a62a72c687 100644 --- a/gen/dfareporting3/Cargo.toml +++ b/gen/dfareporting3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-dfareporting3" -version = "1.0.11+20180830" +version = "1.0.12+20180830" authors = ["Sebastian Thiel "] description = "A complete library to interact with dfareporting (protocol v3.0)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dfareporting3" homepage = "https://developers.google.com/doubleclick-advertisers/" -documentation = "https://docs.rs/google-dfareporting3/1.0.11+20180830" +documentation = "https://docs.rs/google-dfareporting3/1.0.12+20180830" license = "MIT" keywords = ["dfareporting", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/dfareporting3/LICENSE.md b/gen/dfareporting3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dfareporting3/LICENSE.md +++ b/gen/dfareporting3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dfareporting3/README.md b/gen/dfareporting3/README.md index baa92ea379..dbaf7fcd11 100644 --- a/gen/dfareporting3/README.md +++ b/gen/dfareporting3/README.md @@ -5,144 +5,144 @@ DO NOT EDIT ! --> The `google-dfareporting3` library allows access to all features of the *Google dfareporting* service. -This documentation was generated from *dfareporting* crate version *1.0.11+20180830*, where *20180830* is the exact revision of the *dfareporting:v3.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *dfareporting* crate version *1.0.12+20180830*, where *20180830* is the exact revision of the *dfareporting:v3.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *dfareporting* *v3* API can be found at the [official documentation site](https://developers.google.com/doubleclick-advertisers/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Dfareporting.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Dfareporting.html) ... -* [account active ad summaries](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountActiveAdSummary.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountActiveAdSummaryGetCall.html) -* [account permission groups](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountPermissionGroup.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountPermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountPermissionGroupListCall.html) -* [account permissions](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountPermission.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountPermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountPermissionListCall.html) -* [account user profiles](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountUserProfile.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountUserProfileGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountUserProfileInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountUserProfileListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountUserProfilePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountUserProfileUpdateCall.html) -* [accounts](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Account.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountGetCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AccountUpdateCall.html) -* [ads](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Ad.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdUpdateCall.html) -* [advertiser groups](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserGroup.html) - * [*delete*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserGroupDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserGroupUpdateCall.html) +* [account active ad summaries](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountActiveAdSummary.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountActiveAdSummaryGetCall.html) +* [account permission groups](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountPermissionGroup.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountPermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountPermissionGroupListCall.html) +* [account permissions](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountPermission.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountPermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountPermissionListCall.html) +* [account user profiles](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountUserProfile.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountUserProfileGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountUserProfileInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountUserProfileListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountUserProfilePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountUserProfileUpdateCall.html) +* [accounts](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Account.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountGetCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AccountUpdateCall.html) +* [ads](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Ad.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdUpdateCall.html) +* [advertiser groups](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserGroup.html) + * [*delete*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserGroupDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserGroupUpdateCall.html) * advertiser landing pages - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserLandingPageGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserLandingPageInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserLandingPageListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserLandingPagePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserLandingPageUpdateCall.html) -* [advertisers](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Advertiser.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.AdvertiserUpdateCall.html) -* [browsers](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Browser.html) - * [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.BrowserListCall.html) -* [campaign creative associations](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CampaignCreativeAssociation.html) - * [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CampaignCreativeAssociationInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CampaignCreativeAssociationListCall.html) -* [campaigns](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Campaign.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CampaignGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CampaignInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CampaignListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CampaignPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CampaignUpdateCall.html) -* [change logs](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ChangeLog.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ChangeLogGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ChangeLogListCall.html) -* [cities](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.City.html) - * [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CityListCall.html) -* [connection types](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ConnectionType.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ConnectionTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ConnectionTypeListCall.html) -* [content categories](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ContentCategory.html) - * [*delete*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ContentCategoryDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ContentCategoryGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ContentCategoryInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ContentCategoryListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ContentCategoryPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ContentCategoryUpdateCall.html) -* [conversions](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Conversion.html) - * [*batchinsert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ConversionBatchinsertCall.html) and [*batchupdate*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ConversionBatchupdateCall.html) -* [countries](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Country.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CountryGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CountryListCall.html) -* [creative assets](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeAsset.html) - * [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeAssetInsertCall.html) -* [creative field values](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeFieldValue.html) - * [*delete*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeFieldValueDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeFieldValueGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeFieldValueInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeFieldValueListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeFieldValuePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeFieldValueUpdateCall.html) -* [creative fields](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeField.html) - * [*delete*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeFieldDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeFieldGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeFieldInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeFieldListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeFieldPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeFieldUpdateCall.html) -* [creative groups](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeGroup.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeGroupUpdateCall.html) -* [creatives](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Creative.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeUpdateCall.html) -* [dimension values](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.DimensionValue.html) - * [*query*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.DimensionValueQueryCall.html) -* [directory site contacts](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.DirectorySiteContact.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.DirectorySiteContactGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.DirectorySiteContactListCall.html) -* [directory sites](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.DirectorySite.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.DirectorySiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.DirectorySiteInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.DirectorySiteListCall.html) -* [dynamic targeting keys](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.DynamicTargetingKey.html) - * [*delete*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.DynamicTargetingKeyDeleteCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.DynamicTargetingKeyInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.DynamicTargetingKeyListCall.html) -* [event tags](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.EventTag.html) - * [*delete*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.EventTagDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.EventTagGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.EventTagInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.EventTagListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.EventTagPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.EventTagUpdateCall.html) -* [files](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.File.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FileGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FileListCall.html) -* [floodlight activities](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightActivity.html) - * [*delete*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightActivityDeleteCall.html), [*generatetag*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightActivityGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightActivityGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightActivityInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightActivityListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightActivityPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightActivityUpdateCall.html) -* [floodlight activity groups](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightActivityGroup.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightActivityGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightActivityGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightActivityGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightActivityGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightActivityGroupUpdateCall.html) -* [floodlight configurations](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightConfiguration.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightConfigurationGetCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightConfigurationListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightConfigurationPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FloodlightConfigurationUpdateCall.html) -* [inventory items](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.InventoryItem.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.InventoryItemGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.InventoryItemListCall.html) -* [languages](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Language.html) - * [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.LanguageListCall.html) -* [metros](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Metro.html) - * [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.MetroListCall.html) -* [mobile carriers](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.MobileCarrier.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.MobileCarrierGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.MobileCarrierListCall.html) -* [operating system versions](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.OperatingSystemVersion.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.OperatingSystemVersionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.OperatingSystemVersionListCall.html) -* [operating systems](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.OperatingSystem.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.OperatingSystemGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.OperatingSystemListCall.html) -* [order documents](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.OrderDocument.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.OrderDocumentGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.OrderDocumentListCall.html) -* [orders](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Order.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.OrderGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.OrderListCall.html) -* [placement groups](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementGroup.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementGroupUpdateCall.html) -* [placement strategies](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementStrategy.html) - * [*delete*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementStrategyDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementStrategyGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementStrategyInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementStrategyListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementStrategyPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementStrategyUpdateCall.html) -* [placements](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Placement.html) - * [*generatetags*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlacementUpdateCall.html) -* [platform types](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlatformType.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlatformTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PlatformTypeListCall.html) -* [postal codes](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PostalCode.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PostalCodeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.PostalCodeListCall.html) -* [projects](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Project.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ProjectGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ProjectListCall.html) -* [regions](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Region.html) - * [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.RegionListCall.html) -* [remarketing list shares](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.RemarketingListShare.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.RemarketingListShareGetCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.RemarketingListSharePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.RemarketingListShareUpdateCall.html) -* [remarketing lists](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.RemarketingList.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.RemarketingListGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.RemarketingListInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.RemarketingListListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.RemarketingListPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.RemarketingListUpdateCall.html) -* [reports](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Report.html) - * [*compatible fields query*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ReportCompatibleFieldQueryCall.html), [*delete*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ReportDeleteCall.html), [*files get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ReportFileGetCall.html), [*files list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ReportFileListCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ReportGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ReportInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ReportListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ReportPatchCall.html), [*run*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ReportRunCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ReportUpdateCall.html) -* [sites](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Site.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.SiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.SiteInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.SiteListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.SitePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.SiteUpdateCall.html) -* [sizes](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Size.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.SizeGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.SizeInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.SizeListCall.html) -* [subaccounts](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Subaccount.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.SubaccountGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.SubaccountInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.SubaccountListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.SubaccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.SubaccountUpdateCall.html) -* [targetable remarketing lists](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.TargetableRemarketingList.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.TargetableRemarketingListGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.TargetableRemarketingListListCall.html) -* [targeting templates](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.TargetingTemplate.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.TargetingTemplateGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.TargetingTemplateInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.TargetingTemplateListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.TargetingTemplatePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.TargetingTemplateUpdateCall.html) -* [user profiles](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserProfile.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserProfileGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserProfileListCall.html) -* [user role permission groups](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserRolePermissionGroup.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserRolePermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserRolePermissionGroupListCall.html) -* [user role permissions](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserRolePermission.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserRolePermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserRolePermissionListCall.html) -* [user roles](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserRole.html) - * [*delete*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserRoleDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserRoleGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserRoleInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserRoleListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserRolePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.UserRoleUpdateCall.html) -* [video formats](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.VideoFormat.html) - * [*get*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.VideoFormatGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.VideoFormatListCall.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserLandingPageGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserLandingPageInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserLandingPageListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserLandingPagePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserLandingPageUpdateCall.html) +* [advertisers](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Advertiser.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.AdvertiserUpdateCall.html) +* [browsers](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Browser.html) + * [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.BrowserListCall.html) +* [campaign creative associations](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CampaignCreativeAssociation.html) + * [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CampaignCreativeAssociationInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CampaignCreativeAssociationListCall.html) +* [campaigns](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Campaign.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CampaignGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CampaignInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CampaignListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CampaignPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CampaignUpdateCall.html) +* [change logs](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ChangeLog.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ChangeLogGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ChangeLogListCall.html) +* [cities](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.City.html) + * [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CityListCall.html) +* [connection types](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ConnectionType.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ConnectionTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ConnectionTypeListCall.html) +* [content categories](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ContentCategory.html) + * [*delete*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ContentCategoryDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ContentCategoryGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ContentCategoryInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ContentCategoryListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ContentCategoryPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ContentCategoryUpdateCall.html) +* [conversions](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Conversion.html) + * [*batchinsert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ConversionBatchinsertCall.html) and [*batchupdate*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ConversionBatchupdateCall.html) +* [countries](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Country.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CountryGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CountryListCall.html) +* [creative assets](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeAsset.html) + * [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeAssetInsertCall.html) +* [creative field values](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeFieldValue.html) + * [*delete*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeFieldValueDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeFieldValueGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeFieldValueInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeFieldValueListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeFieldValuePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeFieldValueUpdateCall.html) +* [creative fields](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeField.html) + * [*delete*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeFieldDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeFieldGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeFieldInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeFieldListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeFieldPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeFieldUpdateCall.html) +* [creative groups](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeGroup.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeGroupUpdateCall.html) +* [creatives](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Creative.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeUpdateCall.html) +* [dimension values](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.DimensionValue.html) + * [*query*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.DimensionValueQueryCall.html) +* [directory site contacts](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.DirectorySiteContact.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.DirectorySiteContactGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.DirectorySiteContactListCall.html) +* [directory sites](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.DirectorySite.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.DirectorySiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.DirectorySiteInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.DirectorySiteListCall.html) +* [dynamic targeting keys](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.DynamicTargetingKey.html) + * [*delete*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.DynamicTargetingKeyDeleteCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.DynamicTargetingKeyInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.DynamicTargetingKeyListCall.html) +* [event tags](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.EventTag.html) + * [*delete*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.EventTagDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.EventTagGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.EventTagInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.EventTagListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.EventTagPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.EventTagUpdateCall.html) +* [files](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.File.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FileGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FileListCall.html) +* [floodlight activities](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightActivity.html) + * [*delete*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightActivityDeleteCall.html), [*generatetag*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightActivityGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightActivityGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightActivityInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightActivityListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightActivityPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightActivityUpdateCall.html) +* [floodlight activity groups](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightActivityGroup.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightActivityGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightActivityGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightActivityGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightActivityGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightActivityGroupUpdateCall.html) +* [floodlight configurations](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightConfiguration.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightConfigurationGetCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightConfigurationListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightConfigurationPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FloodlightConfigurationUpdateCall.html) +* [inventory items](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.InventoryItem.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.InventoryItemGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.InventoryItemListCall.html) +* [languages](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Language.html) + * [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.LanguageListCall.html) +* [metros](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Metro.html) + * [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.MetroListCall.html) +* [mobile carriers](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.MobileCarrier.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.MobileCarrierGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.MobileCarrierListCall.html) +* [operating system versions](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.OperatingSystemVersion.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.OperatingSystemVersionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.OperatingSystemVersionListCall.html) +* [operating systems](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.OperatingSystem.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.OperatingSystemGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.OperatingSystemListCall.html) +* [order documents](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.OrderDocument.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.OrderDocumentGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.OrderDocumentListCall.html) +* [orders](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Order.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.OrderGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.OrderListCall.html) +* [placement groups](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementGroup.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementGroupUpdateCall.html) +* [placement strategies](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementStrategy.html) + * [*delete*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementStrategyDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementStrategyGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementStrategyInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementStrategyListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementStrategyPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementStrategyUpdateCall.html) +* [placements](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Placement.html) + * [*generatetags*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlacementUpdateCall.html) +* [platform types](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlatformType.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlatformTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PlatformTypeListCall.html) +* [postal codes](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PostalCode.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PostalCodeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.PostalCodeListCall.html) +* [projects](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Project.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ProjectGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ProjectListCall.html) +* [regions](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Region.html) + * [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.RegionListCall.html) +* [remarketing list shares](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.RemarketingListShare.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.RemarketingListShareGetCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.RemarketingListSharePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.RemarketingListShareUpdateCall.html) +* [remarketing lists](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.RemarketingList.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.RemarketingListGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.RemarketingListInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.RemarketingListListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.RemarketingListPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.RemarketingListUpdateCall.html) +* [reports](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Report.html) + * [*compatible fields query*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ReportCompatibleFieldQueryCall.html), [*delete*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ReportDeleteCall.html), [*files get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ReportFileGetCall.html), [*files list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ReportFileListCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ReportGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ReportInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ReportListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ReportPatchCall.html), [*run*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ReportRunCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ReportUpdateCall.html) +* [sites](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Site.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.SiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.SiteInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.SiteListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.SitePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.SiteUpdateCall.html) +* [sizes](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Size.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.SizeGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.SizeInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.SizeListCall.html) +* [subaccounts](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Subaccount.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.SubaccountGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.SubaccountInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.SubaccountListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.SubaccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.SubaccountUpdateCall.html) +* [targetable remarketing lists](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.TargetableRemarketingList.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.TargetableRemarketingListGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.TargetableRemarketingListListCall.html) +* [targeting templates](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.TargetingTemplate.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.TargetingTemplateGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.TargetingTemplateInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.TargetingTemplateListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.TargetingTemplatePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.TargetingTemplateUpdateCall.html) +* [user profiles](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserProfile.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserProfileGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserProfileListCall.html) +* [user role permission groups](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserRolePermissionGroup.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserRolePermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserRolePermissionGroupListCall.html) +* [user role permissions](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserRolePermission.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserRolePermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserRolePermissionListCall.html) +* [user roles](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserRole.html) + * [*delete*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserRoleDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserRoleGetCall.html), [*insert*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserRoleInsertCall.html), [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserRoleListCall.html), [*patch*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserRolePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.UserRoleUpdateCall.html) +* [video formats](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.VideoFormat.html) + * [*get*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.VideoFormatGetCall.html) and [*list*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.VideoFormatListCall.html) Upload supported by ... -* [*insert creative assets*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.CreativeAssetInsertCall.html) +* [*insert creative assets*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.CreativeAssetInsertCall.html) Download supported by ... -* [*get files*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.FileGetCall.html) -* [*files get reports*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.ReportFileGetCall.html) +* [*get files*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.FileGetCall.html) +* [*files get reports*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.ReportFileGetCall.html) @@ -150,17 +150,17 @@ Download supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/struct.Dfareporting.html)** +* **[Hub](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/struct.Dfareporting.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.Part.html)** + * **[Parts](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -265,17 +265,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -285,29 +285,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-dfareporting3/1.0.11+20180830/google_dfareporting3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-dfareporting3/1.0.12+20180830/google_dfareporting3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/dfareporting3/src/lib.rs b/gen/dfareporting3/src/lib.rs index c8d961d83e..10a47850b1 100644 --- a/gen/dfareporting3/src/lib.rs +++ b/gen/dfareporting3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *dfareporting* crate version *1.0.11+20180830*, where *20180830* is the exact revision of the *dfareporting:v3.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *dfareporting* crate version *1.0.12+20180830*, where *20180830* is the exact revision of the *dfareporting:v3.0* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *dfareporting* *v3* API can be found at the //! [official documentation site](https://developers.google.com/doubleclick-advertisers/). @@ -471,7 +471,7 @@ impl<'a, C, A> Dfareporting Dfareporting { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/dfareporting/v3.0/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -659,7 +659,7 @@ impl<'a, C, A> Dfareporting } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/dfareporting3d2-cli/Cargo.toml b/gen/dfareporting3d2-cli/Cargo.toml index ebe6f983e4..118eafd186 100644 --- a/gen/dfareporting3d2-cli/Cargo.toml +++ b/gen/dfareporting3d2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-dfareporting3d2-cli" -version = "1.0.11+20190531" +version = "1.0.12+20190531" authors = ["Sebastian Thiel "] description = "A complete library to interact with dfareporting (protocol v3.2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dfareporting3d2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-dfareporting3d2] path = "../dfareporting3d2" -version = "1.0.11+20190531" +version = "1.0.12+20190531" diff --git a/gen/dfareporting3d2-cli/LICENSE.md b/gen/dfareporting3d2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dfareporting3d2-cli/LICENSE.md +++ b/gen/dfareporting3d2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dfareporting3d2-cli/README.md b/gen/dfareporting3d2-cli/README.md index 4bf14e094a..bb1d58ea9c 100644 --- a/gen/dfareporting3d2-cli/README.md +++ b/gen/dfareporting3d2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *dfareporting* API at revision *20190531*. The CLI is at version *1.0.11*. +This documentation was generated from the *dfareporting* API at revision *20190531*. The CLI is at version *1.0.12*. ```bash dfareporting3d2 [options] diff --git a/gen/dfareporting3d2-cli/mkdocs.yml b/gen/dfareporting3d2-cli/mkdocs.yml index 06ee9e05a6..33c765ad40 100644 --- a/gen/dfareporting3d2-cli/mkdocs.yml +++ b/gen/dfareporting3d2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: dfareporting v1.0.11+20190531 +site_name: dfareporting v1.0.12+20190531 site_url: http://byron.github.io/google-apis-rs/google-dfareporting3d2-cli site_description: A complete library to interact with dfareporting (protocol v3.2) @@ -218,5 +218,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/dfareporting3d2-cli/src/cmn.rs b/gen/dfareporting3d2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/dfareporting3d2-cli/src/cmn.rs +++ b/gen/dfareporting3d2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/dfareporting3d2-cli/src/main.rs b/gen/dfareporting3d2-cli/src/main.rs index 8c7a826821..c8cce2e6fb 100644 --- a/gen/dfareporting3d2-cli/src/main.rs +++ b/gen/dfareporting3d2-cli/src/main.rs @@ -23888,7 +23888,7 @@ fn main() { let mut app = App::new("dfareporting3d2") .author("Sebastian Thiel ") - .version("1.0.11+20190531") + .version("1.0.12+20190531") .about("Manages your DoubleClick Campaign Manager ad campaigns and reports.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_dfareporting3d2_cli") .arg(Arg::with_name("url") diff --git a/gen/dfareporting3d2/Cargo.toml b/gen/dfareporting3d2/Cargo.toml index 3b8f708550..a4260fe86a 100644 --- a/gen/dfareporting3d2/Cargo.toml +++ b/gen/dfareporting3d2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-dfareporting3d2" -version = "1.0.11+20190531" +version = "1.0.12+20190531" authors = ["Sebastian Thiel "] description = "A complete library to interact with dfareporting (protocol v3.2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dfareporting3d2" homepage = "https://developers.google.com/doubleclick-advertisers/" -documentation = "https://docs.rs/google-dfareporting3d2/1.0.11+20190531" +documentation = "https://docs.rs/google-dfareporting3d2/1.0.12+20190531" license = "MIT" keywords = ["dfareporting", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/dfareporting3d2/LICENSE.md b/gen/dfareporting3d2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dfareporting3d2/LICENSE.md +++ b/gen/dfareporting3d2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dfareporting3d2/README.md b/gen/dfareporting3d2/README.md index 185492aa85..a2de4b8366 100644 --- a/gen/dfareporting3d2/README.md +++ b/gen/dfareporting3d2/README.md @@ -5,146 +5,146 @@ DO NOT EDIT ! --> The `google-dfareporting3d2` library allows access to all features of the *Google dfareporting* service. -This documentation was generated from *dfareporting* crate version *1.0.11+20190531*, where *20190531* is the exact revision of the *dfareporting:v3.2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *dfareporting* crate version *1.0.12+20190531*, where *20190531* is the exact revision of the *dfareporting:v3.2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *dfareporting* *v3d2* API can be found at the [official documentation site](https://developers.google.com/doubleclick-advertisers/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Dfareporting.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Dfareporting.html) ... -* [account active ad summaries](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountActiveAdSummary.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountActiveAdSummaryGetCall.html) -* [account permission groups](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountPermissionGroup.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountPermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountPermissionGroupListCall.html) -* [account permissions](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountPermission.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountPermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountPermissionListCall.html) -* [account user profiles](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountUserProfile.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountUserProfileGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountUserProfileInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountUserProfileListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountUserProfilePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountUserProfileUpdateCall.html) -* [accounts](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Account.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountGetCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AccountUpdateCall.html) -* [ads](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Ad.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdUpdateCall.html) -* [advertiser groups](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserGroup.html) - * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserGroupDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserGroupUpdateCall.html) +* [account active ad summaries](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountActiveAdSummary.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountActiveAdSummaryGetCall.html) +* [account permission groups](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountPermissionGroup.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountPermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountPermissionGroupListCall.html) +* [account permissions](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountPermission.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountPermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountPermissionListCall.html) +* [account user profiles](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountUserProfile.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountUserProfileGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountUserProfileInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountUserProfileListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountUserProfilePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountUserProfileUpdateCall.html) +* [accounts](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Account.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountGetCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AccountUpdateCall.html) +* [ads](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Ad.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdUpdateCall.html) +* [advertiser groups](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserGroup.html) + * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserGroupDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserGroupUpdateCall.html) * advertiser landing pages - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserLandingPageGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserLandingPageInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserLandingPageListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserLandingPagePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserLandingPageUpdateCall.html) -* [advertisers](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Advertiser.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.AdvertiserUpdateCall.html) -* [browsers](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Browser.html) - * [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.BrowserListCall.html) -* [campaign creative associations](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CampaignCreativeAssociation.html) - * [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CampaignCreativeAssociationInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CampaignCreativeAssociationListCall.html) -* [campaigns](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Campaign.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CampaignGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CampaignInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CampaignListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CampaignPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CampaignUpdateCall.html) -* [change logs](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ChangeLog.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ChangeLogGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ChangeLogListCall.html) -* [cities](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.City.html) - * [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CityListCall.html) -* [connection types](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ConnectionType.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ConnectionTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ConnectionTypeListCall.html) -* [content categories](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ContentCategory.html) - * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ContentCategoryDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ContentCategoryGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ContentCategoryInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ContentCategoryListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ContentCategoryPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ContentCategoryUpdateCall.html) -* [conversions](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Conversion.html) - * [*batchinsert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ConversionBatchinsertCall.html) and [*batchupdate*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ConversionBatchupdateCall.html) -* [countries](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Country.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CountryGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CountryListCall.html) -* [creative assets](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeAsset.html) - * [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeAssetInsertCall.html) -* [creative field values](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeFieldValue.html) - * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeFieldValueDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeFieldValueGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeFieldValueInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeFieldValueListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeFieldValuePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeFieldValueUpdateCall.html) -* [creative fields](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeField.html) - * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeFieldDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeFieldGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeFieldInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeFieldListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeFieldPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeFieldUpdateCall.html) -* [creative groups](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeGroup.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeGroupUpdateCall.html) -* [creatives](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Creative.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeUpdateCall.html) -* [dimension values](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.DimensionValue.html) - * [*query*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.DimensionValueQueryCall.html) -* [directory site contacts](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.DirectorySiteContact.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.DirectorySiteContactGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.DirectorySiteContactListCall.html) -* [directory sites](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.DirectorySite.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.DirectorySiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.DirectorySiteInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.DirectorySiteListCall.html) -* [dynamic targeting keys](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.DynamicTargetingKey.html) - * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.DynamicTargetingKeyDeleteCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.DynamicTargetingKeyInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.DynamicTargetingKeyListCall.html) -* [event tags](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.EventTag.html) - * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.EventTagDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.EventTagGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.EventTagInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.EventTagListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.EventTagPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.EventTagUpdateCall.html) -* [files](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.File.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FileGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FileListCall.html) -* [floodlight activities](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightActivity.html) - * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightActivityDeleteCall.html), [*generatetag*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightActivityGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightActivityGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightActivityInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightActivityListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightActivityPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightActivityUpdateCall.html) -* [floodlight activity groups](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightActivityGroup.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightActivityGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightActivityGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightActivityGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightActivityGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightActivityGroupUpdateCall.html) -* [floodlight configurations](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightConfiguration.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightConfigurationGetCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightConfigurationListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightConfigurationPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FloodlightConfigurationUpdateCall.html) -* [inventory items](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.InventoryItem.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.InventoryItemGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.InventoryItemListCall.html) -* [languages](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Language.html) - * [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.LanguageListCall.html) -* [metros](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Metro.html) - * [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.MetroListCall.html) -* [mobile apps](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.MobileApp.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.MobileAppGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.MobileAppListCall.html) -* [mobile carriers](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.MobileCarrier.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.MobileCarrierGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.MobileCarrierListCall.html) -* [operating system versions](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.OperatingSystemVersion.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.OperatingSystemVersionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.OperatingSystemVersionListCall.html) -* [operating systems](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.OperatingSystem.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.OperatingSystemGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.OperatingSystemListCall.html) -* [order documents](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.OrderDocument.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.OrderDocumentGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.OrderDocumentListCall.html) -* [orders](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Order.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.OrderGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.OrderListCall.html) -* [placement groups](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementGroup.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementGroupUpdateCall.html) -* [placement strategies](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementStrategy.html) - * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementStrategyDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementStrategyGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementStrategyInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementStrategyListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementStrategyPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementStrategyUpdateCall.html) -* [placements](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Placement.html) - * [*generatetags*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlacementUpdateCall.html) -* [platform types](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlatformType.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlatformTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PlatformTypeListCall.html) -* [postal codes](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PostalCode.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PostalCodeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.PostalCodeListCall.html) -* [projects](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Project.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ProjectGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ProjectListCall.html) -* [regions](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Region.html) - * [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.RegionListCall.html) -* [remarketing list shares](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.RemarketingListShare.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.RemarketingListShareGetCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.RemarketingListSharePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.RemarketingListShareUpdateCall.html) -* [remarketing lists](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.RemarketingList.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.RemarketingListGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.RemarketingListInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.RemarketingListListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.RemarketingListPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.RemarketingListUpdateCall.html) -* [reports](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Report.html) - * [*compatible fields query*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ReportCompatibleFieldQueryCall.html), [*delete*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ReportDeleteCall.html), [*files get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ReportFileGetCall.html), [*files list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ReportFileListCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ReportGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ReportInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ReportListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ReportPatchCall.html), [*run*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ReportRunCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ReportUpdateCall.html) -* [sites](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Site.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.SiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.SiteInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.SiteListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.SitePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.SiteUpdateCall.html) -* [sizes](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Size.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.SizeGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.SizeInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.SizeListCall.html) -* [subaccounts](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Subaccount.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.SubaccountGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.SubaccountInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.SubaccountListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.SubaccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.SubaccountUpdateCall.html) -* [targetable remarketing lists](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.TargetableRemarketingList.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.TargetableRemarketingListGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.TargetableRemarketingListListCall.html) -* [targeting templates](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.TargetingTemplate.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.TargetingTemplateGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.TargetingTemplateInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.TargetingTemplateListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.TargetingTemplatePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.TargetingTemplateUpdateCall.html) -* [user profiles](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserProfile.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserProfileGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserProfileListCall.html) -* [user role permission groups](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserRolePermissionGroup.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserRolePermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserRolePermissionGroupListCall.html) -* [user role permissions](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserRolePermission.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserRolePermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserRolePermissionListCall.html) -* [user roles](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserRole.html) - * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserRoleDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserRoleGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserRoleInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserRoleListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserRolePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.UserRoleUpdateCall.html) -* [video formats](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.VideoFormat.html) - * [*get*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.VideoFormatGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.VideoFormatListCall.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserLandingPageGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserLandingPageInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserLandingPageListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserLandingPagePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserLandingPageUpdateCall.html) +* [advertisers](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Advertiser.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.AdvertiserUpdateCall.html) +* [browsers](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Browser.html) + * [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.BrowserListCall.html) +* [campaign creative associations](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CampaignCreativeAssociation.html) + * [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CampaignCreativeAssociationInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CampaignCreativeAssociationListCall.html) +* [campaigns](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Campaign.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CampaignGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CampaignInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CampaignListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CampaignPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CampaignUpdateCall.html) +* [change logs](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ChangeLog.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ChangeLogGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ChangeLogListCall.html) +* [cities](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.City.html) + * [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CityListCall.html) +* [connection types](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ConnectionType.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ConnectionTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ConnectionTypeListCall.html) +* [content categories](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ContentCategory.html) + * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ContentCategoryDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ContentCategoryGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ContentCategoryInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ContentCategoryListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ContentCategoryPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ContentCategoryUpdateCall.html) +* [conversions](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Conversion.html) + * [*batchinsert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ConversionBatchinsertCall.html) and [*batchupdate*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ConversionBatchupdateCall.html) +* [countries](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Country.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CountryGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CountryListCall.html) +* [creative assets](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeAsset.html) + * [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeAssetInsertCall.html) +* [creative field values](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeFieldValue.html) + * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeFieldValueDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeFieldValueGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeFieldValueInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeFieldValueListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeFieldValuePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeFieldValueUpdateCall.html) +* [creative fields](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeField.html) + * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeFieldDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeFieldGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeFieldInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeFieldListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeFieldPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeFieldUpdateCall.html) +* [creative groups](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeGroup.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeGroupUpdateCall.html) +* [creatives](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Creative.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeUpdateCall.html) +* [dimension values](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.DimensionValue.html) + * [*query*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.DimensionValueQueryCall.html) +* [directory site contacts](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.DirectorySiteContact.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.DirectorySiteContactGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.DirectorySiteContactListCall.html) +* [directory sites](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.DirectorySite.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.DirectorySiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.DirectorySiteInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.DirectorySiteListCall.html) +* [dynamic targeting keys](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.DynamicTargetingKey.html) + * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.DynamicTargetingKeyDeleteCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.DynamicTargetingKeyInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.DynamicTargetingKeyListCall.html) +* [event tags](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.EventTag.html) + * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.EventTagDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.EventTagGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.EventTagInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.EventTagListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.EventTagPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.EventTagUpdateCall.html) +* [files](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.File.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FileGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FileListCall.html) +* [floodlight activities](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightActivity.html) + * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightActivityDeleteCall.html), [*generatetag*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightActivityGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightActivityGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightActivityInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightActivityListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightActivityPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightActivityUpdateCall.html) +* [floodlight activity groups](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightActivityGroup.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightActivityGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightActivityGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightActivityGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightActivityGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightActivityGroupUpdateCall.html) +* [floodlight configurations](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightConfiguration.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightConfigurationGetCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightConfigurationListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightConfigurationPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FloodlightConfigurationUpdateCall.html) +* [inventory items](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.InventoryItem.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.InventoryItemGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.InventoryItemListCall.html) +* [languages](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Language.html) + * [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.LanguageListCall.html) +* [metros](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Metro.html) + * [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.MetroListCall.html) +* [mobile apps](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.MobileApp.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.MobileAppGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.MobileAppListCall.html) +* [mobile carriers](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.MobileCarrier.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.MobileCarrierGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.MobileCarrierListCall.html) +* [operating system versions](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.OperatingSystemVersion.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.OperatingSystemVersionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.OperatingSystemVersionListCall.html) +* [operating systems](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.OperatingSystem.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.OperatingSystemGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.OperatingSystemListCall.html) +* [order documents](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.OrderDocument.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.OrderDocumentGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.OrderDocumentListCall.html) +* [orders](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Order.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.OrderGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.OrderListCall.html) +* [placement groups](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementGroup.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementGroupUpdateCall.html) +* [placement strategies](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementStrategy.html) + * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementStrategyDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementStrategyGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementStrategyInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementStrategyListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementStrategyPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementStrategyUpdateCall.html) +* [placements](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Placement.html) + * [*generatetags*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlacementUpdateCall.html) +* [platform types](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlatformType.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlatformTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PlatformTypeListCall.html) +* [postal codes](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PostalCode.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PostalCodeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.PostalCodeListCall.html) +* [projects](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Project.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ProjectGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ProjectListCall.html) +* [regions](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Region.html) + * [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.RegionListCall.html) +* [remarketing list shares](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.RemarketingListShare.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.RemarketingListShareGetCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.RemarketingListSharePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.RemarketingListShareUpdateCall.html) +* [remarketing lists](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.RemarketingList.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.RemarketingListGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.RemarketingListInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.RemarketingListListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.RemarketingListPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.RemarketingListUpdateCall.html) +* [reports](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Report.html) + * [*compatible fields query*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ReportCompatibleFieldQueryCall.html), [*delete*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ReportDeleteCall.html), [*files get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ReportFileGetCall.html), [*files list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ReportFileListCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ReportGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ReportInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ReportListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ReportPatchCall.html), [*run*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ReportRunCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ReportUpdateCall.html) +* [sites](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Site.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.SiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.SiteInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.SiteListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.SitePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.SiteUpdateCall.html) +* [sizes](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Size.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.SizeGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.SizeInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.SizeListCall.html) +* [subaccounts](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Subaccount.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.SubaccountGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.SubaccountInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.SubaccountListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.SubaccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.SubaccountUpdateCall.html) +* [targetable remarketing lists](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.TargetableRemarketingList.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.TargetableRemarketingListGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.TargetableRemarketingListListCall.html) +* [targeting templates](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.TargetingTemplate.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.TargetingTemplateGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.TargetingTemplateInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.TargetingTemplateListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.TargetingTemplatePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.TargetingTemplateUpdateCall.html) +* [user profiles](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserProfile.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserProfileGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserProfileListCall.html) +* [user role permission groups](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserRolePermissionGroup.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserRolePermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserRolePermissionGroupListCall.html) +* [user role permissions](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserRolePermission.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserRolePermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserRolePermissionListCall.html) +* [user roles](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserRole.html) + * [*delete*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserRoleDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserRoleGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserRoleInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserRoleListCall.html), [*patch*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserRolePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.UserRoleUpdateCall.html) +* [video formats](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.VideoFormat.html) + * [*get*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.VideoFormatGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.VideoFormatListCall.html) Upload supported by ... -* [*insert creative assets*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.CreativeAssetInsertCall.html) +* [*insert creative assets*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.CreativeAssetInsertCall.html) Download supported by ... -* [*get files*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.FileGetCall.html) -* [*files get reports*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.ReportFileGetCall.html) +* [*get files*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.FileGetCall.html) +* [*files get reports*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.ReportFileGetCall.html) @@ -152,17 +152,17 @@ Download supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/struct.Dfareporting.html)** +* **[Hub](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/struct.Dfareporting.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.Part.html)** + * **[Parts](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -267,17 +267,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -287,29 +287,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-dfareporting3d2/1.0.11+20190531/google_dfareporting3d2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-dfareporting3d2/1.0.12+20190531/google_dfareporting3d2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/dfareporting3d2/src/lib.rs b/gen/dfareporting3d2/src/lib.rs index 61db9accd0..80e15c96dc 100644 --- a/gen/dfareporting3d2/src/lib.rs +++ b/gen/dfareporting3d2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *dfareporting* crate version *1.0.11+20190531*, where *20190531* is the exact revision of the *dfareporting:v3.2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *dfareporting* crate version *1.0.12+20190531*, where *20190531* is the exact revision of the *dfareporting:v3.2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *dfareporting* *v3d2* API can be found at the //! [official documentation site](https://developers.google.com/doubleclick-advertisers/). @@ -473,7 +473,7 @@ impl<'a, C, A> Dfareporting Dfareporting { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/dfareporting/v3.2/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -664,7 +664,7 @@ impl<'a, C, A> Dfareporting } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/dfareporting3d3-cli/Cargo.toml b/gen/dfareporting3d3-cli/Cargo.toml index 997979f43f..9765033308 100644 --- a/gen/dfareporting3d3-cli/Cargo.toml +++ b/gen/dfareporting3d3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-dfareporting3d3-cli" -version = "1.0.11+20190531" +version = "1.0.12+20190531" authors = ["Sebastian Thiel "] description = "A complete library to interact with dfareporting (protocol v3.3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dfareporting3d3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-dfareporting3d3] path = "../dfareporting3d3" -version = "1.0.11+20190531" +version = "1.0.12+20190531" diff --git a/gen/dfareporting3d3-cli/LICENSE.md b/gen/dfareporting3d3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dfareporting3d3-cli/LICENSE.md +++ b/gen/dfareporting3d3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dfareporting3d3-cli/README.md b/gen/dfareporting3d3-cli/README.md index c380eb7aa1..c4c1e79c65 100644 --- a/gen/dfareporting3d3-cli/README.md +++ b/gen/dfareporting3d3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *dfareporting* API at revision *20190531*. The CLI is at version *1.0.11*. +This documentation was generated from the *dfareporting* API at revision *20190531*. The CLI is at version *1.0.12*. ```bash dfareporting3d3 [options] diff --git a/gen/dfareporting3d3-cli/mkdocs.yml b/gen/dfareporting3d3-cli/mkdocs.yml index b49e579f11..e797e394ba 100644 --- a/gen/dfareporting3d3-cli/mkdocs.yml +++ b/gen/dfareporting3d3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: dfareporting v1.0.11+20190531 +site_name: dfareporting v1.0.12+20190531 site_url: http://byron.github.io/google-apis-rs/google-dfareporting3d3-cli site_description: A complete library to interact with dfareporting (protocol v3.3) @@ -216,5 +216,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/dfareporting3d3-cli/src/cmn.rs b/gen/dfareporting3d3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/dfareporting3d3-cli/src/cmn.rs +++ b/gen/dfareporting3d3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/dfareporting3d3-cli/src/main.rs b/gen/dfareporting3d3-cli/src/main.rs index 5a5ffda939..cd0da62b02 100644 --- a/gen/dfareporting3d3-cli/src/main.rs +++ b/gen/dfareporting3d3-cli/src/main.rs @@ -23712,7 +23712,7 @@ fn main() { let mut app = App::new("dfareporting3d3") .author("Sebastian Thiel ") - .version("1.0.11+20190531") + .version("1.0.12+20190531") .about("Manages your DoubleClick Campaign Manager ad campaigns and reports.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_dfareporting3d3_cli") .arg(Arg::with_name("url") diff --git a/gen/dfareporting3d3/Cargo.toml b/gen/dfareporting3d3/Cargo.toml index d1e1737f6e..0ae30b3e71 100644 --- a/gen/dfareporting3d3/Cargo.toml +++ b/gen/dfareporting3d3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-dfareporting3d3" -version = "1.0.11+20190531" +version = "1.0.12+20190531" authors = ["Sebastian Thiel "] description = "A complete library to interact with dfareporting (protocol v3.3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dfareporting3d3" homepage = "https://developers.google.com/doubleclick-advertisers/" -documentation = "https://docs.rs/google-dfareporting3d3/1.0.11+20190531" +documentation = "https://docs.rs/google-dfareporting3d3/1.0.12+20190531" license = "MIT" keywords = ["dfareporting", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/dfareporting3d3/LICENSE.md b/gen/dfareporting3d3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dfareporting3d3/LICENSE.md +++ b/gen/dfareporting3d3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dfareporting3d3/README.md b/gen/dfareporting3d3/README.md index dc1421a3c3..631ad546c0 100644 --- a/gen/dfareporting3d3/README.md +++ b/gen/dfareporting3d3/README.md @@ -5,144 +5,144 @@ DO NOT EDIT ! --> The `google-dfareporting3d3` library allows access to all features of the *Google dfareporting* service. -This documentation was generated from *dfareporting* crate version *1.0.11+20190531*, where *20190531* is the exact revision of the *dfareporting:v3.3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *dfareporting* crate version *1.0.12+20190531*, where *20190531* is the exact revision of the *dfareporting:v3.3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *dfareporting* *v3d3* API can be found at the [official documentation site](https://developers.google.com/doubleclick-advertisers/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Dfareporting.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Dfareporting.html) ... -* [account active ad summaries](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountActiveAdSummary.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountActiveAdSummaryGetCall.html) -* [account permission groups](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountPermissionGroup.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountPermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountPermissionGroupListCall.html) -* [account permissions](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountPermission.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountPermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountPermissionListCall.html) -* [account user profiles](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountUserProfile.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountUserProfileGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountUserProfileInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountUserProfileListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountUserProfilePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountUserProfileUpdateCall.html) -* [accounts](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Account.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountGetCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AccountUpdateCall.html) -* [ads](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Ad.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdUpdateCall.html) -* [advertiser groups](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserGroup.html) - * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserGroupDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserGroupUpdateCall.html) +* [account active ad summaries](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountActiveAdSummary.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountActiveAdSummaryGetCall.html) +* [account permission groups](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountPermissionGroup.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountPermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountPermissionGroupListCall.html) +* [account permissions](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountPermission.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountPermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountPermissionListCall.html) +* [account user profiles](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountUserProfile.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountUserProfileGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountUserProfileInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountUserProfileListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountUserProfilePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountUserProfileUpdateCall.html) +* [accounts](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Account.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountGetCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AccountUpdateCall.html) +* [ads](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Ad.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdUpdateCall.html) +* [advertiser groups](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserGroup.html) + * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserGroupDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserGroupUpdateCall.html) * advertiser landing pages - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserLandingPageGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserLandingPageInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserLandingPageListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserLandingPagePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserLandingPageUpdateCall.html) -* [advertisers](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Advertiser.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.AdvertiserUpdateCall.html) -* [browsers](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Browser.html) - * [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.BrowserListCall.html) -* [campaign creative associations](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CampaignCreativeAssociation.html) - * [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CampaignCreativeAssociationInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CampaignCreativeAssociationListCall.html) -* [campaigns](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Campaign.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CampaignGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CampaignInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CampaignListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CampaignPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CampaignUpdateCall.html) -* [change logs](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ChangeLog.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ChangeLogGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ChangeLogListCall.html) -* [cities](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.City.html) - * [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CityListCall.html) -* [connection types](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ConnectionType.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ConnectionTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ConnectionTypeListCall.html) -* [content categories](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ContentCategory.html) - * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ContentCategoryDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ContentCategoryGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ContentCategoryInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ContentCategoryListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ContentCategoryPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ContentCategoryUpdateCall.html) -* [conversions](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Conversion.html) - * [*batchinsert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ConversionBatchinsertCall.html) and [*batchupdate*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ConversionBatchupdateCall.html) -* [countries](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Country.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CountryGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CountryListCall.html) -* [creative assets](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeAsset.html) - * [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeAssetInsertCall.html) -* [creative field values](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeFieldValue.html) - * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeFieldValueDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeFieldValueGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeFieldValueInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeFieldValueListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeFieldValuePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeFieldValueUpdateCall.html) -* [creative fields](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeField.html) - * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeFieldDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeFieldGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeFieldInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeFieldListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeFieldPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeFieldUpdateCall.html) -* [creative groups](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeGroup.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeGroupUpdateCall.html) -* [creatives](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Creative.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeUpdateCall.html) -* [dimension values](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.DimensionValue.html) - * [*query*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.DimensionValueQueryCall.html) -* [directory sites](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.DirectorySite.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.DirectorySiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.DirectorySiteInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.DirectorySiteListCall.html) -* [dynamic targeting keys](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.DynamicTargetingKey.html) - * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.DynamicTargetingKeyDeleteCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.DynamicTargetingKeyInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.DynamicTargetingKeyListCall.html) -* [event tags](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.EventTag.html) - * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.EventTagDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.EventTagGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.EventTagInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.EventTagListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.EventTagPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.EventTagUpdateCall.html) -* [files](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.File.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FileGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FileListCall.html) -* [floodlight activities](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightActivity.html) - * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightActivityDeleteCall.html), [*generatetag*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightActivityGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightActivityGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightActivityInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightActivityListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightActivityPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightActivityUpdateCall.html) -* [floodlight activity groups](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightActivityGroup.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightActivityGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightActivityGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightActivityGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightActivityGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightActivityGroupUpdateCall.html) -* [floodlight configurations](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightConfiguration.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightConfigurationGetCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightConfigurationListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightConfigurationPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FloodlightConfigurationUpdateCall.html) -* [inventory items](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.InventoryItem.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.InventoryItemGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.InventoryItemListCall.html) -* [languages](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Language.html) - * [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.LanguageListCall.html) -* [metros](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Metro.html) - * [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.MetroListCall.html) -* [mobile apps](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.MobileApp.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.MobileAppGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.MobileAppListCall.html) -* [mobile carriers](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.MobileCarrier.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.MobileCarrierGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.MobileCarrierListCall.html) -* [operating system versions](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.OperatingSystemVersion.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.OperatingSystemVersionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.OperatingSystemVersionListCall.html) -* [operating systems](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.OperatingSystem.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.OperatingSystemGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.OperatingSystemListCall.html) -* [order documents](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.OrderDocument.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.OrderDocumentGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.OrderDocumentListCall.html) -* [orders](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Order.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.OrderGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.OrderListCall.html) -* [placement groups](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementGroup.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementGroupUpdateCall.html) -* [placement strategies](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementStrategy.html) - * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementStrategyDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementStrategyGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementStrategyInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementStrategyListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementStrategyPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementStrategyUpdateCall.html) -* [placements](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Placement.html) - * [*generatetags*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlacementUpdateCall.html) -* [platform types](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlatformType.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlatformTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PlatformTypeListCall.html) -* [postal codes](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PostalCode.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PostalCodeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.PostalCodeListCall.html) -* [projects](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Project.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ProjectGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ProjectListCall.html) -* [regions](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Region.html) - * [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.RegionListCall.html) -* [remarketing list shares](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.RemarketingListShare.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.RemarketingListShareGetCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.RemarketingListSharePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.RemarketingListShareUpdateCall.html) -* [remarketing lists](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.RemarketingList.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.RemarketingListGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.RemarketingListInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.RemarketingListListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.RemarketingListPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.RemarketingListUpdateCall.html) -* [reports](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Report.html) - * [*compatible fields query*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ReportCompatibleFieldQueryCall.html), [*delete*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ReportDeleteCall.html), [*files get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ReportFileGetCall.html), [*files list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ReportFileListCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ReportGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ReportInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ReportListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ReportPatchCall.html), [*run*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ReportRunCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ReportUpdateCall.html) -* [sites](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Site.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.SiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.SiteInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.SiteListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.SitePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.SiteUpdateCall.html) -* [sizes](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Size.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.SizeGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.SizeInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.SizeListCall.html) -* [subaccounts](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Subaccount.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.SubaccountGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.SubaccountInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.SubaccountListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.SubaccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.SubaccountUpdateCall.html) -* [targetable remarketing lists](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.TargetableRemarketingList.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.TargetableRemarketingListGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.TargetableRemarketingListListCall.html) -* [targeting templates](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.TargetingTemplate.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.TargetingTemplateGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.TargetingTemplateInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.TargetingTemplateListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.TargetingTemplatePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.TargetingTemplateUpdateCall.html) -* [user profiles](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserProfile.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserProfileGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserProfileListCall.html) -* [user role permission groups](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserRolePermissionGroup.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserRolePermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserRolePermissionGroupListCall.html) -* [user role permissions](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserRolePermission.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserRolePermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserRolePermissionListCall.html) -* [user roles](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserRole.html) - * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserRoleDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserRoleGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserRoleInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserRoleListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserRolePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.UserRoleUpdateCall.html) -* [video formats](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.VideoFormat.html) - * [*get*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.VideoFormatGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.VideoFormatListCall.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserLandingPageGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserLandingPageInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserLandingPageListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserLandingPagePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserLandingPageUpdateCall.html) +* [advertisers](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Advertiser.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.AdvertiserUpdateCall.html) +* [browsers](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Browser.html) + * [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.BrowserListCall.html) +* [campaign creative associations](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CampaignCreativeAssociation.html) + * [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CampaignCreativeAssociationInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CampaignCreativeAssociationListCall.html) +* [campaigns](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Campaign.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CampaignGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CampaignInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CampaignListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CampaignPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CampaignUpdateCall.html) +* [change logs](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ChangeLog.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ChangeLogGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ChangeLogListCall.html) +* [cities](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.City.html) + * [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CityListCall.html) +* [connection types](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ConnectionType.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ConnectionTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ConnectionTypeListCall.html) +* [content categories](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ContentCategory.html) + * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ContentCategoryDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ContentCategoryGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ContentCategoryInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ContentCategoryListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ContentCategoryPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ContentCategoryUpdateCall.html) +* [conversions](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Conversion.html) + * [*batchinsert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ConversionBatchinsertCall.html) and [*batchupdate*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ConversionBatchupdateCall.html) +* [countries](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Country.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CountryGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CountryListCall.html) +* [creative assets](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeAsset.html) + * [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeAssetInsertCall.html) +* [creative field values](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeFieldValue.html) + * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeFieldValueDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeFieldValueGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeFieldValueInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeFieldValueListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeFieldValuePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeFieldValueUpdateCall.html) +* [creative fields](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeField.html) + * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeFieldDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeFieldGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeFieldInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeFieldListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeFieldPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeFieldUpdateCall.html) +* [creative groups](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeGroup.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeGroupUpdateCall.html) +* [creatives](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Creative.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeUpdateCall.html) +* [dimension values](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.DimensionValue.html) + * [*query*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.DimensionValueQueryCall.html) +* [directory sites](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.DirectorySite.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.DirectorySiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.DirectorySiteInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.DirectorySiteListCall.html) +* [dynamic targeting keys](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.DynamicTargetingKey.html) + * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.DynamicTargetingKeyDeleteCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.DynamicTargetingKeyInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.DynamicTargetingKeyListCall.html) +* [event tags](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.EventTag.html) + * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.EventTagDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.EventTagGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.EventTagInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.EventTagListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.EventTagPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.EventTagUpdateCall.html) +* [files](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.File.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FileGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FileListCall.html) +* [floodlight activities](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightActivity.html) + * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightActivityDeleteCall.html), [*generatetag*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightActivityGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightActivityGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightActivityInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightActivityListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightActivityPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightActivityUpdateCall.html) +* [floodlight activity groups](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightActivityGroup.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightActivityGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightActivityGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightActivityGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightActivityGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightActivityGroupUpdateCall.html) +* [floodlight configurations](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightConfiguration.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightConfigurationGetCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightConfigurationListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightConfigurationPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FloodlightConfigurationUpdateCall.html) +* [inventory items](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.InventoryItem.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.InventoryItemGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.InventoryItemListCall.html) +* [languages](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Language.html) + * [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.LanguageListCall.html) +* [metros](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Metro.html) + * [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.MetroListCall.html) +* [mobile apps](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.MobileApp.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.MobileAppGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.MobileAppListCall.html) +* [mobile carriers](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.MobileCarrier.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.MobileCarrierGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.MobileCarrierListCall.html) +* [operating system versions](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.OperatingSystemVersion.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.OperatingSystemVersionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.OperatingSystemVersionListCall.html) +* [operating systems](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.OperatingSystem.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.OperatingSystemGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.OperatingSystemListCall.html) +* [order documents](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.OrderDocument.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.OrderDocumentGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.OrderDocumentListCall.html) +* [orders](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Order.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.OrderGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.OrderListCall.html) +* [placement groups](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementGroup.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementGroupGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementGroupInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementGroupListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementGroupPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementGroupUpdateCall.html) +* [placement strategies](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementStrategy.html) + * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementStrategyDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementStrategyGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementStrategyInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementStrategyListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementStrategyPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementStrategyUpdateCall.html) +* [placements](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Placement.html) + * [*generatetags*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementGeneratetagCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlacementUpdateCall.html) +* [platform types](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlatformType.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlatformTypeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PlatformTypeListCall.html) +* [postal codes](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PostalCode.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PostalCodeGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.PostalCodeListCall.html) +* [projects](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Project.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ProjectGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ProjectListCall.html) +* [regions](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Region.html) + * [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.RegionListCall.html) +* [remarketing list shares](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.RemarketingListShare.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.RemarketingListShareGetCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.RemarketingListSharePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.RemarketingListShareUpdateCall.html) +* [remarketing lists](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.RemarketingList.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.RemarketingListGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.RemarketingListInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.RemarketingListListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.RemarketingListPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.RemarketingListUpdateCall.html) +* [reports](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Report.html) + * [*compatible fields query*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ReportCompatibleFieldQueryCall.html), [*delete*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ReportDeleteCall.html), [*files get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ReportFileGetCall.html), [*files list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ReportFileListCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ReportGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ReportInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ReportListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ReportPatchCall.html), [*run*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ReportRunCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ReportUpdateCall.html) +* [sites](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Site.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.SiteGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.SiteInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.SiteListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.SitePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.SiteUpdateCall.html) +* [sizes](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Size.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.SizeGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.SizeInsertCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.SizeListCall.html) +* [subaccounts](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Subaccount.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.SubaccountGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.SubaccountInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.SubaccountListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.SubaccountPatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.SubaccountUpdateCall.html) +* [targetable remarketing lists](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.TargetableRemarketingList.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.TargetableRemarketingListGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.TargetableRemarketingListListCall.html) +* [targeting templates](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.TargetingTemplate.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.TargetingTemplateGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.TargetingTemplateInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.TargetingTemplateListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.TargetingTemplatePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.TargetingTemplateUpdateCall.html) +* [user profiles](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserProfile.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserProfileGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserProfileListCall.html) +* [user role permission groups](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserRolePermissionGroup.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserRolePermissionGroupGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserRolePermissionGroupListCall.html) +* [user role permissions](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserRolePermission.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserRolePermissionGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserRolePermissionListCall.html) +* [user roles](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserRole.html) + * [*delete*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserRoleDeleteCall.html), [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserRoleGetCall.html), [*insert*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserRoleInsertCall.html), [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserRoleListCall.html), [*patch*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserRolePatchCall.html) and [*update*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.UserRoleUpdateCall.html) +* [video formats](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.VideoFormat.html) + * [*get*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.VideoFormatGetCall.html) and [*list*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.VideoFormatListCall.html) Upload supported by ... -* [*insert creative assets*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.CreativeAssetInsertCall.html) +* [*insert creative assets*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.CreativeAssetInsertCall.html) Download supported by ... -* [*get files*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.FileGetCall.html) -* [*files get reports*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.ReportFileGetCall.html) +* [*get files*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.FileGetCall.html) +* [*files get reports*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.ReportFileGetCall.html) @@ -150,17 +150,17 @@ Download supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/struct.Dfareporting.html)** +* **[Hub](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/struct.Dfareporting.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.Part.html)** + * **[Parts](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -265,17 +265,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -285,29 +285,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-dfareporting3d3/1.0.11+20190531/google_dfareporting3d3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-dfareporting3d3/1.0.12+20190531/google_dfareporting3d3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/dfareporting3d3/src/lib.rs b/gen/dfareporting3d3/src/lib.rs index b542dc69b7..9f37d99544 100644 --- a/gen/dfareporting3d3/src/lib.rs +++ b/gen/dfareporting3d3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *dfareporting* crate version *1.0.11+20190531*, where *20190531* is the exact revision of the *dfareporting:v3.3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *dfareporting* crate version *1.0.12+20190531*, where *20190531* is the exact revision of the *dfareporting:v3.3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *dfareporting* *v3d3* API can be found at the //! [official documentation site](https://developers.google.com/doubleclick-advertisers/). @@ -471,7 +471,7 @@ impl<'a, C, A> Dfareporting Dfareporting { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/dfareporting/v3.3/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -659,7 +659,7 @@ impl<'a, C, A> Dfareporting } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/dialogflow2-cli/Cargo.toml b/gen/dialogflow2-cli/Cargo.toml index a3e4ae40b0..0e55135708 100644 --- a/gen/dialogflow2-cli/Cargo.toml +++ b/gen/dialogflow2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-dialogflow2-cli" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with Dialogflow (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dialogflow2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-dialogflow2] path = "../dialogflow2" -version = "1.0.11+20190629" +version = "1.0.12+20190629" diff --git a/gen/dialogflow2-cli/LICENSE.md b/gen/dialogflow2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dialogflow2-cli/LICENSE.md +++ b/gen/dialogflow2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dialogflow2-cli/README.md b/gen/dialogflow2-cli/README.md index 7135a86ef7..27201966f1 100644 --- a/gen/dialogflow2-cli/README.md +++ b/gen/dialogflow2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Dialogflow* API at revision *20190629*. The CLI is at version *1.0.11*. +This documentation was generated from the *Dialogflow* API at revision *20190629*. The CLI is at version *1.0.12*. ```bash dialogflow2 [options] diff --git a/gen/dialogflow2-cli/mkdocs.yml b/gen/dialogflow2-cli/mkdocs.yml index d79b7936cf..2ea37959d3 100644 --- a/gen/dialogflow2-cli/mkdocs.yml +++ b/gen/dialogflow2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Dialogflow v1.0.11+20190629 +site_name: Dialogflow v1.0.12+20190629 site_url: http://byron.github.io/google-apis-rs/google-dialogflow2-cli site_description: A complete library to interact with Dialogflow (protocol v2) @@ -50,5 +50,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/dialogflow2-cli/src/cmn.rs b/gen/dialogflow2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/dialogflow2-cli/src/cmn.rs +++ b/gen/dialogflow2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/dialogflow2-cli/src/main.rs b/gen/dialogflow2-cli/src/main.rs index 3d9e67c1f2..cb789ef6ec 100644 --- a/gen/dialogflow2-cli/src/main.rs +++ b/gen/dialogflow2-cli/src/main.rs @@ -4167,7 +4167,7 @@ fn main() { let mut app = App::new("dialogflow2") .author("Sebastian Thiel ") - .version("1.0.11+20190629") + .version("1.0.12+20190629") .about("Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices).") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_dialogflow2_cli") .arg(Arg::with_name("url") diff --git a/gen/dialogflow2/Cargo.toml b/gen/dialogflow2/Cargo.toml index fc54718d2c..d3aacdb832 100644 --- a/gen/dialogflow2/Cargo.toml +++ b/gen/dialogflow2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-dialogflow2" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with Dialogflow (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dialogflow2" homepage = "https://cloud.google.com/dialogflow/" -documentation = "https://docs.rs/google-dialogflow2/1.0.11+20190629" +documentation = "https://docs.rs/google-dialogflow2/1.0.12+20190629" license = "MIT" keywords = ["dialogflow", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/dialogflow2/LICENSE.md b/gen/dialogflow2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dialogflow2/LICENSE.md +++ b/gen/dialogflow2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dialogflow2/README.md b/gen/dialogflow2/README.md index d94da7d051..1bfe3609b8 100644 --- a/gen/dialogflow2/README.md +++ b/gen/dialogflow2/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-dialogflow2` library allows access to all features of the *Google Dialogflow* service. -This documentation was generated from *Dialogflow* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *dialogflow:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Dialogflow* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *dialogflow:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Dialogflow* *v2* API can be found at the [official documentation site](https://cloud.google.com/dialogflow/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.Dialogflow.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.Dialogflow.html) ... * projects - * [*agent*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentCall.html), [*agent entity types batch delete*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeBatchDeleteCall.html), [*agent entity types batch update*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeBatchUpdateCall.html), [*agent entity types create*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeCreateCall.html), [*agent entity types delete*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeDeleteCall.html), [*agent entity types entities batch create*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeEntityBatchCreateCall.html), [*agent entity types entities batch delete*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeEntityBatchDeleteCall.html), [*agent entity types entities batch update*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeEntityBatchUpdateCall.html), [*agent entity types get*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeGetCall.html), [*agent entity types list*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeListCall.html), [*agent entity types patch*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentEntityTypePatchCall.html), [*agent export*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentExportCall.html), [*agent import*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentImportCall.html), [*agent intents batch delete*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentIntentBatchDeleteCall.html), [*agent intents batch update*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentIntentBatchUpdateCall.html), [*agent intents create*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentIntentCreateCall.html), [*agent intents delete*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentIntentDeleteCall.html), [*agent intents get*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentIntentGetCall.html), [*agent intents list*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentIntentListCall.html), [*agent intents patch*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentIntentPatchCall.html), [*agent restore*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentRestoreCall.html), [*agent search*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentSearchCall.html), [*agent sessions contexts create*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentSessionContextCreateCall.html), [*agent sessions contexts delete*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentSessionContextDeleteCall.html), [*agent sessions contexts get*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentSessionContextGetCall.html), [*agent sessions contexts list*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentSessionContextListCall.html), [*agent sessions contexts patch*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentSessionContextPatchCall.html), [*agent sessions delete contexts*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentSessionDeleteContextCall.html), [*agent sessions detect intent*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentSessionDetectIntentCall.html), [*agent sessions entity types create*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentSessionEntityTypeCreateCall.html), [*agent sessions entity types delete*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentSessionEntityTypeDeleteCall.html), [*agent sessions entity types get*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentSessionEntityTypeGetCall.html), [*agent sessions entity types list*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentSessionEntityTypeListCall.html), [*agent sessions entity types patch*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentSessionEntityTypePatchCall.html), [*agent train*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectAgentTrainCall.html), [*delete agent*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectDeleteAgentCall.html), [*get agent*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectGetAgentCall.html) and [*operations get*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.ProjectOperationGetCall.html) + * [*agent*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentCall.html), [*agent entity types batch delete*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeBatchDeleteCall.html), [*agent entity types batch update*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeBatchUpdateCall.html), [*agent entity types create*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeCreateCall.html), [*agent entity types delete*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeDeleteCall.html), [*agent entity types entities batch create*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeEntityBatchCreateCall.html), [*agent entity types entities batch delete*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeEntityBatchDeleteCall.html), [*agent entity types entities batch update*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeEntityBatchUpdateCall.html), [*agent entity types get*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeGetCall.html), [*agent entity types list*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentEntityTypeListCall.html), [*agent entity types patch*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentEntityTypePatchCall.html), [*agent export*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentExportCall.html), [*agent import*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentImportCall.html), [*agent intents batch delete*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentIntentBatchDeleteCall.html), [*agent intents batch update*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentIntentBatchUpdateCall.html), [*agent intents create*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentIntentCreateCall.html), [*agent intents delete*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentIntentDeleteCall.html), [*agent intents get*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentIntentGetCall.html), [*agent intents list*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentIntentListCall.html), [*agent intents patch*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentIntentPatchCall.html), [*agent restore*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentRestoreCall.html), [*agent search*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentSearchCall.html), [*agent sessions contexts create*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentSessionContextCreateCall.html), [*agent sessions contexts delete*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentSessionContextDeleteCall.html), [*agent sessions contexts get*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentSessionContextGetCall.html), [*agent sessions contexts list*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentSessionContextListCall.html), [*agent sessions contexts patch*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentSessionContextPatchCall.html), [*agent sessions delete contexts*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentSessionDeleteContextCall.html), [*agent sessions detect intent*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentSessionDetectIntentCall.html), [*agent sessions entity types create*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentSessionEntityTypeCreateCall.html), [*agent sessions entity types delete*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentSessionEntityTypeDeleteCall.html), [*agent sessions entity types get*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentSessionEntityTypeGetCall.html), [*agent sessions entity types list*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentSessionEntityTypeListCall.html), [*agent sessions entity types patch*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentSessionEntityTypePatchCall.html), [*agent train*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectAgentTrainCall.html), [*delete agent*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectDeleteAgentCall.html), [*get agent*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectGetAgentCall.html) and [*operations get*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.ProjectOperationGetCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/struct.Dialogflow.html)** +* **[Hub](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/struct.Dialogflow.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.Part.html)** + * **[Parts](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -141,17 +141,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -161,29 +161,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-dialogflow2/1.0.11+20190629/google_dialogflow2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-dialogflow2/1.0.12+20190629/google_dialogflow2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/dialogflow2/src/lib.rs b/gen/dialogflow2/src/lib.rs index af9e45e549..b91550fb5d 100644 --- a/gen/dialogflow2/src/lib.rs +++ b/gen/dialogflow2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Dialogflow* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *dialogflow:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Dialogflow* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *dialogflow:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Dialogflow* *v2* API can be found at the //! [official documentation site](https://cloud.google.com/dialogflow/). @@ -344,7 +344,7 @@ impl<'a, C, A> Dialogflow Dialogflow { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://dialogflow.googleapis.com/".to_string(), _root_url: "https://dialogflow.googleapis.com/".to_string(), } @@ -355,7 +355,7 @@ impl<'a, C, A> Dialogflow } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/dialogflow2_beta1-cli/Cargo.toml b/gen/dialogflow2_beta1-cli/Cargo.toml index 62a82234c8..1c451b61e3 100644 --- a/gen/dialogflow2_beta1-cli/Cargo.toml +++ b/gen/dialogflow2_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-dialogflow2_beta1-cli" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with Dialogflow (protocol v2beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dialogflow2_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-dialogflow2_beta1] path = "../dialogflow2_beta1" -version = "1.0.11+20190629" +version = "1.0.12+20190629" diff --git a/gen/dialogflow2_beta1-cli/LICENSE.md b/gen/dialogflow2_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dialogflow2_beta1-cli/LICENSE.md +++ b/gen/dialogflow2_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dialogflow2_beta1-cli/README.md b/gen/dialogflow2_beta1-cli/README.md index 8067fa652a..1c617ed29a 100644 --- a/gen/dialogflow2_beta1-cli/README.md +++ b/gen/dialogflow2_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Dialogflow* API at revision *20190629*. The CLI is at version *1.0.11*. +This documentation was generated from the *Dialogflow* API at revision *20190629*. The CLI is at version *1.0.12*. ```bash dialogflow2-beta1 [options] diff --git a/gen/dialogflow2_beta1-cli/mkdocs.yml b/gen/dialogflow2_beta1-cli/mkdocs.yml index eb8ab827f3..f9544e5bb8 100644 --- a/gen/dialogflow2_beta1-cli/mkdocs.yml +++ b/gen/dialogflow2_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Dialogflow v1.0.11+20190629 +site_name: Dialogflow v1.0.12+20190629 site_url: http://byron.github.io/google-apis-rs/google-dialogflow2_beta1-cli site_description: A complete library to interact with Dialogflow (protocol v2beta1) @@ -84,5 +84,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/dialogflow2_beta1-cli/src/cmn.rs b/gen/dialogflow2_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/dialogflow2_beta1-cli/src/cmn.rs +++ b/gen/dialogflow2_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/dialogflow2_beta1-cli/src/main.rs b/gen/dialogflow2_beta1-cli/src/main.rs index ab19035613..0f38e69679 100644 --- a/gen/dialogflow2_beta1-cli/src/main.rs +++ b/gen/dialogflow2_beta1-cli/src/main.rs @@ -7766,7 +7766,7 @@ fn main() { let mut app = App::new("dialogflow2-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190629") + .version("1.0.12+20190629") .about("Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices).") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_dialogflow2_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/dialogflow2_beta1/Cargo.toml b/gen/dialogflow2_beta1/Cargo.toml index a8b39dc203..23c31924e8 100644 --- a/gen/dialogflow2_beta1/Cargo.toml +++ b/gen/dialogflow2_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-dialogflow2_beta1" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with Dialogflow (protocol v2beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dialogflow2_beta1" homepage = "https://cloud.google.com/dialogflow/" -documentation = "https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629" +documentation = "https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629" license = "MIT" keywords = ["dialogflow", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/dialogflow2_beta1/LICENSE.md b/gen/dialogflow2_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dialogflow2_beta1/LICENSE.md +++ b/gen/dialogflow2_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dialogflow2_beta1/README.md b/gen/dialogflow2_beta1/README.md index ddbfd601cf..a3c4cea45d 100644 --- a/gen/dialogflow2_beta1/README.md +++ b/gen/dialogflow2_beta1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-dialogflow2_beta1` library allows access to all features of the *Google Dialogflow* service. -This documentation was generated from *Dialogflow* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *dialogflow:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Dialogflow* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *dialogflow:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Dialogflow* *v2_beta1* API can be found at the [official documentation site](https://cloud.google.com/dialogflow/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.Dialogflow.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.Dialogflow.html) ... * projects - * [*agent*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentCall.html), [*agent entity types batch delete*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeBatchDeleteCall.html), [*agent entity types batch update*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeBatchUpdateCall.html), [*agent entity types create*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeCreateCall.html), [*agent entity types delete*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeDeleteCall.html), [*agent entity types entities batch create*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeEntityBatchCreateCall.html), [*agent entity types entities batch delete*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeEntityBatchDeleteCall.html), [*agent entity types entities batch update*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeEntityBatchUpdateCall.html), [*agent entity types get*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeGetCall.html), [*agent entity types list*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeListCall.html), [*agent entity types patch*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypePatchCall.html), [*agent environments users sessions contexts create*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionContextCreateCall.html), [*agent environments users sessions contexts delete*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionContextDeleteCall.html), [*agent environments users sessions contexts get*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionContextGetCall.html), [*agent environments users sessions contexts list*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionContextListCall.html), [*agent environments users sessions contexts patch*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionContextPatchCall.html), [*agent environments users sessions delete contexts*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionDeleteContextCall.html), [*agent environments users sessions detect intent*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionDetectIntentCall.html), [*agent environments users sessions entity types create*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionEntityTypeCreateCall.html), [*agent environments users sessions entity types delete*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionEntityTypeDeleteCall.html), [*agent environments users sessions entity types get*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionEntityTypeGetCall.html), [*agent environments users sessions entity types list*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionEntityTypeListCall.html), [*agent environments users sessions entity types patch*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionEntityTypePatchCall.html), [*agent export*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentExportCall.html), [*agent import*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentImportCall.html), [*agent intents batch delete*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentIntentBatchDeleteCall.html), [*agent intents batch update*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentIntentBatchUpdateCall.html), [*agent intents create*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentIntentCreateCall.html), [*agent intents delete*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentIntentDeleteCall.html), [*agent intents get*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentIntentGetCall.html), [*agent intents list*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentIntentListCall.html), [*agent intents patch*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentIntentPatchCall.html), [*agent knowledge bases create*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseCreateCall.html), [*agent knowledge bases delete*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseDeleteCall.html), [*agent knowledge bases documents create*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseDocumentCreateCall.html), [*agent knowledge bases documents delete*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseDocumentDeleteCall.html), [*agent knowledge bases documents get*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseDocumentGetCall.html), [*agent knowledge bases documents list*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseDocumentListCall.html), [*agent knowledge bases documents patch*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseDocumentPatchCall.html), [*agent knowledge bases documents reload*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseDocumentReloadCall.html), [*agent knowledge bases get*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseGetCall.html), [*agent knowledge bases list*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseListCall.html), [*agent knowledge bases patch*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBasePatchCall.html), [*agent restore*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentRestoreCall.html), [*agent search*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentSearchCall.html), [*agent sessions contexts create*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionContextCreateCall.html), [*agent sessions contexts delete*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionContextDeleteCall.html), [*agent sessions contexts get*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionContextGetCall.html), [*agent sessions contexts list*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionContextListCall.html), [*agent sessions contexts patch*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionContextPatchCall.html), [*agent sessions delete contexts*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionDeleteContextCall.html), [*agent sessions detect intent*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionDetectIntentCall.html), [*agent sessions entity types create*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionEntityTypeCreateCall.html), [*agent sessions entity types delete*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionEntityTypeDeleteCall.html), [*agent sessions entity types get*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionEntityTypeGetCall.html), [*agent sessions entity types list*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionEntityTypeListCall.html), [*agent sessions entity types patch*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionEntityTypePatchCall.html), [*agent train*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectAgentTrainCall.html), [*delete agent*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectDeleteAgentCall.html), [*get agent*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectGetAgentCall.html), [*knowledge bases create*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseCreateCall.html), [*knowledge bases delete*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseDeleteCall.html), [*knowledge bases documents create*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseDocumentCreateCall.html), [*knowledge bases documents delete*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseDocumentDeleteCall.html), [*knowledge bases documents get*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseDocumentGetCall.html), [*knowledge bases documents list*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseDocumentListCall.html), [*knowledge bases documents patch*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseDocumentPatchCall.html), [*knowledge bases documents reload*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseDocumentReloadCall.html), [*knowledge bases get*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseGetCall.html), [*knowledge bases list*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseListCall.html), [*knowledge bases patch*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBasePatchCall.html) and [*operations get*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.ProjectOperationGetCall.html) + * [*agent*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentCall.html), [*agent entity types batch delete*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeBatchDeleteCall.html), [*agent entity types batch update*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeBatchUpdateCall.html), [*agent entity types create*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeCreateCall.html), [*agent entity types delete*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeDeleteCall.html), [*agent entity types entities batch create*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeEntityBatchCreateCall.html), [*agent entity types entities batch delete*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeEntityBatchDeleteCall.html), [*agent entity types entities batch update*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeEntityBatchUpdateCall.html), [*agent entity types get*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeGetCall.html), [*agent entity types list*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypeListCall.html), [*agent entity types patch*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEntityTypePatchCall.html), [*agent environments users sessions contexts create*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionContextCreateCall.html), [*agent environments users sessions contexts delete*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionContextDeleteCall.html), [*agent environments users sessions contexts get*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionContextGetCall.html), [*agent environments users sessions contexts list*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionContextListCall.html), [*agent environments users sessions contexts patch*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionContextPatchCall.html), [*agent environments users sessions delete contexts*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionDeleteContextCall.html), [*agent environments users sessions detect intent*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionDetectIntentCall.html), [*agent environments users sessions entity types create*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionEntityTypeCreateCall.html), [*agent environments users sessions entity types delete*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionEntityTypeDeleteCall.html), [*agent environments users sessions entity types get*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionEntityTypeGetCall.html), [*agent environments users sessions entity types list*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionEntityTypeListCall.html), [*agent environments users sessions entity types patch*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentEnvironmentUserSessionEntityTypePatchCall.html), [*agent export*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentExportCall.html), [*agent import*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentImportCall.html), [*agent intents batch delete*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentIntentBatchDeleteCall.html), [*agent intents batch update*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentIntentBatchUpdateCall.html), [*agent intents create*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentIntentCreateCall.html), [*agent intents delete*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentIntentDeleteCall.html), [*agent intents get*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentIntentGetCall.html), [*agent intents list*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentIntentListCall.html), [*agent intents patch*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentIntentPatchCall.html), [*agent knowledge bases create*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseCreateCall.html), [*agent knowledge bases delete*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseDeleteCall.html), [*agent knowledge bases documents create*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseDocumentCreateCall.html), [*agent knowledge bases documents delete*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseDocumentDeleteCall.html), [*agent knowledge bases documents get*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseDocumentGetCall.html), [*agent knowledge bases documents list*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseDocumentListCall.html), [*agent knowledge bases documents patch*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseDocumentPatchCall.html), [*agent knowledge bases documents reload*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseDocumentReloadCall.html), [*agent knowledge bases get*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseGetCall.html), [*agent knowledge bases list*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBaseListCall.html), [*agent knowledge bases patch*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentKnowledgeBasePatchCall.html), [*agent restore*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentRestoreCall.html), [*agent search*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentSearchCall.html), [*agent sessions contexts create*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionContextCreateCall.html), [*agent sessions contexts delete*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionContextDeleteCall.html), [*agent sessions contexts get*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionContextGetCall.html), [*agent sessions contexts list*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionContextListCall.html), [*agent sessions contexts patch*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionContextPatchCall.html), [*agent sessions delete contexts*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionDeleteContextCall.html), [*agent sessions detect intent*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionDetectIntentCall.html), [*agent sessions entity types create*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionEntityTypeCreateCall.html), [*agent sessions entity types delete*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionEntityTypeDeleteCall.html), [*agent sessions entity types get*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionEntityTypeGetCall.html), [*agent sessions entity types list*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionEntityTypeListCall.html), [*agent sessions entity types patch*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentSessionEntityTypePatchCall.html), [*agent train*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectAgentTrainCall.html), [*delete agent*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectDeleteAgentCall.html), [*get agent*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectGetAgentCall.html), [*knowledge bases create*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseCreateCall.html), [*knowledge bases delete*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseDeleteCall.html), [*knowledge bases documents create*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseDocumentCreateCall.html), [*knowledge bases documents delete*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseDocumentDeleteCall.html), [*knowledge bases documents get*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseDocumentGetCall.html), [*knowledge bases documents list*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseDocumentListCall.html), [*knowledge bases documents patch*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseDocumentPatchCall.html), [*knowledge bases documents reload*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseDocumentReloadCall.html), [*knowledge bases get*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseGetCall.html), [*knowledge bases list*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBaseListCall.html), [*knowledge bases patch*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectKnowledgeBasePatchCall.html) and [*operations get*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.ProjectOperationGetCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/struct.Dialogflow.html)** +* **[Hub](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/struct.Dialogflow.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -150,17 +150,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -170,29 +170,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-dialogflow2_beta1/1.0.11+20190629/google_dialogflow2_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-dialogflow2_beta1/1.0.12+20190629/google_dialogflow2_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/dialogflow2_beta1/src/lib.rs b/gen/dialogflow2_beta1/src/lib.rs index f435693eee..8bfadba3e9 100644 --- a/gen/dialogflow2_beta1/src/lib.rs +++ b/gen/dialogflow2_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Dialogflow* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *dialogflow:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Dialogflow* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *dialogflow:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Dialogflow* *v2_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/dialogflow/). @@ -354,7 +354,7 @@ impl<'a, C, A> Dialogflow Dialogflow { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://dialogflow.googleapis.com/".to_string(), _root_url: "https://dialogflow.googleapis.com/".to_string(), } @@ -365,7 +365,7 @@ impl<'a, C, A> Dialogflow } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/digitalassetlinks1-cli/Cargo.toml b/gen/digitalassetlinks1-cli/Cargo.toml index 38b4529ada..8f1448b7c4 100644 --- a/gen/digitalassetlinks1-cli/Cargo.toml +++ b/gen/digitalassetlinks1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-digitalassetlinks1-cli" -version = "1.0.11+20190619" +version = "1.0.12+20190619" authors = ["Sebastian Thiel "] description = "A complete library to interact with digitalassetlinks (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/digitalassetlinks1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-digitalassetlinks1] path = "../digitalassetlinks1" -version = "1.0.11+20190619" +version = "1.0.12+20190619" diff --git a/gen/digitalassetlinks1-cli/LICENSE.md b/gen/digitalassetlinks1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/digitalassetlinks1-cli/LICENSE.md +++ b/gen/digitalassetlinks1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/digitalassetlinks1-cli/README.md b/gen/digitalassetlinks1-cli/README.md index 47d058456d..783c2c0813 100644 --- a/gen/digitalassetlinks1-cli/README.md +++ b/gen/digitalassetlinks1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *digitalassetlinks* API at revision *20190619*. The CLI is at version *1.0.11*. +This documentation was generated from the *digitalassetlinks* API at revision *20190619*. The CLI is at version *1.0.12*. ```bash digitalassetlinks1 [options] diff --git a/gen/digitalassetlinks1-cli/mkdocs.yml b/gen/digitalassetlinks1-cli/mkdocs.yml index c15131e17d..0ab24855ab 100644 --- a/gen/digitalassetlinks1-cli/mkdocs.yml +++ b/gen/digitalassetlinks1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: digitalassetlinks v1.0.11+20190619 +site_name: digitalassetlinks v1.0.12+20190619 site_url: http://byron.github.io/google-apis-rs/google-digitalassetlinks1-cli site_description: A complete library to interact with digitalassetlinks (protocol v1) @@ -14,5 +14,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/digitalassetlinks1-cli/src/cmn.rs b/gen/digitalassetlinks1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/digitalassetlinks1-cli/src/cmn.rs +++ b/gen/digitalassetlinks1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/digitalassetlinks1-cli/src/main.rs b/gen/digitalassetlinks1-cli/src/main.rs index 9143b23cc1..b582d9026c 100644 --- a/gen/digitalassetlinks1-cli/src/main.rs +++ b/gen/digitalassetlinks1-cli/src/main.rs @@ -371,7 +371,7 @@ fn main() { let mut app = App::new("digitalassetlinks1") .author("Sebastian Thiel ") - .version("1.0.11+20190619") + .version("1.0.12+20190619") .about("Discovers relationships between online assets such as websites or mobile apps.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_digitalassetlinks1_cli") .arg(Arg::with_name("folder") diff --git a/gen/digitalassetlinks1/Cargo.toml b/gen/digitalassetlinks1/Cargo.toml index ebb9d07bc6..cdf3d05fa1 100644 --- a/gen/digitalassetlinks1/Cargo.toml +++ b/gen/digitalassetlinks1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-digitalassetlinks1" -version = "1.0.11+20190619" +version = "1.0.12+20190619" authors = ["Sebastian Thiel "] description = "A complete library to interact with digitalassetlinks (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/digitalassetlinks1" homepage = "https://developers.google.com/digital-asset-links/" -documentation = "https://docs.rs/google-digitalassetlinks1/1.0.11+20190619" +documentation = "https://docs.rs/google-digitalassetlinks1/1.0.12+20190619" license = "MIT" keywords = ["digitalassetlinks", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/digitalassetlinks1/LICENSE.md b/gen/digitalassetlinks1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/digitalassetlinks1/LICENSE.md +++ b/gen/digitalassetlinks1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/digitalassetlinks1/README.md b/gen/digitalassetlinks1/README.md index 15f5384e05..c4ac499100 100644 --- a/gen/digitalassetlinks1/README.md +++ b/gen/digitalassetlinks1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-digitalassetlinks1` library allows access to all features of the *Google digitalassetlinks* service. -This documentation was generated from *digitalassetlinks* crate version *1.0.11+20190619*, where *20190619* is the exact revision of the *digitalassetlinks:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *digitalassetlinks* crate version *1.0.12+20190619*, where *20190619* is the exact revision of the *digitalassetlinks:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *digitalassetlinks* *v1* API can be found at the [official documentation site](https://developers.google.com/digital-asset-links/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/struct.Digitalassetlinks.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/struct.Digitalassetlinks.html) ... * assetlinks - * [*check*](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/struct.AssetlinkCheckCall.html) -* [statements](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/struct.Statement.html) - * [*list*](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/struct.StatementListCall.html) + * [*check*](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/struct.AssetlinkCheckCall.html) +* [statements](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/struct.Statement.html) + * [*list*](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/struct.StatementListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/struct.Digitalassetlinks.html)** +* **[Hub](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/struct.Digitalassetlinks.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.Part.html)** + * **[Parts](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -133,17 +133,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -153,29 +153,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-digitalassetlinks1/1.0.11+20190619/google_digitalassetlinks1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-digitalassetlinks1/1.0.12+20190619/google_digitalassetlinks1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/digitalassetlinks1/src/lib.rs b/gen/digitalassetlinks1/src/lib.rs index e4686ec440..36ed5fb54e 100644 --- a/gen/digitalassetlinks1/src/lib.rs +++ b/gen/digitalassetlinks1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *digitalassetlinks* crate version *1.0.11+20190619*, where *20190619* is the exact revision of the *digitalassetlinks:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *digitalassetlinks* crate version *1.0.12+20190619*, where *20190619* is the exact revision of the *digitalassetlinks:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *digitalassetlinks* *v1* API can be found at the //! [official documentation site](https://developers.google.com/digital-asset-links/). @@ -311,7 +311,7 @@ impl<'a, C, A> Digitalassetlinks Digitalassetlinks { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://digitalassetlinks.googleapis.com/".to_string(), _root_url: "https://digitalassetlinks.googleapis.com/".to_string(), } @@ -325,7 +325,7 @@ impl<'a, C, A> Digitalassetlinks } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/discovery1-cli/Cargo.toml b/gen/discovery1-cli/Cargo.toml index 6f107d60e3..15104f4dd3 100644 --- a/gen/discovery1-cli/Cargo.toml +++ b/gen/discovery1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-discovery1-cli" -version = "1.0.11+20190619" +version = "1.0.12+20190619" authors = ["Sebastian Thiel "] description = "A complete library to interact with discovery (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/discovery1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-discovery1] path = "../discovery1" -version = "1.0.11+20190619" +version = "1.0.12+20190619" diff --git a/gen/discovery1-cli/LICENSE.md b/gen/discovery1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/discovery1-cli/LICENSE.md +++ b/gen/discovery1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/discovery1-cli/README.md b/gen/discovery1-cli/README.md index f4d20bebd2..b20082bee0 100644 --- a/gen/discovery1-cli/README.md +++ b/gen/discovery1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *discovery* API at revision *20190619*. The CLI is at version *1.0.11*. +This documentation was generated from the *discovery* API at revision *20190619*. The CLI is at version *1.0.12*. ```bash discovery1 [options] diff --git a/gen/discovery1-cli/mkdocs.yml b/gen/discovery1-cli/mkdocs.yml index be2fe05eb1..5a567cdf94 100644 --- a/gen/discovery1-cli/mkdocs.yml +++ b/gen/discovery1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: discovery v1.0.11+20190619 +site_name: discovery v1.0.12+20190619 site_url: http://byron.github.io/google-apis-rs/google-discovery1-cli site_description: A complete library to interact with discovery (protocol v1) @@ -14,5 +14,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/discovery1-cli/src/cmn.rs b/gen/discovery1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/discovery1-cli/src/cmn.rs +++ b/gen/discovery1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/discovery1-cli/src/main.rs b/gen/discovery1-cli/src/main.rs index 3c38c24e3b..42016f37ba 100644 --- a/gen/discovery1-cli/src/main.rs +++ b/gen/discovery1-cli/src/main.rs @@ -303,7 +303,7 @@ fn main() { let mut app = App::new("discovery1") .author("Sebastian Thiel ") - .version("1.0.11+20190619") + .version("1.0.12+20190619") .about("Provides information about other Google APIs, such as what APIs are available, the resource, and method details for each API.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_discovery1_cli") .arg(Arg::with_name("folder") diff --git a/gen/discovery1/Cargo.toml b/gen/discovery1/Cargo.toml index 9118cd31c6..ddc6358c64 100644 --- a/gen/discovery1/Cargo.toml +++ b/gen/discovery1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-discovery1" -version = "1.0.11+20190619" +version = "1.0.12+20190619" authors = ["Sebastian Thiel "] description = "A complete library to interact with discovery (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/discovery1" homepage = "https://developers.google.com/discovery/" -documentation = "https://docs.rs/google-discovery1/1.0.11+20190619" +documentation = "https://docs.rs/google-discovery1/1.0.12+20190619" license = "MIT" keywords = ["discovery", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/discovery1/LICENSE.md b/gen/discovery1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/discovery1/LICENSE.md +++ b/gen/discovery1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/discovery1/README.md b/gen/discovery1/README.md index 975361e125..b96c741075 100644 --- a/gen/discovery1/README.md +++ b/gen/discovery1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-discovery1` library allows access to all features of the *Google discovery* service. -This documentation was generated from *discovery* crate version *1.0.11+20190619*, where *20190619* is the exact revision of the *discovery:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *discovery* crate version *1.0.12+20190619*, where *20190619* is the exact revision of the *discovery:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *discovery* *v1* API can be found at the [official documentation site](https://developers.google.com/discovery/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/struct.Discovery.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/struct.Discovery.html) ... * apis - * [*get rest*](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/struct.ApiGetRestCall.html) and [*list*](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/struct.ApiListCall.html) + * [*get rest*](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/struct.ApiGetRestCall.html) and [*list*](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/struct.ApiListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/struct.Discovery.html)** +* **[Hub](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/struct.Discovery.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.Part.html)** + * **[Parts](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -124,17 +124,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -144,29 +144,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-discovery1/1.0.11+20190619/google_discovery1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-discovery1/1.0.12+20190619/google_discovery1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/discovery1/src/lib.rs b/gen/discovery1/src/lib.rs index ed58db163e..ae07953bc6 100644 --- a/gen/discovery1/src/lib.rs +++ b/gen/discovery1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *discovery* crate version *1.0.11+20190619*, where *20190619* is the exact revision of the *discovery:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *discovery* crate version *1.0.12+20190619*, where *20190619* is the exact revision of the *discovery:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *discovery* *v1* API can be found at the //! [official documentation site](https://developers.google.com/discovery/). @@ -295,7 +295,7 @@ impl<'a, C, A> Discovery Discovery { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/discovery/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -306,7 +306,7 @@ impl<'a, C, A> Discovery } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/dlp2-cli/Cargo.toml b/gen/dlp2-cli/Cargo.toml index 85847a2053..f6af72767a 100644 --- a/gen/dlp2-cli/Cargo.toml +++ b/gen/dlp2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-dlp2-cli" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with DLP (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dlp2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-dlp2] path = "../dlp2" -version = "1.0.11+20190629" +version = "1.0.12+20190629" diff --git a/gen/dlp2-cli/LICENSE.md b/gen/dlp2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dlp2-cli/LICENSE.md +++ b/gen/dlp2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dlp2-cli/README.md b/gen/dlp2-cli/README.md index 93e3176c99..0a55caec98 100644 --- a/gen/dlp2-cli/README.md +++ b/gen/dlp2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *DLP* API at revision *20190629*. The CLI is at version *1.0.11*. +This documentation was generated from the *DLP* API at revision *20190629*. The CLI is at version *1.0.12*. ```bash dlp2 [options] diff --git a/gen/dlp2-cli/mkdocs.yml b/gen/dlp2-cli/mkdocs.yml index 7eb44a852d..5f463f4dac 100644 --- a/gen/dlp2-cli/mkdocs.yml +++ b/gen/dlp2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: DLP v1.0.11+20190629 +site_name: DLP v1.0.12+20190629 site_url: http://byron.github.io/google-apis-rs/google-dlp2-cli site_description: A complete library to interact with DLP (protocol v2) @@ -59,5 +59,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/dlp2-cli/src/cmn.rs b/gen/dlp2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/dlp2-cli/src/cmn.rs +++ b/gen/dlp2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/dlp2-cli/src/main.rs b/gen/dlp2-cli/src/main.rs index c6e55d784a..2953b573e5 100644 --- a/gen/dlp2-cli/src/main.rs +++ b/gen/dlp2-cli/src/main.rs @@ -5167,7 +5167,7 @@ fn main() { let mut app = App::new("dlp2") .author("Sebastian Thiel ") - .version("1.0.11+20190629") + .version("1.0.12+20190629") .about("Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_dlp2_cli") .arg(Arg::with_name("url") diff --git a/gen/dlp2/Cargo.toml b/gen/dlp2/Cargo.toml index 0fb7de4e8f..b768894acd 100644 --- a/gen/dlp2/Cargo.toml +++ b/gen/dlp2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-dlp2" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with DLP (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dlp2" homepage = "https://cloud.google.com/dlp/docs/" -documentation = "https://docs.rs/google-dlp2/1.0.11+20190629" +documentation = "https://docs.rs/google-dlp2/1.0.12+20190629" license = "MIT" keywords = ["dlp", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/dlp2/LICENSE.md b/gen/dlp2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dlp2/LICENSE.md +++ b/gen/dlp2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dlp2/README.md b/gen/dlp2/README.md index da0765a1e4..d7ce204629 100644 --- a/gen/dlp2/README.md +++ b/gen/dlp2/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-dlp2` library allows access to all features of the *Google DLP* service. -This documentation was generated from *DLP* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *dlp:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *DLP* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *dlp:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *DLP* *v2* API can be found at the [official documentation site](https://cloud.google.com/dlp/docs/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.DLP.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.DLP.html) ... * info types - * [*list*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.InfoTypeListCall.html) + * [*list*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.InfoTypeListCall.html) * organizations - * [*deidentify templates create*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationDeidentifyTemplateCreateCall.html), [*deidentify templates delete*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationDeidentifyTemplateDeleteCall.html), [*deidentify templates get*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationDeidentifyTemplateGetCall.html), [*deidentify templates list*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationDeidentifyTemplateListCall.html), [*deidentify templates patch*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationDeidentifyTemplatePatchCall.html), [*inspect templates create*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationInspectTemplateCreateCall.html), [*inspect templates delete*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationInspectTemplateDeleteCall.html), [*inspect templates get*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationInspectTemplateGetCall.html), [*inspect templates list*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationInspectTemplateListCall.html), [*inspect templates patch*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationInspectTemplatePatchCall.html), [*stored info types create*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationStoredInfoTypeCreateCall.html), [*stored info types delete*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationStoredInfoTypeDeleteCall.html), [*stored info types get*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationStoredInfoTypeGetCall.html), [*stored info types list*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationStoredInfoTypeListCall.html) and [*stored info types patch*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.OrganizationStoredInfoTypePatchCall.html) + * [*deidentify templates create*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationDeidentifyTemplateCreateCall.html), [*deidentify templates delete*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationDeidentifyTemplateDeleteCall.html), [*deidentify templates get*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationDeidentifyTemplateGetCall.html), [*deidentify templates list*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationDeidentifyTemplateListCall.html), [*deidentify templates patch*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationDeidentifyTemplatePatchCall.html), [*inspect templates create*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationInspectTemplateCreateCall.html), [*inspect templates delete*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationInspectTemplateDeleteCall.html), [*inspect templates get*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationInspectTemplateGetCall.html), [*inspect templates list*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationInspectTemplateListCall.html), [*inspect templates patch*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationInspectTemplatePatchCall.html), [*stored info types create*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationStoredInfoTypeCreateCall.html), [*stored info types delete*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationStoredInfoTypeDeleteCall.html), [*stored info types get*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationStoredInfoTypeGetCall.html), [*stored info types list*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationStoredInfoTypeListCall.html) and [*stored info types patch*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.OrganizationStoredInfoTypePatchCall.html) * projects - * [*content deidentify*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectContentDeidentifyCall.html), [*content inspect*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectContentInspectCall.html), [*content reidentify*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectContentReidentifyCall.html), [*deidentify templates create*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectDeidentifyTemplateCreateCall.html), [*deidentify templates delete*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectDeidentifyTemplateDeleteCall.html), [*deidentify templates get*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectDeidentifyTemplateGetCall.html), [*deidentify templates list*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectDeidentifyTemplateListCall.html), [*deidentify templates patch*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectDeidentifyTemplatePatchCall.html), [*dlp jobs cancel*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectDlpJobCancelCall.html), [*dlp jobs create*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectDlpJobCreateCall.html), [*dlp jobs delete*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectDlpJobDeleteCall.html), [*dlp jobs get*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectDlpJobGetCall.html), [*dlp jobs list*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectDlpJobListCall.html), [*image redact*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectImageRedactCall.html), [*inspect templates create*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectInspectTemplateCreateCall.html), [*inspect templates delete*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectInspectTemplateDeleteCall.html), [*inspect templates get*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectInspectTemplateGetCall.html), [*inspect templates list*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectInspectTemplateListCall.html), [*inspect templates patch*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectInspectTemplatePatchCall.html), [*job triggers activate*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectJobTriggerActivateCall.html), [*job triggers create*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectJobTriggerCreateCall.html), [*job triggers delete*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectJobTriggerDeleteCall.html), [*job triggers get*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectJobTriggerGetCall.html), [*job triggers list*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectJobTriggerListCall.html), [*job triggers patch*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectJobTriggerPatchCall.html), [*locations content deidentify*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectLocationContentDeidentifyCall.html), [*stored info types create*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectStoredInfoTypeCreateCall.html), [*stored info types delete*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectStoredInfoTypeDeleteCall.html), [*stored info types get*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectStoredInfoTypeGetCall.html), [*stored info types list*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectStoredInfoTypeListCall.html) and [*stored info types patch*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.ProjectStoredInfoTypePatchCall.html) + * [*content deidentify*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectContentDeidentifyCall.html), [*content inspect*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectContentInspectCall.html), [*content reidentify*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectContentReidentifyCall.html), [*deidentify templates create*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectDeidentifyTemplateCreateCall.html), [*deidentify templates delete*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectDeidentifyTemplateDeleteCall.html), [*deidentify templates get*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectDeidentifyTemplateGetCall.html), [*deidentify templates list*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectDeidentifyTemplateListCall.html), [*deidentify templates patch*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectDeidentifyTemplatePatchCall.html), [*dlp jobs cancel*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectDlpJobCancelCall.html), [*dlp jobs create*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectDlpJobCreateCall.html), [*dlp jobs delete*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectDlpJobDeleteCall.html), [*dlp jobs get*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectDlpJobGetCall.html), [*dlp jobs list*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectDlpJobListCall.html), [*image redact*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectImageRedactCall.html), [*inspect templates create*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectInspectTemplateCreateCall.html), [*inspect templates delete*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectInspectTemplateDeleteCall.html), [*inspect templates get*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectInspectTemplateGetCall.html), [*inspect templates list*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectInspectTemplateListCall.html), [*inspect templates patch*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectInspectTemplatePatchCall.html), [*job triggers activate*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectJobTriggerActivateCall.html), [*job triggers create*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectJobTriggerCreateCall.html), [*job triggers delete*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectJobTriggerDeleteCall.html), [*job triggers get*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectJobTriggerGetCall.html), [*job triggers list*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectJobTriggerListCall.html), [*job triggers patch*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectJobTriggerPatchCall.html), [*locations content deidentify*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectLocationContentDeidentifyCall.html), [*stored info types create*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectStoredInfoTypeCreateCall.html), [*stored info types delete*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectStoredInfoTypeDeleteCall.html), [*stored info types get*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectStoredInfoTypeGetCall.html), [*stored info types list*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectStoredInfoTypeListCall.html) and [*stored info types patch*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.ProjectStoredInfoTypePatchCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/struct.DLP.html)** +* **[Hub](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/struct.DLP.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.Part.html)** + * **[Parts](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -142,17 +142,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -162,29 +162,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-dlp2/1.0.11+20190629/google_dlp2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-dlp2/1.0.12+20190629/google_dlp2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/dlp2/src/lib.rs b/gen/dlp2/src/lib.rs index 2c113cd6ab..3cffffb441 100644 --- a/gen/dlp2/src/lib.rs +++ b/gen/dlp2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *DLP* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *dlp:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *DLP* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *dlp:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *DLP* *v2* API can be found at the //! [official documentation site](https://cloud.google.com/dlp/docs/). @@ -341,7 +341,7 @@ impl<'a, C, A> DLP DLP { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://dlp.googleapis.com/".to_string(), _root_url: "https://dlp.googleapis.com/".to_string(), } @@ -358,7 +358,7 @@ impl<'a, C, A> DLP } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/dlp2_beta1-cli/Cargo.toml b/gen/dlp2_beta1-cli/Cargo.toml index 77b151b803..9bcb25a464 100644 --- a/gen/dlp2_beta1-cli/Cargo.toml +++ b/gen/dlp2_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-dlp2_beta1-cli" -version = "1.0.11+20171205" +version = "1.0.12+20171205" authors = ["Sebastian Thiel "] description = "A complete library to interact with DLP (protocol v2beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dlp2_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-dlp2_beta1] path = "../dlp2_beta1" -version = "1.0.11+20171205" +version = "1.0.12+20171205" diff --git a/gen/dlp2_beta1-cli/LICENSE.md b/gen/dlp2_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dlp2_beta1-cli/LICENSE.md +++ b/gen/dlp2_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dlp2_beta1-cli/README.md b/gen/dlp2_beta1-cli/README.md index 78af32b0b9..ec32aa2daa 100644 --- a/gen/dlp2_beta1-cli/README.md +++ b/gen/dlp2_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *DLP* API at revision *20171205*. The CLI is at version *1.0.11*. +This documentation was generated from the *DLP* API at revision *20171205*. The CLI is at version *1.0.12*. ```bash dlp2-beta1 [options] diff --git a/gen/dlp2_beta1-cli/mkdocs.yml b/gen/dlp2_beta1-cli/mkdocs.yml index 17bea17642..1131411e8b 100644 --- a/gen/dlp2_beta1-cli/mkdocs.yml +++ b/gen/dlp2_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: DLP v1.0.11+20171205 +site_name: DLP v1.0.12+20171205 site_url: http://byron.github.io/google-apis-rs/google-dlp2_beta1-cli site_description: A complete library to interact with DLP (protocol v2beta1) @@ -28,5 +28,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/dlp2_beta1-cli/src/cmn.rs b/gen/dlp2_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/dlp2_beta1-cli/src/cmn.rs +++ b/gen/dlp2_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/dlp2_beta1-cli/src/main.rs b/gen/dlp2_beta1-cli/src/main.rs index f61d5f639a..34bedb719a 100644 --- a/gen/dlp2_beta1-cli/src/main.rs +++ b/gen/dlp2_beta1-cli/src/main.rs @@ -1743,7 +1743,7 @@ fn main() { let mut app = App::new("dlp2-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20171205") + .version("1.0.12+20171205") .about("The Google Data Loss Prevention API provides methods for detection of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_dlp2_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/dlp2_beta1/Cargo.toml b/gen/dlp2_beta1/Cargo.toml index 73ce3d8245..bf046f836d 100644 --- a/gen/dlp2_beta1/Cargo.toml +++ b/gen/dlp2_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-dlp2_beta1" -version = "1.0.11+20171205" +version = "1.0.12+20171205" authors = ["Sebastian Thiel "] description = "A complete library to interact with DLP (protocol v2beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dlp2_beta1" homepage = "https://cloud.google.com/dlp/docs/" -documentation = "https://docs.rs/google-dlp2_beta1/1.0.11+20171205" +documentation = "https://docs.rs/google-dlp2_beta1/1.0.12+20171205" license = "MIT" keywords = ["dlp", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/dlp2_beta1/LICENSE.md b/gen/dlp2_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dlp2_beta1/LICENSE.md +++ b/gen/dlp2_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dlp2_beta1/README.md b/gen/dlp2_beta1/README.md index dbfd68c9dd..ec366e4f52 100644 --- a/gen/dlp2_beta1/README.md +++ b/gen/dlp2_beta1/README.md @@ -5,24 +5,24 @@ DO NOT EDIT ! --> The `google-dlp2_beta1` library allows access to all features of the *Google DLP* service. -This documentation was generated from *DLP* crate version *1.0.11+20171205*, where *20171205* is the exact revision of the *dlp:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *DLP* crate version *1.0.12+20171205*, where *20171205* is the exact revision of the *dlp:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *DLP* *v2_beta1* API can be found at the [official documentation site](https://cloud.google.com/dlp/docs/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.DLP.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.DLP.html) ... * content - * [*deidentify*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.ContentDeidentifyCall.html), [*inspect*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.ContentInspectCall.html) and [*redact*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.ContentRedactCall.html) + * [*deidentify*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.ContentDeidentifyCall.html), [*inspect*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.ContentInspectCall.html) and [*redact*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.ContentRedactCall.html) * data source - * [*analyze*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.DataSourceAnalyzeCall.html) + * [*analyze*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.DataSourceAnalyzeCall.html) * inspect - * [*operations cancel*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.InspectOperationCancelCall.html), [*operations create*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.InspectOperationCreateCall.html), [*operations delete*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.InspectOperationDeleteCall.html), [*operations get*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.InspectOperationGetCall.html), [*operations list*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.InspectOperationListCall.html) and [*results findings list*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.InspectResultFindingListCall.html) + * [*operations cancel*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.InspectOperationCancelCall.html), [*operations create*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.InspectOperationCreateCall.html), [*operations delete*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.InspectOperationDeleteCall.html), [*operations get*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.InspectOperationGetCall.html), [*operations list*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.InspectOperationListCall.html) and [*results findings list*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.InspectResultFindingListCall.html) * risk analysis - * [*operations cancel*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.RiskAnalysiOperationCancelCall.html), [*operations delete*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.RiskAnalysiOperationDeleteCall.html), [*operations get*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.RiskAnalysiOperationGetCall.html) and [*operations list*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.RiskAnalysiOperationListCall.html) + * [*operations cancel*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.RiskAnalysiOperationCancelCall.html), [*operations delete*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.RiskAnalysiOperationDeleteCall.html), [*operations get*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.RiskAnalysiOperationGetCall.html) and [*operations list*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.RiskAnalysiOperationListCall.html) * root categories - * [*info types list*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.RootCategoryInfoTypeListCall.html) and [*list*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.RootCategoryListCall.html) + * [*info types list*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.RootCategoryInfoTypeListCall.html) and [*list*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.RootCategoryListCall.html) @@ -31,17 +31,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/struct.DLP.html)** +* **[Hub](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/struct.DLP.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -141,17 +141,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -161,29 +161,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-dlp2_beta1/1.0.11+20171205/google_dlp2_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-dlp2_beta1/1.0.12+20171205/google_dlp2_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/dlp2_beta1/src/lib.rs b/gen/dlp2_beta1/src/lib.rs index 81776e123a..36ed39ae56 100644 --- a/gen/dlp2_beta1/src/lib.rs +++ b/gen/dlp2_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *DLP* crate version *1.0.11+20171205*, where *20171205* is the exact revision of the *dlp:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *DLP* crate version *1.0.12+20171205*, where *20171205* is the exact revision of the *dlp:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *DLP* *v2_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/dlp/docs/). @@ -340,7 +340,7 @@ impl<'a, C, A> DLP DLP { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://dlp.googleapis.com/".to_string(), _root_url: "https://dlp.googleapis.com/".to_string(), } @@ -363,7 +363,7 @@ impl<'a, C, A> DLP } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/dns1-cli/Cargo.toml b/gen/dns1-cli/Cargo.toml index 1098a05b7f..0c3c72f857 100644 --- a/gen/dns1-cli/Cargo.toml +++ b/gen/dns1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-dns1-cli" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with dns (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dns1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-dns1] path = "../dns1" -version = "1.0.11+20190625" +version = "1.0.12+20190625" diff --git a/gen/dns1-cli/LICENSE.md b/gen/dns1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dns1-cli/LICENSE.md +++ b/gen/dns1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dns1-cli/README.md b/gen/dns1-cli/README.md index c5db8502e8..c914590473 100644 --- a/gen/dns1-cli/README.md +++ b/gen/dns1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *dns* API at revision *20190625*. The CLI is at version *1.0.11*. +This documentation was generated from the *dns* API at revision *20190625*. The CLI is at version *1.0.12*. ```bash dns1 [options] diff --git a/gen/dns1-cli/mkdocs.yml b/gen/dns1-cli/mkdocs.yml index da48aee345..26c2ab2c36 100644 --- a/gen/dns1-cli/mkdocs.yml +++ b/gen/dns1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: dns v1.0.11+20190625 +site_name: dns v1.0.12+20190625 site_url: http://byron.github.io/google-apis-rs/google-dns1-cli site_description: A complete library to interact with dns (protocol v1) @@ -27,5 +27,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/dns1-cli/src/cmn.rs b/gen/dns1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/dns1-cli/src/cmn.rs +++ b/gen/dns1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/dns1-cli/src/main.rs b/gen/dns1-cli/src/main.rs index 1c0bb38ebf..62b286ecd8 100644 --- a/gen/dns1-cli/src/main.rs +++ b/gen/dns1-cli/src/main.rs @@ -1732,7 +1732,7 @@ fn main() { let mut app = App::new("dns1") .author("Sebastian Thiel ") - .version("1.0.11+20190625") + .version("1.0.12+20190625") .about("Configures and serves authoritative DNS records.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_dns1_cli") .arg(Arg::with_name("url") diff --git a/gen/dns1/Cargo.toml b/gen/dns1/Cargo.toml index 39d2d04525..a342d4d8f2 100644 --- a/gen/dns1/Cargo.toml +++ b/gen/dns1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-dns1" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with dns (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/dns1" homepage = "https://developers.google.com/cloud-dns" -documentation = "https://docs.rs/google-dns1/1.0.11+20190625" +documentation = "https://docs.rs/google-dns1/1.0.12+20190625" license = "MIT" keywords = ["dns", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/dns1/LICENSE.md b/gen/dns1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/dns1/LICENSE.md +++ b/gen/dns1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/dns1/README.md b/gen/dns1/README.md index 62237b5e1e..3562ac201a 100644 --- a/gen/dns1/README.md +++ b/gen/dns1/README.md @@ -5,26 +5,26 @@ DO NOT EDIT ! --> The `google-dns1` library allows access to all features of the *Google dns* service. -This documentation was generated from *dns* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *dns:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *dns* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *dns:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *dns* *v1* API can be found at the [official documentation site](https://developers.google.com/cloud-dns). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.Dns.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.Dns.html) ... -* [changes](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.Change.html) - * [*create*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ChangeCreateCall.html), [*get*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ChangeGetCall.html) and [*list*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ChangeListCall.html) -* [dns keys](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.DnsKey.html) - * [*get*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.DnsKeyGetCall.html) and [*list*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.DnsKeyListCall.html) +* [changes](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.Change.html) + * [*create*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ChangeCreateCall.html), [*get*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ChangeGetCall.html) and [*list*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ChangeListCall.html) +* [dns keys](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.DnsKey.html) + * [*get*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.DnsKeyGetCall.html) and [*list*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.DnsKeyListCall.html) * managed zone operations - * [*get*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ManagedZoneOperationGetCall.html) and [*list*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ManagedZoneOperationListCall.html) -* [managed zones](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ManagedZone.html) - * [*create*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ManagedZoneCreateCall.html), [*delete*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ManagedZoneDeleteCall.html), [*get*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ManagedZoneGetCall.html), [*list*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ManagedZoneListCall.html), [*patch*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ManagedZonePatchCall.html) and [*update*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ManagedZoneUpdateCall.html) -* [projects](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.Project.html) - * [*get*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ProjectGetCall.html) -* [resource record sets](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ResourceRecordSet.html) - * [*list*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.ResourceRecordSetListCall.html) + * [*get*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ManagedZoneOperationGetCall.html) and [*list*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ManagedZoneOperationListCall.html) +* [managed zones](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ManagedZone.html) + * [*create*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ManagedZoneCreateCall.html), [*delete*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ManagedZoneDeleteCall.html), [*get*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ManagedZoneGetCall.html), [*list*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ManagedZoneListCall.html), [*patch*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ManagedZonePatchCall.html) and [*update*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ManagedZoneUpdateCall.html) +* [projects](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.Project.html) + * [*get*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ProjectGetCall.html) +* [resource record sets](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ResourceRecordSet.html) + * [*list*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.ResourceRecordSetListCall.html) @@ -33,17 +33,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/struct.Dns.html)** +* **[Hub](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/struct.Dns.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.Part.html)** + * **[Parts](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -146,17 +146,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -166,29 +166,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-dns1/1.0.11+20190625/google_dns1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-dns1/1.0.12+20190625/google_dns1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/dns1/src/lib.rs b/gen/dns1/src/lib.rs index 1711e45960..83f394dba2 100644 --- a/gen/dns1/src/lib.rs +++ b/gen/dns1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *dns* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *dns:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *dns* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *dns:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *dns* *v1* API can be found at the //! [official documentation site](https://developers.google.com/cloud-dns). @@ -358,7 +358,7 @@ impl<'a, C, A> Dns Dns { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://dns.googleapis.com/dns/v1/projects/".to_string(), _root_url: "https://dns.googleapis.com/".to_string(), } @@ -384,7 +384,7 @@ impl<'a, C, A> Dns } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/doubleclickbidmanager1-cli/Cargo.toml b/gen/doubleclickbidmanager1-cli/Cargo.toml index 6b1ab74328..729ecfebde 100644 --- a/gen/doubleclickbidmanager1-cli/Cargo.toml +++ b/gen/doubleclickbidmanager1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-doubleclickbidmanager1-cli" -version = "1.0.11+20190618" +version = "1.0.12+20190618" authors = ["Sebastian Thiel "] description = "A complete library to interact with DoubleClick Bid Manager (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/doubleclickbidmanager1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-doubleclickbidmanager1] path = "../doubleclickbidmanager1" -version = "1.0.11+20190618" +version = "1.0.12+20190618" diff --git a/gen/doubleclickbidmanager1-cli/LICENSE.md b/gen/doubleclickbidmanager1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/doubleclickbidmanager1-cli/LICENSE.md +++ b/gen/doubleclickbidmanager1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/doubleclickbidmanager1-cli/README.md b/gen/doubleclickbidmanager1-cli/README.md index 0b9bff3121..9635d7d89b 100644 --- a/gen/doubleclickbidmanager1-cli/README.md +++ b/gen/doubleclickbidmanager1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *DoubleClick Bid Manager* API at revision *20190618*. The CLI is at version *1.0.11*. +This documentation was generated from the *DoubleClick Bid Manager* API at revision *20190618*. The CLI is at version *1.0.12*. ```bash doubleclickbidmanager1 [options] diff --git a/gen/doubleclickbidmanager1-cli/mkdocs.yml b/gen/doubleclickbidmanager1-cli/mkdocs.yml index 176c3e6bbc..d12fedac11 100644 --- a/gen/doubleclickbidmanager1-cli/mkdocs.yml +++ b/gen/doubleclickbidmanager1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: DoubleClick Bid Manager v1.0.11+20190618 +site_name: DoubleClick Bid Manager v1.0.12+20190618 site_url: http://byron.github.io/google-apis-rs/google-doubleclickbidmanager1-cli site_description: A complete library to interact with DoubleClick Bid Manager (protocol v1) @@ -21,5 +21,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/doubleclickbidmanager1-cli/src/cmn.rs b/gen/doubleclickbidmanager1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/doubleclickbidmanager1-cli/src/cmn.rs +++ b/gen/doubleclickbidmanager1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/doubleclickbidmanager1-cli/src/main.rs b/gen/doubleclickbidmanager1-cli/src/main.rs index cfa6ecbe2e..0e31454a4b 100644 --- a/gen/doubleclickbidmanager1-cli/src/main.rs +++ b/gen/doubleclickbidmanager1-cli/src/main.rs @@ -1045,7 +1045,7 @@ fn main() { let mut app = App::new("doubleclickbidmanager1") .author("Sebastian Thiel ") - .version("1.0.11+20190618") + .version("1.0.12+20190618") .about("API for viewing and managing your reports in DoubleClick Bid Manager.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_doubleclickbidmanager1_cli") .arg(Arg::with_name("url") diff --git a/gen/doubleclickbidmanager1/Cargo.toml b/gen/doubleclickbidmanager1/Cargo.toml index dddc16b024..17864a8ca9 100644 --- a/gen/doubleclickbidmanager1/Cargo.toml +++ b/gen/doubleclickbidmanager1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-doubleclickbidmanager1" -version = "1.0.11+20190618" +version = "1.0.12+20190618" authors = ["Sebastian Thiel "] description = "A complete library to interact with DoubleClick Bid Manager (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/doubleclickbidmanager1" homepage = "https://developers.google.com/bid-manager/" -documentation = "https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618" +documentation = "https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618" license = "MIT" keywords = ["doubleclickbidmanage", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/doubleclickbidmanager1/LICENSE.md b/gen/doubleclickbidmanager1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/doubleclickbidmanager1/LICENSE.md +++ b/gen/doubleclickbidmanager1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/doubleclickbidmanager1/README.md b/gen/doubleclickbidmanager1/README.md index 556a662652..60951d65fd 100644 --- a/gen/doubleclickbidmanager1/README.md +++ b/gen/doubleclickbidmanager1/README.md @@ -5,22 +5,22 @@ DO NOT EDIT ! --> The `google-doubleclickbidmanager1` library allows access to all features of the *Google DoubleClick Bid Manager* service. -This documentation was generated from *DoubleClick Bid Manager* crate version *1.0.11+20190618*, where *20190618* is the exact revision of the *doubleclickbidmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *DoubleClick Bid Manager* crate version *1.0.12+20190618*, where *20190618* is the exact revision of the *doubleclickbidmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *DoubleClick Bid Manager* *v1* API can be found at the [official documentation site](https://developers.google.com/bid-manager/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/struct.DoubleClickBidManager.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/struct.DoubleClickBidManager.html) ... * lineitems - * [*downloadlineitems*](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/struct.LineitemDownloadlineitemCall.html) and [*uploadlineitems*](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/struct.LineitemUploadlineitemCall.html) -* [queries](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/struct.Query.html) - * [*createquery*](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/struct.QueryCreatequeryCall.html), [*deletequery*](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/struct.QueryDeletequeryCall.html), [*getquery*](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/struct.QueryGetqueryCall.html), [*listqueries*](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/struct.QueryListqueryCall.html) and [*runquery*](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/struct.QueryRunqueryCall.html) -* [reports](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/struct.Report.html) - * [*listreports*](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/struct.ReportListreportCall.html) + * [*downloadlineitems*](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/struct.LineitemDownloadlineitemCall.html) and [*uploadlineitems*](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/struct.LineitemUploadlineitemCall.html) +* [queries](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/struct.Query.html) + * [*createquery*](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/struct.QueryCreatequeryCall.html), [*deletequery*](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/struct.QueryDeletequeryCall.html), [*getquery*](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/struct.QueryGetqueryCall.html), [*listqueries*](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/struct.QueryListqueryCall.html) and [*runquery*](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/struct.QueryRunqueryCall.html) +* [reports](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/struct.Report.html) + * [*listreports*](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/struct.ReportListreportCall.html) * sdf - * [*download*](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/struct.SdfDownloadCall.html) + * [*download*](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/struct.SdfDownloadCall.html) @@ -29,17 +29,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/struct.DoubleClickBidManager.html)** +* **[Hub](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/struct.DoubleClickBidManager.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.Part.html)** + * **[Parts](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -131,17 +131,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -151,29 +151,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-doubleclickbidmanager1/1.0.11+20190618/google_doubleclickbidmanager1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-doubleclickbidmanager1/1.0.12+20190618/google_doubleclickbidmanager1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/doubleclickbidmanager1/src/lib.rs b/gen/doubleclickbidmanager1/src/lib.rs index 15971b1687..f0b0824889 100644 --- a/gen/doubleclickbidmanager1/src/lib.rs +++ b/gen/doubleclickbidmanager1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *DoubleClick Bid Manager* crate version *1.0.11+20190618*, where *20190618* is the exact revision of the *doubleclickbidmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *DoubleClick Bid Manager* crate version *1.0.12+20190618*, where *20190618* is the exact revision of the *doubleclickbidmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *DoubleClick Bid Manager* *v1* API can be found at the //! [official documentation site](https://developers.google.com/bid-manager/). @@ -324,7 +324,7 @@ impl<'a, C, A> DoubleClickBidManager DoubleClickBidManager { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/doubleclickbidmanager/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -344,7 +344,7 @@ impl<'a, C, A> DoubleClickBidManager } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/doubleclicksearch2-cli/Cargo.toml b/gen/doubleclicksearch2-cli/Cargo.toml index 1d0f22ba6e..3b9136d4fa 100644 --- a/gen/doubleclicksearch2-cli/Cargo.toml +++ b/gen/doubleclicksearch2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-doubleclicksearch2-cli" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with doubleclicksearch (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/doubleclicksearch2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-doubleclicksearch2] path = "../doubleclicksearch2" -version = "1.0.11+20190625" +version = "1.0.12+20190625" diff --git a/gen/doubleclicksearch2-cli/LICENSE.md b/gen/doubleclicksearch2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/doubleclicksearch2-cli/LICENSE.md +++ b/gen/doubleclicksearch2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/doubleclicksearch2-cli/README.md b/gen/doubleclicksearch2-cli/README.md index ce593dc543..fe2a102c46 100644 --- a/gen/doubleclicksearch2-cli/README.md +++ b/gen/doubleclicksearch2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *doubleclicksearch* API at revision *20190625*. The CLI is at version *1.0.11*. +This documentation was generated from the *doubleclicksearch* API at revision *20190625*. The CLI is at version *1.0.12*. ```bash doubleclicksearch2 [options] diff --git a/gen/doubleclicksearch2-cli/mkdocs.yml b/gen/doubleclicksearch2-cli/mkdocs.yml index 076e1b423a..d5960d9a9e 100644 --- a/gen/doubleclicksearch2-cli/mkdocs.yml +++ b/gen/doubleclicksearch2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: doubleclicksearch v1.0.11+20190625 +site_name: doubleclicksearch v1.0.12+20190625 site_url: http://byron.github.io/google-apis-rs/google-doubleclicksearch2-cli site_description: A complete library to interact with doubleclicksearch (protocol v2) @@ -22,5 +22,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/doubleclicksearch2-cli/src/cmn.rs b/gen/doubleclicksearch2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/doubleclicksearch2-cli/src/cmn.rs +++ b/gen/doubleclicksearch2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/doubleclicksearch2-cli/src/main.rs b/gen/doubleclicksearch2-cli/src/main.rs index 86a542056e..fca4d8c73d 100644 --- a/gen/doubleclicksearch2-cli/src/main.rs +++ b/gen/doubleclicksearch2-cli/src/main.rs @@ -1292,7 +1292,7 @@ fn main() { let mut app = App::new("doubleclicksearch2") .author("Sebastian Thiel ") - .version("1.0.11+20190625") + .version("1.0.12+20190625") .about("Reports and modifies your advertising data in DoubleClick Search (for example, campaigns, ad groups, keywords, and conversions).") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_doubleclicksearch2_cli") .arg(Arg::with_name("url") diff --git a/gen/doubleclicksearch2/Cargo.toml b/gen/doubleclicksearch2/Cargo.toml index 84ffb5b557..d32cd2627a 100644 --- a/gen/doubleclicksearch2/Cargo.toml +++ b/gen/doubleclicksearch2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-doubleclicksearch2" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with doubleclicksearch (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/doubleclicksearch2" homepage = "https://developers.google.com/doubleclick-search/" -documentation = "https://docs.rs/google-doubleclicksearch2/1.0.11+20190625" +documentation = "https://docs.rs/google-doubleclicksearch2/1.0.12+20190625" license = "MIT" keywords = ["doubleclicksearch", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/doubleclicksearch2/LICENSE.md b/gen/doubleclicksearch2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/doubleclicksearch2/LICENSE.md +++ b/gen/doubleclicksearch2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/doubleclicksearch2/README.md b/gen/doubleclicksearch2/README.md index 50ed57dcb4..9da13850a9 100644 --- a/gen/doubleclicksearch2/README.md +++ b/gen/doubleclicksearch2/README.md @@ -5,25 +5,25 @@ DO NOT EDIT ! --> The `google-doubleclicksearch2` library allows access to all features of the *Google doubleclicksearch* service. -This documentation was generated from *doubleclicksearch* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *doubleclicksearch:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *doubleclicksearch* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *doubleclicksearch:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *doubleclicksearch* *v2* API can be found at the [official documentation site](https://developers.google.com/doubleclick-search/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.Doubleclicksearch.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.Doubleclicksearch.html) ... -* [conversion](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.Conversion.html) - * [*get*](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.ConversionGetCall.html), [*insert*](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.ConversionInsertCall.html), [*patch*](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.ConversionPatchCall.html), [*update*](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.ConversionUpdateCall.html) and [*update availability*](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.ConversionUpdateAvailabilityCall.html) -* [reports](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.Report.html) - * [*generate*](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.ReportGenerateCall.html), [*get*](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.ReportGetCall.html), [*get file*](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.ReportGetFileCall.html) and [*request*](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.ReportRequestCall.html) -* [saved columns](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.SavedColumn.html) - * [*list*](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.SavedColumnListCall.html) +* [conversion](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.Conversion.html) + * [*get*](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.ConversionGetCall.html), [*insert*](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.ConversionInsertCall.html), [*patch*](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.ConversionPatchCall.html), [*update*](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.ConversionUpdateCall.html) and [*update availability*](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.ConversionUpdateAvailabilityCall.html) +* [reports](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.Report.html) + * [*generate*](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.ReportGenerateCall.html), [*get*](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.ReportGetCall.html), [*get file*](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.ReportGetFileCall.html) and [*request*](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.ReportRequestCall.html) +* [saved columns](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.SavedColumn.html) + * [*list*](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.SavedColumnListCall.html) Download supported by ... -* [*get file reports*](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.ReportGetFileCall.html) +* [*get file reports*](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.ReportGetFileCall.html) @@ -31,17 +31,17 @@ Download supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/struct.Doubleclicksearch.html)** +* **[Hub](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/struct.Doubleclicksearch.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.Part.html)** + * **[Parts](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -135,17 +135,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -155,29 +155,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-doubleclicksearch2/1.0.11+20190625/google_doubleclicksearch2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-doubleclicksearch2/1.0.12+20190625/google_doubleclicksearch2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/doubleclicksearch2/src/lib.rs b/gen/doubleclicksearch2/src/lib.rs index 9570b3c7e9..38db97d917 100644 --- a/gen/doubleclicksearch2/src/lib.rs +++ b/gen/doubleclicksearch2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *doubleclicksearch* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *doubleclicksearch:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *doubleclicksearch* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *doubleclicksearch:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *doubleclicksearch* *v2* API can be found at the //! [official documentation site](https://developers.google.com/doubleclick-search/). @@ -328,7 +328,7 @@ impl<'a, C, A> Doubleclicksearch Doubleclicksearch { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/doubleclicksearch/v2/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -345,7 +345,7 @@ impl<'a, C, A> Doubleclicksearch } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/drive2-cli/Cargo.toml b/gen/drive2-cli/Cargo.toml index 0c83398591..45405051e0 100644 --- a/gen/drive2-cli/Cargo.toml +++ b/gen/drive2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-drive2-cli" -version = "1.0.11+20190620" +version = "1.0.12+20190620" authors = ["Sebastian Thiel "] description = "A complete library to interact with drive (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/drive2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-drive2] path = "../drive2" -version = "1.0.11+20190620" +version = "1.0.12+20190620" diff --git a/gen/drive2-cli/LICENSE.md b/gen/drive2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/drive2-cli/LICENSE.md +++ b/gen/drive2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/drive2-cli/README.md b/gen/drive2-cli/README.md index e62534efd8..3b33066a08 100644 --- a/gen/drive2-cli/README.md +++ b/gen/drive2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *drive* API at revision *20190620*. The CLI is at version *1.0.11*. +This documentation was generated from the *drive* API at revision *20190620*. The CLI is at version *1.0.12*. ```bash drive2 [options] diff --git a/gen/drive2-cli/mkdocs.yml b/gen/drive2-cli/mkdocs.yml index 0067f16df1..c0821dda16 100644 --- a/gen/drive2-cli/mkdocs.yml +++ b/gen/drive2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: drive v1.0.11+20190620 +site_name: drive v1.0.12+20190620 site_url: http://byron.github.io/google-apis-rs/google-drive2-cli site_description: A complete library to interact with drive (protocol v2) @@ -86,5 +86,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/drive2-cli/src/cmn.rs b/gen/drive2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/drive2-cli/src/cmn.rs +++ b/gen/drive2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/drive2-cli/src/main.rs b/gen/drive2-cli/src/main.rs index 991d36b7ef..2959886216 100644 --- a/gen/drive2-cli/src/main.rs +++ b/gen/drive2-cli/src/main.rs @@ -8622,7 +8622,7 @@ fn main() { let mut app = App::new("drive2") .author("Sebastian Thiel ") - .version("1.0.11+20190620") + .version("1.0.12+20190620") .about("Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_drive2_cli") .arg(Arg::with_name("url") diff --git a/gen/drive2/Cargo.toml b/gen/drive2/Cargo.toml index e6808be055..66014792f3 100644 --- a/gen/drive2/Cargo.toml +++ b/gen/drive2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-drive2" -version = "1.0.11+20190620" +version = "1.0.12+20190620" authors = ["Sebastian Thiel "] description = "A complete library to interact with drive (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/drive2" homepage = "https://developers.google.com/drive/" -documentation = "https://docs.rs/google-drive2/1.0.11+20190620" +documentation = "https://docs.rs/google-drive2/1.0.12+20190620" license = "MIT" keywords = ["drive", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/drive2/LICENSE.md b/gen/drive2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/drive2/LICENSE.md +++ b/gen/drive2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/drive2/README.md b/gen/drive2/README.md index 4eaabeb2af..39bf4a5fda 100644 --- a/gen/drive2/README.md +++ b/gen/drive2/README.md @@ -5,66 +5,66 @@ DO NOT EDIT ! --> The `google-drive2` library allows access to all features of the *Google drive* service. -This documentation was generated from *drive* crate version *1.0.11+20190620*, where *20190620* is the exact revision of the *drive:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *drive* crate version *1.0.12+20190620*, where *20190620* is the exact revision of the *drive:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *drive* *v2* API can be found at the [official documentation site](https://developers.google.com/drive/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.DriveHub.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.DriveHub.html) ... -* [about](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.About.html) - * [*get*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.AboutGetCall.html) -* [apps](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.App.html) - * [*get*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.AppGetCall.html) and [*list*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.AppListCall.html) -* [changes](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.Change.html) - * [*get*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ChangeGetCall.html), [*get start page token*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ChangeGetStartPageTokenCall.html), [*list*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ChangeListCall.html) and [*watch*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ChangeWatchCall.html) -* [channels](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.Channel.html) - * [*stop*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ChannelStopCall.html) +* [about](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.About.html) + * [*get*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.AboutGetCall.html) +* [apps](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.App.html) + * [*get*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.AppGetCall.html) and [*list*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.AppListCall.html) +* [changes](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.Change.html) + * [*get*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ChangeGetCall.html), [*get start page token*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ChangeGetStartPageTokenCall.html), [*list*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ChangeListCall.html) and [*watch*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ChangeWatchCall.html) +* [channels](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.Channel.html) + * [*stop*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ChannelStopCall.html) * children - * [*delete*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ChildrenDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ChildrenGetCall.html), [*insert*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ChildrenInsertCall.html) and [*list*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ChildrenListCall.html) -* [comments](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.Comment.html) - * [*delete*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.CommentDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.CommentGetCall.html), [*insert*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.CommentInsertCall.html), [*list*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.CommentListCall.html), [*patch*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.CommentPatchCall.html) and [*update*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.CommentUpdateCall.html) -* [drives](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.Drive.html) - * [*delete*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.DriveDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.DriveGetCall.html), [*hide*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.DriveHideCall.html), [*insert*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.DriveInsertCall.html), [*list*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.DriveListCall.html), [*unhide*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.DriveUnhideCall.html) and [*update*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.DriveUpdateCall.html) -* [files](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.File.html) - * [*copy*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileCopyCall.html), [*delete*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileDeleteCall.html), [*empty trash*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileEmptyTrashCall.html), [*export*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileExportCall.html), [*generate ids*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileGenerateIdCall.html), [*get*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileGetCall.html), [*insert*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileInsertCall.html), [*list*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileListCall.html), [*patch*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FilePatchCall.html), [*touch*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileTouchCall.html), [*trash*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileTrashCall.html), [*untrash*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileUntrashCall.html), [*update*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileUpdateCall.html) and [*watch*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileWatchCall.html) + * [*delete*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ChildrenDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ChildrenGetCall.html), [*insert*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ChildrenInsertCall.html) and [*list*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ChildrenListCall.html) +* [comments](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.Comment.html) + * [*delete*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.CommentDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.CommentGetCall.html), [*insert*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.CommentInsertCall.html), [*list*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.CommentListCall.html), [*patch*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.CommentPatchCall.html) and [*update*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.CommentUpdateCall.html) +* [drives](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.Drive.html) + * [*delete*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.DriveDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.DriveGetCall.html), [*hide*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.DriveHideCall.html), [*insert*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.DriveInsertCall.html), [*list*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.DriveListCall.html), [*unhide*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.DriveUnhideCall.html) and [*update*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.DriveUpdateCall.html) +* [files](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.File.html) + * [*copy*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileCopyCall.html), [*delete*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileDeleteCall.html), [*empty trash*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileEmptyTrashCall.html), [*export*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileExportCall.html), [*generate ids*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileGenerateIdCall.html), [*get*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileGetCall.html), [*insert*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileInsertCall.html), [*list*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileListCall.html), [*patch*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FilePatchCall.html), [*touch*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileTouchCall.html), [*trash*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileTrashCall.html), [*untrash*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileUntrashCall.html), [*update*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileUpdateCall.html) and [*watch*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileWatchCall.html) * parents - * [*delete*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ParentDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ParentGetCall.html), [*insert*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ParentInsertCall.html) and [*list*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ParentListCall.html) -* [permissions](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.Permission.html) - * [*delete*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.PermissionDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.PermissionGetCall.html), [*get id for email*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.PermissionGetIdForEmailCall.html), [*insert*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.PermissionInsertCall.html), [*list*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.PermissionListCall.html), [*patch*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.PermissionPatchCall.html) and [*update*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.PermissionUpdateCall.html) -* [properties](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.Property.html) - * [*delete*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.PropertyDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.PropertyGetCall.html), [*insert*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.PropertyInsertCall.html), [*list*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.PropertyListCall.html), [*patch*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.PropertyPatchCall.html) and [*update*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.PropertyUpdateCall.html) + * [*delete*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ParentDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ParentGetCall.html), [*insert*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ParentInsertCall.html) and [*list*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ParentListCall.html) +* [permissions](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.Permission.html) + * [*delete*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.PermissionDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.PermissionGetCall.html), [*get id for email*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.PermissionGetIdForEmailCall.html), [*insert*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.PermissionInsertCall.html), [*list*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.PermissionListCall.html), [*patch*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.PermissionPatchCall.html) and [*update*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.PermissionUpdateCall.html) +* [properties](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.Property.html) + * [*delete*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.PropertyDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.PropertyGetCall.html), [*insert*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.PropertyInsertCall.html), [*list*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.PropertyListCall.html), [*patch*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.PropertyPatchCall.html) and [*update*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.PropertyUpdateCall.html) * realtime - * [*get*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.RealtimeGetCall.html) and [*update*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.RealtimeUpdateCall.html) + * [*get*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.RealtimeGetCall.html) and [*update*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.RealtimeUpdateCall.html) * replies - * [*delete*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ReplyDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ReplyGetCall.html), [*insert*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ReplyInsertCall.html), [*list*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ReplyListCall.html), [*patch*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ReplyPatchCall.html) and [*update*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ReplyUpdateCall.html) -* [revisions](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.Revision.html) - * [*delete*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.RevisionDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.RevisionGetCall.html), [*list*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.RevisionListCall.html), [*patch*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.RevisionPatchCall.html) and [*update*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.RevisionUpdateCall.html) + * [*delete*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ReplyDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ReplyGetCall.html), [*insert*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ReplyInsertCall.html), [*list*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ReplyListCall.html), [*patch*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ReplyPatchCall.html) and [*update*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ReplyUpdateCall.html) +* [revisions](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.Revision.html) + * [*delete*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.RevisionDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.RevisionGetCall.html), [*list*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.RevisionListCall.html), [*patch*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.RevisionPatchCall.html) and [*update*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.RevisionUpdateCall.html) * teamdrives - * [*delete*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.TeamdriveDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.TeamdriveGetCall.html), [*insert*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.TeamdriveInsertCall.html), [*list*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.TeamdriveListCall.html) and [*update*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.TeamdriveUpdateCall.html) + * [*delete*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.TeamdriveDeleteCall.html), [*get*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.TeamdriveGetCall.html), [*insert*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.TeamdriveInsertCall.html), [*list*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.TeamdriveListCall.html) and [*update*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.TeamdriveUpdateCall.html) Upload supported by ... -* [*update files*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileUpdateCall.html) -* [*insert files*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileInsertCall.html) -* [*update realtime*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.RealtimeUpdateCall.html) +* [*update files*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileUpdateCall.html) +* [*insert files*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileInsertCall.html) +* [*update realtime*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.RealtimeUpdateCall.html) Download supported by ... -* [*watch files*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileWatchCall.html) -* [*get realtime*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.RealtimeGetCall.html) -* [*get files*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileGetCall.html) -* [*export files*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileExportCall.html) +* [*watch files*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileWatchCall.html) +* [*get realtime*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.RealtimeGetCall.html) +* [*get files*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileGetCall.html) +* [*export files*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileExportCall.html) Subscription supported by ... -* [*watch files*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileWatchCall.html) -* [*insert files*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileInsertCall.html) -* [*get files*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.FileGetCall.html) -* [*watch changes*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ChangeWatchCall.html) -* [*list changes*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.ChangeListCall.html) +* [*watch files*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileWatchCall.html) +* [*insert files*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileInsertCall.html) +* [*get files*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.FileGetCall.html) +* [*watch changes*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ChangeWatchCall.html) +* [*list changes*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.ChangeListCall.html) @@ -72,17 +72,17 @@ Subscription supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/struct.DriveHub.html)** +* **[Hub](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/struct.DriveHub.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.Part.html)** + * **[Parts](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -207,17 +207,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -227,29 +227,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-drive2/1.0.11+20190620/google_drive2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-drive2/1.0.12+20190620/google_drive2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/drive2/src/lib.rs b/gen/drive2/src/lib.rs index 526fa19e76..501a705c56 100644 --- a/gen/drive2/src/lib.rs +++ b/gen/drive2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *drive* crate version *1.0.11+20190620*, where *20190620* is the exact revision of the *drive:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *drive* crate version *1.0.12+20190620*, where *20190620* is the exact revision of the *drive:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *drive* *v2* API can be found at the //! [official documentation site](https://developers.google.com/drive/). @@ -453,7 +453,7 @@ impl<'a, C, A> DriveHub DriveHub { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/drive/v2/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -506,7 +506,7 @@ impl<'a, C, A> DriveHub } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/drive3-cli/Cargo.toml b/gen/drive3-cli/Cargo.toml index 7007ea75dd..8b8f546482 100644 --- a/gen/drive3-cli/Cargo.toml +++ b/gen/drive3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-drive3-cli" -version = "1.0.11+20190620" +version = "1.0.12+20190620" authors = ["Sebastian Thiel "] description = "A complete library to interact with drive (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/drive3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-drive3] path = "../drive3" -version = "1.0.11+20190620" +version = "1.0.12+20190620" diff --git a/gen/drive3-cli/LICENSE.md b/gen/drive3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/drive3-cli/LICENSE.md +++ b/gen/drive3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/drive3-cli/README.md b/gen/drive3-cli/README.md index 1a73fcbec5..0b790ea897 100644 --- a/gen/drive3-cli/README.md +++ b/gen/drive3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *drive* API at revision *20190620*. The CLI is at version *1.0.11*. +This documentation was generated from the *drive* API at revision *20190620*. The CLI is at version *1.0.12*. ```bash drive3 [options] diff --git a/gen/drive3-cli/mkdocs.yml b/gen/drive3-cli/mkdocs.yml index b7ea2f612b..1c0068039f 100644 --- a/gen/drive3-cli/mkdocs.yml +++ b/gen/drive3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: drive v1.0.11+20190620 +site_name: drive v1.0.12+20190620 site_url: http://byron.github.io/google-apis-rs/google-drive3-cli site_description: A complete library to interact with drive (protocol v3) @@ -58,5 +58,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/drive3-cli/src/cmn.rs b/gen/drive3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/drive3-cli/src/cmn.rs +++ b/gen/drive3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/drive3-cli/src/main.rs b/gen/drive3-cli/src/main.rs index 76ca9676ae..506ab42406 100644 --- a/gen/drive3-cli/src/main.rs +++ b/gen/drive3-cli/src/main.rs @@ -5417,7 +5417,7 @@ fn main() { let mut app = App::new("drive3") .author("Sebastian Thiel ") - .version("1.0.11+20190620") + .version("1.0.12+20190620") .about("Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_drive3_cli") .arg(Arg::with_name("url") diff --git a/gen/drive3/Cargo.toml b/gen/drive3/Cargo.toml index c5250c236b..26c09db405 100644 --- a/gen/drive3/Cargo.toml +++ b/gen/drive3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-drive3" -version = "1.0.11+20190620" +version = "1.0.12+20190620" authors = ["Sebastian Thiel "] description = "A complete library to interact with drive (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/drive3" homepage = "https://developers.google.com/drive/" -documentation = "https://docs.rs/google-drive3/1.0.11+20190620" +documentation = "https://docs.rs/google-drive3/1.0.12+20190620" license = "MIT" keywords = ["drive", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/drive3/LICENSE.md b/gen/drive3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/drive3/LICENSE.md +++ b/gen/drive3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/drive3/README.md b/gen/drive3/README.md index 21199c51e9..5aa7aa0dc4 100644 --- a/gen/drive3/README.md +++ b/gen/drive3/README.md @@ -5,55 +5,55 @@ DO NOT EDIT ! --> The `google-drive3` library allows access to all features of the *Google drive* service. -This documentation was generated from *drive* crate version *1.0.11+20190620*, where *20190620* is the exact revision of the *drive:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *drive* crate version *1.0.12+20190620*, where *20190620* is the exact revision of the *drive:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *drive* *v3* API can be found at the [official documentation site](https://developers.google.com/drive/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.DriveHub.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.DriveHub.html) ... -* [about](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.About.html) - * [*get*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.AboutGetCall.html) -* [changes](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.Change.html) - * [*get start page token*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.ChangeGetStartPageTokenCall.html), [*list*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.ChangeListCall.html) and [*watch*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.ChangeWatchCall.html) -* [channels](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.Channel.html) - * [*stop*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.ChannelStopCall.html) -* [comments](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.Comment.html) - * [*create*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.CommentCreateCall.html), [*delete*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.CommentDeleteCall.html), [*get*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.CommentGetCall.html), [*list*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.CommentListCall.html) and [*update*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.CommentUpdateCall.html) -* [drives](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.Drive.html) - * [*create*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.DriveCreateCall.html), [*delete*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.DriveDeleteCall.html), [*get*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.DriveGetCall.html), [*hide*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.DriveHideCall.html), [*list*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.DriveListCall.html), [*unhide*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.DriveUnhideCall.html) and [*update*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.DriveUpdateCall.html) -* [files](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.File.html) - * [*copy*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileCopyCall.html), [*create*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileCreateCall.html), [*delete*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileDeleteCall.html), [*empty trash*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileEmptyTrashCall.html), [*export*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileExportCall.html), [*generate ids*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileGenerateIdCall.html), [*get*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileGetCall.html), [*list*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileListCall.html), [*update*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileUpdateCall.html) and [*watch*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileWatchCall.html) -* [permissions](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.Permission.html) - * [*create*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.PermissionCreateCall.html), [*delete*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.PermissionDeleteCall.html), [*get*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.PermissionGetCall.html), [*list*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.PermissionListCall.html) and [*update*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.PermissionUpdateCall.html) -* [replies](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.Reply.html) - * [*create*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.ReplyCreateCall.html), [*delete*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.ReplyDeleteCall.html), [*get*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.ReplyGetCall.html), [*list*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.ReplyListCall.html) and [*update*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.ReplyUpdateCall.html) -* [revisions](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.Revision.html) - * [*delete*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.RevisionDeleteCall.html), [*get*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.RevisionGetCall.html), [*list*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.RevisionListCall.html) and [*update*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.RevisionUpdateCall.html) +* [about](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.About.html) + * [*get*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.AboutGetCall.html) +* [changes](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.Change.html) + * [*get start page token*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.ChangeGetStartPageTokenCall.html), [*list*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.ChangeListCall.html) and [*watch*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.ChangeWatchCall.html) +* [channels](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.Channel.html) + * [*stop*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.ChannelStopCall.html) +* [comments](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.Comment.html) + * [*create*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.CommentCreateCall.html), [*delete*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.CommentDeleteCall.html), [*get*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.CommentGetCall.html), [*list*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.CommentListCall.html) and [*update*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.CommentUpdateCall.html) +* [drives](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.Drive.html) + * [*create*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.DriveCreateCall.html), [*delete*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.DriveDeleteCall.html), [*get*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.DriveGetCall.html), [*hide*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.DriveHideCall.html), [*list*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.DriveListCall.html), [*unhide*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.DriveUnhideCall.html) and [*update*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.DriveUpdateCall.html) +* [files](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.File.html) + * [*copy*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileCopyCall.html), [*create*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileCreateCall.html), [*delete*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileDeleteCall.html), [*empty trash*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileEmptyTrashCall.html), [*export*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileExportCall.html), [*generate ids*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileGenerateIdCall.html), [*get*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileGetCall.html), [*list*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileListCall.html), [*update*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileUpdateCall.html) and [*watch*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileWatchCall.html) +* [permissions](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.Permission.html) + * [*create*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.PermissionCreateCall.html), [*delete*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.PermissionDeleteCall.html), [*get*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.PermissionGetCall.html), [*list*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.PermissionListCall.html) and [*update*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.PermissionUpdateCall.html) +* [replies](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.Reply.html) + * [*create*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.ReplyCreateCall.html), [*delete*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.ReplyDeleteCall.html), [*get*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.ReplyGetCall.html), [*list*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.ReplyListCall.html) and [*update*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.ReplyUpdateCall.html) +* [revisions](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.Revision.html) + * [*delete*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.RevisionDeleteCall.html), [*get*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.RevisionGetCall.html), [*list*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.RevisionListCall.html) and [*update*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.RevisionUpdateCall.html) * teamdrives - * [*create*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.TeamdriveCreateCall.html), [*delete*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.TeamdriveDeleteCall.html), [*get*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.TeamdriveGetCall.html), [*list*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.TeamdriveListCall.html) and [*update*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.TeamdriveUpdateCall.html) + * [*create*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.TeamdriveCreateCall.html), [*delete*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.TeamdriveDeleteCall.html), [*get*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.TeamdriveGetCall.html), [*list*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.TeamdriveListCall.html) and [*update*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.TeamdriveUpdateCall.html) Upload supported by ... -* [*update files*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileUpdateCall.html) -* [*create files*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileCreateCall.html) +* [*update files*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileUpdateCall.html) +* [*create files*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileCreateCall.html) Download supported by ... -* [*watch files*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileWatchCall.html) -* [*export files*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileExportCall.html) -* [*get revisions*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.RevisionGetCall.html) -* [*get files*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileGetCall.html) +* [*watch files*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileWatchCall.html) +* [*export files*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileExportCall.html) +* [*get revisions*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.RevisionGetCall.html) +* [*get files*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileGetCall.html) Subscription supported by ... -* [*watch files*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileWatchCall.html) -* [*list changes*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.ChangeListCall.html) -* [*create files*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileCreateCall.html) -* [*get files*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.FileGetCall.html) -* [*watch changes*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.ChangeWatchCall.html) +* [*watch files*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileWatchCall.html) +* [*list changes*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.ChangeListCall.html) +* [*create files*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileCreateCall.html) +* [*get files*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.FileGetCall.html) +* [*watch changes*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.ChangeWatchCall.html) @@ -61,17 +61,17 @@ Subscription supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/struct.DriveHub.html)** +* **[Hub](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/struct.DriveHub.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.Part.html)** + * **[Parts](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -184,17 +184,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -204,29 +204,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-drive3/1.0.11+20190620/google_drive3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-drive3/1.0.12+20190620/google_drive3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/drive3/src/lib.rs b/gen/drive3/src/lib.rs index 177e38ff8b..e73991cdf5 100644 --- a/gen/drive3/src/lib.rs +++ b/gen/drive3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *drive* crate version *1.0.11+20190620*, where *20190620* is the exact revision of the *drive:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *drive* crate version *1.0.12+20190620*, where *20190620* is the exact revision of the *drive:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *drive* *v3* API can be found at the //! [official documentation site](https://developers.google.com/drive/). @@ -418,7 +418,7 @@ impl<'a, C, A> DriveHub DriveHub { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/drive/v3/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -456,7 +456,7 @@ impl<'a, C, A> DriveHub } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/driveactivity2-cli/Cargo.toml b/gen/driveactivity2-cli/Cargo.toml index ce89fb6b77..9a3abf847e 100644 --- a/gen/driveactivity2-cli/Cargo.toml +++ b/gen/driveactivity2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-driveactivity2-cli" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Drive Activity (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/driveactivity2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-driveactivity2] path = "../driveactivity2" -version = "1.0.11+20190702" +version = "1.0.12+20190702" diff --git a/gen/driveactivity2-cli/LICENSE.md b/gen/driveactivity2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/driveactivity2-cli/LICENSE.md +++ b/gen/driveactivity2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/driveactivity2-cli/README.md b/gen/driveactivity2-cli/README.md index 7fbd1c6cf2..5d2b1551df 100644 --- a/gen/driveactivity2-cli/README.md +++ b/gen/driveactivity2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Drive Activity* API at revision *20190702*. The CLI is at version *1.0.11*. +This documentation was generated from the *Drive Activity* API at revision *20190702*. The CLI is at version *1.0.12*. ```bash driveactivity2 [options] diff --git a/gen/driveactivity2-cli/mkdocs.yml b/gen/driveactivity2-cli/mkdocs.yml index b4597ee1fc..053f4f245c 100644 --- a/gen/driveactivity2-cli/mkdocs.yml +++ b/gen/driveactivity2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Drive Activity v1.0.11+20190702 +site_name: Drive Activity v1.0.12+20190702 site_url: http://byron.github.io/google-apis-rs/google-driveactivity2-cli site_description: A complete library to interact with Drive Activity (protocol v2) @@ -13,5 +13,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/driveactivity2-cli/src/cmn.rs b/gen/driveactivity2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/driveactivity2-cli/src/cmn.rs +++ b/gen/driveactivity2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/driveactivity2-cli/src/main.rs b/gen/driveactivity2-cli/src/main.rs index 89a9d6214a..a565fd2922 100644 --- a/gen/driveactivity2-cli/src/main.rs +++ b/gen/driveactivity2-cli/src/main.rs @@ -265,7 +265,7 @@ fn main() { let mut app = App::new("driveactivity2") .author("Sebastian Thiel ") - .version("1.0.11+20190702") + .version("1.0.12+20190702") .about("Provides a historical view of activity in Google Drive.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_driveactivity2_cli") .arg(Arg::with_name("url") diff --git a/gen/driveactivity2/Cargo.toml b/gen/driveactivity2/Cargo.toml index 348e88da90..345f66ef8d 100644 --- a/gen/driveactivity2/Cargo.toml +++ b/gen/driveactivity2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-driveactivity2" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Drive Activity (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/driveactivity2" homepage = "https://developers.google.com/drive/activity/" -documentation = "https://docs.rs/google-driveactivity2/1.0.11+20190702" +documentation = "https://docs.rs/google-driveactivity2/1.0.12+20190702" license = "MIT" keywords = ["driveactivity", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/driveactivity2/LICENSE.md b/gen/driveactivity2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/driveactivity2/LICENSE.md +++ b/gen/driveactivity2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/driveactivity2/README.md b/gen/driveactivity2/README.md index da14ee1596..a4ac48d38b 100644 --- a/gen/driveactivity2/README.md +++ b/gen/driveactivity2/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-driveactivity2` library allows access to all features of the *Google Drive Activity* service. -This documentation was generated from *Drive Activity* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *driveactivity:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Drive Activity* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *driveactivity:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Drive Activity* *v2* API can be found at the [official documentation site](https://developers.google.com/drive/activity/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/struct.DriveActivityHub.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/struct.DriveActivityHub.html) ... * activity - * [*query*](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/struct.ActivityQueryCall.html) + * [*query*](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/struct.ActivityQueryCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/struct.DriveActivityHub.html)** +* **[Hub](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/struct.DriveActivityHub.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.Part.html)** + * **[Parts](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -130,17 +130,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-driveactivity2/1.0.11+20190702/google_driveactivity2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-driveactivity2/1.0.12+20190702/google_driveactivity2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/driveactivity2/src/lib.rs b/gen/driveactivity2/src/lib.rs index 7579336615..831076ca1f 100644 --- a/gen/driveactivity2/src/lib.rs +++ b/gen/driveactivity2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Drive Activity* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *driveactivity:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Drive Activity* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *driveactivity:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Drive Activity* *v2* API can be found at the //! [official documentation site](https://developers.google.com/drive/activity/). @@ -333,7 +333,7 @@ impl<'a, C, A> DriveActivityHub DriveActivityHub { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://driveactivity.googleapis.com/".to_string(), _root_url: "https://driveactivity.googleapis.com/".to_string(), } @@ -344,7 +344,7 @@ impl<'a, C, A> DriveActivityHub } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/factchecktools1_alpha1-cli/Cargo.toml b/gen/factchecktools1_alpha1-cli/Cargo.toml index 394bc7cd0b..87e81838d5 100644 --- a/gen/factchecktools1_alpha1-cli/Cargo.toml +++ b/gen/factchecktools1_alpha1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-factchecktools1_alpha1-cli" -version = "1.0.11+20190703" +version = "1.0.12+20190703" authors = ["Sebastian Thiel "] description = "A complete library to interact with Fact Check Tools (protocol v1alpha1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/factchecktools1_alpha1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-factchecktools1_alpha1] path = "../factchecktools1_alpha1" -version = "1.0.11+20190703" +version = "1.0.12+20190703" diff --git a/gen/factchecktools1_alpha1-cli/LICENSE.md b/gen/factchecktools1_alpha1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/factchecktools1_alpha1-cli/LICENSE.md +++ b/gen/factchecktools1_alpha1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/factchecktools1_alpha1-cli/README.md b/gen/factchecktools1_alpha1-cli/README.md index ef4973856f..6a03fd004a 100644 --- a/gen/factchecktools1_alpha1-cli/README.md +++ b/gen/factchecktools1_alpha1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Fact Check Tools* API at revision *20190703*. The CLI is at version *1.0.11*. +This documentation was generated from the *Fact Check Tools* API at revision *20190703*. The CLI is at version *1.0.12*. ```bash factchecktools1-alpha1 [options] diff --git a/gen/factchecktools1_alpha1-cli/mkdocs.yml b/gen/factchecktools1_alpha1-cli/mkdocs.yml index adc2509c15..b0064213c2 100644 --- a/gen/factchecktools1_alpha1-cli/mkdocs.yml +++ b/gen/factchecktools1_alpha1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Fact Check Tools v1.0.11+20190703 +site_name: Fact Check Tools v1.0.12+20190703 site_url: http://byron.github.io/google-apis-rs/google-factchecktools1_alpha1-cli site_description: A complete library to interact with Fact Check Tools (protocol v1alpha1) @@ -18,5 +18,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/factchecktools1_alpha1-cli/src/cmn.rs b/gen/factchecktools1_alpha1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/factchecktools1_alpha1-cli/src/cmn.rs +++ b/gen/factchecktools1_alpha1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/factchecktools1_alpha1-cli/src/main.rs b/gen/factchecktools1_alpha1-cli/src/main.rs index b3b43074e7..003c5631b6 100644 --- a/gen/factchecktools1_alpha1-cli/src/main.rs +++ b/gen/factchecktools1_alpha1-cli/src/main.rs @@ -737,7 +737,7 @@ fn main() { let mut app = App::new("factchecktools1-alpha1") .author("Sebastian Thiel ") - .version("1.0.11+20190703") + .version("1.0.12+20190703") .about("") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_factchecktools1_alpha1_cli") .arg(Arg::with_name("url") diff --git a/gen/factchecktools1_alpha1/Cargo.toml b/gen/factchecktools1_alpha1/Cargo.toml index e824ad68cd..777e4db2f5 100644 --- a/gen/factchecktools1_alpha1/Cargo.toml +++ b/gen/factchecktools1_alpha1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-factchecktools1_alpha1" -version = "1.0.11+20190703" +version = "1.0.12+20190703" authors = ["Sebastian Thiel "] description = "A complete library to interact with Fact Check Tools (protocol v1alpha1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/factchecktools1_alpha1" homepage = "https://developers.google.com/fact-check/tools/api/" -documentation = "https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703" +documentation = "https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703" license = "MIT" keywords = ["factchecktools", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/factchecktools1_alpha1/LICENSE.md b/gen/factchecktools1_alpha1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/factchecktools1_alpha1/LICENSE.md +++ b/gen/factchecktools1_alpha1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/factchecktools1_alpha1/README.md b/gen/factchecktools1_alpha1/README.md index ec530d1349..4080a1858b 100644 --- a/gen/factchecktools1_alpha1/README.md +++ b/gen/factchecktools1_alpha1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-factchecktools1_alpha1` library allows access to all features of the *Google Fact Check Tools* service. -This documentation was generated from *Fact Check Tools* crate version *1.0.11+20190703*, where *20190703* is the exact revision of the *factchecktools:v1alpha1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Fact Check Tools* crate version *1.0.12+20190703*, where *20190703* is the exact revision of the *factchecktools:v1alpha1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Fact Check Tools* *v1_alpha1* API can be found at the [official documentation site](https://developers.google.com/fact-check/tools/api/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/struct.FactCheckTools.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/struct.FactCheckTools.html) ... * claims - * [*search*](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/struct.ClaimSearchCall.html) + * [*search*](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/struct.ClaimSearchCall.html) * pages - * [*create*](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/struct.PageCreateCall.html), [*delete*](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/struct.PageDeleteCall.html), [*get*](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/struct.PageGetCall.html), [*list*](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/struct.PageListCall.html) and [*update*](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/struct.PageUpdateCall.html) + * [*create*](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/struct.PageCreateCall.html), [*delete*](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/struct.PageDeleteCall.html), [*get*](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/struct.PageGetCall.html), [*list*](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/struct.PageListCall.html) and [*update*](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/struct.PageUpdateCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/struct.FactCheckTools.html)** +* **[Hub](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/struct.FactCheckTools.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.Part.html)** + * **[Parts](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -134,17 +134,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -154,29 +154,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-factchecktools1_alpha1/1.0.11+20190703/google_factchecktools1_alpha1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-factchecktools1_alpha1/1.0.12+20190703/google_factchecktools1_alpha1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/factchecktools1_alpha1/src/lib.rs b/gen/factchecktools1_alpha1/src/lib.rs index e14b78886f..2c6d827180 100644 --- a/gen/factchecktools1_alpha1/src/lib.rs +++ b/gen/factchecktools1_alpha1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Fact Check Tools* crate version *1.0.11+20190703*, where *20190703* is the exact revision of the *factchecktools:v1alpha1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Fact Check Tools* crate version *1.0.12+20190703*, where *20190703* is the exact revision of the *factchecktools:v1alpha1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Fact Check Tools* *v1_alpha1* API can be found at the //! [official documentation site](https://developers.google.com/fact-check/tools/api/). @@ -333,7 +333,7 @@ impl<'a, C, A> FactCheckTools FactCheckTools { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://factchecktools.googleapis.com/".to_string(), _root_url: "https://factchecktools.googleapis.com/".to_string(), } @@ -347,7 +347,7 @@ impl<'a, C, A> FactCheckTools } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/fcm1-cli/Cargo.toml b/gen/fcm1-cli/Cargo.toml index d57e9218d4..9e28e7be43 100644 --- a/gen/fcm1-cli/Cargo.toml +++ b/gen/fcm1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-fcm1-cli" -version = "1.0.11+20190703" +version = "1.0.12+20190703" authors = ["Sebastian Thiel "] description = "A complete library to interact with Firebase Cloud Messaging (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/fcm1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-fcm1] path = "../fcm1" -version = "1.0.11+20190703" +version = "1.0.12+20190703" diff --git a/gen/fcm1-cli/LICENSE.md b/gen/fcm1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/fcm1-cli/LICENSE.md +++ b/gen/fcm1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/fcm1-cli/README.md b/gen/fcm1-cli/README.md index addf824750..077286d696 100644 --- a/gen/fcm1-cli/README.md +++ b/gen/fcm1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Firebase Cloud Messaging* API at revision *20190703*. The CLI is at version *1.0.11*. +This documentation was generated from the *Firebase Cloud Messaging* API at revision *20190703*. The CLI is at version *1.0.12*. ```bash fcm1 [options] diff --git a/gen/fcm1-cli/mkdocs.yml b/gen/fcm1-cli/mkdocs.yml index 5fc8bad6e1..b1b8af6f4e 100644 --- a/gen/fcm1-cli/mkdocs.yml +++ b/gen/fcm1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Firebase Cloud Messaging v1.0.11+20190703 +site_name: Firebase Cloud Messaging v1.0.12+20190703 site_url: http://byron.github.io/google-apis-rs/google-fcm1-cli site_description: A complete library to interact with Firebase Cloud Messaging (protocol v1) @@ -13,5 +13,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/fcm1-cli/src/cmn.rs b/gen/fcm1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/fcm1-cli/src/cmn.rs +++ b/gen/fcm1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/fcm1-cli/src/main.rs b/gen/fcm1-cli/src/main.rs index 774b31228d..a8807b9f5d 100644 --- a/gen/fcm1-cli/src/main.rs +++ b/gen/fcm1-cli/src/main.rs @@ -302,7 +302,7 @@ fn main() { let mut app = App::new("fcm1") .author("Sebastian Thiel ") - .version("1.0.11+20190703") + .version("1.0.12+20190703") .about("FCM send API that provides a cross-platform messaging solution to reliably deliver messages at no cost.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_fcm1_cli") .arg(Arg::with_name("url") diff --git a/gen/fcm1/Cargo.toml b/gen/fcm1/Cargo.toml index 2b9b2361b5..5ef91902a0 100644 --- a/gen/fcm1/Cargo.toml +++ b/gen/fcm1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-fcm1" -version = "1.0.11+20190703" +version = "1.0.12+20190703" authors = ["Sebastian Thiel "] description = "A complete library to interact with Firebase Cloud Messaging (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/fcm1" homepage = "https://firebase.google.com/docs/cloud-messaging" -documentation = "https://docs.rs/google-fcm1/1.0.11+20190703" +documentation = "https://docs.rs/google-fcm1/1.0.12+20190703" license = "MIT" keywords = ["fcm", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/fcm1/LICENSE.md b/gen/fcm1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/fcm1/LICENSE.md +++ b/gen/fcm1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/fcm1/README.md b/gen/fcm1/README.md index d827461b81..da5667fc6b 100644 --- a/gen/fcm1/README.md +++ b/gen/fcm1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-fcm1` library allows access to all features of the *Google Firebase Cloud Messaging* service. -This documentation was generated from *Firebase Cloud Messaging* crate version *1.0.11+20190703*, where *20190703* is the exact revision of the *fcm:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Firebase Cloud Messaging* crate version *1.0.12+20190703*, where *20190703* is the exact revision of the *fcm:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Firebase Cloud Messaging* *v1* API can be found at the [official documentation site](https://firebase.google.com/docs/cloud-messaging). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/struct.FirebaseCloudMessaging.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/struct.FirebaseCloudMessaging.html) ... * projects - * [*messages send*](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/struct.ProjectMessageSendCall.html) + * [*messages send*](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/struct.ProjectMessageSendCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/struct.FirebaseCloudMessaging.html)** +* **[Hub](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/struct.FirebaseCloudMessaging.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.Part.html)** + * **[Parts](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -130,17 +130,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-fcm1/1.0.11+20190703/google_fcm1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-fcm1/1.0.12+20190703/google_fcm1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/fcm1/src/lib.rs b/gen/fcm1/src/lib.rs index 899fb6b577..982737e8cf 100644 --- a/gen/fcm1/src/lib.rs +++ b/gen/fcm1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Firebase Cloud Messaging* crate version *1.0.11+20190703*, where *20190703* is the exact revision of the *fcm:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Firebase Cloud Messaging* crate version *1.0.12+20190703*, where *20190703* is the exact revision of the *fcm:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Firebase Cloud Messaging* *v1* API can be found at the //! [official documentation site](https://firebase.google.com/docs/cloud-messaging). @@ -329,7 +329,7 @@ impl<'a, C, A> FirebaseCloudMessaging FirebaseCloudMessaging { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://fcm.googleapis.com/".to_string(), _root_url: "https://fcm.googleapis.com/".to_string(), } @@ -340,7 +340,7 @@ impl<'a, C, A> FirebaseCloudMessaging } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/file1-cli/Cargo.toml b/gen/file1-cli/Cargo.toml index ae701383b2..7d8f65fe82 100644 --- a/gen/file1-cli/Cargo.toml +++ b/gen/file1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-file1-cli" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Filestore (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/file1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-file1] path = "../file1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" diff --git a/gen/file1-cli/LICENSE.md b/gen/file1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/file1-cli/LICENSE.md +++ b/gen/file1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/file1-cli/README.md b/gen/file1-cli/README.md index e114c6dd80..cee16db9ae 100644 --- a/gen/file1-cli/README.md +++ b/gen/file1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Filestore* API at revision *20190627*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Filestore* API at revision *20190627*. The CLI is at version *1.0.12*. ```bash file1 [options] diff --git a/gen/file1-cli/mkdocs.yml b/gen/file1-cli/mkdocs.yml index bb6cf36074..78c6e11d65 100644 --- a/gen/file1-cli/mkdocs.yml +++ b/gen/file1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Filestore v1.0.11+20190627 +site_name: Cloud Filestore v1.0.12+20190627 site_url: http://byron.github.io/google-apis-rs/google-file1-cli site_description: A complete library to interact with Cloud Filestore (protocol v1) @@ -23,5 +23,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/file1-cli/src/cmn.rs b/gen/file1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/file1-cli/src/cmn.rs +++ b/gen/file1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/file1-cli/src/main.rs b/gen/file1-cli/src/main.rs index e35776bb2f..f5bf4b51fe 100644 --- a/gen/file1-cli/src/main.rs +++ b/gen/file1-cli/src/main.rs @@ -1202,7 +1202,7 @@ fn main() { let mut app = App::new("file1") .author("Sebastian Thiel ") - .version("1.0.11+20190627") + .version("1.0.12+20190627") .about("The Cloud Filestore API is used for creating and managing cloud file servers.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_file1_cli") .arg(Arg::with_name("url") diff --git a/gen/file1/Cargo.toml b/gen/file1/Cargo.toml index 541791d124..9f639f9fb0 100644 --- a/gen/file1/Cargo.toml +++ b/gen/file1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-file1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Filestore (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/file1" homepage = "https://cloud.google.com/filestore/" -documentation = "https://docs.rs/google-file1/1.0.11+20190627" +documentation = "https://docs.rs/google-file1/1.0.12+20190627" license = "MIT" keywords = ["file", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/file1/LICENSE.md b/gen/file1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/file1/LICENSE.md +++ b/gen/file1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/file1/README.md b/gen/file1/README.md index 8322ed96e8..7062f4a197 100644 --- a/gen/file1/README.md +++ b/gen/file1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-file1` library allows access to all features of the *Google Cloud Filestore* service. -This documentation was generated from *Cloud Filestore* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *file:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Filestore* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *file:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Filestore* *v1* API can be found at the [official documentation site](https://cloud.google.com/filestore/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-file1/1.0.11+20190627/google_file1/struct.CloudFilestore.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-file1/1.0.12+20190627/google_file1/struct.CloudFilestore.html) ... * projects - * [*locations get*](https://docs.rs/google-file1/1.0.11+20190627/google_file1/struct.ProjectLocationGetCall.html), [*locations instances create*](https://docs.rs/google-file1/1.0.11+20190627/google_file1/struct.ProjectLocationInstanceCreateCall.html), [*locations instances delete*](https://docs.rs/google-file1/1.0.11+20190627/google_file1/struct.ProjectLocationInstanceDeleteCall.html), [*locations instances get*](https://docs.rs/google-file1/1.0.11+20190627/google_file1/struct.ProjectLocationInstanceGetCall.html), [*locations instances list*](https://docs.rs/google-file1/1.0.11+20190627/google_file1/struct.ProjectLocationInstanceListCall.html), [*locations instances patch*](https://docs.rs/google-file1/1.0.11+20190627/google_file1/struct.ProjectLocationInstancePatchCall.html), [*locations list*](https://docs.rs/google-file1/1.0.11+20190627/google_file1/struct.ProjectLocationListCall.html), [*locations operations cancel*](https://docs.rs/google-file1/1.0.11+20190627/google_file1/struct.ProjectLocationOperationCancelCall.html), [*locations operations delete*](https://docs.rs/google-file1/1.0.11+20190627/google_file1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-file1/1.0.11+20190627/google_file1/struct.ProjectLocationOperationGetCall.html) and [*locations operations list*](https://docs.rs/google-file1/1.0.11+20190627/google_file1/struct.ProjectLocationOperationListCall.html) + * [*locations get*](https://docs.rs/google-file1/1.0.12+20190627/google_file1/struct.ProjectLocationGetCall.html), [*locations instances create*](https://docs.rs/google-file1/1.0.12+20190627/google_file1/struct.ProjectLocationInstanceCreateCall.html), [*locations instances delete*](https://docs.rs/google-file1/1.0.12+20190627/google_file1/struct.ProjectLocationInstanceDeleteCall.html), [*locations instances get*](https://docs.rs/google-file1/1.0.12+20190627/google_file1/struct.ProjectLocationInstanceGetCall.html), [*locations instances list*](https://docs.rs/google-file1/1.0.12+20190627/google_file1/struct.ProjectLocationInstanceListCall.html), [*locations instances patch*](https://docs.rs/google-file1/1.0.12+20190627/google_file1/struct.ProjectLocationInstancePatchCall.html), [*locations list*](https://docs.rs/google-file1/1.0.12+20190627/google_file1/struct.ProjectLocationListCall.html), [*locations operations cancel*](https://docs.rs/google-file1/1.0.12+20190627/google_file1/struct.ProjectLocationOperationCancelCall.html), [*locations operations delete*](https://docs.rs/google-file1/1.0.12+20190627/google_file1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-file1/1.0.12+20190627/google_file1/struct.ProjectLocationOperationGetCall.html) and [*locations operations list*](https://docs.rs/google-file1/1.0.12+20190627/google_file1/struct.ProjectLocationOperationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-file1/1.0.11+20190627/google_file1/struct.CloudFilestore.html)** +* **[Hub](https://docs.rs/google-file1/1.0.12+20190627/google_file1/struct.CloudFilestore.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.Part.html)** + * **[Parts](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -134,17 +134,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-file1/1.0.11+20190627/google_file1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-file1/1.0.12+20190627/google_file1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-file1/1.0.11+20190627/google_file1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-file1/1.0.12+20190627/google_file1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -154,29 +154,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-file1/1.0.11+20190627/google_file1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-file1/1.0.12+20190627/google_file1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/file1/src/lib.rs b/gen/file1/src/lib.rs index 827701e892..c661cbaeb1 100644 --- a/gen/file1/src/lib.rs +++ b/gen/file1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Filestore* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *file:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Filestore* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *file:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Filestore* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/filestore/). @@ -334,7 +334,7 @@ impl<'a, C, A> CloudFilestore CloudFilestore { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://file.googleapis.com/".to_string(), _root_url: "https://file.googleapis.com/".to_string(), } @@ -345,7 +345,7 @@ impl<'a, C, A> CloudFilestore } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/file1_beta1-cli/Cargo.toml b/gen/file1_beta1-cli/Cargo.toml index cbc9122cc7..72248888b8 100644 --- a/gen/file1_beta1-cli/Cargo.toml +++ b/gen/file1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-file1_beta1-cli" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Filestore (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/file1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-file1_beta1] path = "../file1_beta1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" diff --git a/gen/file1_beta1-cli/LICENSE.md b/gen/file1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/file1_beta1-cli/LICENSE.md +++ b/gen/file1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/file1_beta1-cli/README.md b/gen/file1_beta1-cli/README.md index fcd18983d9..d8f67ef885 100644 --- a/gen/file1_beta1-cli/README.md +++ b/gen/file1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Filestore* API at revision *20190627*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Filestore* API at revision *20190627*. The CLI is at version *1.0.12*. ```bash file1-beta1 [options] diff --git a/gen/file1_beta1-cli/mkdocs.yml b/gen/file1_beta1-cli/mkdocs.yml index 2ec86facb0..fa305e4c0a 100644 --- a/gen/file1_beta1-cli/mkdocs.yml +++ b/gen/file1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Filestore v1.0.11+20190627 +site_name: Cloud Filestore v1.0.12+20190627 site_url: http://byron.github.io/google-apis-rs/google-file1_beta1-cli site_description: A complete library to interact with Cloud Filestore (protocol v1beta1) @@ -23,5 +23,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/file1_beta1-cli/src/cmn.rs b/gen/file1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/file1_beta1-cli/src/cmn.rs +++ b/gen/file1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/file1_beta1-cli/src/main.rs b/gen/file1_beta1-cli/src/main.rs index ece61e34af..e1d3898b80 100644 --- a/gen/file1_beta1-cli/src/main.rs +++ b/gen/file1_beta1-cli/src/main.rs @@ -1202,7 +1202,7 @@ fn main() { let mut app = App::new("file1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190627") + .version("1.0.12+20190627") .about("The Cloud Filestore API is used for creating and managing cloud file servers.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_file1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/file1_beta1/Cargo.toml b/gen/file1_beta1/Cargo.toml index dbd7e80d71..b2dc373358 100644 --- a/gen/file1_beta1/Cargo.toml +++ b/gen/file1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-file1_beta1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Filestore (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/file1_beta1" homepage = "https://cloud.google.com/filestore/" -documentation = "https://docs.rs/google-file1_beta1/1.0.11+20190627" +documentation = "https://docs.rs/google-file1_beta1/1.0.12+20190627" license = "MIT" keywords = ["file", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/file1_beta1/LICENSE.md b/gen/file1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/file1_beta1/LICENSE.md +++ b/gen/file1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/file1_beta1/README.md b/gen/file1_beta1/README.md index 06de5a520e..7a50f8f88d 100644 --- a/gen/file1_beta1/README.md +++ b/gen/file1_beta1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-file1_beta1` library allows access to all features of the *Google Cloud Filestore* service. -This documentation was generated from *Cloud Filestore* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *file:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Filestore* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *file:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Filestore* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/filestore/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/struct.CloudFilestore.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/struct.CloudFilestore.html) ... * projects - * [*locations get*](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/struct.ProjectLocationGetCall.html), [*locations instances create*](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/struct.ProjectLocationInstanceCreateCall.html), [*locations instances delete*](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/struct.ProjectLocationInstanceDeleteCall.html), [*locations instances get*](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/struct.ProjectLocationInstanceGetCall.html), [*locations instances list*](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/struct.ProjectLocationInstanceListCall.html), [*locations instances patch*](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/struct.ProjectLocationInstancePatchCall.html), [*locations list*](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/struct.ProjectLocationListCall.html), [*locations operations cancel*](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/struct.ProjectLocationOperationCancelCall.html), [*locations operations delete*](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/struct.ProjectLocationOperationGetCall.html) and [*locations operations list*](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/struct.ProjectLocationOperationListCall.html) + * [*locations get*](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/struct.ProjectLocationGetCall.html), [*locations instances create*](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/struct.ProjectLocationInstanceCreateCall.html), [*locations instances delete*](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/struct.ProjectLocationInstanceDeleteCall.html), [*locations instances get*](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/struct.ProjectLocationInstanceGetCall.html), [*locations instances list*](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/struct.ProjectLocationInstanceListCall.html), [*locations instances patch*](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/struct.ProjectLocationInstancePatchCall.html), [*locations list*](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/struct.ProjectLocationListCall.html), [*locations operations cancel*](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/struct.ProjectLocationOperationCancelCall.html), [*locations operations delete*](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/struct.ProjectLocationOperationGetCall.html) and [*locations operations list*](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/struct.ProjectLocationOperationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/struct.CloudFilestore.html)** +* **[Hub](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/struct.CloudFilestore.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -134,17 +134,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -154,29 +154,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-file1_beta1/1.0.11+20190627/google_file1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-file1_beta1/1.0.12+20190627/google_file1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/file1_beta1/src/lib.rs b/gen/file1_beta1/src/lib.rs index d0dd8ebdd8..74cd1b0ecd 100644 --- a/gen/file1_beta1/src/lib.rs +++ b/gen/file1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Filestore* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *file:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Filestore* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *file:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Filestore* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/filestore/). @@ -334,7 +334,7 @@ impl<'a, C, A> CloudFilestore CloudFilestore { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://file.googleapis.com/".to_string(), _root_url: "https://file.googleapis.com/".to_string(), } @@ -345,7 +345,7 @@ impl<'a, C, A> CloudFilestore } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/firebase1_beta1-cli/Cargo.toml b/gen/firebase1_beta1-cli/Cargo.toml index 2b70f15de7..b42c4daa1b 100644 --- a/gen/firebase1_beta1-cli/Cargo.toml +++ b/gen/firebase1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-firebase1_beta1-cli" -version = "1.0.11+20190703" +version = "1.0.12+20190703" authors = ["Sebastian Thiel "] description = "A complete library to interact with Firebase Management (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/firebase1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-firebase1_beta1] path = "../firebase1_beta1" -version = "1.0.11+20190703" +version = "1.0.12+20190703" diff --git a/gen/firebase1_beta1-cli/LICENSE.md b/gen/firebase1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/firebase1_beta1-cli/LICENSE.md +++ b/gen/firebase1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/firebase1_beta1-cli/README.md b/gen/firebase1_beta1-cli/README.md index 1e2d294930..29ae8d56fa 100644 --- a/gen/firebase1_beta1-cli/README.md +++ b/gen/firebase1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Firebase Management* API at revision *20190703*. The CLI is at version *1.0.11*. +This documentation was generated from the *Firebase Management* API at revision *20190703*. The CLI is at version *1.0.12*. ```bash firebase1-beta1 [options] diff --git a/gen/firebase1_beta1-cli/mkdocs.yml b/gen/firebase1_beta1-cli/mkdocs.yml index 3f02b10a8f..c3a475b8c0 100644 --- a/gen/firebase1_beta1-cli/mkdocs.yml +++ b/gen/firebase1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Firebase Management v1.0.11+20190703 +site_name: Firebase Management v1.0.12+20190703 site_url: http://byron.github.io/google-apis-rs/google-firebase1_beta1-cli site_description: A complete library to interact with Firebase Management (protocol v1beta1) @@ -40,5 +40,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/firebase1_beta1-cli/src/cmn.rs b/gen/firebase1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/firebase1_beta1-cli/src/cmn.rs +++ b/gen/firebase1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/firebase1_beta1-cli/src/main.rs b/gen/firebase1_beta1-cli/src/main.rs index 2dd591d725..14f83628f3 100644 --- a/gen/firebase1_beta1-cli/src/main.rs +++ b/gen/firebase1_beta1-cli/src/main.rs @@ -3019,7 +3019,7 @@ fn main() { let mut app = App::new("firebase1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190703") + .version("1.0.12+20190703") .about("The Firebase Management API enables programmatic setup and management of Firebase projects, including a project's Firebase resources and Firebase apps.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_firebase1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/firebase1_beta1/Cargo.toml b/gen/firebase1_beta1/Cargo.toml index aa8208d6f8..5375598c53 100644 --- a/gen/firebase1_beta1/Cargo.toml +++ b/gen/firebase1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-firebase1_beta1" -version = "1.0.11+20190703" +version = "1.0.12+20190703" authors = ["Sebastian Thiel "] description = "A complete library to interact with Firebase Management (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/firebase1_beta1" homepage = "https://firebase.google.com" -documentation = "https://docs.rs/google-firebase1_beta1/1.0.11+20190703" +documentation = "https://docs.rs/google-firebase1_beta1/1.0.12+20190703" license = "MIT" keywords = ["firebase", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/firebase1_beta1/LICENSE.md b/gen/firebase1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/firebase1_beta1/LICENSE.md +++ b/gen/firebase1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/firebase1_beta1/README.md b/gen/firebase1_beta1/README.md index a6957ee5dc..2867ee12e8 100644 --- a/gen/firebase1_beta1/README.md +++ b/gen/firebase1_beta1/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-firebase1_beta1` library allows access to all features of the *Google Firebase Management* service. -This documentation was generated from *Firebase Management* crate version *1.0.11+20190703*, where *20190703* is the exact revision of the *firebase:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Firebase Management* crate version *1.0.12+20190703*, where *20190703* is the exact revision of the *firebase:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Firebase Management* *v1_beta1* API can be found at the [official documentation site](https://firebase.google.com). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.FirebaseManagement.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.FirebaseManagement.html) ... * available projects - * [*list*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.AvailableProjectListCall.html) -* [operations](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.Operation.html) - * [*get*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.OperationGetCall.html) + * [*list*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.AvailableProjectListCall.html) +* [operations](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.Operation.html) + * [*get*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.OperationGetCall.html) * projects - * [*add firebase*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectAddFirebaseCall.html), [*android apps create*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectAndroidAppCreateCall.html), [*android apps get*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectAndroidAppGetCall.html), [*android apps get config*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectAndroidAppGetConfigCall.html), [*android apps list*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectAndroidAppListCall.html), [*android apps patch*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectAndroidAppPatchCall.html), [*android apps sha create*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectAndroidAppShaCreateCall.html), [*android apps sha delete*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectAndroidAppShaDeleteCall.html), [*android apps sha list*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectAndroidAppShaListCall.html), [*available locations list*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectAvailableLocationListCall.html), [*default location finalize*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectDefaultLocationFinalizeCall.html), [*get*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectGetCall.html), [*get admin sdk config*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectGetAdminSdkConfigCall.html), [*ios apps create*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectIosAppCreateCall.html), [*ios apps get*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectIosAppGetCall.html), [*ios apps get config*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectIosAppGetConfigCall.html), [*ios apps list*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectIosAppListCall.html), [*ios apps patch*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectIosAppPatchCall.html), [*list*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectListCall.html), [*patch*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectPatchCall.html), [*search apps*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectSearchAppCall.html), [*web apps create*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectWebAppCreateCall.html), [*web apps get*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectWebAppGetCall.html), [*web apps get config*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectWebAppGetConfigCall.html), [*web apps list*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectWebAppListCall.html) and [*web apps patch*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.ProjectWebAppPatchCall.html) + * [*add firebase*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectAddFirebaseCall.html), [*android apps create*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectAndroidAppCreateCall.html), [*android apps get*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectAndroidAppGetCall.html), [*android apps get config*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectAndroidAppGetConfigCall.html), [*android apps list*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectAndroidAppListCall.html), [*android apps patch*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectAndroidAppPatchCall.html), [*android apps sha create*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectAndroidAppShaCreateCall.html), [*android apps sha delete*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectAndroidAppShaDeleteCall.html), [*android apps sha list*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectAndroidAppShaListCall.html), [*available locations list*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectAvailableLocationListCall.html), [*default location finalize*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectDefaultLocationFinalizeCall.html), [*get*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectGetCall.html), [*get admin sdk config*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectGetAdminSdkConfigCall.html), [*ios apps create*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectIosAppCreateCall.html), [*ios apps get*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectIosAppGetCall.html), [*ios apps get config*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectIosAppGetConfigCall.html), [*ios apps list*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectIosAppListCall.html), [*ios apps patch*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectIosAppPatchCall.html), [*list*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectListCall.html), [*patch*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectPatchCall.html), [*search apps*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectSearchAppCall.html), [*web apps create*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectWebAppCreateCall.html), [*web apps get*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectWebAppGetCall.html), [*web apps get config*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectWebAppGetConfigCall.html), [*web apps list*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectWebAppListCall.html) and [*web apps patch*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.ProjectWebAppPatchCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/struct.FirebaseManagement.html)** +* **[Hub](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/struct.FirebaseManagement.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -139,17 +139,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -159,29 +159,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-firebase1_beta1/1.0.11+20190703/google_firebase1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-firebase1_beta1/1.0.12+20190703/google_firebase1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/firebase1_beta1/src/lib.rs b/gen/firebase1_beta1/src/lib.rs index 45bec8c0c6..1c181d0164 100644 --- a/gen/firebase1_beta1/src/lib.rs +++ b/gen/firebase1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Firebase Management* crate version *1.0.11+20190703*, where *20190703* is the exact revision of the *firebase:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Firebase Management* crate version *1.0.12+20190703*, where *20190703* is the exact revision of the *firebase:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Firebase Management* *v1_beta1* API can be found at the //! [official documentation site](https://firebase.google.com). @@ -350,7 +350,7 @@ impl<'a, C, A> FirebaseManagement FirebaseManagement { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://firebase.googleapis.com/".to_string(), _root_url: "https://firebase.googleapis.com/".to_string(), } @@ -367,7 +367,7 @@ impl<'a, C, A> FirebaseManagement } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/firebasedynamiclinks1-cli/Cargo.toml b/gen/firebasedynamiclinks1-cli/Cargo.toml index 5e8569528f..f04ffed4f2 100644 --- a/gen/firebasedynamiclinks1-cli/Cargo.toml +++ b/gen/firebasedynamiclinks1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-firebasedynamiclinks1-cli" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Firebase Dynamic Links (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/firebasedynamiclinks1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-firebasedynamiclinks1] path = "../firebasedynamiclinks1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" diff --git a/gen/firebasedynamiclinks1-cli/LICENSE.md b/gen/firebasedynamiclinks1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/firebasedynamiclinks1-cli/LICENSE.md +++ b/gen/firebasedynamiclinks1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/firebasedynamiclinks1-cli/README.md b/gen/firebasedynamiclinks1-cli/README.md index 89ae53acd6..3ed69f2b47 100644 --- a/gen/firebasedynamiclinks1-cli/README.md +++ b/gen/firebasedynamiclinks1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Firebase Dynamic Links* API at revision *20190628*. The CLI is at version *1.0.11*. +This documentation was generated from the *Firebase Dynamic Links* API at revision *20190628*. The CLI is at version *1.0.12*. ```bash firebasedynamiclinks1 [options] diff --git a/gen/firebasedynamiclinks1-cli/mkdocs.yml b/gen/firebasedynamiclinks1-cli/mkdocs.yml index ff084c85e8..f8c0c6bd53 100644 --- a/gen/firebasedynamiclinks1-cli/mkdocs.yml +++ b/gen/firebasedynamiclinks1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Firebase Dynamic Links v1.0.11+20190628 +site_name: Firebase Dynamic Links v1.0.12+20190628 site_url: http://byron.github.io/google-apis-rs/google-firebasedynamiclinks1-cli site_description: A complete library to interact with Firebase Dynamic Links (protocol v1) @@ -17,5 +17,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/firebasedynamiclinks1-cli/src/cmn.rs b/gen/firebasedynamiclinks1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/firebasedynamiclinks1-cli/src/cmn.rs +++ b/gen/firebasedynamiclinks1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/firebasedynamiclinks1-cli/src/main.rs b/gen/firebasedynamiclinks1-cli/src/main.rs index de67e07cbf..b43a0e3787 100644 --- a/gen/firebasedynamiclinks1-cli/src/main.rs +++ b/gen/firebasedynamiclinks1-cli/src/main.rs @@ -799,7 +799,7 @@ fn main() { let mut app = App::new("firebasedynamiclinks1") .author("Sebastian Thiel ") - .version("1.0.11+20190628") + .version("1.0.12+20190628") .about("Programmatically creates and manages Firebase Dynamic Links.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_firebasedynamiclinks1_cli") .arg(Arg::with_name("url") diff --git a/gen/firebasedynamiclinks1/Cargo.toml b/gen/firebasedynamiclinks1/Cargo.toml index 9d9200c3c3..4a194b2297 100644 --- a/gen/firebasedynamiclinks1/Cargo.toml +++ b/gen/firebasedynamiclinks1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-firebasedynamiclinks1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Firebase Dynamic Links (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/firebasedynamiclinks1" homepage = "https://firebase.google.com/docs/dynamic-links/" -documentation = "https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628" +documentation = "https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628" license = "MIT" keywords = ["firebasedynamiclinks", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/firebasedynamiclinks1/LICENSE.md b/gen/firebasedynamiclinks1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/firebasedynamiclinks1/LICENSE.md +++ b/gen/firebasedynamiclinks1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/firebasedynamiclinks1/README.md b/gen/firebasedynamiclinks1/README.md index a81aade3d6..84a01576d7 100644 --- a/gen/firebasedynamiclinks1/README.md +++ b/gen/firebasedynamiclinks1/README.md @@ -5,24 +5,24 @@ DO NOT EDIT ! --> The `google-firebasedynamiclinks1` library allows access to all features of the *Google Firebase Dynamic Links* service. -This documentation was generated from *Firebase Dynamic Links* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *firebasedynamiclinks:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Firebase Dynamic Links* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *firebasedynamiclinks:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Firebase Dynamic Links* *v1* API can be found at the [official documentation site](https://firebase.google.com/docs/dynamic-links/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/struct.FirebaseDynamicLinks.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/struct.FirebaseDynamicLinks.html) ... -* [managed short links](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/struct.ManagedShortLink.html) - * [*create*](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/struct.ManagedShortLinkCreateCall.html) +* [managed short links](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/struct.ManagedShortLink.html) + * [*create*](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/struct.ManagedShortLinkCreateCall.html) * short links - * [*create*](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/struct.ShortLinkCreateCall.html) + * [*create*](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/struct.ShortLinkCreateCall.html) Other activities are ... -* [get link stats](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/struct.MethodGetLinkStatCall.html) -* [install attribution](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/struct.MethodInstallAttributionCall.html) -* [reopen attribution](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/struct.MethodReopenAttributionCall.html) +* [get link stats](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/struct.MethodGetLinkStatCall.html) +* [install attribution](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/struct.MethodInstallAttributionCall.html) +* [reopen attribution](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/struct.MethodReopenAttributionCall.html) @@ -30,17 +30,17 @@ Other activities are ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/struct.FirebaseDynamicLinks.html)** +* **[Hub](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/struct.FirebaseDynamicLinks.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.Part.html)** + * **[Parts](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -137,17 +137,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -157,29 +157,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-firebasedynamiclinks1/1.0.11+20190628/google_firebasedynamiclinks1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-firebasedynamiclinks1/1.0.12+20190628/google_firebasedynamiclinks1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/firebasedynamiclinks1/src/lib.rs b/gen/firebasedynamiclinks1/src/lib.rs index 36bbd7a9f8..906e505f05 100644 --- a/gen/firebasedynamiclinks1/src/lib.rs +++ b/gen/firebasedynamiclinks1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Firebase Dynamic Links* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *firebasedynamiclinks:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Firebase Dynamic Links* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *firebasedynamiclinks:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Firebase Dynamic Links* *v1* API can be found at the //! [official documentation site](https://firebase.google.com/docs/dynamic-links/). @@ -336,7 +336,7 @@ impl<'a, C, A> FirebaseDynamicLinks FirebaseDynamicLinks { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://firebasedynamiclinks.googleapis.com/".to_string(), _root_url: "https://firebasedynamiclinks.googleapis.com/".to_string(), } @@ -353,7 +353,7 @@ impl<'a, C, A> FirebaseDynamicLinks } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/firebasehosting1_beta1-cli/Cargo.toml b/gen/firebasehosting1_beta1-cli/Cargo.toml index 3d67535f80..71ad7f71b7 100644 --- a/gen/firebasehosting1_beta1-cli/Cargo.toml +++ b/gen/firebasehosting1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-firebasehosting1_beta1-cli" -version = "1.0.11+20190626" +version = "1.0.12+20190626" authors = ["Sebastian Thiel "] description = "A complete library to interact with Firebase Hosting (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/firebasehosting1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-firebasehosting1_beta1] path = "../firebasehosting1_beta1" -version = "1.0.11+20190626" +version = "1.0.12+20190626" diff --git a/gen/firebasehosting1_beta1-cli/LICENSE.md b/gen/firebasehosting1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/firebasehosting1_beta1-cli/LICENSE.md +++ b/gen/firebasehosting1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/firebasehosting1_beta1-cli/README.md b/gen/firebasehosting1_beta1-cli/README.md index 9551fc4312..3172df91fa 100644 --- a/gen/firebasehosting1_beta1-cli/README.md +++ b/gen/firebasehosting1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Firebase Hosting* API at revision *20190626*. The CLI is at version *1.0.11*. +This documentation was generated from the *Firebase Hosting* API at revision *20190626*. The CLI is at version *1.0.12*. ```bash firebasehosting1-beta1 [options] diff --git a/gen/firebasehosting1_beta1-cli/mkdocs.yml b/gen/firebasehosting1_beta1-cli/mkdocs.yml index 725609d638..134cd93c58 100644 --- a/gen/firebasehosting1_beta1-cli/mkdocs.yml +++ b/gen/firebasehosting1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Firebase Hosting v1.0.11+20190626 +site_name: Firebase Hosting v1.0.12+20190626 site_url: http://byron.github.io/google-apis-rs/google-firebasehosting1_beta1-cli site_description: A complete library to interact with Firebase Hosting (protocol v1beta1) @@ -26,5 +26,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/firebasehosting1_beta1-cli/src/cmn.rs b/gen/firebasehosting1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/firebasehosting1_beta1-cli/src/cmn.rs +++ b/gen/firebasehosting1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/firebasehosting1_beta1-cli/src/main.rs b/gen/firebasehosting1_beta1-cli/src/main.rs index 5b454e4a65..554dccc6af 100644 --- a/gen/firebasehosting1_beta1-cli/src/main.rs +++ b/gen/firebasehosting1_beta1-cli/src/main.rs @@ -1650,7 +1650,7 @@ fn main() { let mut app = App::new("firebasehosting1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190626") + .version("1.0.12+20190626") .about("The Firebase Hosting REST API enables programmatic and customizable deployments to your Firebase-hosted sites. Use this REST API to deploy new or updated hosting configurations and content files.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_firebasehosting1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/firebasehosting1_beta1/Cargo.toml b/gen/firebasehosting1_beta1/Cargo.toml index a29875eda2..956cc3ea03 100644 --- a/gen/firebasehosting1_beta1/Cargo.toml +++ b/gen/firebasehosting1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-firebasehosting1_beta1" -version = "1.0.11+20190626" +version = "1.0.12+20190626" authors = ["Sebastian Thiel "] description = "A complete library to interact with Firebase Hosting (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/firebasehosting1_beta1" homepage = "https://firebase.google.com/docs/hosting/" -documentation = "https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626" +documentation = "https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626" license = "MIT" keywords = ["firebasehosting", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/firebasehosting1_beta1/LICENSE.md b/gen/firebasehosting1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/firebasehosting1_beta1/LICENSE.md +++ b/gen/firebasehosting1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/firebasehosting1_beta1/README.md b/gen/firebasehosting1_beta1/README.md index d7f9831416..a16010f645 100644 --- a/gen/firebasehosting1_beta1/README.md +++ b/gen/firebasehosting1_beta1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-firebasehosting1_beta1` library allows access to all features of the *Google Firebase Hosting* service. -This documentation was generated from *Firebase Hosting* crate version *1.0.11+20190626*, where *20190626* is the exact revision of the *firebasehosting:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Firebase Hosting* crate version *1.0.12+20190626*, where *20190626* is the exact revision of the *firebasehosting:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Firebase Hosting* *v1_beta1* API can be found at the [official documentation site](https://firebase.google.com/docs/hosting/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.FirebaseHosting.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.FirebaseHosting.html) ... * sites - * [*domains create*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.SiteDomainCreateCall.html), [*domains delete*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.SiteDomainDeleteCall.html), [*domains get*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.SiteDomainGetCall.html), [*domains list*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.SiteDomainListCall.html), [*domains update*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.SiteDomainUpdateCall.html), [*get config*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.SiteGetConfigCall.html), [*releases create*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.SiteReleaseCreateCall.html), [*releases list*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.SiteReleaseListCall.html), [*update config*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.SiteUpdateConfigCall.html), [*versions create*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.SiteVersionCreateCall.html), [*versions delete*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.SiteVersionDeleteCall.html), [*versions files list*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.SiteVersionFileListCall.html), [*versions patch*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.SiteVersionPatchCall.html) and [*versions populate files*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.SiteVersionPopulateFileCall.html) + * [*domains create*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.SiteDomainCreateCall.html), [*domains delete*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.SiteDomainDeleteCall.html), [*domains get*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.SiteDomainGetCall.html), [*domains list*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.SiteDomainListCall.html), [*domains update*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.SiteDomainUpdateCall.html), [*get config*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.SiteGetConfigCall.html), [*releases create*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.SiteReleaseCreateCall.html), [*releases list*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.SiteReleaseListCall.html), [*update config*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.SiteUpdateConfigCall.html), [*versions create*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.SiteVersionCreateCall.html), [*versions delete*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.SiteVersionDeleteCall.html), [*versions files list*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.SiteVersionFileListCall.html), [*versions patch*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.SiteVersionPatchCall.html) and [*versions populate files*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.SiteVersionPopulateFileCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/struct.FirebaseHosting.html)** +* **[Hub](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/struct.FirebaseHosting.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-firebasehosting1_beta1/1.0.11+20190626/google_firebasehosting1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-firebasehosting1_beta1/1.0.12+20190626/google_firebasehosting1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/firebasehosting1_beta1/src/lib.rs b/gen/firebasehosting1_beta1/src/lib.rs index 8238e64b92..3ae66539fb 100644 --- a/gen/firebasehosting1_beta1/src/lib.rs +++ b/gen/firebasehosting1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Firebase Hosting* crate version *1.0.11+20190626*, where *20190626* is the exact revision of the *firebasehosting:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Firebase Hosting* crate version *1.0.12+20190626*, where *20190626* is the exact revision of the *firebasehosting:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Firebase Hosting* *v1_beta1* API can be found at the //! [official documentation site](https://firebase.google.com/docs/hosting/). @@ -343,7 +343,7 @@ impl<'a, C, A> FirebaseHosting FirebaseHosting { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://firebasehosting.googleapis.com/".to_string(), _root_url: "https://firebasehosting.googleapis.com/".to_string(), } @@ -354,7 +354,7 @@ impl<'a, C, A> FirebaseHosting } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/firebaseremoteconfig1-cli/Cargo.toml b/gen/firebaseremoteconfig1-cli/Cargo.toml index 51efe99095..29b5216c2c 100644 --- a/gen/firebaseremoteconfig1-cli/Cargo.toml +++ b/gen/firebaseremoteconfig1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-firebaseremoteconfig1-cli" -version = "1.0.11+20171129" +version = "1.0.12+20171129" authors = ["Sebastian Thiel "] description = "A complete library to interact with Firebase Remote Config (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/firebaseremoteconfig1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-firebaseremoteconfig1] path = "../firebaseremoteconfig1" -version = "1.0.11+20171129" +version = "1.0.12+20171129" diff --git a/gen/firebaseremoteconfig1-cli/LICENSE.md b/gen/firebaseremoteconfig1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/firebaseremoteconfig1-cli/LICENSE.md +++ b/gen/firebaseremoteconfig1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/firebaseremoteconfig1-cli/README.md b/gen/firebaseremoteconfig1-cli/README.md index 3a27e31520..92d8a53125 100644 --- a/gen/firebaseremoteconfig1-cli/README.md +++ b/gen/firebaseremoteconfig1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Firebase Remote Config* API at revision *20171129*. The CLI is at version *1.0.11*. +This documentation was generated from the *Firebase Remote Config* API at revision *20171129*. The CLI is at version *1.0.12*. ```bash firebaseremoteconfig1 [options] diff --git a/gen/firebaseremoteconfig1-cli/mkdocs.yml b/gen/firebaseremoteconfig1-cli/mkdocs.yml index 97f2455549..2db6e95983 100644 --- a/gen/firebaseremoteconfig1-cli/mkdocs.yml +++ b/gen/firebaseremoteconfig1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Firebase Remote Config v1.0.11+20171129 +site_name: Firebase Remote Config v1.0.12+20171129 site_url: http://byron.github.io/google-apis-rs/google-firebaseremoteconfig1-cli site_description: A complete library to interact with Firebase Remote Config (protocol v1) @@ -14,5 +14,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/firebaseremoteconfig1-cli/src/cmn.rs b/gen/firebaseremoteconfig1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/firebaseremoteconfig1-cli/src/cmn.rs +++ b/gen/firebaseremoteconfig1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/firebaseremoteconfig1-cli/src/main.rs b/gen/firebaseremoteconfig1-cli/src/main.rs index be8070e5fd..59d56d27ff 100644 --- a/gen/firebaseremoteconfig1-cli/src/main.rs +++ b/gen/firebaseremoteconfig1-cli/src/main.rs @@ -363,7 +363,7 @@ fn main() { let mut app = App::new("firebaseremoteconfig1") .author("Sebastian Thiel ") - .version("1.0.11+20171129") + .version("1.0.12+20171129") .about("Firebase Remote Config API allows the 3P clients to manage Remote Config conditions and parameters for Firebase applications.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_firebaseremoteconfig1_cli") .arg(Arg::with_name("folder") diff --git a/gen/firebaseremoteconfig1/Cargo.toml b/gen/firebaseremoteconfig1/Cargo.toml index 392c643438..555f342e45 100644 --- a/gen/firebaseremoteconfig1/Cargo.toml +++ b/gen/firebaseremoteconfig1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-firebaseremoteconfig1" -version = "1.0.11+20171129" +version = "1.0.12+20171129" authors = ["Sebastian Thiel "] description = "A complete library to interact with Firebase Remote Config (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/firebaseremoteconfig1" homepage = "https://firebase.google.com/docs/remote-config/" -documentation = "https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129" +documentation = "https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129" license = "MIT" keywords = ["firebaseremoteconfig", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/firebaseremoteconfig1/LICENSE.md b/gen/firebaseremoteconfig1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/firebaseremoteconfig1/LICENSE.md +++ b/gen/firebaseremoteconfig1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/firebaseremoteconfig1/README.md b/gen/firebaseremoteconfig1/README.md index e2853d6f36..529b9f291e 100644 --- a/gen/firebaseremoteconfig1/README.md +++ b/gen/firebaseremoteconfig1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-firebaseremoteconfig1` library allows access to all features of the *Google Firebase Remote Config* service. -This documentation was generated from *Firebase Remote Config* crate version *1.0.11+20171129*, where *20171129* is the exact revision of the *firebaseremoteconfig:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Firebase Remote Config* crate version *1.0.12+20171129*, where *20171129* is the exact revision of the *firebaseremoteconfig:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Firebase Remote Config* *v1* API can be found at the [official documentation site](https://firebase.google.com/docs/remote-config/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/struct.FirebaseRemoteConfig.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/struct.FirebaseRemoteConfig.html) ... * projects - * [*get remote config*](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/struct.ProjectGetRemoteConfigCall.html) and [*update remote config*](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/struct.ProjectUpdateRemoteConfigCall.html) + * [*get remote config*](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/struct.ProjectGetRemoteConfigCall.html) and [*update remote config*](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/struct.ProjectUpdateRemoteConfigCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/struct.FirebaseRemoteConfig.html)** +* **[Hub](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/struct.FirebaseRemoteConfig.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.Part.html)** + * **[Parts](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-firebaseremoteconfig1/1.0.11+20171129/google_firebaseremoteconfig1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-firebaseremoteconfig1/1.0.12+20171129/google_firebaseremoteconfig1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/firebaseremoteconfig1/src/lib.rs b/gen/firebaseremoteconfig1/src/lib.rs index fa5e1435a6..169919eac5 100644 --- a/gen/firebaseremoteconfig1/src/lib.rs +++ b/gen/firebaseremoteconfig1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Firebase Remote Config* crate version *1.0.11+20171129*, where *20171129* is the exact revision of the *firebaseremoteconfig:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Firebase Remote Config* crate version *1.0.12+20171129*, where *20171129* is the exact revision of the *firebaseremoteconfig:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Firebase Remote Config* *v1* API can be found at the //! [official documentation site](https://firebase.google.com/docs/remote-config/). @@ -310,7 +310,7 @@ impl<'a, C, A> FirebaseRemoteConfig FirebaseRemoteConfig { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://firebaseremoteconfig.googleapis.com/".to_string(), _root_url: "https://firebaseremoteconfig.googleapis.com/".to_string(), } @@ -321,7 +321,7 @@ impl<'a, C, A> FirebaseRemoteConfig } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/firestore1-cli/Cargo.toml b/gen/firestore1-cli/Cargo.toml index 1961320834..8c2a69429a 100644 --- a/gen/firestore1-cli/Cargo.toml +++ b/gen/firestore1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-firestore1-cli" -version = "1.0.11+20190419" +version = "1.0.12+20190419" authors = ["Sebastian Thiel "] description = "A complete library to interact with Firestore (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/firestore1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-firestore1] path = "../firestore1" -version = "1.0.11+20190419" +version = "1.0.12+20190419" diff --git a/gen/firestore1-cli/LICENSE.md b/gen/firestore1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/firestore1-cli/LICENSE.md +++ b/gen/firestore1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/firestore1-cli/README.md b/gen/firestore1-cli/README.md index b9ea15b244..75c175ace2 100644 --- a/gen/firestore1-cli/README.md +++ b/gen/firestore1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Firestore* API at revision *20190419*. The CLI is at version *1.0.11*. +This documentation was generated from the *Firestore* API at revision *20190419*. The CLI is at version *1.0.12*. ```bash firestore1 [options] diff --git a/gen/firestore1-cli/mkdocs.yml b/gen/firestore1-cli/mkdocs.yml index 71e1d7ba39..3724773289 100644 --- a/gen/firestore1-cli/mkdocs.yml +++ b/gen/firestore1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Firestore v1.0.11+20190419 +site_name: Firestore v1.0.12+20190419 site_url: http://byron.github.io/google-apis-rs/google-firestore1-cli site_description: A complete library to interact with Firestore (protocol v1) @@ -40,5 +40,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/firestore1-cli/src/cmn.rs b/gen/firestore1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/firestore1-cli/src/cmn.rs +++ b/gen/firestore1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/firestore1-cli/src/main.rs b/gen/firestore1-cli/src/main.rs index b885cf2941..d0afbc59e9 100644 --- a/gen/firestore1-cli/src/main.rs +++ b/gen/firestore1-cli/src/main.rs @@ -3189,7 +3189,7 @@ fn main() { let mut app = App::new("firestore1") .author("Sebastian Thiel ") - .version("1.0.11+20190419") + .version("1.0.12+20190419") .about("Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_firestore1_cli") diff --git a/gen/firestore1/Cargo.toml b/gen/firestore1/Cargo.toml index e910daf621..25b3a1a187 100644 --- a/gen/firestore1/Cargo.toml +++ b/gen/firestore1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-firestore1" -version = "1.0.11+20190419" +version = "1.0.12+20190419" authors = ["Sebastian Thiel "] description = "A complete library to interact with Firestore (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/firestore1" homepage = "https://cloud.google.com/firestore" -documentation = "https://docs.rs/google-firestore1/1.0.11+20190419" +documentation = "https://docs.rs/google-firestore1/1.0.12+20190419" license = "MIT" keywords = ["firestore", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/firestore1/LICENSE.md b/gen/firestore1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/firestore1/LICENSE.md +++ b/gen/firestore1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/firestore1/README.md b/gen/firestore1/README.md index c8dc2aef9b..078b445e9e 100644 --- a/gen/firestore1/README.md +++ b/gen/firestore1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-firestore1` library allows access to all features of the *Google Firestore* service. -This documentation was generated from *Firestore* crate version *1.0.11+20190419*, where *20190419* is the exact revision of the *firestore:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Firestore* crate version *1.0.12+20190419*, where *20190419* is the exact revision of the *firestore:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Firestore* *v1* API can be found at the [official documentation site](https://cloud.google.com/firestore). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.Firestore.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.Firestore.html) ... * projects - * [*databases collection groups fields get*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseCollectionGroupFieldGetCall.html), [*databases collection groups fields list*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseCollectionGroupFieldListCall.html), [*databases collection groups fields patch*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseCollectionGroupFieldPatchCall.html), [*databases collection groups indexes create*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseCollectionGroupIndexeCreateCall.html), [*databases collection groups indexes delete*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseCollectionGroupIndexeDeleteCall.html), [*databases collection groups indexes get*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseCollectionGroupIndexeGetCall.html), [*databases collection groups indexes list*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseCollectionGroupIndexeListCall.html), [*databases documents batch get*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseDocumentBatchGetCall.html), [*databases documents begin transaction*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseDocumentBeginTransactionCall.html), [*databases documents commit*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseDocumentCommitCall.html), [*databases documents create document*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseDocumentCreateDocumentCall.html), [*databases documents delete*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseDocumentDeleteCall.html), [*databases documents get*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseDocumentGetCall.html), [*databases documents list*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseDocumentListCall.html), [*databases documents list collection ids*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseDocumentListCollectionIdCall.html), [*databases documents listen*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseDocumentListenCall.html), [*databases documents patch*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseDocumentPatchCall.html), [*databases documents rollback*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseDocumentRollbackCall.html), [*databases documents run query*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseDocumentRunQueryCall.html), [*databases documents write*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseDocumentWriteCall.html), [*databases export documents*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseExportDocumentCall.html), [*databases import documents*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseImportDocumentCall.html), [*databases operations cancel*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseOperationCancelCall.html), [*databases operations delete*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseOperationDeleteCall.html), [*databases operations get*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseOperationGetCall.html), [*databases operations list*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectDatabaseOperationListCall.html), [*locations get*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectLocationGetCall.html) and [*locations list*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.ProjectLocationListCall.html) + * [*databases collection groups fields get*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseCollectionGroupFieldGetCall.html), [*databases collection groups fields list*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseCollectionGroupFieldListCall.html), [*databases collection groups fields patch*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseCollectionGroupFieldPatchCall.html), [*databases collection groups indexes create*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseCollectionGroupIndexeCreateCall.html), [*databases collection groups indexes delete*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseCollectionGroupIndexeDeleteCall.html), [*databases collection groups indexes get*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseCollectionGroupIndexeGetCall.html), [*databases collection groups indexes list*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseCollectionGroupIndexeListCall.html), [*databases documents batch get*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseDocumentBatchGetCall.html), [*databases documents begin transaction*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseDocumentBeginTransactionCall.html), [*databases documents commit*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseDocumentCommitCall.html), [*databases documents create document*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseDocumentCreateDocumentCall.html), [*databases documents delete*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseDocumentDeleteCall.html), [*databases documents get*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseDocumentGetCall.html), [*databases documents list*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseDocumentListCall.html), [*databases documents list collection ids*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseDocumentListCollectionIdCall.html), [*databases documents listen*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseDocumentListenCall.html), [*databases documents patch*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseDocumentPatchCall.html), [*databases documents rollback*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseDocumentRollbackCall.html), [*databases documents run query*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseDocumentRunQueryCall.html), [*databases documents write*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseDocumentWriteCall.html), [*databases export documents*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseExportDocumentCall.html), [*databases import documents*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseImportDocumentCall.html), [*databases operations cancel*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseOperationCancelCall.html), [*databases operations delete*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseOperationDeleteCall.html), [*databases operations get*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseOperationGetCall.html), [*databases operations list*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectDatabaseOperationListCall.html), [*locations get*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectLocationGetCall.html) and [*locations list*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.ProjectLocationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/struct.Firestore.html)** +* **[Hub](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/struct.Firestore.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.Part.html)** + * **[Parts](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -135,17 +135,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -155,29 +155,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-firestore1/1.0.11+20190419/google_firestore1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-firestore1/1.0.12+20190419/google_firestore1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/firestore1/src/lib.rs b/gen/firestore1/src/lib.rs index 540d665fcb..5af1dcbb7e 100644 --- a/gen/firestore1/src/lib.rs +++ b/gen/firestore1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Firestore* crate version *1.0.11+20190419*, where *20190419* is the exact revision of the *firestore:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Firestore* crate version *1.0.12+20190419*, where *20190419* is the exact revision of the *firestore:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Firestore* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/firestore). @@ -339,7 +339,7 @@ impl<'a, C, A> Firestore Firestore { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://firestore.googleapis.com/".to_string(), _root_url: "https://firestore.googleapis.com/".to_string(), } @@ -350,7 +350,7 @@ impl<'a, C, A> Firestore } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/firestore1_beta1-cli/Cargo.toml b/gen/firestore1_beta1-cli/Cargo.toml index 7c0cdcf0a7..8059af5f26 100644 --- a/gen/firestore1_beta1-cli/Cargo.toml +++ b/gen/firestore1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-firestore1_beta1-cli" -version = "1.0.11+20190419" +version = "1.0.12+20190419" authors = ["Sebastian Thiel "] description = "A complete library to interact with Firestore (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/firestore1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-firestore1_beta1] path = "../firestore1_beta1" -version = "1.0.11+20190419" +version = "1.0.12+20190419" diff --git a/gen/firestore1_beta1-cli/LICENSE.md b/gen/firestore1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/firestore1_beta1-cli/LICENSE.md +++ b/gen/firestore1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/firestore1_beta1-cli/README.md b/gen/firestore1_beta1-cli/README.md index 9c5ac47317..7048efc2ee 100644 --- a/gen/firestore1_beta1-cli/README.md +++ b/gen/firestore1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Firestore* API at revision *20190419*. The CLI is at version *1.0.11*. +This documentation was generated from the *Firestore* API at revision *20190419*. The CLI is at version *1.0.12*. ```bash firestore1-beta1 [options] diff --git a/gen/firestore1_beta1-cli/mkdocs.yml b/gen/firestore1_beta1-cli/mkdocs.yml index 71c20ec1f3..298bb887ee 100644 --- a/gen/firestore1_beta1-cli/mkdocs.yml +++ b/gen/firestore1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Firestore v1.0.11+20190419 +site_name: Firestore v1.0.12+20190419 site_url: http://byron.github.io/google-apis-rs/google-firestore1_beta1-cli site_description: A complete library to interact with Firestore (protocol v1beta1) @@ -31,5 +31,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/firestore1_beta1-cli/src/cmn.rs b/gen/firestore1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/firestore1_beta1-cli/src/cmn.rs +++ b/gen/firestore1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/firestore1_beta1-cli/src/main.rs b/gen/firestore1_beta1-cli/src/main.rs index 2542f1aca2..40ccc64950 100644 --- a/gen/firestore1_beta1-cli/src/main.rs +++ b/gen/firestore1_beta1-cli/src/main.rs @@ -2325,7 +2325,7 @@ fn main() { let mut app = App::new("firestore1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190419") + .version("1.0.12+20190419") .about("Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_firestore1_beta1_cli") diff --git a/gen/firestore1_beta1/Cargo.toml b/gen/firestore1_beta1/Cargo.toml index ed9a7c572c..aaf24b70ee 100644 --- a/gen/firestore1_beta1/Cargo.toml +++ b/gen/firestore1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-firestore1_beta1" -version = "1.0.11+20190419" +version = "1.0.12+20190419" authors = ["Sebastian Thiel "] description = "A complete library to interact with Firestore (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/firestore1_beta1" homepage = "https://cloud.google.com/firestore" -documentation = "https://docs.rs/google-firestore1_beta1/1.0.11+20190419" +documentation = "https://docs.rs/google-firestore1_beta1/1.0.12+20190419" license = "MIT" keywords = ["firestore", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/firestore1_beta1/LICENSE.md b/gen/firestore1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/firestore1_beta1/LICENSE.md +++ b/gen/firestore1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/firestore1_beta1/README.md b/gen/firestore1_beta1/README.md index f14284b057..5028085c99 100644 --- a/gen/firestore1_beta1/README.md +++ b/gen/firestore1_beta1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-firestore1_beta1` library allows access to all features of the *Google Firestore* service. -This documentation was generated from *Firestore* crate version *1.0.11+20190419*, where *20190419* is the exact revision of the *firestore:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Firestore* crate version *1.0.12+20190419*, where *20190419* is the exact revision of the *firestore:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Firestore* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/firestore). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.Firestore.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.Firestore.html) ... * projects - * [*databases documents batch get*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentBatchGetCall.html), [*databases documents begin transaction*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentBeginTransactionCall.html), [*databases documents commit*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentCommitCall.html), [*databases documents create document*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentCreateDocumentCall.html), [*databases documents delete*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentDeleteCall.html), [*databases documents get*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentGetCall.html), [*databases documents list*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentListCall.html), [*databases documents list collection ids*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentListCollectionIdCall.html), [*databases documents listen*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentListenCall.html), [*databases documents patch*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentPatchCall.html), [*databases documents rollback*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentRollbackCall.html), [*databases documents run query*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentRunQueryCall.html), [*databases documents write*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentWriteCall.html), [*databases export documents*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseExportDocumentCall.html), [*databases import documents*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseImportDocumentCall.html), [*databases indexes create*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseIndexeCreateCall.html), [*databases indexes delete*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseIndexeDeleteCall.html), [*databases indexes get*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseIndexeGetCall.html) and [*databases indexes list*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.ProjectDatabaseIndexeListCall.html) + * [*databases documents batch get*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentBatchGetCall.html), [*databases documents begin transaction*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentBeginTransactionCall.html), [*databases documents commit*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentCommitCall.html), [*databases documents create document*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentCreateDocumentCall.html), [*databases documents delete*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentDeleteCall.html), [*databases documents get*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentGetCall.html), [*databases documents list*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentListCall.html), [*databases documents list collection ids*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentListCollectionIdCall.html), [*databases documents listen*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentListenCall.html), [*databases documents patch*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentPatchCall.html), [*databases documents rollback*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentRollbackCall.html), [*databases documents run query*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentRunQueryCall.html), [*databases documents write*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseDocumentWriteCall.html), [*databases export documents*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseExportDocumentCall.html), [*databases import documents*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseImportDocumentCall.html), [*databases indexes create*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseIndexeCreateCall.html), [*databases indexes delete*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseIndexeDeleteCall.html), [*databases indexes get*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseIndexeGetCall.html) and [*databases indexes list*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.ProjectDatabaseIndexeListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/struct.Firestore.html)** +* **[Hub](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/struct.Firestore.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-firestore1_beta1/1.0.11+20190419/google_firestore1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-firestore1_beta1/1.0.12+20190419/google_firestore1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/firestore1_beta1/src/lib.rs b/gen/firestore1_beta1/src/lib.rs index 54de736882..756a74ce76 100644 --- a/gen/firestore1_beta1/src/lib.rs +++ b/gen/firestore1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Firestore* crate version *1.0.11+20190419*, where *20190419* is the exact revision of the *firestore:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Firestore* crate version *1.0.12+20190419*, where *20190419* is the exact revision of the *firestore:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Firestore* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/firestore). @@ -335,7 +335,7 @@ impl<'a, C, A> Firestore Firestore { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://firestore.googleapis.com/".to_string(), _root_url: "https://firestore.googleapis.com/".to_string(), } @@ -346,7 +346,7 @@ impl<'a, C, A> Firestore } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/fitness1-cli/Cargo.toml b/gen/fitness1-cli/Cargo.toml index 81b6fd41e9..a288adeb8e 100644 --- a/gen/fitness1-cli/Cargo.toml +++ b/gen/fitness1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-fitness1-cli" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with fitness (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/fitness1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-fitness1] path = "../fitness1" -version = "1.0.11+20190701" +version = "1.0.12+20190701" diff --git a/gen/fitness1-cli/LICENSE.md b/gen/fitness1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/fitness1-cli/LICENSE.md +++ b/gen/fitness1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/fitness1-cli/README.md b/gen/fitness1-cli/README.md index c7e4fa44a7..d22211b70f 100644 --- a/gen/fitness1-cli/README.md +++ b/gen/fitness1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *fitness* API at revision *20190701*. The CLI is at version *1.0.11*. +This documentation was generated from the *fitness* API at revision *20190701*. The CLI is at version *1.0.12*. ```bash fitness1 [options] diff --git a/gen/fitness1-cli/mkdocs.yml b/gen/fitness1-cli/mkdocs.yml index 189c9f1c9d..012656f04f 100644 --- a/gen/fitness1-cli/mkdocs.yml +++ b/gen/fitness1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: fitness v1.0.11+20190701 +site_name: fitness v1.0.12+20190701 site_url: http://byron.github.io/google-apis-rs/google-fitness1-cli site_description: A complete library to interact with fitness (protocol v1) @@ -25,5 +25,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/fitness1-cli/src/cmn.rs b/gen/fitness1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/fitness1-cli/src/cmn.rs +++ b/gen/fitness1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/fitness1-cli/src/main.rs b/gen/fitness1-cli/src/main.rs index db42d169e2..fa5c199520 100644 --- a/gen/fitness1-cli/src/main.rs +++ b/gen/fitness1-cli/src/main.rs @@ -1493,7 +1493,7 @@ fn main() { let mut app = App::new("fitness1") .author("Sebastian Thiel ") - .version("1.0.11+20190701") + .version("1.0.12+20190701") .about("Stores and accesses user data in the fitness store from apps on any platform.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_fitness1_cli") .arg(Arg::with_name("url") diff --git a/gen/fitness1/Cargo.toml b/gen/fitness1/Cargo.toml index a2af7fa242..91f6d105e9 100644 --- a/gen/fitness1/Cargo.toml +++ b/gen/fitness1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-fitness1" -version = "1.0.11+20190701" +version = "1.0.12+20190701" authors = ["Sebastian Thiel "] description = "A complete library to interact with fitness (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/fitness1" homepage = "https://developers.google.com/fit/rest/" -documentation = "https://docs.rs/google-fitness1/1.0.11+20190701" +documentation = "https://docs.rs/google-fitness1/1.0.12+20190701" license = "MIT" keywords = ["fitness", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/fitness1/LICENSE.md b/gen/fitness1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/fitness1/LICENSE.md +++ b/gen/fitness1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/fitness1/README.md b/gen/fitness1/README.md index 6261ff0438..de16071956 100644 --- a/gen/fitness1/README.md +++ b/gen/fitness1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-fitness1` library allows access to all features of the *Google fitness* service. -This documentation was generated from *fitness* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *fitness:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *fitness* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *fitness:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *fitness* *v1* API can be found at the [official documentation site](https://developers.google.com/fit/rest/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.Fitness.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.Fitness.html) ... * users - * [*data sources create*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.UserDataSourceCreateCall.html), [*data sources data point changes list*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.UserDataSourceDataPointChangeListCall.html), [*data sources datasets delete*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.UserDataSourceDatasetDeleteCall.html), [*data sources datasets get*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.UserDataSourceDatasetGetCall.html), [*data sources datasets patch*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.UserDataSourceDatasetPatchCall.html), [*data sources delete*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.UserDataSourceDeleteCall.html), [*data sources get*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.UserDataSourceGetCall.html), [*data sources list*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.UserDataSourceListCall.html), [*data sources update*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.UserDataSourceUpdateCall.html), [*dataset aggregate*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.UserDatasetAggregateCall.html), [*sessions delete*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.UserSessionDeleteCall.html), [*sessions list*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.UserSessionListCall.html) and [*sessions update*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.UserSessionUpdateCall.html) + * [*data sources create*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.UserDataSourceCreateCall.html), [*data sources data point changes list*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.UserDataSourceDataPointChangeListCall.html), [*data sources datasets delete*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.UserDataSourceDatasetDeleteCall.html), [*data sources datasets get*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.UserDataSourceDatasetGetCall.html), [*data sources datasets patch*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.UserDataSourceDatasetPatchCall.html), [*data sources delete*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.UserDataSourceDeleteCall.html), [*data sources get*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.UserDataSourceGetCall.html), [*data sources list*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.UserDataSourceListCall.html), [*data sources update*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.UserDataSourceUpdateCall.html), [*dataset aggregate*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.UserDatasetAggregateCall.html), [*sessions delete*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.UserSessionDeleteCall.html), [*sessions list*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.UserSessionListCall.html) and [*sessions update*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.UserSessionUpdateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/struct.Fitness.html)** +* **[Hub](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/struct.Fitness.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.Part.html)** + * **[Parts](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -133,17 +133,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -153,29 +153,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-fitness1/1.0.11+20190701/google_fitness1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-fitness1/1.0.12+20190701/google_fitness1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/fitness1/src/lib.rs b/gen/fitness1/src/lib.rs index 408cc2347f..2de5450b75 100644 --- a/gen/fitness1/src/lib.rs +++ b/gen/fitness1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *fitness* crate version *1.0.11+20190701*, where *20190701* is the exact revision of the *fitness:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *fitness* crate version *1.0.12+20190701*, where *20190701* is the exact revision of the *fitness:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *fitness* *v1* API can be found at the //! [official documentation site](https://developers.google.com/fit/rest/). @@ -400,7 +400,7 @@ impl<'a, C, A> Fitness Fitness { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/fitness/v1/users/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -411,7 +411,7 @@ impl<'a, C, A> Fitness } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/fusiontables2-cli/Cargo.toml b/gen/fusiontables2-cli/Cargo.toml index 386497e21b..c160d417c2 100644 --- a/gen/fusiontables2-cli/Cargo.toml +++ b/gen/fusiontables2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-fusiontables2-cli" -version = "1.0.11+20171117" +version = "1.0.12+20171117" authors = ["Sebastian Thiel "] description = "A complete library to interact with fusiontables (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/fusiontables2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-fusiontables2] path = "../fusiontables2" -version = "1.0.11+20171117" +version = "1.0.12+20171117" diff --git a/gen/fusiontables2-cli/LICENSE.md b/gen/fusiontables2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/fusiontables2-cli/LICENSE.md +++ b/gen/fusiontables2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/fusiontables2-cli/README.md b/gen/fusiontables2-cli/README.md index 8bf07262c3..c73973fb67 100644 --- a/gen/fusiontables2-cli/README.md +++ b/gen/fusiontables2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *fusiontables* API at revision *20171117*. The CLI is at version *1.0.11*. +This documentation was generated from the *fusiontables* API at revision *20171117*. The CLI is at version *1.0.12*. ```bash fusiontables2 [options] diff --git a/gen/fusiontables2-cli/mkdocs.yml b/gen/fusiontables2-cli/mkdocs.yml index c4367b48c1..7faf4108d3 100644 --- a/gen/fusiontables2-cli/mkdocs.yml +++ b/gen/fusiontables2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: fusiontables v1.0.11+20171117 +site_name: fusiontables v1.0.12+20171117 site_url: http://byron.github.io/google-apis-rs/google-fusiontables2-cli site_description: A complete library to interact with fusiontables (protocol v2) @@ -46,5 +46,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/fusiontables2-cli/src/cmn.rs b/gen/fusiontables2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/fusiontables2-cli/src/cmn.rs +++ b/gen/fusiontables2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/fusiontables2-cli/src/main.rs b/gen/fusiontables2-cli/src/main.rs index d45c2e1c5d..2b48679a9c 100644 --- a/gen/fusiontables2-cli/src/main.rs +++ b/gen/fusiontables2-cli/src/main.rs @@ -3663,7 +3663,7 @@ fn main() { let mut app = App::new("fusiontables2") .author("Sebastian Thiel ") - .version("1.0.11+20171117") + .version("1.0.12+20171117") .about("API for working with Fusion Tables data.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_fusiontables2_cli") .arg(Arg::with_name("url") diff --git a/gen/fusiontables2/Cargo.toml b/gen/fusiontables2/Cargo.toml index dd8b82af9c..3781b15c5c 100644 --- a/gen/fusiontables2/Cargo.toml +++ b/gen/fusiontables2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-fusiontables2" -version = "1.0.11+20171117" +version = "1.0.12+20171117" authors = ["Sebastian Thiel "] description = "A complete library to interact with fusiontables (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/fusiontables2" homepage = "https://developers.google.com/fusiontables" -documentation = "https://docs.rs/google-fusiontables2/1.0.11+20171117" +documentation = "https://docs.rs/google-fusiontables2/1.0.12+20171117" license = "MIT" keywords = ["fusiontables", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/fusiontables2/LICENSE.md b/gen/fusiontables2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/fusiontables2/LICENSE.md +++ b/gen/fusiontables2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/fusiontables2/README.md b/gen/fusiontables2/README.md index 3ea5afe699..2c24761b40 100644 --- a/gen/fusiontables2/README.md +++ b/gen/fusiontables2/README.md @@ -5,38 +5,38 @@ DO NOT EDIT ! --> The `google-fusiontables2` library allows access to all features of the *Google fusiontables* service. -This documentation was generated from *fusiontables* crate version *1.0.11+20171117*, where *20171117* is the exact revision of the *fusiontables:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *fusiontables* crate version *1.0.12+20171117*, where *20171117* is the exact revision of the *fusiontables:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *fusiontables* *v2* API can be found at the [official documentation site](https://developers.google.com/fusiontables). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.Fusiontables.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.Fusiontables.html) ... -* [column](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.Column.html) - * [*delete*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.ColumnDeleteCall.html), [*get*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.ColumnGetCall.html), [*insert*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.ColumnInsertCall.html), [*list*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.ColumnListCall.html), [*patch*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.ColumnPatchCall.html) and [*update*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.ColumnUpdateCall.html) +* [column](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.Column.html) + * [*delete*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.ColumnDeleteCall.html), [*get*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.ColumnGetCall.html), [*insert*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.ColumnInsertCall.html), [*list*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.ColumnListCall.html), [*patch*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.ColumnPatchCall.html) and [*update*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.ColumnUpdateCall.html) * query - * [*sql*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.QuerySqlCall.html) and [*sql get*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.QuerySqlGetCall.html) + * [*sql*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.QuerySqlCall.html) and [*sql get*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.QuerySqlGetCall.html) * style - * [*delete*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.StyleDeleteCall.html), [*get*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.StyleGetCall.html), [*insert*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.StyleInsertCall.html), [*list*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.StyleListCall.html), [*patch*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.StylePatchCall.html) and [*update*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.StyleUpdateCall.html) -* [table](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.Table.html) - * [*copy*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TableCopyCall.html), [*delete*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TableDeleteCall.html), [*get*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TableGetCall.html), [*import rows*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TableImportRowCall.html), [*import table*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TableImportTableCall.html), [*insert*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TableInsertCall.html), [*list*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TableListCall.html), [*patch*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TablePatchCall.html), [*refetch sheet*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TableRefetchSheetCall.html), [*replace rows*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TableReplaceRowCall.html) and [*update*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TableUpdateCall.html) -* [task](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.Task.html) - * [*delete*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TaskDeleteCall.html), [*get*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TaskGetCall.html) and [*list*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TaskListCall.html) -* [template](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.Template.html) - * [*delete*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TemplateDeleteCall.html), [*get*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TemplateGetCall.html), [*insert*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TemplateInsertCall.html), [*list*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TemplateListCall.html), [*patch*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TemplatePatchCall.html) and [*update*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TemplateUpdateCall.html) + * [*delete*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.StyleDeleteCall.html), [*get*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.StyleGetCall.html), [*insert*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.StyleInsertCall.html), [*list*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.StyleListCall.html), [*patch*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.StylePatchCall.html) and [*update*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.StyleUpdateCall.html) +* [table](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.Table.html) + * [*copy*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TableCopyCall.html), [*delete*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TableDeleteCall.html), [*get*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TableGetCall.html), [*import rows*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TableImportRowCall.html), [*import table*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TableImportTableCall.html), [*insert*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TableInsertCall.html), [*list*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TableListCall.html), [*patch*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TablePatchCall.html), [*refetch sheet*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TableRefetchSheetCall.html), [*replace rows*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TableReplaceRowCall.html) and [*update*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TableUpdateCall.html) +* [task](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.Task.html) + * [*delete*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TaskDeleteCall.html), [*get*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TaskGetCall.html) and [*list*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TaskListCall.html) +* [template](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.Template.html) + * [*delete*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TemplateDeleteCall.html), [*get*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TemplateGetCall.html), [*insert*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TemplateInsertCall.html), [*list*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TemplateListCall.html), [*patch*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TemplatePatchCall.html) and [*update*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TemplateUpdateCall.html) Upload supported by ... -* [*replace rows table*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TableReplaceRowCall.html) -* [*import rows table*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TableImportRowCall.html) -* [*import table table*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.TableImportTableCall.html) +* [*replace rows table*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TableReplaceRowCall.html) +* [*import rows table*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TableImportRowCall.html) +* [*import table table*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.TableImportTableCall.html) Download supported by ... -* [*sql get query*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.QuerySqlGetCall.html) -* [*sql query*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.QuerySqlCall.html) +* [*sql get query*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.QuerySqlGetCall.html) +* [*sql query*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.QuerySqlCall.html) @@ -44,17 +44,17 @@ Download supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/struct.Fusiontables.html)** +* **[Hub](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/struct.Fusiontables.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.Part.html)** + * **[Parts](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -153,17 +153,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -173,29 +173,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-fusiontables2/1.0.11+20171117/google_fusiontables2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-fusiontables2/1.0.12+20171117/google_fusiontables2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/fusiontables2/src/lib.rs b/gen/fusiontables2/src/lib.rs index 4738dac326..5ea132a02d 100644 --- a/gen/fusiontables2/src/lib.rs +++ b/gen/fusiontables2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *fusiontables* crate version *1.0.11+20171117*, where *20171117* is the exact revision of the *fusiontables:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *fusiontables* crate version *1.0.12+20171117*, where *20171117* is the exact revision of the *fusiontables:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *fusiontables* *v2* API can be found at the //! [official documentation site](https://developers.google.com/fusiontables). @@ -353,7 +353,7 @@ impl<'a, C, A> Fusiontables Fusiontables { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/fusiontables/v2/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -379,7 +379,7 @@ impl<'a, C, A> Fusiontables } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/games1-cli/Cargo.toml b/gen/games1-cli/Cargo.toml index 9d6731a4f0..c9ffd0f524 100644 --- a/gen/games1-cli/Cargo.toml +++ b/gen/games1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-games1-cli" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Games (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/games1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-games1] path = "../games1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" diff --git a/gen/games1-cli/LICENSE.md b/gen/games1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/games1-cli/LICENSE.md +++ b/gen/games1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/games1-cli/README.md b/gen/games1-cli/README.md index 06fd9fcab8..a1839e1a44 100644 --- a/gen/games1-cli/README.md +++ b/gen/games1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Games* API at revision *20190627*. The CLI is at version *1.0.11*. +This documentation was generated from the *Games* API at revision *20190627*. The CLI is at version *1.0.12*. ```bash games1 [options] diff --git a/gen/games1-cli/mkdocs.yml b/gen/games1-cli/mkdocs.yml index 42a4e4d552..42c83ed44d 100644 --- a/gen/games1-cli/mkdocs.yml +++ b/gen/games1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Games v1.0.11+20190627 +site_name: Games v1.0.12+20190627 site_url: http://byron.github.io/google-apis-rs/google-games1-cli site_description: A complete library to interact with Games (protocol v1) @@ -65,5 +65,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/games1-cli/src/cmn.rs b/gen/games1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/games1-cli/src/cmn.rs +++ b/gen/games1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/games1-cli/src/main.rs b/gen/games1-cli/src/main.rs index c9e48e236a..5e3d84d799 100644 --- a/gen/games1-cli/src/main.rs +++ b/gen/games1-cli/src/main.rs @@ -5099,7 +5099,7 @@ fn main() { let mut app = App::new("games1") .author("Sebastian Thiel ") - .version("1.0.11+20190627") + .version("1.0.12+20190627") .about("The API for Google Play Game Services.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_games1_cli") .arg(Arg::with_name("url") diff --git a/gen/games1/Cargo.toml b/gen/games1/Cargo.toml index 4a53e26d4d..3b122915c9 100644 --- a/gen/games1/Cargo.toml +++ b/gen/games1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-games1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Games (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/games1" homepage = "https://developers.google.com/games/services/" -documentation = "https://docs.rs/google-games1/1.0.11+20190627" +documentation = "https://docs.rs/google-games1/1.0.12+20190627" license = "MIT" keywords = ["games", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/games1/LICENSE.md b/gen/games1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/games1/LICENSE.md +++ b/gen/games1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/games1/README.md b/gen/games1/README.md index b370d467dd..489dfffbea 100644 --- a/gen/games1/README.md +++ b/gen/games1/README.md @@ -5,44 +5,44 @@ DO NOT EDIT ! --> The `google-games1` library allows access to all features of the *Google Games* service. -This documentation was generated from *Games* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *games:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Games* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *games:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Games* *v1* API can be found at the [official documentation site](https://developers.google.com/games/services/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.Games.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.Games.html) ... -* [achievement definitions](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.AchievementDefinition.html) - * [*list*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.AchievementDefinitionListCall.html) +* [achievement definitions](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.AchievementDefinition.html) + * [*list*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.AchievementDefinitionListCall.html) * achievements - * [*increment*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.AchievementIncrementCall.html), [*list*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.AchievementListCall.html), [*reveal*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.AchievementRevealCall.html), [*set steps at least*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.AchievementSetStepsAtLeastCall.html), [*unlock*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.AchievementUnlockCall.html) and [*update multiple*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.AchievementUpdateMultipleCall.html) -* [applications](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.Application.html) - * [*get*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.ApplicationGetCall.html), [*played*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.ApplicationPlayedCall.html) and [*verify*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.ApplicationVerifyCall.html) + * [*increment*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.AchievementIncrementCall.html), [*list*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.AchievementListCall.html), [*reveal*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.AchievementRevealCall.html), [*set steps at least*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.AchievementSetStepsAtLeastCall.html), [*unlock*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.AchievementUnlockCall.html) and [*update multiple*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.AchievementUpdateMultipleCall.html) +* [applications](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.Application.html) + * [*get*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.ApplicationGetCall.html), [*played*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.ApplicationPlayedCall.html) and [*verify*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.ApplicationVerifyCall.html) * events - * [*list by player*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.EventListByPlayerCall.html), [*list definitions*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.EventListDefinitionCall.html) and [*record*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.EventRecordCall.html) -* [leaderboards](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.Leaderboard.html) - * [*get*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.LeaderboardGetCall.html) and [*list*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.LeaderboardListCall.html) + * [*list by player*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.EventListByPlayerCall.html), [*list definitions*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.EventListDefinitionCall.html) and [*record*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.EventRecordCall.html) +* [leaderboards](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.Leaderboard.html) + * [*get*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.LeaderboardGetCall.html) and [*list*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.LeaderboardListCall.html) * metagame - * [*get metagame config*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.MetagameGetMetagameConfigCall.html) and [*list categories by player*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.MetagameListCategoriesByPlayerCall.html) -* [players](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.Player.html) - * [*get*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.PlayerGetCall.html) and [*list*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.PlayerListCall.html) + * [*get metagame config*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.MetagameGetMetagameConfigCall.html) and [*list categories by player*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.MetagameListCategoriesByPlayerCall.html) +* [players](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.Player.html) + * [*get*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.PlayerGetCall.html) and [*list*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.PlayerListCall.html) * pushtokens - * [*remove*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.PushtokenRemoveCall.html) and [*update*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.PushtokenUpdateCall.html) -* [quest milestones](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.QuestMilestone.html) - * [*claim*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.QuestMilestoneClaimCall.html) -* [quests](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.Quest.html) - * [*accept*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.QuestAcceptCall.html) and [*list*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.QuestListCall.html) + * [*remove*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.PushtokenRemoveCall.html) and [*update*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.PushtokenUpdateCall.html) +* [quest milestones](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.QuestMilestone.html) + * [*claim*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.QuestMilestoneClaimCall.html) +* [quests](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.Quest.html) + * [*accept*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.QuestAcceptCall.html) and [*list*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.QuestListCall.html) * revisions - * [*check*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.RevisionCheckCall.html) -* [rooms](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.Room.html) - * [*create*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.RoomCreateCall.html), [*decline*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.RoomDeclineCall.html), [*dismiss*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.RoomDismisCall.html), [*get*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.RoomGetCall.html), [*join*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.RoomJoinCall.html), [*leave*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.RoomLeaveCall.html), [*list*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.RoomListCall.html) and [*report status*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.RoomReportStatuCall.html) + * [*check*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.RevisionCheckCall.html) +* [rooms](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.Room.html) + * [*create*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.RoomCreateCall.html), [*decline*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.RoomDeclineCall.html), [*dismiss*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.RoomDismisCall.html), [*get*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.RoomGetCall.html), [*join*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.RoomJoinCall.html), [*leave*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.RoomLeaveCall.html), [*list*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.RoomListCall.html) and [*report status*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.RoomReportStatuCall.html) * scores - * [*get*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.ScoreGetCall.html), [*list*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.ScoreListCall.html), [*list window*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.ScoreListWindowCall.html), [*submit*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.ScoreSubmitCall.html) and [*submit multiple*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.ScoreSubmitMultipleCall.html) -* [snapshots](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.Snapshot.html) - * [*get*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.SnapshotGetCall.html) and [*list*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.SnapshotListCall.html) + * [*get*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.ScoreGetCall.html), [*list*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.ScoreListCall.html), [*list window*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.ScoreListWindowCall.html), [*submit*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.ScoreSubmitCall.html) and [*submit multiple*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.ScoreSubmitMultipleCall.html) +* [snapshots](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.Snapshot.html) + * [*get*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.SnapshotGetCall.html) and [*list*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.SnapshotListCall.html) * turn based matches - * [*cancel*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.TurnBasedMatcheCancelCall.html), [*create*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.TurnBasedMatcheCreateCall.html), [*decline*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.TurnBasedMatcheDeclineCall.html), [*dismiss*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.TurnBasedMatcheDismisCall.html), [*finish*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.TurnBasedMatcheFinishCall.html), [*get*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.TurnBasedMatcheGetCall.html), [*join*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.TurnBasedMatcheJoinCall.html), [*leave*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.TurnBasedMatcheLeaveCall.html), [*leave turn*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.TurnBasedMatcheLeaveTurnCall.html), [*list*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.TurnBasedMatcheListCall.html), [*rematch*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.TurnBasedMatcheRematchCall.html), [*sync*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.TurnBasedMatcheSyncCall.html) and [*take turn*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.TurnBasedMatcheTakeTurnCall.html) + * [*cancel*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.TurnBasedMatcheCancelCall.html), [*create*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.TurnBasedMatcheCreateCall.html), [*decline*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.TurnBasedMatcheDeclineCall.html), [*dismiss*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.TurnBasedMatcheDismisCall.html), [*finish*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.TurnBasedMatcheFinishCall.html), [*get*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.TurnBasedMatcheGetCall.html), [*join*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.TurnBasedMatcheJoinCall.html), [*leave*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.TurnBasedMatcheLeaveCall.html), [*leave turn*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.TurnBasedMatcheLeaveTurnCall.html), [*list*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.TurnBasedMatcheListCall.html), [*rematch*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.TurnBasedMatcheRematchCall.html), [*sync*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.TurnBasedMatcheSyncCall.html) and [*take turn*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.TurnBasedMatcheTakeTurnCall.html) @@ -51,17 +51,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-games1/1.0.11+20190627/google_games1/struct.Games.html)** +* **[Hub](https://docs.rs/google-games1/1.0.12+20190627/google_games1/struct.Games.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.Part.html)** + * **[Parts](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -161,17 +161,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-games1/1.0.11+20190627/google_games1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-games1/1.0.12+20190627/google_games1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-games1/1.0.11+20190627/google_games1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-games1/1.0.12+20190627/google_games1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -181,29 +181,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-games1/1.0.11+20190627/google_games1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-games1/1.0.12+20190627/google_games1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/games1/src/lib.rs b/gen/games1/src/lib.rs index 8b48f0507e..84e3080f73 100644 --- a/gen/games1/src/lib.rs +++ b/gen/games1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Games* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *games:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Games* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *games:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Games* *v1* API can be found at the //! [official documentation site](https://developers.google.com/games/services/). @@ -360,7 +360,7 @@ impl<'a, C, A> Games Games { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/games/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -413,7 +413,7 @@ impl<'a, C, A> Games } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/gamesconfiguration1_configuration-cli/Cargo.toml b/gen/gamesconfiguration1_configuration-cli/Cargo.toml index 42ce18e647..dc9df40062 100644 --- a/gen/gamesconfiguration1_configuration-cli/Cargo.toml +++ b/gen/gamesconfiguration1_configuration-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-gamesconfiguration1_configuration-cli" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Games Configuration (protocol v1configuration)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/gamesconfiguration1_configuration-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-gamesconfiguration1_configuration] path = "../gamesconfiguration1_configuration" -version = "1.0.11+20190627" +version = "1.0.12+20190627" diff --git a/gen/gamesconfiguration1_configuration-cli/LICENSE.md b/gen/gamesconfiguration1_configuration-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/gamesconfiguration1_configuration-cli/LICENSE.md +++ b/gen/gamesconfiguration1_configuration-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/gamesconfiguration1_configuration-cli/README.md b/gen/gamesconfiguration1_configuration-cli/README.md index 6006ded5cc..61ed9e3c89 100644 --- a/gen/gamesconfiguration1_configuration-cli/README.md +++ b/gen/gamesconfiguration1_configuration-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Games Configuration* API at revision *20190627*. The CLI is at version *1.0.11*. +This documentation was generated from the *Games Configuration* API at revision *20190627*. The CLI is at version *1.0.12*. ```bash gamesconfiguration1-configuration [options] diff --git a/gen/gamesconfiguration1_configuration-cli/mkdocs.yml b/gen/gamesconfiguration1_configuration-cli/mkdocs.yml index b13b4a0161..f8207b7797 100644 --- a/gen/gamesconfiguration1_configuration-cli/mkdocs.yml +++ b/gen/gamesconfiguration1_configuration-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Games Configuration v1.0.11+20190627 +site_name: Games Configuration v1.0.12+20190627 site_url: http://byron.github.io/google-apis-rs/google-gamesconfiguration1_configuration-cli site_description: A complete library to interact with Games Configuration (protocol v1configuration) @@ -25,5 +25,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/gamesconfiguration1_configuration-cli/src/cmn.rs b/gen/gamesconfiguration1_configuration-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/gamesconfiguration1_configuration-cli/src/cmn.rs +++ b/gen/gamesconfiguration1_configuration-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/gamesconfiguration1_configuration-cli/src/main.rs b/gen/gamesconfiguration1_configuration-cli/src/main.rs index ccb17a648a..787b7bf183 100644 --- a/gen/gamesconfiguration1_configuration-cli/src/main.rs +++ b/gen/gamesconfiguration1_configuration-cli/src/main.rs @@ -1552,7 +1552,7 @@ fn main() { let mut app = App::new("gamesconfiguration1-configuration") .author("Sebastian Thiel ") - .version("1.0.11+20190627") + .version("1.0.12+20190627") .about("The Publishing API for Google Play Game Services.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_gamesconfiguration1_configuration_cli") .arg(Arg::with_name("url") diff --git a/gen/gamesconfiguration1_configuration/Cargo.toml b/gen/gamesconfiguration1_configuration/Cargo.toml index 3817cada46..1f5b8d90a0 100644 --- a/gen/gamesconfiguration1_configuration/Cargo.toml +++ b/gen/gamesconfiguration1_configuration/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-gamesconfiguration1_configuration" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Games Configuration (protocol v1configuration)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/gamesconfiguration1_configuration" homepage = "https://developers.google.com/games/services" -documentation = "https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627" +documentation = "https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627" license = "MIT" keywords = ["gamesConfiguration", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/gamesconfiguration1_configuration/LICENSE.md b/gen/gamesconfiguration1_configuration/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/gamesconfiguration1_configuration/LICENSE.md +++ b/gen/gamesconfiguration1_configuration/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/gamesconfiguration1_configuration/README.md b/gen/gamesconfiguration1_configuration/README.md index 55b8242120..2a30dcabda 100644 --- a/gen/gamesconfiguration1_configuration/README.md +++ b/gen/gamesconfiguration1_configuration/README.md @@ -5,25 +5,25 @@ DO NOT EDIT ! --> The `google-gamesconfiguration1_configuration` library allows access to all features of the *Google Games Configuration* service. -This documentation was generated from *Games Configuration* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *gamesConfiguration:v1configuration* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Games Configuration* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *gamesConfiguration:v1configuration* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Games Configuration* *v1_configuration* API can be found at the [official documentation site](https://developers.google.com/games/services). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.GamesConfiguration.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.GamesConfiguration.html) ... -* [achievement configurations](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.AchievementConfiguration.html) - * [*delete*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.AchievementConfigurationDeleteCall.html), [*get*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.AchievementConfigurationGetCall.html), [*insert*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.AchievementConfigurationInsertCall.html), [*list*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.AchievementConfigurationListCall.html), [*patch*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.AchievementConfigurationPatchCall.html) and [*update*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.AchievementConfigurationUpdateCall.html) -* [image configurations](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.ImageConfiguration.html) - * [*upload*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.ImageConfigurationUploadCall.html) -* [leaderboard configurations](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.LeaderboardConfiguration.html) - * [*delete*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.LeaderboardConfigurationDeleteCall.html), [*get*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.LeaderboardConfigurationGetCall.html), [*insert*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.LeaderboardConfigurationInsertCall.html), [*list*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.LeaderboardConfigurationListCall.html), [*patch*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.LeaderboardConfigurationPatchCall.html) and [*update*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.LeaderboardConfigurationUpdateCall.html) +* [achievement configurations](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.AchievementConfiguration.html) + * [*delete*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.AchievementConfigurationDeleteCall.html), [*get*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.AchievementConfigurationGetCall.html), [*insert*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.AchievementConfigurationInsertCall.html), [*list*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.AchievementConfigurationListCall.html), [*patch*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.AchievementConfigurationPatchCall.html) and [*update*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.AchievementConfigurationUpdateCall.html) +* [image configurations](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.ImageConfiguration.html) + * [*upload*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.ImageConfigurationUploadCall.html) +* [leaderboard configurations](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.LeaderboardConfiguration.html) + * [*delete*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.LeaderboardConfigurationDeleteCall.html), [*get*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.LeaderboardConfigurationGetCall.html), [*insert*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.LeaderboardConfigurationInsertCall.html), [*list*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.LeaderboardConfigurationListCall.html), [*patch*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.LeaderboardConfigurationPatchCall.html) and [*update*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.LeaderboardConfigurationUpdateCall.html) Upload supported by ... -* [*upload image configurations*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.ImageConfigurationUploadCall.html) +* [*upload image configurations*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.ImageConfigurationUploadCall.html) @@ -31,17 +31,17 @@ Upload supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/struct.GamesConfiguration.html)** +* **[Hub](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/struct.GamesConfiguration.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.Part.html)** + * **[Parts](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -139,17 +139,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -159,29 +159,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.RequestValue.html) and -[decodable](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.RequestValue.html) and +[decodable](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-gamesconfiguration1_configuration/1.0.11+20190627/google_gamesconfiguration1_configuration/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-gamesconfiguration1_configuration/1.0.12+20190627/google_gamesconfiguration1_configuration/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/gamesconfiguration1_configuration/src/lib.rs b/gen/gamesconfiguration1_configuration/src/lib.rs index 6105a0060e..065500d06c 100644 --- a/gen/gamesconfiguration1_configuration/src/lib.rs +++ b/gen/gamesconfiguration1_configuration/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Games Configuration* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *gamesConfiguration:v1configuration* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Games Configuration* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *gamesConfiguration:v1configuration* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Games Configuration* *v1_configuration* API can be found at the //! [official documentation site](https://developers.google.com/games/services). @@ -334,7 +334,7 @@ impl<'a, C, A> GamesConfiguration GamesConfiguration { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/games/v1configuration/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -351,7 +351,7 @@ impl<'a, C, A> GamesConfiguration } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/gamesmanagement1_management-cli/Cargo.toml b/gen/gamesmanagement1_management-cli/Cargo.toml index cc8e87b652..91325a5cad 100644 --- a/gen/gamesmanagement1_management-cli/Cargo.toml +++ b/gen/gamesmanagement1_management-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-gamesmanagement1_management-cli" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Games Management (protocol v1management)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/gamesmanagement1_management-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-gamesmanagement1_management] path = "../gamesmanagement1_management" -version = "1.0.11+20190627" +version = "1.0.12+20190627" diff --git a/gen/gamesmanagement1_management-cli/LICENSE.md b/gen/gamesmanagement1_management-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/gamesmanagement1_management-cli/LICENSE.md +++ b/gen/gamesmanagement1_management-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/gamesmanagement1_management-cli/README.md b/gen/gamesmanagement1_management-cli/README.md index eea5b345e3..f1e968408a 100644 --- a/gen/gamesmanagement1_management-cli/README.md +++ b/gen/gamesmanagement1_management-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Games Management* API at revision *20190627*. The CLI is at version *1.0.11*. +This documentation was generated from the *Games Management* API at revision *20190627*. The CLI is at version *1.0.12*. ```bash gamesmanagement1-management [options] diff --git a/gen/gamesmanagement1_management-cli/mkdocs.yml b/gen/gamesmanagement1_management-cli/mkdocs.yml index a60bcef3c1..c4685abc2e 100644 --- a/gen/gamesmanagement1_management-cli/mkdocs.yml +++ b/gen/gamesmanagement1_management-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Games Management v1.0.11+20190627 +site_name: Games Management v1.0.12+20190627 site_url: http://byron.github.io/google-apis-rs/google-gamesmanagement1_management-cli site_description: A complete library to interact with Games Management (protocol v1management) @@ -39,5 +39,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/gamesmanagement1_management-cli/src/cmn.rs b/gen/gamesmanagement1_management-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/gamesmanagement1_management-cli/src/cmn.rs +++ b/gen/gamesmanagement1_management-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/gamesmanagement1_management-cli/src/main.rs b/gen/gamesmanagement1_management-cli/src/main.rs index fabcab0085..1216a37ac5 100644 --- a/gen/gamesmanagement1_management-cli/src/main.rs +++ b/gen/gamesmanagement1_management-cli/src/main.rs @@ -2079,7 +2079,7 @@ fn main() { let mut app = App::new("gamesmanagement1-management") .author("Sebastian Thiel ") - .version("1.0.11+20190627") + .version("1.0.12+20190627") .about("The Management API for Google Play Game Services.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_gamesmanagement1_management_cli") .arg(Arg::with_name("url") diff --git a/gen/gamesmanagement1_management/Cargo.toml b/gen/gamesmanagement1_management/Cargo.toml index 74fe6245fc..332ccafb4b 100644 --- a/gen/gamesmanagement1_management/Cargo.toml +++ b/gen/gamesmanagement1_management/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-gamesmanagement1_management" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Games Management (protocol v1management)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/gamesmanagement1_management" homepage = "https://developers.google.com/games/services" -documentation = "https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627" +documentation = "https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627" license = "MIT" keywords = ["gamesManagement", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/gamesmanagement1_management/LICENSE.md b/gen/gamesmanagement1_management/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/gamesmanagement1_management/LICENSE.md +++ b/gen/gamesmanagement1_management/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/gamesmanagement1_management/README.md b/gen/gamesmanagement1_management/README.md index 9cc0eeee13..de6cb2c232 100644 --- a/gen/gamesmanagement1_management/README.md +++ b/gen/gamesmanagement1_management/README.md @@ -5,30 +5,30 @@ DO NOT EDIT ! --> The `google-gamesmanagement1_management` library allows access to all features of the *Google Games Management* service. -This documentation was generated from *Games Management* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *gamesManagement:v1management* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Games Management* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *gamesManagement:v1management* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Games Management* *v1_management* API can be found at the [official documentation site](https://developers.google.com/games/services). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.GamesManagement.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.GamesManagement.html) ... * achievements - * [*reset*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.AchievementResetCall.html), [*reset all*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.AchievementResetAllCall.html), [*reset all for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.AchievementResetAllForAllPlayerCall.html), [*reset for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.AchievementResetForAllPlayerCall.html) and [*reset multiple for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.AchievementResetMultipleForAllPlayerCall.html) + * [*reset*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.AchievementResetCall.html), [*reset all*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.AchievementResetAllCall.html), [*reset all for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.AchievementResetAllForAllPlayerCall.html), [*reset for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.AchievementResetForAllPlayerCall.html) and [*reset multiple for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.AchievementResetMultipleForAllPlayerCall.html) * applications - * [*list hidden*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.ApplicationListHiddenCall.html) + * [*list hidden*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.ApplicationListHiddenCall.html) * events - * [*reset*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.EventResetCall.html), [*reset all*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.EventResetAllCall.html), [*reset all for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.EventResetAllForAllPlayerCall.html), [*reset for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.EventResetForAllPlayerCall.html) and [*reset multiple for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.EventResetMultipleForAllPlayerCall.html) -* [players](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.Player.html) - * [*hide*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.PlayerHideCall.html) and [*unhide*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.PlayerUnhideCall.html) + * [*reset*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.EventResetCall.html), [*reset all*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.EventResetAllCall.html), [*reset all for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.EventResetAllForAllPlayerCall.html), [*reset for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.EventResetForAllPlayerCall.html) and [*reset multiple for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.EventResetMultipleForAllPlayerCall.html) +* [players](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.Player.html) + * [*hide*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.PlayerHideCall.html) and [*unhide*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.PlayerUnhideCall.html) * quests - * [*reset*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.QuestResetCall.html), [*reset all*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.QuestResetAllCall.html), [*reset all for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.QuestResetAllForAllPlayerCall.html), [*reset for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.QuestResetForAllPlayerCall.html) and [*reset multiple for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.QuestResetMultipleForAllPlayerCall.html) + * [*reset*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.QuestResetCall.html), [*reset all*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.QuestResetAllCall.html), [*reset all for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.QuestResetAllForAllPlayerCall.html), [*reset for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.QuestResetForAllPlayerCall.html) and [*reset multiple for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.QuestResetMultipleForAllPlayerCall.html) * rooms - * [*reset*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.RoomResetCall.html) and [*reset for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.RoomResetForAllPlayerCall.html) + * [*reset*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.RoomResetCall.html) and [*reset for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.RoomResetForAllPlayerCall.html) * scores - * [*reset*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.ScoreResetCall.html), [*reset all*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.ScoreResetAllCall.html), [*reset all for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.ScoreResetAllForAllPlayerCall.html), [*reset for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.ScoreResetForAllPlayerCall.html) and [*reset multiple for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.ScoreResetMultipleForAllPlayerCall.html) + * [*reset*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.ScoreResetCall.html), [*reset all*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.ScoreResetAllCall.html), [*reset all for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.ScoreResetAllForAllPlayerCall.html), [*reset for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.ScoreResetForAllPlayerCall.html) and [*reset multiple for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.ScoreResetMultipleForAllPlayerCall.html) * turn based matches - * [*reset*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.TurnBasedMatcheResetCall.html) and [*reset for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.TurnBasedMatcheResetForAllPlayerCall.html) + * [*reset*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.TurnBasedMatcheResetCall.html) and [*reset for all players*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.TurnBasedMatcheResetForAllPlayerCall.html) @@ -37,17 +37,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/struct.GamesManagement.html)** +* **[Hub](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/struct.GamesManagement.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.Part.html)** + * **[Parts](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -139,17 +139,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -159,29 +159,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.RequestValue.html) and -[decodable](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.RequestValue.html) and +[decodable](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-gamesmanagement1_management/1.0.11+20190627/google_gamesmanagement1_management/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-gamesmanagement1_management/1.0.12+20190627/google_gamesmanagement1_management/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/gamesmanagement1_management/src/lib.rs b/gen/gamesmanagement1_management/src/lib.rs index c9847bb469..7a4dc41a91 100644 --- a/gen/gamesmanagement1_management/src/lib.rs +++ b/gen/gamesmanagement1_management/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Games Management* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *gamesManagement:v1management* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Games Management* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *gamesManagement:v1management* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Games Management* *v1_management* API can be found at the //! [official documentation site](https://developers.google.com/games/services). @@ -332,7 +332,7 @@ impl<'a, C, A> GamesManagement GamesManagement { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/games/v1management/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -364,7 +364,7 @@ impl<'a, C, A> GamesManagement } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/gan1_beta1-cli/Cargo.toml b/gen/gan1_beta1-cli/Cargo.toml index 2b84baa02d..8822ac55f1 100644 --- a/gen/gan1_beta1-cli/Cargo.toml +++ b/gen/gan1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-gan1_beta1-cli" -version = "1.0.11+20130205" +version = "1.0.12+20130205" authors = ["Sebastian Thiel "] description = "A complete library to interact with gan (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/gan1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-gan1_beta1] path = "../gan1_beta1" -version = "1.0.11+20130205" +version = "1.0.12+20130205" diff --git a/gen/gan1_beta1-cli/LICENSE.md b/gen/gan1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/gan1_beta1-cli/LICENSE.md +++ b/gen/gan1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/gan1_beta1-cli/README.md b/gen/gan1_beta1-cli/README.md index 995f34e13f..9211784b8d 100644 --- a/gen/gan1_beta1-cli/README.md +++ b/gen/gan1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *gan* API at revision *20130205*. The CLI is at version *1.0.11*. +This documentation was generated from the *gan* API at revision *20130205*. The CLI is at version *1.0.12*. ```bash gan1-beta1 [options] diff --git a/gen/gan1_beta1-cli/mkdocs.yml b/gen/gan1_beta1-cli/mkdocs.yml index cebc21911f..2436ab5238 100644 --- a/gen/gan1_beta1-cli/mkdocs.yml +++ b/gen/gan1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: gan v1.0.11+20130205 +site_name: gan v1.0.12+20130205 site_url: http://byron.github.io/google-apis-rs/google-gan1_beta1-cli site_description: A complete library to interact with gan (protocol v1beta1) @@ -22,5 +22,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/gan1_beta1-cli/src/cmn.rs b/gen/gan1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/gan1_beta1-cli/src/cmn.rs +++ b/gen/gan1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/gan1_beta1-cli/src/main.rs b/gen/gan1_beta1-cli/src/main.rs index 589cbcb91a..0223ba1e93 100644 --- a/gen/gan1_beta1-cli/src/main.rs +++ b/gen/gan1_beta1-cli/src/main.rs @@ -1263,7 +1263,7 @@ fn main() { let mut app = App::new("gan1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20130205") + .version("1.0.12+20130205") .about("Lets you have programmatic access to your Google Affiliate Network data.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_gan1_beta1_cli") .arg(Arg::with_name("folder") diff --git a/gen/gan1_beta1/Cargo.toml b/gen/gan1_beta1/Cargo.toml index cba3f11333..313d9b04a4 100644 --- a/gen/gan1_beta1/Cargo.toml +++ b/gen/gan1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-gan1_beta1" -version = "1.0.11+20130205" +version = "1.0.12+20130205" authors = ["Sebastian Thiel "] description = "A complete library to interact with gan (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/gan1_beta1" homepage = "https://developers.google.com/affiliate-network/" -documentation = "https://docs.rs/google-gan1_beta1/1.0.11+20130205" +documentation = "https://docs.rs/google-gan1_beta1/1.0.12+20130205" license = "MIT" keywords = ["gan", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/gan1_beta1/LICENSE.md b/gen/gan1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/gan1_beta1/LICENSE.md +++ b/gen/gan1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/gan1_beta1/README.md b/gen/gan1_beta1/README.md index ef46ff0fad..b34390c198 100644 --- a/gen/gan1_beta1/README.md +++ b/gen/gan1_beta1/README.md @@ -5,26 +5,26 @@ DO NOT EDIT ! --> The `google-gan1_beta1` library allows access to all features of the *Google gan* service. -This documentation was generated from *gan* crate version *1.0.11+20130205*, where *20130205* is the exact revision of the *gan:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *gan* crate version *1.0.12+20130205*, where *20130205* is the exact revision of the *gan:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *gan* *v1_beta1* API can be found at the [official documentation site](https://developers.google.com/affiliate-network/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.Gan.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.Gan.html) ... -* [advertisers](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.Advertiser.html) - * [*get*](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.AdvertiserGetCall.html) and [*list*](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.AdvertiserListCall.html) -* [cc offers](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.CcOffer.html) - * [*list*](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.CcOfferListCall.html) -* [events](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.Event.html) - * [*list*](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.EventListCall.html) -* [links](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.Link.html) - * [*get*](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.LinkGetCall.html), [*insert*](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.LinkInsertCall.html) and [*list*](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.LinkListCall.html) -* [publishers](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.Publisher.html) - * [*get*](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.PublisherGetCall.html) and [*list*](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.PublisherListCall.html) -* [reports](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.Report.html) - * [*get*](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.ReportGetCall.html) +* [advertisers](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.Advertiser.html) + * [*get*](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.AdvertiserGetCall.html) and [*list*](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.AdvertiserListCall.html) +* [cc offers](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.CcOffer.html) + * [*list*](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.CcOfferListCall.html) +* [events](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.Event.html) + * [*list*](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.EventListCall.html) +* [links](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.Link.html) + * [*get*](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.LinkGetCall.html), [*insert*](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.LinkInsertCall.html) and [*list*](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.LinkListCall.html) +* [publishers](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.Publisher.html) + * [*get*](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.PublisherGetCall.html) and [*list*](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.PublisherListCall.html) +* [reports](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.Report.html) + * [*get*](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.ReportGetCall.html) @@ -33,17 +33,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/struct.Gan.html)** +* **[Hub](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/struct.Gan.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -149,17 +149,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -169,29 +169,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-gan1_beta1/1.0.11+20130205/google_gan1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-gan1_beta1/1.0.12+20130205/google_gan1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/gan1_beta1/src/lib.rs b/gen/gan1_beta1/src/lib.rs index 48015d2dd8..782bb8554f 100644 --- a/gen/gan1_beta1/src/lib.rs +++ b/gen/gan1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *gan* crate version *1.0.11+20130205*, where *20130205* is the exact revision of the *gan:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *gan* crate version *1.0.12+20130205*, where *20130205* is the exact revision of the *gan:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *gan* *v1_beta1* API can be found at the //! [official documentation site](https://developers.google.com/affiliate-network/). @@ -333,7 +333,7 @@ impl<'a, C, A> Gan Gan { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/gan/v1beta1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -359,7 +359,7 @@ impl<'a, C, A> Gan } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/genomics1-cli/Cargo.toml b/gen/genomics1-cli/Cargo.toml index 8112eb188b..8589e200fd 100644 --- a/gen/genomics1-cli/Cargo.toml +++ b/gen/genomics1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-genomics1-cli" -version = "1.0.11+20190704" +version = "1.0.12+20190704" authors = ["Sebastian Thiel "] description = "A complete library to interact with genomics (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/genomics1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-genomics1] path = "../genomics1" -version = "1.0.11+20190704" +version = "1.0.12+20190704" diff --git a/gen/genomics1-cli/LICENSE.md b/gen/genomics1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/genomics1-cli/LICENSE.md +++ b/gen/genomics1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/genomics1-cli/README.md b/gen/genomics1-cli/README.md index 8590c832ee..9a09df705c 100644 --- a/gen/genomics1-cli/README.md +++ b/gen/genomics1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *genomics* API at revision *20190704*. The CLI is at version *1.0.11*. +This documentation was generated from the *genomics* API at revision *20190704*. The CLI is at version *1.0.12*. ```bash genomics1 [options] diff --git a/gen/genomics1-cli/mkdocs.yml b/gen/genomics1-cli/mkdocs.yml index 2f58d379ec..8f3ab6aaa2 100644 --- a/gen/genomics1-cli/mkdocs.yml +++ b/gen/genomics1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: genomics v1.0.11+20190704 +site_name: genomics v1.0.12+20190704 site_url: http://byron.github.io/google-apis-rs/google-genomics1-cli site_description: A complete library to interact with genomics (protocol v1) @@ -15,5 +15,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/genomics1-cli/src/cmn.rs b/gen/genomics1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/genomics1-cli/src/cmn.rs +++ b/gen/genomics1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/genomics1-cli/src/main.rs b/gen/genomics1-cli/src/main.rs index 9ec5d64ca4..085a099a84 100644 --- a/gen/genomics1-cli/src/main.rs +++ b/gen/genomics1-cli/src/main.rs @@ -446,7 +446,7 @@ fn main() { let mut app = App::new("genomics1") .author("Sebastian Thiel ") - .version("1.0.11+20190704") + .version("1.0.12+20190704") .about("Uploads, processes, queries, and searches Genomics data in the cloud.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_genomics1_cli") .arg(Arg::with_name("url") diff --git a/gen/genomics1/Cargo.toml b/gen/genomics1/Cargo.toml index f9d8da1459..6c06c231be 100644 --- a/gen/genomics1/Cargo.toml +++ b/gen/genomics1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-genomics1" -version = "1.0.11+20190704" +version = "1.0.12+20190704" authors = ["Sebastian Thiel "] description = "A complete library to interact with genomics (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/genomics1" homepage = "https://cloud.google.com/genomics" -documentation = "https://docs.rs/google-genomics1/1.0.11+20190704" +documentation = "https://docs.rs/google-genomics1/1.0.12+20190704" license = "MIT" keywords = ["genomics", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/genomics1/LICENSE.md b/gen/genomics1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/genomics1/LICENSE.md +++ b/gen/genomics1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/genomics1/README.md b/gen/genomics1/README.md index 6fc89efe1c..5fb946c9d9 100644 --- a/gen/genomics1/README.md +++ b/gen/genomics1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-genomics1` library allows access to all features of the *Google genomics* service. -This documentation was generated from *genomics* crate version *1.0.11+20190704*, where *20190704* is the exact revision of the *genomics:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *genomics* crate version *1.0.12+20190704*, where *20190704* is the exact revision of the *genomics:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *genomics* *v1* API can be found at the [official documentation site](https://cloud.google.com/genomics). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/struct.Genomics.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/struct.Genomics.html) ... -* [operations](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/struct.Operation.html) - * [*cancel*](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/struct.OperationCancelCall.html), [*get*](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/struct.OperationListCall.html) +* [operations](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/struct.Operation.html) + * [*cancel*](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/struct.OperationCancelCall.html), [*get*](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/struct.OperationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/struct.Genomics.html)** +* **[Hub](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/struct.Genomics.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.Part.html)** + * **[Parts](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -129,17 +129,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -149,29 +149,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-genomics1/1.0.11+20190704/google_genomics1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-genomics1/1.0.12+20190704/google_genomics1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/genomics1/src/lib.rs b/gen/genomics1/src/lib.rs index 67c2b282e4..00b1278199 100644 --- a/gen/genomics1/src/lib.rs +++ b/gen/genomics1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *genomics* crate version *1.0.11+20190704*, where *20190704* is the exact revision of the *genomics:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *genomics* crate version *1.0.12+20190704*, where *20190704* is the exact revision of the *genomics:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *genomics* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/genomics). @@ -329,7 +329,7 @@ impl<'a, C, A> Genomics Genomics { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://genomics.googleapis.com/".to_string(), _root_url: "https://genomics.googleapis.com/".to_string(), } @@ -340,7 +340,7 @@ impl<'a, C, A> Genomics } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/groupsmigration1-cli/Cargo.toml b/gen/groupsmigration1-cli/Cargo.toml index f2296caec9..985fd2674b 100644 --- a/gen/groupsmigration1-cli/Cargo.toml +++ b/gen/groupsmigration1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-groupsmigration1-cli" -version = "1.0.11+20181126" +version = "1.0.12+20181126" authors = ["Sebastian Thiel "] description = "A complete library to interact with Groups Migration (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/groupsmigration1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-groupsmigration1] path = "../groupsmigration1" -version = "1.0.11+20181126" +version = "1.0.12+20181126" diff --git a/gen/groupsmigration1-cli/LICENSE.md b/gen/groupsmigration1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/groupsmigration1-cli/LICENSE.md +++ b/gen/groupsmigration1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/groupsmigration1-cli/README.md b/gen/groupsmigration1-cli/README.md index 14ee8f82e0..800cc0629f 100644 --- a/gen/groupsmigration1-cli/README.md +++ b/gen/groupsmigration1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Groups Migration* API at revision *20181126*. The CLI is at version *1.0.11*. +This documentation was generated from the *Groups Migration* API at revision *20181126*. The CLI is at version *1.0.12*. ```bash groupsmigration1 [options] diff --git a/gen/groupsmigration1-cli/mkdocs.yml b/gen/groupsmigration1-cli/mkdocs.yml index de361930de..0015dc7e06 100644 --- a/gen/groupsmigration1-cli/mkdocs.yml +++ b/gen/groupsmigration1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Groups Migration v1.0.11+20181126 +site_name: Groups Migration v1.0.12+20181126 site_url: http://byron.github.io/google-apis-rs/google-groupsmigration1-cli site_description: A complete library to interact with Groups Migration (protocol v1) @@ -13,5 +13,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/groupsmigration1-cli/src/cmn.rs b/gen/groupsmigration1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/groupsmigration1-cli/src/cmn.rs +++ b/gen/groupsmigration1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/groupsmigration1-cli/src/main.rs b/gen/groupsmigration1-cli/src/main.rs index 518f2d7ae8..65c9d72995 100644 --- a/gen/groupsmigration1-cli/src/main.rs +++ b/gen/groupsmigration1-cli/src/main.rs @@ -236,7 +236,7 @@ fn main() { let mut app = App::new("groupsmigration1") .author("Sebastian Thiel ") - .version("1.0.11+20181126") + .version("1.0.12+20181126") .about("Groups Migration Api.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_groupsmigration1_cli") .arg(Arg::with_name("url") diff --git a/gen/groupsmigration1/Cargo.toml b/gen/groupsmigration1/Cargo.toml index 88243eca55..6a271523ba 100644 --- a/gen/groupsmigration1/Cargo.toml +++ b/gen/groupsmigration1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-groupsmigration1" -version = "1.0.11+20181126" +version = "1.0.12+20181126" authors = ["Sebastian Thiel "] description = "A complete library to interact with Groups Migration (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/groupsmigration1" homepage = "https://developers.google.com/google-apps/groups-migration/" -documentation = "https://docs.rs/google-groupsmigration1/1.0.11+20181126" +documentation = "https://docs.rs/google-groupsmigration1/1.0.12+20181126" license = "MIT" keywords = ["groupsmigration", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/groupsmigration1/LICENSE.md b/gen/groupsmigration1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/groupsmigration1/LICENSE.md +++ b/gen/groupsmigration1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/groupsmigration1/README.md b/gen/groupsmigration1/README.md index 27dfc2de15..9c3a61796a 100644 --- a/gen/groupsmigration1/README.md +++ b/gen/groupsmigration1/README.md @@ -5,21 +5,21 @@ DO NOT EDIT ! --> The `google-groupsmigration1` library allows access to all features of the *Google Groups Migration* service. -This documentation was generated from *Groups Migration* crate version *1.0.11+20181126*, where *20181126* is the exact revision of the *groupsmigration:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Groups Migration* crate version *1.0.12+20181126*, where *20181126* is the exact revision of the *groupsmigration:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Groups Migration* *v1* API can be found at the [official documentation site](https://developers.google.com/google-apps/groups-migration/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/struct.GroupsMigration.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/struct.GroupsMigration.html) ... * archive - * [*insert*](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/struct.ArchiveInsertCall.html) + * [*insert*](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/struct.ArchiveInsertCall.html) Upload supported by ... -* [*insert archive*](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/struct.ArchiveInsertCall.html) +* [*insert archive*](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/struct.ArchiveInsertCall.html) @@ -27,17 +27,17 @@ Upload supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/struct.GroupsMigration.html)** +* **[Hub](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/struct.GroupsMigration.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.Part.html)** + * **[Parts](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -129,17 +129,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -149,29 +149,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-groupsmigration1/1.0.11+20181126/google_groupsmigration1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-groupsmigration1/1.0.12+20181126/google_groupsmigration1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/groupsmigration1/src/lib.rs b/gen/groupsmigration1/src/lib.rs index 6455aa4de6..1bdaf72a01 100644 --- a/gen/groupsmigration1/src/lib.rs +++ b/gen/groupsmigration1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Groups Migration* crate version *1.0.11+20181126*, where *20181126* is the exact revision of the *groupsmigration:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Groups Migration* crate version *1.0.12+20181126*, where *20181126* is the exact revision of the *groupsmigration:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Groups Migration* *v1* API can be found at the //! [official documentation site](https://developers.google.com/google-apps/groups-migration/). @@ -323,7 +323,7 @@ impl<'a, C, A> GroupsMigration GroupsMigration { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/groups/v1/groups/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -334,7 +334,7 @@ impl<'a, C, A> GroupsMigration } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/groupssettings1-cli/Cargo.toml b/gen/groupssettings1-cli/Cargo.toml index e262f2e6da..65f2380599 100644 --- a/gen/groupssettings1-cli/Cargo.toml +++ b/gen/groupssettings1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-groupssettings1-cli" -version = "1.0.11+20190315" +version = "1.0.12+20190315" authors = ["Sebastian Thiel "] description = "A complete library to interact with groupssettings (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/groupssettings1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-groupssettings1] path = "../groupssettings1" -version = "1.0.11+20190315" +version = "1.0.12+20190315" diff --git a/gen/groupssettings1-cli/LICENSE.md b/gen/groupssettings1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/groupssettings1-cli/LICENSE.md +++ b/gen/groupssettings1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/groupssettings1-cli/README.md b/gen/groupssettings1-cli/README.md index 4c4b5c5f3a..2d5b0769c7 100644 --- a/gen/groupssettings1-cli/README.md +++ b/gen/groupssettings1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *groupssettings* API at revision *20190315*. The CLI is at version *1.0.11*. +This documentation was generated from the *groupssettings* API at revision *20190315*. The CLI is at version *1.0.12*. ```bash groupssettings1 [options] diff --git a/gen/groupssettings1-cli/mkdocs.yml b/gen/groupssettings1-cli/mkdocs.yml index 98d419a719..f47e6ea175 100644 --- a/gen/groupssettings1-cli/mkdocs.yml +++ b/gen/groupssettings1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: groupssettings v1.0.11+20190315 +site_name: groupssettings v1.0.12+20190315 site_url: http://byron.github.io/google-apis-rs/google-groupssettings1-cli site_description: A complete library to interact with groupssettings (protocol v1) @@ -15,5 +15,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/groupssettings1-cli/src/cmn.rs b/gen/groupssettings1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/groupssettings1-cli/src/cmn.rs +++ b/gen/groupssettings1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/groupssettings1-cli/src/main.rs b/gen/groupssettings1-cli/src/main.rs index a481dad5f0..d393df5452 100644 --- a/gen/groupssettings1-cli/src/main.rs +++ b/gen/groupssettings1-cli/src/main.rs @@ -577,7 +577,7 @@ fn main() { let mut app = App::new("groupssettings1") .author("Sebastian Thiel ") - .version("1.0.11+20190315") + .version("1.0.12+20190315") .about("Manages permission levels and related settings of a group.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_groupssettings1_cli") .arg(Arg::with_name("url") diff --git a/gen/groupssettings1/Cargo.toml b/gen/groupssettings1/Cargo.toml index ca6452eba4..40cd55c0de 100644 --- a/gen/groupssettings1/Cargo.toml +++ b/gen/groupssettings1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-groupssettings1" -version = "1.0.11+20190315" +version = "1.0.12+20190315" authors = ["Sebastian Thiel "] description = "A complete library to interact with groupssettings (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/groupssettings1" homepage = "https://developers.google.com/google-apps/groups-settings/get_started" -documentation = "https://docs.rs/google-groupssettings1/1.0.11+20190315" +documentation = "https://docs.rs/google-groupssettings1/1.0.12+20190315" license = "MIT" keywords = ["groupssettings", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/groupssettings1/LICENSE.md b/gen/groupssettings1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/groupssettings1/LICENSE.md +++ b/gen/groupssettings1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/groupssettings1/README.md b/gen/groupssettings1/README.md index 051a38e252..f78406e333 100644 --- a/gen/groupssettings1/README.md +++ b/gen/groupssettings1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-groupssettings1` library allows access to all features of the *Google groupssettings* service. -This documentation was generated from *groupssettings* crate version *1.0.11+20190315*, where *20190315* is the exact revision of the *groupssettings:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *groupssettings* crate version *1.0.12+20190315*, where *20190315* is the exact revision of the *groupssettings:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *groupssettings* *v1* API can be found at the [official documentation site](https://developers.google.com/google-apps/groups-settings/get_started). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/struct.Groupssettings.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/struct.Groupssettings.html) ... * groups - * [*get*](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/struct.GroupGetCall.html), [*patch*](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/struct.GroupPatchCall.html) and [*update*](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/struct.GroupUpdateCall.html) + * [*get*](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/struct.GroupGetCall.html), [*patch*](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/struct.GroupPatchCall.html) and [*update*](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/struct.GroupUpdateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/struct.Groupssettings.html)** +* **[Hub](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/struct.Groupssettings.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.Part.html)** + * **[Parts](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-groupssettings1/1.0.11+20190315/google_groupssettings1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-groupssettings1/1.0.12+20190315/google_groupssettings1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/groupssettings1/src/lib.rs b/gen/groupssettings1/src/lib.rs index f801c53a7b..17ae3178cf 100644 --- a/gen/groupssettings1/src/lib.rs +++ b/gen/groupssettings1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *groupssettings* crate version *1.0.11+20190315*, where *20190315* is the exact revision of the *groupssettings:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *groupssettings* crate version *1.0.12+20190315*, where *20190315* is the exact revision of the *groupssettings:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *groupssettings* *v1* API can be found at the //! [official documentation site](https://developers.google.com/google-apps/groups-settings/get_started). @@ -331,7 +331,7 @@ impl<'a, C, A> Groupssettings Groupssettings { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/groups/v1/groups/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -342,7 +342,7 @@ impl<'a, C, A> Groupssettings } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/healthcare1_beta1-cli/Cargo.toml b/gen/healthcare1_beta1-cli/Cargo.toml index 7b9f90e8bc..8b6192b3f2 100644 --- a/gen/healthcare1_beta1-cli/Cargo.toml +++ b/gen/healthcare1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-healthcare1_beta1-cli" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Healthcare (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/healthcare1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-healthcare1_beta1] path = "../healthcare1_beta1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" diff --git a/gen/healthcare1_beta1-cli/LICENSE.md b/gen/healthcare1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/healthcare1_beta1-cli/LICENSE.md +++ b/gen/healthcare1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/healthcare1_beta1-cli/README.md b/gen/healthcare1_beta1-cli/README.md index e77de8fa20..44ea5fdd15 100644 --- a/gen/healthcare1_beta1-cli/README.md +++ b/gen/healthcare1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Healthcare* API at revision *20190628*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Healthcare* API at revision *20190628*. The CLI is at version *1.0.12*. ```bash healthcare1-beta1 [options] diff --git a/gen/healthcare1_beta1-cli/mkdocs.yml b/gen/healthcare1_beta1-cli/mkdocs.yml index ac2d646ef7..458aac8b42 100644 --- a/gen/healthcare1_beta1-cli/mkdocs.yml +++ b/gen/healthcare1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Healthcare v1.0.11+20190628 +site_name: Cloud Healthcare v1.0.12+20190628 site_url: http://byron.github.io/google-apis-rs/google-healthcare1_beta1-cli site_description: A complete library to interact with Cloud Healthcare (protocol v1beta1) @@ -95,5 +95,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/healthcare1_beta1-cli/src/cmn.rs b/gen/healthcare1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/healthcare1_beta1-cli/src/cmn.rs +++ b/gen/healthcare1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/healthcare1_beta1-cli/src/main.rs b/gen/healthcare1_beta1-cli/src/main.rs index ebfee983fb..46633c453c 100644 --- a/gen/healthcare1_beta1-cli/src/main.rs +++ b/gen/healthcare1_beta1-cli/src/main.rs @@ -8696,7 +8696,7 @@ fn main() { let mut app = App::new("healthcare1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190628") + .version("1.0.12+20190628") .about("Manage, store, and access healthcare data in Google Cloud Platform.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_healthcare1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/healthcare1_beta1/Cargo.toml b/gen/healthcare1_beta1/Cargo.toml index f5b2dda04d..75c964242f 100644 --- a/gen/healthcare1_beta1/Cargo.toml +++ b/gen/healthcare1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-healthcare1_beta1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Healthcare (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/healthcare1_beta1" homepage = "https://cloud.google.com/healthcare" -documentation = "https://docs.rs/google-healthcare1_beta1/1.0.11+20190628" +documentation = "https://docs.rs/google-healthcare1_beta1/1.0.12+20190628" license = "MIT" keywords = ["healthcare", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/healthcare1_beta1/LICENSE.md b/gen/healthcare1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/healthcare1_beta1/LICENSE.md +++ b/gen/healthcare1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/healthcare1_beta1/README.md b/gen/healthcare1_beta1/README.md index 749ba647db..e0d9dad71f 100644 --- a/gen/healthcare1_beta1/README.md +++ b/gen/healthcare1_beta1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-healthcare1_beta1` library allows access to all features of the *Google Cloud Healthcare* service. -This documentation was generated from *Cloud Healthcare* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *healthcare:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Healthcare* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *healthcare:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Healthcare* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/healthcare). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.CloudHealthcare.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.CloudHealthcare.html) ... * projects - * [*locations datasets create*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetCreateCall.html), [*locations datasets deidentify*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDeidentifyCall.html), [*locations datasets delete*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDeleteCall.html), [*locations datasets dicom stores create*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreCreateCall.html), [*locations datasets dicom stores delete*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreDeleteCall.html), [*locations datasets dicom stores export*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreExportCall.html), [*locations datasets dicom stores get*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreGetCall.html), [*locations datasets dicom stores get iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreGetIamPolicyCall.html), [*locations datasets dicom stores import*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreImportCall.html), [*locations datasets dicom stores list*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreListCall.html), [*locations datasets dicom stores patch*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStorePatchCall.html), [*locations datasets dicom stores search for instances*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreSearchForInstanceCall.html), [*locations datasets dicom stores search for series*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreSearchForSeryCall.html), [*locations datasets dicom stores search for studies*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreSearchForStudyCall.html), [*locations datasets dicom stores set iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreSetIamPolicyCall.html), [*locations datasets dicom stores store instances*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStoreInstanceCall.html), [*locations datasets dicom stores studies delete*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudyDeleteCall.html), [*locations datasets dicom stores studies retrieve metadata*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudyRetrieveMetadataCall.html), [*locations datasets dicom stores studies retrieve study*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudyRetrieveStudyCall.html), [*locations datasets dicom stores studies search for instances*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySearchForInstanceCall.html), [*locations datasets dicom stores studies search for series*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySearchForSeryCall.html), [*locations datasets dicom stores studies series delete*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryDeleteCall.html), [*locations datasets dicom stores studies series instances delete*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryInstanceDeleteCall.html), [*locations datasets dicom stores studies series instances frames retrieve frames*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryInstanceFrameRetrieveFrameCall.html), [*locations datasets dicom stores studies series instances frames retrieve rendered*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryInstanceFrameRetrieveRenderedCall.html), [*locations datasets dicom stores studies series instances retrieve instance*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryInstanceRetrieveInstanceCall.html), [*locations datasets dicom stores studies series instances retrieve metadata*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryInstanceRetrieveMetadataCall.html), [*locations datasets dicom stores studies series instances retrieve rendered*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryInstanceRetrieveRenderedCall.html), [*locations datasets dicom stores studies series retrieve metadata*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryRetrieveMetadataCall.html), [*locations datasets dicom stores studies series retrieve series*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryRetrieveSeryCall.html), [*locations datasets dicom stores studies series search for instances*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySerySearchForInstanceCall.html), [*locations datasets dicom stores studies store instances*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudyStoreInstanceCall.html), [*locations datasets dicom stores test iam permissions*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreTestIamPermissionCall.html), [*locations datasets fhir stores create*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreCreateCall.html), [*locations datasets fhir stores delete*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreDeleteCall.html), [*locations datasets fhir stores export*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreExportCall.html), [*locations datasets fhir stores fhir observation-lastn*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirObservationLastnCall.html), [*locations datasets fhir stores fhir patient-everything*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirPatientEverythingCall.html), [*locations datasets fhir stores fhir resource-purge*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirResourcePurgeCall.html), [*locations datasets fhir stores fhir capabilities*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirCapabilityCall.html), [*locations datasets fhir stores fhir conditional delete*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirConditionalDeleteCall.html), [*locations datasets fhir stores fhir conditional patch*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirConditionalPatchCall.html), [*locations datasets fhir stores fhir conditional update*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirConditionalUpdateCall.html), [*locations datasets fhir stores fhir create*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirCreateCall.html), [*locations datasets fhir stores fhir delete*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirDeleteCall.html), [*locations datasets fhir stores fhir execute bundle*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirExecuteBundleCall.html), [*locations datasets fhir stores fhir history*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirHistoryCall.html), [*locations datasets fhir stores fhir patch*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirPatchCall.html), [*locations datasets fhir stores fhir read*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirReadCall.html), [*locations datasets fhir stores fhir search*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirSearchCall.html), [*locations datasets fhir stores fhir update*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirUpdateCall.html), [*locations datasets fhir stores fhir vread*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirVreadCall.html), [*locations datasets fhir stores get*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreGetCall.html), [*locations datasets fhir stores get iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreGetIamPolicyCall.html), [*locations datasets fhir stores import*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreImportCall.html), [*locations datasets fhir stores list*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreListCall.html), [*locations datasets fhir stores patch*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStorePatchCall.html), [*locations datasets fhir stores set iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreSetIamPolicyCall.html), [*locations datasets fhir stores test iam permissions*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreTestIamPermissionCall.html), [*locations datasets get*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetGetCall.html), [*locations datasets get iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetGetIamPolicyCall.html), [*locations datasets hl7 v2 stores create*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreCreateCall.html), [*locations datasets hl7 v2 stores delete*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreDeleteCall.html), [*locations datasets hl7 v2 stores get*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreGetCall.html), [*locations datasets hl7 v2 stores get iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreGetIamPolicyCall.html), [*locations datasets hl7 v2 stores list*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreListCall.html), [*locations datasets hl7 v2 stores messages create*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreMessageCreateCall.html), [*locations datasets hl7 v2 stores messages delete*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreMessageDeleteCall.html), [*locations datasets hl7 v2 stores messages get*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreMessageGetCall.html), [*locations datasets hl7 v2 stores messages ingest*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreMessageIngestCall.html), [*locations datasets hl7 v2 stores messages list*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreMessageListCall.html), [*locations datasets hl7 v2 stores messages patch*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreMessagePatchCall.html), [*locations datasets hl7 v2 stores patch*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StorePatchCall.html), [*locations datasets hl7 v2 stores set iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreSetIamPolicyCall.html), [*locations datasets hl7 v2 stores test iam permissions*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreTestIamPermissionCall.html), [*locations datasets list*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetListCall.html), [*locations datasets operations get*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetOperationGetCall.html), [*locations datasets operations list*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetOperationListCall.html), [*locations datasets patch*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetPatchCall.html), [*locations datasets set iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetSetIamPolicyCall.html), [*locations datasets test iam permissions*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetTestIamPermissionCall.html), [*locations get*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationGetCall.html) and [*locations list*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.ProjectLocationListCall.html) + * [*locations datasets create*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetCreateCall.html), [*locations datasets deidentify*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDeidentifyCall.html), [*locations datasets delete*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDeleteCall.html), [*locations datasets dicom stores create*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreCreateCall.html), [*locations datasets dicom stores delete*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreDeleteCall.html), [*locations datasets dicom stores export*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreExportCall.html), [*locations datasets dicom stores get*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreGetCall.html), [*locations datasets dicom stores get iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreGetIamPolicyCall.html), [*locations datasets dicom stores import*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreImportCall.html), [*locations datasets dicom stores list*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreListCall.html), [*locations datasets dicom stores patch*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStorePatchCall.html), [*locations datasets dicom stores search for instances*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreSearchForInstanceCall.html), [*locations datasets dicom stores search for series*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreSearchForSeryCall.html), [*locations datasets dicom stores search for studies*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreSearchForStudyCall.html), [*locations datasets dicom stores set iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreSetIamPolicyCall.html), [*locations datasets dicom stores store instances*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStoreInstanceCall.html), [*locations datasets dicom stores studies delete*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudyDeleteCall.html), [*locations datasets dicom stores studies retrieve metadata*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudyRetrieveMetadataCall.html), [*locations datasets dicom stores studies retrieve study*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudyRetrieveStudyCall.html), [*locations datasets dicom stores studies search for instances*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySearchForInstanceCall.html), [*locations datasets dicom stores studies search for series*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySearchForSeryCall.html), [*locations datasets dicom stores studies series delete*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryDeleteCall.html), [*locations datasets dicom stores studies series instances delete*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryInstanceDeleteCall.html), [*locations datasets dicom stores studies series instances frames retrieve frames*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryInstanceFrameRetrieveFrameCall.html), [*locations datasets dicom stores studies series instances frames retrieve rendered*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryInstanceFrameRetrieveRenderedCall.html), [*locations datasets dicom stores studies series instances retrieve instance*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryInstanceRetrieveInstanceCall.html), [*locations datasets dicom stores studies series instances retrieve metadata*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryInstanceRetrieveMetadataCall.html), [*locations datasets dicom stores studies series instances retrieve rendered*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryInstanceRetrieveRenderedCall.html), [*locations datasets dicom stores studies series retrieve metadata*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryRetrieveMetadataCall.html), [*locations datasets dicom stores studies series retrieve series*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySeryRetrieveSeryCall.html), [*locations datasets dicom stores studies series search for instances*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudySerySearchForInstanceCall.html), [*locations datasets dicom stores studies store instances*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreStudyStoreInstanceCall.html), [*locations datasets dicom stores test iam permissions*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetDicomStoreTestIamPermissionCall.html), [*locations datasets fhir stores create*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreCreateCall.html), [*locations datasets fhir stores delete*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreDeleteCall.html), [*locations datasets fhir stores export*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreExportCall.html), [*locations datasets fhir stores fhir observation-lastn*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirObservationLastnCall.html), [*locations datasets fhir stores fhir patient-everything*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirPatientEverythingCall.html), [*locations datasets fhir stores fhir resource-purge*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirResourcePurgeCall.html), [*locations datasets fhir stores fhir capabilities*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirCapabilityCall.html), [*locations datasets fhir stores fhir conditional delete*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirConditionalDeleteCall.html), [*locations datasets fhir stores fhir conditional patch*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirConditionalPatchCall.html), [*locations datasets fhir stores fhir conditional update*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirConditionalUpdateCall.html), [*locations datasets fhir stores fhir create*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirCreateCall.html), [*locations datasets fhir stores fhir delete*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirDeleteCall.html), [*locations datasets fhir stores fhir execute bundle*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirExecuteBundleCall.html), [*locations datasets fhir stores fhir history*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirHistoryCall.html), [*locations datasets fhir stores fhir patch*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirPatchCall.html), [*locations datasets fhir stores fhir read*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirReadCall.html), [*locations datasets fhir stores fhir search*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirSearchCall.html), [*locations datasets fhir stores fhir update*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirUpdateCall.html), [*locations datasets fhir stores fhir vread*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreFhirVreadCall.html), [*locations datasets fhir stores get*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreGetCall.html), [*locations datasets fhir stores get iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreGetIamPolicyCall.html), [*locations datasets fhir stores import*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreImportCall.html), [*locations datasets fhir stores list*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreListCall.html), [*locations datasets fhir stores patch*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStorePatchCall.html), [*locations datasets fhir stores set iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreSetIamPolicyCall.html), [*locations datasets fhir stores test iam permissions*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetFhirStoreTestIamPermissionCall.html), [*locations datasets get*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetGetCall.html), [*locations datasets get iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetGetIamPolicyCall.html), [*locations datasets hl7 v2 stores create*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreCreateCall.html), [*locations datasets hl7 v2 stores delete*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreDeleteCall.html), [*locations datasets hl7 v2 stores get*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreGetCall.html), [*locations datasets hl7 v2 stores get iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreGetIamPolicyCall.html), [*locations datasets hl7 v2 stores list*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreListCall.html), [*locations datasets hl7 v2 stores messages create*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreMessageCreateCall.html), [*locations datasets hl7 v2 stores messages delete*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreMessageDeleteCall.html), [*locations datasets hl7 v2 stores messages get*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreMessageGetCall.html), [*locations datasets hl7 v2 stores messages ingest*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreMessageIngestCall.html), [*locations datasets hl7 v2 stores messages list*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreMessageListCall.html), [*locations datasets hl7 v2 stores messages patch*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreMessagePatchCall.html), [*locations datasets hl7 v2 stores patch*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StorePatchCall.html), [*locations datasets hl7 v2 stores set iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreSetIamPolicyCall.html), [*locations datasets hl7 v2 stores test iam permissions*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetHl7V2StoreTestIamPermissionCall.html), [*locations datasets list*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetListCall.html), [*locations datasets operations get*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetOperationGetCall.html), [*locations datasets operations list*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetOperationListCall.html), [*locations datasets patch*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetPatchCall.html), [*locations datasets set iam policy*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetSetIamPolicyCall.html), [*locations datasets test iam permissions*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationDatasetTestIamPermissionCall.html), [*locations get*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationGetCall.html) and [*locations list*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.ProjectLocationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/struct.CloudHealthcare.html)** +* **[Hub](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/struct.CloudHealthcare.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -158,17 +158,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -178,29 +178,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-healthcare1_beta1/1.0.11+20190628/google_healthcare1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-healthcare1_beta1/1.0.12+20190628/google_healthcare1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/healthcare1_beta1/src/lib.rs b/gen/healthcare1_beta1/src/lib.rs index 0574294919..5ca3b6f703 100644 --- a/gen/healthcare1_beta1/src/lib.rs +++ b/gen/healthcare1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Healthcare* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *healthcare:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Healthcare* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *healthcare:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Healthcare* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/healthcare). @@ -355,7 +355,7 @@ impl<'a, C, A> CloudHealthcare CloudHealthcare { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://healthcare.googleapis.com/".to_string(), _root_url: "https://healthcare.googleapis.com/".to_string(), } @@ -366,7 +366,7 @@ impl<'a, C, A> CloudHealthcare } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/iam1-cli/Cargo.toml b/gen/iam1-cli/Cargo.toml index ab91edcaf4..728e7e7f49 100644 --- a/gen/iam1-cli/Cargo.toml +++ b/gen/iam1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-iam1-cli" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with iam (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/iam1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-iam1] path = "../iam1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" diff --git a/gen/iam1-cli/LICENSE.md b/gen/iam1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/iam1-cli/LICENSE.md +++ b/gen/iam1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/iam1-cli/README.md b/gen/iam1-cli/README.md index c7d245c4df..083e0c66f9 100644 --- a/gen/iam1-cli/README.md +++ b/gen/iam1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *iam* API at revision *20190627*. The CLI is at version *1.0.11*. +This documentation was generated from the *iam* API at revision *20190627*. The CLI is at version *1.0.12*. ```bash iam1 [options] diff --git a/gen/iam1-cli/mkdocs.yml b/gen/iam1-cli/mkdocs.yml index 0dc0569db2..dd901b4a17 100644 --- a/gen/iam1-cli/mkdocs.yml +++ b/gen/iam1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: iam v1.0.11+20190627 +site_name: iam v1.0.12+20190627 site_url: http://byron.github.io/google-apis-rs/google-iam1-cli site_description: A complete library to interact with iam (protocol v1) @@ -48,5 +48,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/iam1-cli/src/cmn.rs b/gen/iam1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/iam1-cli/src/cmn.rs +++ b/gen/iam1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/iam1-cli/src/main.rs b/gen/iam1-cli/src/main.rs index af717aca1e..6cc648ab89 100644 --- a/gen/iam1-cli/src/main.rs +++ b/gen/iam1-cli/src/main.rs @@ -4375,7 +4375,7 @@ fn main() { let mut app = App::new("iam1") .author("Sebastian Thiel ") - .version("1.0.11+20190627") + .version("1.0.12+20190627") .about("Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_iam1_cli") .arg(Arg::with_name("url") diff --git a/gen/iam1/Cargo.toml b/gen/iam1/Cargo.toml index a3b2d78c0f..367ef446b2 100644 --- a/gen/iam1/Cargo.toml +++ b/gen/iam1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-iam1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with iam (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/iam1" homepage = "https://cloud.google.com/iam/" -documentation = "https://docs.rs/google-iam1/1.0.11+20190627" +documentation = "https://docs.rs/google-iam1/1.0.12+20190627" license = "MIT" keywords = ["iam", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/iam1/LICENSE.md b/gen/iam1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/iam1/LICENSE.md +++ b/gen/iam1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/iam1/README.md b/gen/iam1/README.md index bd94b8c367..4f7e19fbff 100644 --- a/gen/iam1/README.md +++ b/gen/iam1/README.md @@ -5,24 +5,24 @@ DO NOT EDIT ! --> The `google-iam1` library allows access to all features of the *Google iam* service. -This documentation was generated from *iam* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *iam:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *iam* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *iam:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *iam* *v1* API can be found at the [official documentation site](https://cloud.google.com/iam/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.Iam.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.Iam.html) ... * iam policies - * [*lint policy*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.IamPolicyLintPolicyCall.html) and [*query auditable services*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.IamPolicyQueryAuditableServiceCall.html) + * [*lint policy*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.IamPolicyLintPolicyCall.html) and [*query auditable services*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.IamPolicyQueryAuditableServiceCall.html) * organizations - * [*roles create*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.OrganizationRoleCreateCall.html), [*roles delete*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.OrganizationRoleDeleteCall.html), [*roles get*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.OrganizationRoleGetCall.html), [*roles list*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.OrganizationRoleListCall.html), [*roles patch*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.OrganizationRolePatchCall.html) and [*roles undelete*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.OrganizationRoleUndeleteCall.html) -* [permissions](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.Permission.html) - * [*query testable permissions*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.PermissionQueryTestablePermissionCall.html) + * [*roles create*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.OrganizationRoleCreateCall.html), [*roles delete*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.OrganizationRoleDeleteCall.html), [*roles get*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.OrganizationRoleGetCall.html), [*roles list*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.OrganizationRoleListCall.html), [*roles patch*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.OrganizationRolePatchCall.html) and [*roles undelete*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.OrganizationRoleUndeleteCall.html) +* [permissions](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.Permission.html) + * [*query testable permissions*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.PermissionQueryTestablePermissionCall.html) * projects - * [*roles create*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectRoleCreateCall.html), [*roles delete*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectRoleDeleteCall.html), [*roles get*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectRoleGetCall.html), [*roles list*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectRoleListCall.html), [*roles patch*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectRolePatchCall.html), [*roles undelete*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectRoleUndeleteCall.html), [*service accounts create*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountCreateCall.html), [*service accounts delete*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountDeleteCall.html), [*service accounts disable*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountDisableCall.html), [*service accounts enable*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountEnableCall.html), [*service accounts get*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountGetCall.html), [*service accounts get iam policy*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountGetIamPolicyCall.html), [*service accounts keys create*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountKeyCreateCall.html), [*service accounts keys delete*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountKeyDeleteCall.html), [*service accounts keys get*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountKeyGetCall.html), [*service accounts keys list*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountKeyListCall.html), [*service accounts list*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountListCall.html), [*service accounts patch*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountPatchCall.html), [*service accounts set iam policy*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountSetIamPolicyCall.html), [*service accounts sign blob*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountSignBlobCall.html), [*service accounts sign jwt*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountSignJwtCall.html), [*service accounts test iam permissions*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountTestIamPermissionCall.html), [*service accounts undelete*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountUndeleteCall.html) and [*service accounts update*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.ProjectServiceAccountUpdateCall.html) -* [roles](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.Role.html) - * [*get*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.RoleGetCall.html), [*list*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.RoleListCall.html) and [*query grantable roles*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.RoleQueryGrantableRoleCall.html) + * [*roles create*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectRoleCreateCall.html), [*roles delete*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectRoleDeleteCall.html), [*roles get*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectRoleGetCall.html), [*roles list*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectRoleListCall.html), [*roles patch*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectRolePatchCall.html), [*roles undelete*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectRoleUndeleteCall.html), [*service accounts create*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountCreateCall.html), [*service accounts delete*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountDeleteCall.html), [*service accounts disable*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountDisableCall.html), [*service accounts enable*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountEnableCall.html), [*service accounts get*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountGetCall.html), [*service accounts get iam policy*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountGetIamPolicyCall.html), [*service accounts keys create*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountKeyCreateCall.html), [*service accounts keys delete*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountKeyDeleteCall.html), [*service accounts keys get*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountKeyGetCall.html), [*service accounts keys list*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountKeyListCall.html), [*service accounts list*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountListCall.html), [*service accounts patch*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountPatchCall.html), [*service accounts set iam policy*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountSetIamPolicyCall.html), [*service accounts sign blob*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountSignBlobCall.html), [*service accounts sign jwt*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountSignJwtCall.html), [*service accounts test iam permissions*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountTestIamPermissionCall.html), [*service accounts undelete*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountUndeleteCall.html) and [*service accounts update*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.ProjectServiceAccountUpdateCall.html) +* [roles](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.Role.html) + * [*get*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.RoleGetCall.html), [*list*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.RoleListCall.html) and [*query grantable roles*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.RoleQueryGrantableRoleCall.html) @@ -31,17 +31,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/struct.Iam.html)** +* **[Hub](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/struct.Iam.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.Part.html)** + * **[Parts](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -149,17 +149,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -169,29 +169,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-iam1/1.0.11+20190627/google_iam1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-iam1/1.0.12+20190627/google_iam1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/iam1/src/lib.rs b/gen/iam1/src/lib.rs index 181d9f4a6b..13192fab6f 100644 --- a/gen/iam1/src/lib.rs +++ b/gen/iam1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *iam* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *iam:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *iam* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *iam:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *iam* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/iam/). @@ -347,7 +347,7 @@ impl<'a, C, A> Iam Iam { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://iam.googleapis.com/".to_string(), _root_url: "https://iam.googleapis.com/".to_string(), } @@ -370,7 +370,7 @@ impl<'a, C, A> Iam } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/iamcredentials1-cli/Cargo.toml b/gen/iamcredentials1-cli/Cargo.toml index 349ad0bbe4..90429e91c5 100644 --- a/gen/iamcredentials1-cli/Cargo.toml +++ b/gen/iamcredentials1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-iamcredentials1-cli" -version = "1.0.11+20190620" +version = "1.0.12+20190620" authors = ["Sebastian Thiel "] description = "A complete library to interact with IAM Credentials (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/iamcredentials1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-iamcredentials1] path = "../iamcredentials1" -version = "1.0.11+20190620" +version = "1.0.12+20190620" diff --git a/gen/iamcredentials1-cli/LICENSE.md b/gen/iamcredentials1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/iamcredentials1-cli/LICENSE.md +++ b/gen/iamcredentials1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/iamcredentials1-cli/README.md b/gen/iamcredentials1-cli/README.md index bfafbd3145..986880beb7 100644 --- a/gen/iamcredentials1-cli/README.md +++ b/gen/iamcredentials1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *IAM Credentials* API at revision *20190620*. The CLI is at version *1.0.11*. +This documentation was generated from the *IAM Credentials* API at revision *20190620*. The CLI is at version *1.0.12*. ```bash iamcredentials1 [options] diff --git a/gen/iamcredentials1-cli/mkdocs.yml b/gen/iamcredentials1-cli/mkdocs.yml index 597766a25b..567d665695 100644 --- a/gen/iamcredentials1-cli/mkdocs.yml +++ b/gen/iamcredentials1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: IAM Credentials v1.0.11+20190620 +site_name: IAM Credentials v1.0.12+20190620 site_url: http://byron.github.io/google-apis-rs/google-iamcredentials1-cli site_description: A complete library to interact with IAM Credentials (protocol v1) @@ -17,5 +17,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/iamcredentials1-cli/src/cmn.rs b/gen/iamcredentials1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/iamcredentials1-cli/src/cmn.rs +++ b/gen/iamcredentials1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/iamcredentials1-cli/src/main.rs b/gen/iamcredentials1-cli/src/main.rs index efb99761b0..2ef60cb6ac 100644 --- a/gen/iamcredentials1-cli/src/main.rs +++ b/gen/iamcredentials1-cli/src/main.rs @@ -750,7 +750,7 @@ fn main() { let mut app = App::new("iamcredentials1") .author("Sebastian Thiel ") - .version("1.0.11+20190620") + .version("1.0.12+20190620") .about("Creates short-lived, limited-privilege credentials for IAM service accounts.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_iamcredentials1_cli") .arg(Arg::with_name("url") diff --git a/gen/iamcredentials1/Cargo.toml b/gen/iamcredentials1/Cargo.toml index 992b7c6690..a55a5e5799 100644 --- a/gen/iamcredentials1/Cargo.toml +++ b/gen/iamcredentials1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-iamcredentials1" -version = "1.0.11+20190620" +version = "1.0.12+20190620" authors = ["Sebastian Thiel "] description = "A complete library to interact with IAM Credentials (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/iamcredentials1" homepage = "https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials" -documentation = "https://docs.rs/google-iamcredentials1/1.0.11+20190620" +documentation = "https://docs.rs/google-iamcredentials1/1.0.12+20190620" license = "MIT" keywords = ["iamcredentials", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/iamcredentials1/LICENSE.md b/gen/iamcredentials1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/iamcredentials1/LICENSE.md +++ b/gen/iamcredentials1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/iamcredentials1/README.md b/gen/iamcredentials1/README.md index 3cfc7562f2..0c55ecc39a 100644 --- a/gen/iamcredentials1/README.md +++ b/gen/iamcredentials1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-iamcredentials1` library allows access to all features of the *Google IAM Credentials* service. -This documentation was generated from *IAM Credentials* crate version *1.0.11+20190620*, where *20190620* is the exact revision of the *iamcredentials:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *IAM Credentials* crate version *1.0.12+20190620*, where *20190620* is the exact revision of the *iamcredentials:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *IAM Credentials* *v1* API can be found at the [official documentation site](https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/struct.IAMCredentials.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/struct.IAMCredentials.html) ... * projects - * [*service accounts generate access token*](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/struct.ProjectServiceAccountGenerateAccessTokenCall.html), [*service accounts generate id token*](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/struct.ProjectServiceAccountGenerateIdTokenCall.html), [*service accounts generate identity binding access token*](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/struct.ProjectServiceAccountGenerateIdentityBindingAccessTokenCall.html), [*service accounts sign blob*](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/struct.ProjectServiceAccountSignBlobCall.html) and [*service accounts sign jwt*](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/struct.ProjectServiceAccountSignJwtCall.html) + * [*service accounts generate access token*](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/struct.ProjectServiceAccountGenerateAccessTokenCall.html), [*service accounts generate id token*](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/struct.ProjectServiceAccountGenerateIdTokenCall.html), [*service accounts generate identity binding access token*](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/struct.ProjectServiceAccountGenerateIdentityBindingAccessTokenCall.html), [*service accounts sign blob*](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/struct.ProjectServiceAccountSignBlobCall.html) and [*service accounts sign jwt*](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/struct.ProjectServiceAccountSignJwtCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/struct.IAMCredentials.html)** +* **[Hub](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/struct.IAMCredentials.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.Part.html)** + * **[Parts](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -130,17 +130,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-iamcredentials1/1.0.11+20190620/google_iamcredentials1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-iamcredentials1/1.0.12+20190620/google_iamcredentials1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/iamcredentials1/src/lib.rs b/gen/iamcredentials1/src/lib.rs index bb76eaee19..bab69360a6 100644 --- a/gen/iamcredentials1/src/lib.rs +++ b/gen/iamcredentials1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *IAM Credentials* crate version *1.0.11+20190620*, where *20190620* is the exact revision of the *iamcredentials:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *IAM Credentials* crate version *1.0.12+20190620*, where *20190620* is the exact revision of the *iamcredentials:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *IAM Credentials* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials). @@ -329,7 +329,7 @@ impl<'a, C, A> IAMCredentials IAMCredentials { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://iamcredentials.googleapis.com/".to_string(), _root_url: "https://iamcredentials.googleapis.com/".to_string(), } @@ -340,7 +340,7 @@ impl<'a, C, A> IAMCredentials } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/iap1-cli/Cargo.toml b/gen/iap1-cli/Cargo.toml index 267be3b530..5b70337beb 100644 --- a/gen/iap1-cli/Cargo.toml +++ b/gen/iap1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-iap1-cli" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud IAP (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/iap1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-iap1] path = "../iap1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" diff --git a/gen/iap1-cli/LICENSE.md b/gen/iap1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/iap1-cli/LICENSE.md +++ b/gen/iap1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/iap1-cli/README.md b/gen/iap1-cli/README.md index 47e60f8d48..0ffca8e33a 100644 --- a/gen/iap1-cli/README.md +++ b/gen/iap1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud IAP* API at revision *20190628*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud IAP* API at revision *20190628*. The CLI is at version *1.0.12*. ```bash iap1 [options] diff --git a/gen/iap1-cli/mkdocs.yml b/gen/iap1-cli/mkdocs.yml index 3594c9b769..8750e2fc2f 100644 --- a/gen/iap1-cli/mkdocs.yml +++ b/gen/iap1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud IAP v1.0.11+20190628 +site_name: Cloud IAP v1.0.12+20190628 site_url: http://byron.github.io/google-apis-rs/google-iap1-cli site_description: A complete library to interact with Cloud IAP (protocol v1) @@ -15,5 +15,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/iap1-cli/src/cmn.rs b/gen/iap1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/iap1-cli/src/cmn.rs +++ b/gen/iap1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/iap1-cli/src/main.rs b/gen/iap1-cli/src/main.rs index 487002eb8e..64d2f913ae 100644 --- a/gen/iap1-cli/src/main.rs +++ b/gen/iap1-cli/src/main.rs @@ -512,7 +512,7 @@ fn main() { let mut app = App::new("iap1") .author("Sebastian Thiel ") - .version("1.0.11+20190628") + .version("1.0.12+20190628") .about("Controls access to cloud applications running on Google Cloud Platform.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_iap1_cli") .arg(Arg::with_name("url") diff --git a/gen/iap1/Cargo.toml b/gen/iap1/Cargo.toml index bab00b3d52..ba83ffccf3 100644 --- a/gen/iap1/Cargo.toml +++ b/gen/iap1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-iap1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud IAP (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/iap1" homepage = "https://cloud.google.com/iap" -documentation = "https://docs.rs/google-iap1/1.0.11+20190628" +documentation = "https://docs.rs/google-iap1/1.0.12+20190628" license = "MIT" keywords = ["iap", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/iap1/LICENSE.md b/gen/iap1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/iap1/LICENSE.md +++ b/gen/iap1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/iap1/README.md b/gen/iap1/README.md index 933c2b980c..687b1b56ef 100644 --- a/gen/iap1/README.md +++ b/gen/iap1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-iap1` library allows access to all features of the *Google Cloud IAP* service. -This documentation was generated from *Cloud IAP* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *iap:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud IAP* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *iap:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud IAP* *v1* API can be found at the [official documentation site](https://cloud.google.com/iap). # Features -Use the following functionality with ease from the central [hub](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/struct.CloudIAP.html) ... +Use the following functionality with ease from the central [hub](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/struct.CloudIAP.html) ... -* [get iam policy](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/struct.MethodGetIamPolicyCall.html) -* [set iam policy](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/struct.MethodSetIamPolicyCall.html) -* [test iam permissions](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/struct.MethodTestIamPermissionCall.html) +* [get iam policy](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/struct.MethodGetIamPolicyCall.html) +* [set iam policy](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/struct.MethodSetIamPolicyCall.html) +* [test iam permissions](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/struct.MethodTestIamPermissionCall.html) @@ -24,17 +24,17 @@ Use the following functionality with ease from the central [hub](https://docs.rs The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/struct.CloudIAP.html)** +* **[Hub](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/struct.CloudIAP.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.Part.html)** + * **[Parts](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-iap1/1.0.11+20190628/google_iap1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-iap1/1.0.12+20190628/google_iap1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/iap1/src/lib.rs b/gen/iap1/src/lib.rs index 63978f2e74..ad05b3d0dd 100644 --- a/gen/iap1/src/lib.rs +++ b/gen/iap1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud IAP* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *iap:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud IAP* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *iap:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud IAP* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/iap). @@ -331,7 +331,7 @@ impl<'a, C, A> CloudIAP CloudIAP { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://iap.googleapis.com/".to_string(), _root_url: "https://iap.googleapis.com/".to_string(), } @@ -342,7 +342,7 @@ impl<'a, C, A> CloudIAP } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/iap1_beta1-cli/Cargo.toml b/gen/iap1_beta1-cli/Cargo.toml index 87af37d1b1..6fdbba68e3 100644 --- a/gen/iap1_beta1-cli/Cargo.toml +++ b/gen/iap1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-iap1_beta1-cli" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud IAP (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/iap1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-iap1_beta1] path = "../iap1_beta1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" diff --git a/gen/iap1_beta1-cli/LICENSE.md b/gen/iap1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/iap1_beta1-cli/LICENSE.md +++ b/gen/iap1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/iap1_beta1-cli/README.md b/gen/iap1_beta1-cli/README.md index a160181211..0e62fced21 100644 --- a/gen/iap1_beta1-cli/README.md +++ b/gen/iap1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud IAP* API at revision *20190628*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud IAP* API at revision *20190628*. The CLI is at version *1.0.12*. ```bash iap1-beta1 [options] diff --git a/gen/iap1_beta1-cli/mkdocs.yml b/gen/iap1_beta1-cli/mkdocs.yml index c687805a10..2eb1b3d818 100644 --- a/gen/iap1_beta1-cli/mkdocs.yml +++ b/gen/iap1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud IAP v1.0.11+20190628 +site_name: Cloud IAP v1.0.12+20190628 site_url: http://byron.github.io/google-apis-rs/google-iap1_beta1-cli site_description: A complete library to interact with Cloud IAP (protocol v1beta1) @@ -15,5 +15,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/iap1_beta1-cli/src/cmn.rs b/gen/iap1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/iap1_beta1-cli/src/cmn.rs +++ b/gen/iap1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/iap1_beta1-cli/src/main.rs b/gen/iap1_beta1-cli/src/main.rs index 426561dff9..33b9fe3fb0 100644 --- a/gen/iap1_beta1-cli/src/main.rs +++ b/gen/iap1_beta1-cli/src/main.rs @@ -514,7 +514,7 @@ fn main() { let mut app = App::new("iap1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190628") + .version("1.0.12+20190628") .about("Controls access to cloud applications running on Google Cloud Platform.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_iap1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/iap1_beta1/Cargo.toml b/gen/iap1_beta1/Cargo.toml index f2648f067a..4d6696f7c9 100644 --- a/gen/iap1_beta1/Cargo.toml +++ b/gen/iap1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-iap1_beta1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud IAP (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/iap1_beta1" homepage = "https://cloud.google.com/iap" -documentation = "https://docs.rs/google-iap1_beta1/1.0.11+20190628" +documentation = "https://docs.rs/google-iap1_beta1/1.0.12+20190628" license = "MIT" keywords = ["iap", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/iap1_beta1/LICENSE.md b/gen/iap1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/iap1_beta1/LICENSE.md +++ b/gen/iap1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/iap1_beta1/README.md b/gen/iap1_beta1/README.md index c22ee48373..55e3300fe3 100644 --- a/gen/iap1_beta1/README.md +++ b/gen/iap1_beta1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-iap1_beta1` library allows access to all features of the *Google Cloud IAP* service. -This documentation was generated from *Cloud IAP* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *iap:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud IAP* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *iap:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud IAP* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/iap). # Features -Use the following functionality with ease from the central [hub](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/struct.CloudIAP.html) ... +Use the following functionality with ease from the central [hub](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/struct.CloudIAP.html) ... -* [get iam policy](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/struct.MethodGetIamPolicyCall.html) -* [set iam policy](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/struct.MethodSetIamPolicyCall.html) -* [test iam permissions](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/struct.MethodTestIamPermissionCall.html) +* [get iam policy](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/struct.MethodGetIamPolicyCall.html) +* [set iam policy](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/struct.MethodSetIamPolicyCall.html) +* [test iam permissions](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/struct.MethodTestIamPermissionCall.html) @@ -24,17 +24,17 @@ Use the following functionality with ease from the central [hub](https://docs.rs The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/struct.CloudIAP.html)** +* **[Hub](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/struct.CloudIAP.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-iap1_beta1/1.0.11+20190628/google_iap1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-iap1_beta1/1.0.12+20190628/google_iap1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/iap1_beta1/src/lib.rs b/gen/iap1_beta1/src/lib.rs index 7a22d8d6ed..b461efec00 100644 --- a/gen/iap1_beta1/src/lib.rs +++ b/gen/iap1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud IAP* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *iap:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud IAP* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *iap:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud IAP* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/iap). @@ -331,7 +331,7 @@ impl<'a, C, A> CloudIAP CloudIAP { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://iap.googleapis.com/".to_string(), _root_url: "https://iap.googleapis.com/".to_string(), } @@ -342,7 +342,7 @@ impl<'a, C, A> CloudIAP } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/identitytoolkit3-cli/Cargo.toml b/gen/identitytoolkit3-cli/Cargo.toml index ec0ce39702..5b4b4828fc 100644 --- a/gen/identitytoolkit3-cli/Cargo.toml +++ b/gen/identitytoolkit3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-identitytoolkit3-cli" -version = "1.0.11+20180723" +version = "1.0.12+20180723" authors = ["Sebastian Thiel "] description = "A complete library to interact with Identity Toolkit (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/identitytoolkit3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-identitytoolkit3] path = "../identitytoolkit3" -version = "1.0.11+20180723" +version = "1.0.12+20180723" diff --git a/gen/identitytoolkit3-cli/LICENSE.md b/gen/identitytoolkit3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/identitytoolkit3-cli/LICENSE.md +++ b/gen/identitytoolkit3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/identitytoolkit3-cli/README.md b/gen/identitytoolkit3-cli/README.md index 5db3bfe27c..a96505c6b6 100644 --- a/gen/identitytoolkit3-cli/README.md +++ b/gen/identitytoolkit3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Identity Toolkit* API at revision *20180723*. The CLI is at version *1.0.11*. +This documentation was generated from the *Identity Toolkit* API at revision *20180723*. The CLI is at version *1.0.12*. ```bash identitytoolkit3 [options] diff --git a/gen/identitytoolkit3-cli/mkdocs.yml b/gen/identitytoolkit3-cli/mkdocs.yml index c4e444f1eb..157b44ce34 100644 --- a/gen/identitytoolkit3-cli/mkdocs.yml +++ b/gen/identitytoolkit3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Identity Toolkit v1.0.11+20180723 +site_name: Identity Toolkit v1.0.12+20180723 site_url: http://byron.github.io/google-apis-rs/google-identitytoolkit3-cli site_description: A complete library to interact with Identity Toolkit (protocol v3) @@ -32,5 +32,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/identitytoolkit3-cli/src/cmn.rs b/gen/identitytoolkit3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/identitytoolkit3-cli/src/cmn.rs +++ b/gen/identitytoolkit3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/identitytoolkit3-cli/src/main.rs b/gen/identitytoolkit3-cli/src/main.rs index 145fde89fc..808322d7e4 100644 --- a/gen/identitytoolkit3-cli/src/main.rs +++ b/gen/identitytoolkit3-cli/src/main.rs @@ -2392,7 +2392,7 @@ fn main() { let mut app = App::new("identitytoolkit3") .author("Sebastian Thiel ") - .version("1.0.11+20180723") + .version("1.0.12+20180723") .about("Help the third party sites to implement federated login.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_identitytoolkit3_cli") .arg(Arg::with_name("url") diff --git a/gen/identitytoolkit3/Cargo.toml b/gen/identitytoolkit3/Cargo.toml index 113da92a2e..103d00a4e3 100644 --- a/gen/identitytoolkit3/Cargo.toml +++ b/gen/identitytoolkit3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-identitytoolkit3" -version = "1.0.11+20180723" +version = "1.0.12+20180723" authors = ["Sebastian Thiel "] description = "A complete library to interact with Identity Toolkit (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/identitytoolkit3" homepage = "https://developers.google.com/identity-toolkit/v3/" -documentation = "https://docs.rs/google-identitytoolkit3/1.0.11+20180723" +documentation = "https://docs.rs/google-identitytoolkit3/1.0.12+20180723" license = "MIT" keywords = ["identitytoolkit", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/identitytoolkit3/LICENSE.md b/gen/identitytoolkit3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/identitytoolkit3/LICENSE.md +++ b/gen/identitytoolkit3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/identitytoolkit3/README.md b/gen/identitytoolkit3/README.md index 1c62b6279c..5e2a22a359 100644 --- a/gen/identitytoolkit3/README.md +++ b/gen/identitytoolkit3/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-identitytoolkit3` library allows access to all features of the *Google Identity Toolkit* service. -This documentation was generated from *Identity Toolkit* crate version *1.0.11+20180723*, where *20180723* is the exact revision of the *identitytoolkit:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Identity Toolkit* crate version *1.0.12+20180723*, where *20180723* is the exact revision of the *identitytoolkit:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Identity Toolkit* *v3* API can be found at the [official documentation site](https://developers.google.com/identity-toolkit/v3/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.IdentityToolkit.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.IdentityToolkit.html) ... -* [relyingparty](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.Relyingparty.html) - * [*create auth uri*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyCreateAuthUriCall.html), [*delete account*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyDeleteAccountCall.html), [*download account*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyDownloadAccountCall.html), [*email link signin*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyEmailLinkSigninCall.html), [*get account info*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyGetAccountInfoCall.html), [*get oob confirmation code*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyGetOobConfirmationCodeCall.html), [*get project config*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyGetProjectConfigCall.html), [*get public keys*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyGetPublicKeyCall.html), [*get recaptcha param*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyGetRecaptchaParamCall.html), [*reset password*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyResetPasswordCall.html), [*send verification code*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartySendVerificationCodeCall.html), [*set account info*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartySetAccountInfoCall.html), [*set project config*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartySetProjectConfigCall.html), [*sign out user*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartySignOutUserCall.html), [*signup new user*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartySignupNewUserCall.html), [*upload account*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyUploadAccountCall.html), [*verify assertion*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyVerifyAssertionCall.html), [*verify custom token*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyVerifyCustomTokenCall.html), [*verify password*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyVerifyPasswordCall.html) and [*verify phone number*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.RelyingpartyVerifyPhoneNumberCall.html) +* [relyingparty](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.Relyingparty.html) + * [*create auth uri*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyCreateAuthUriCall.html), [*delete account*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyDeleteAccountCall.html), [*download account*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyDownloadAccountCall.html), [*email link signin*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyEmailLinkSigninCall.html), [*get account info*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyGetAccountInfoCall.html), [*get oob confirmation code*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyGetOobConfirmationCodeCall.html), [*get project config*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyGetProjectConfigCall.html), [*get public keys*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyGetPublicKeyCall.html), [*get recaptcha param*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyGetRecaptchaParamCall.html), [*reset password*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyResetPasswordCall.html), [*send verification code*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartySendVerificationCodeCall.html), [*set account info*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartySetAccountInfoCall.html), [*set project config*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartySetProjectConfigCall.html), [*sign out user*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartySignOutUserCall.html), [*signup new user*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartySignupNewUserCall.html), [*upload account*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyUploadAccountCall.html), [*verify assertion*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyVerifyAssertionCall.html), [*verify custom token*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyVerifyCustomTokenCall.html), [*verify password*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyVerifyPasswordCall.html) and [*verify phone number*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.RelyingpartyVerifyPhoneNumberCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/struct.IdentityToolkit.html)** +* **[Hub](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/struct.IdentityToolkit.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.Part.html)** + * **[Parts](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -130,17 +130,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-identitytoolkit3/1.0.11+20180723/google_identitytoolkit3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-identitytoolkit3/1.0.12+20180723/google_identitytoolkit3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/identitytoolkit3/src/lib.rs b/gen/identitytoolkit3/src/lib.rs index 980c23f4cf..11a590eeaa 100644 --- a/gen/identitytoolkit3/src/lib.rs +++ b/gen/identitytoolkit3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Identity Toolkit* crate version *1.0.11+20180723*, where *20180723* is the exact revision of the *identitytoolkit:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Identity Toolkit* crate version *1.0.12+20180723*, where *20180723* is the exact revision of the *identitytoolkit:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Identity Toolkit* *v3* API can be found at the //! [official documentation site](https://developers.google.com/identity-toolkit/v3/). @@ -333,7 +333,7 @@ impl<'a, C, A> IdentityToolkit IdentityToolkit { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/identitytoolkit/v3/relyingparty/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -344,7 +344,7 @@ impl<'a, C, A> IdentityToolkit } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/indexing3-cli/Cargo.toml b/gen/indexing3-cli/Cargo.toml index 285c08351e..a7bebed7f3 100644 --- a/gen/indexing3-cli/Cargo.toml +++ b/gen/indexing3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-indexing3-cli" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Indexing (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/indexing3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-indexing3] path = "../indexing3" -version = "1.0.11+20190627" +version = "1.0.12+20190627" diff --git a/gen/indexing3-cli/LICENSE.md b/gen/indexing3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/indexing3-cli/LICENSE.md +++ b/gen/indexing3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/indexing3-cli/README.md b/gen/indexing3-cli/README.md index cfd0b47c98..5992dbd03b 100644 --- a/gen/indexing3-cli/README.md +++ b/gen/indexing3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Indexing* API at revision *20190627*. The CLI is at version *1.0.11*. +This documentation was generated from the *Indexing* API at revision *20190627*. The CLI is at version *1.0.12*. ```bash indexing3 [options] diff --git a/gen/indexing3-cli/mkdocs.yml b/gen/indexing3-cli/mkdocs.yml index d7e82c9387..c44353a74b 100644 --- a/gen/indexing3-cli/mkdocs.yml +++ b/gen/indexing3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Indexing v1.0.11+20190627 +site_name: Indexing v1.0.12+20190627 site_url: http://byron.github.io/google-apis-rs/google-indexing3-cli site_description: A complete library to interact with Indexing (protocol v3) @@ -14,5 +14,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/indexing3-cli/src/cmn.rs b/gen/indexing3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/indexing3-cli/src/cmn.rs +++ b/gen/indexing3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/indexing3-cli/src/main.rs b/gen/indexing3-cli/src/main.rs index bbf2d8ea9c..fbe52c41a1 100644 --- a/gen/indexing3-cli/src/main.rs +++ b/gen/indexing3-cli/src/main.rs @@ -340,7 +340,7 @@ fn main() { let mut app = App::new("indexing3") .author("Sebastian Thiel ") - .version("1.0.11+20190627") + .version("1.0.12+20190627") .about("Notifies Google when your web pages change.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_indexing3_cli") .arg(Arg::with_name("url") diff --git a/gen/indexing3/Cargo.toml b/gen/indexing3/Cargo.toml index 49ad8e70cb..e640c0a8d6 100644 --- a/gen/indexing3/Cargo.toml +++ b/gen/indexing3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-indexing3" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Indexing (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/indexing3" homepage = "https://developers.google.com/search/apis/indexing-api/" -documentation = "https://docs.rs/google-indexing3/1.0.11+20190627" +documentation = "https://docs.rs/google-indexing3/1.0.12+20190627" license = "MIT" keywords = ["indexing", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/indexing3/LICENSE.md b/gen/indexing3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/indexing3/LICENSE.md +++ b/gen/indexing3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/indexing3/README.md b/gen/indexing3/README.md index 5b31276bdb..2fbdef6b58 100644 --- a/gen/indexing3/README.md +++ b/gen/indexing3/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-indexing3` library allows access to all features of the *Google Indexing* service. -This documentation was generated from *Indexing* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *indexing:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Indexing* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *indexing:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Indexing* *v3* API can be found at the [official documentation site](https://developers.google.com/search/apis/indexing-api/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/struct.Indexing.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/struct.Indexing.html) ... -* [url notifications](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/struct.UrlNotification.html) - * [*get metadata*](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/struct.UrlNotificationGetMetadataCall.html) and [*publish*](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/struct.UrlNotificationPublishCall.html) +* [url notifications](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/struct.UrlNotification.html) + * [*get metadata*](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/struct.UrlNotificationGetMetadataCall.html) and [*publish*](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/struct.UrlNotificationPublishCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/struct.Indexing.html)** +* **[Hub](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/struct.Indexing.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.Part.html)** + * **[Parts](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -131,17 +131,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -151,29 +151,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-indexing3/1.0.11+20190627/google_indexing3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-indexing3/1.0.12+20190627/google_indexing3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/indexing3/src/lib.rs b/gen/indexing3/src/lib.rs index 8bbeca3d0a..84ed297396 100644 --- a/gen/indexing3/src/lib.rs +++ b/gen/indexing3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Indexing* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *indexing:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Indexing* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *indexing:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Indexing* *v3* API can be found at the //! [official documentation site](https://developers.google.com/search/apis/indexing-api/). @@ -330,7 +330,7 @@ impl<'a, C, A> Indexing Indexing { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://indexing.googleapis.com/".to_string(), _root_url: "https://indexing.googleapis.com/".to_string(), } @@ -341,7 +341,7 @@ impl<'a, C, A> Indexing } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/jobs3-cli/Cargo.toml b/gen/jobs3-cli/Cargo.toml index 999a541d97..6dc5d0f278 100644 --- a/gen/jobs3-cli/Cargo.toml +++ b/gen/jobs3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-jobs3-cli" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Talent Solution (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/jobs3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-jobs3] path = "../jobs3" -version = "1.0.11+20190702" +version = "1.0.12+20190702" diff --git a/gen/jobs3-cli/LICENSE.md b/gen/jobs3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/jobs3-cli/LICENSE.md +++ b/gen/jobs3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/jobs3-cli/README.md b/gen/jobs3-cli/README.md index 2d163aa47c..47b18c0100 100644 --- a/gen/jobs3-cli/README.md +++ b/gen/jobs3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Talent Solution* API at revision *20190702*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Talent Solution* API at revision *20190702*. The CLI is at version *1.0.12*. ```bash jobs3 [options] diff --git a/gen/jobs3-cli/mkdocs.yml b/gen/jobs3-cli/mkdocs.yml index 9ea2b7d20e..477bf5d3a4 100644 --- a/gen/jobs3-cli/mkdocs.yml +++ b/gen/jobs3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Talent Solution v1.0.11+20190702 +site_name: Cloud Talent Solution v1.0.12+20190702 site_url: http://byron.github.io/google-apis-rs/google-jobs3-cli site_description: A complete library to interact with Cloud Talent Solution (protocol v3) @@ -27,5 +27,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/jobs3-cli/src/cmn.rs b/gen/jobs3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/jobs3-cli/src/cmn.rs +++ b/gen/jobs3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/jobs3-cli/src/main.rs b/gen/jobs3-cli/src/main.rs index b6a61ed8c4..800b621349 100644 --- a/gen/jobs3-cli/src/main.rs +++ b/gen/jobs3-cli/src/main.rs @@ -2003,7 +2003,7 @@ fn main() { let mut app = App::new("jobs3") .author("Sebastian Thiel ") - .version("1.0.11+20190702") + .version("1.0.12+20190702") .about("Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_jobs3_cli") diff --git a/gen/jobs3/Cargo.toml b/gen/jobs3/Cargo.toml index 222d85f4bb..360c8a97c3 100644 --- a/gen/jobs3/Cargo.toml +++ b/gen/jobs3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-jobs3" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Talent Solution (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/jobs3" homepage = "https://cloud.google.com/talent-solution/job-search/docs/" -documentation = "https://docs.rs/google-jobs3/1.0.11+20190702" +documentation = "https://docs.rs/google-jobs3/1.0.12+20190702" license = "MIT" keywords = ["jobs", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/jobs3/LICENSE.md b/gen/jobs3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/jobs3/LICENSE.md +++ b/gen/jobs3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/jobs3/README.md b/gen/jobs3/README.md index 1e520c86d5..5db39cb71a 100644 --- a/gen/jobs3/README.md +++ b/gen/jobs3/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-jobs3` library allows access to all features of the *Google Cloud Talent Solution* service. -This documentation was generated from *Cloud Talent Solution* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *jobs:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Talent Solution* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *jobs:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Talent Solution* *v3* API can be found at the [official documentation site](https://cloud.google.com/talent-solution/job-search/docs/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.CloudTalentSolution.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.CloudTalentSolution.html) ... * projects - * [*client events create*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectClientEventCreateCall.html), [*companies create*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectCompanyCreateCall.html), [*companies delete*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectCompanyDeleteCall.html), [*companies get*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectCompanyGetCall.html), [*companies list*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectCompanyListCall.html), [*companies patch*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectCompanyPatchCall.html), [*complete*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectCompleteCall.html), [*jobs batch delete*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectJobBatchDeleteCall.html), [*jobs create*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectJobCreateCall.html), [*jobs delete*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectJobDeleteCall.html), [*jobs get*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectJobGetCall.html), [*jobs list*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectJobListCall.html), [*jobs patch*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectJobPatchCall.html), [*jobs search*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectJobSearchCall.html) and [*jobs search for alert*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.ProjectJobSearchForAlertCall.html) + * [*client events create*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectClientEventCreateCall.html), [*companies create*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectCompanyCreateCall.html), [*companies delete*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectCompanyDeleteCall.html), [*companies get*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectCompanyGetCall.html), [*companies list*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectCompanyListCall.html), [*companies patch*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectCompanyPatchCall.html), [*complete*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectCompleteCall.html), [*jobs batch delete*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectJobBatchDeleteCall.html), [*jobs create*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectJobCreateCall.html), [*jobs delete*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectJobDeleteCall.html), [*jobs get*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectJobGetCall.html), [*jobs list*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectJobListCall.html), [*jobs patch*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectJobPatchCall.html), [*jobs search*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectJobSearchCall.html) and [*jobs search for alert*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.ProjectJobSearchForAlertCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/struct.CloudTalentSolution.html)** +* **[Hub](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/struct.CloudTalentSolution.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.Part.html)** + * **[Parts](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-jobs3/1.0.11+20190702/google_jobs3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-jobs3/1.0.12+20190702/google_jobs3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/jobs3/src/lib.rs b/gen/jobs3/src/lib.rs index dc8be294ec..de2eacaef4 100644 --- a/gen/jobs3/src/lib.rs +++ b/gen/jobs3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Talent Solution* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *jobs:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Talent Solution* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *jobs:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Talent Solution* *v3* API can be found at the //! [official documentation site](https://cloud.google.com/talent-solution/job-search/docs/). @@ -335,7 +335,7 @@ impl<'a, C, A> CloudTalentSolution CloudTalentSolution { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://jobs.googleapis.com/".to_string(), _root_url: "https://jobs.googleapis.com/".to_string(), } @@ -346,7 +346,7 @@ impl<'a, C, A> CloudTalentSolution } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/language1-cli/Cargo.toml b/gen/language1-cli/Cargo.toml index 5f9e433310..8791718284 100644 --- a/gen/language1-cli/Cargo.toml +++ b/gen/language1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-language1-cli" -version = "1.0.11+20190623" +version = "1.0.12+20190623" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Natural Language (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/language1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-language1] path = "../language1" -version = "1.0.11+20190623" +version = "1.0.12+20190623" diff --git a/gen/language1-cli/LICENSE.md b/gen/language1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/language1-cli/LICENSE.md +++ b/gen/language1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/language1-cli/README.md b/gen/language1-cli/README.md index 38a3f0a755..6ff1edcf46 100644 --- a/gen/language1-cli/README.md +++ b/gen/language1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Natural Language* API at revision *20190623*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Natural Language* API at revision *20190623*. The CLI is at version *1.0.12*. ```bash language1 [options] diff --git a/gen/language1-cli/mkdocs.yml b/gen/language1-cli/mkdocs.yml index 5ada4bd783..b45011391d 100644 --- a/gen/language1-cli/mkdocs.yml +++ b/gen/language1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Natural Language v1.0.11+20190623 +site_name: Cloud Natural Language v1.0.12+20190623 site_url: http://byron.github.io/google-apis-rs/google-language1-cli site_description: A complete library to interact with Cloud Natural Language (protocol v1) @@ -18,5 +18,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/language1-cli/src/cmn.rs b/gen/language1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/language1-cli/src/cmn.rs +++ b/gen/language1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/language1-cli/src/main.rs b/gen/language1-cli/src/main.rs index f3b6bba9dd..26378dd9a6 100644 --- a/gen/language1-cli/src/main.rs +++ b/gen/language1-cli/src/main.rs @@ -845,7 +845,7 @@ fn main() { let mut app = App::new("language1") .author("Sebastian Thiel ") - .version("1.0.11+20190623") + .version("1.0.12+20190623") .about("Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_language1_cli") .arg(Arg::with_name("url") diff --git a/gen/language1/Cargo.toml b/gen/language1/Cargo.toml index ba3ad868ea..01377e4e13 100644 --- a/gen/language1/Cargo.toml +++ b/gen/language1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-language1" -version = "1.0.11+20190623" +version = "1.0.12+20190623" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Natural Language (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/language1" homepage = "https://cloud.google.com/natural-language/" -documentation = "https://docs.rs/google-language1/1.0.11+20190623" +documentation = "https://docs.rs/google-language1/1.0.12+20190623" license = "MIT" keywords = ["language", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/language1/LICENSE.md b/gen/language1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/language1/LICENSE.md +++ b/gen/language1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/language1/README.md b/gen/language1/README.md index 4ac16413f7..c08bf20c4d 100644 --- a/gen/language1/README.md +++ b/gen/language1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-language1` library allows access to all features of the *Google Cloud Natural Language* service. -This documentation was generated from *Cloud Natural Language* crate version *1.0.11+20190623*, where *20190623* is the exact revision of the *language:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Natural Language* crate version *1.0.12+20190623*, where *20190623* is the exact revision of the *language:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Natural Language* *v1* API can be found at the [official documentation site](https://cloud.google.com/natural-language/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-language1/1.0.11+20190623/google_language1/struct.CloudNaturalLanguage.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-language1/1.0.12+20190623/google_language1/struct.CloudNaturalLanguage.html) ... -* [documents](https://docs.rs/google-language1/1.0.11+20190623/google_language1/struct.Document.html) - * [*analyze entities*](https://docs.rs/google-language1/1.0.11+20190623/google_language1/struct.DocumentAnalyzeEntityCall.html), [*analyze entity sentiment*](https://docs.rs/google-language1/1.0.11+20190623/google_language1/struct.DocumentAnalyzeEntitySentimentCall.html), [*analyze sentiment*](https://docs.rs/google-language1/1.0.11+20190623/google_language1/struct.DocumentAnalyzeSentimentCall.html), [*analyze syntax*](https://docs.rs/google-language1/1.0.11+20190623/google_language1/struct.DocumentAnalyzeSyntaxCall.html), [*annotate text*](https://docs.rs/google-language1/1.0.11+20190623/google_language1/struct.DocumentAnnotateTextCall.html) and [*classify text*](https://docs.rs/google-language1/1.0.11+20190623/google_language1/struct.DocumentClassifyTextCall.html) +* [documents](https://docs.rs/google-language1/1.0.12+20190623/google_language1/struct.Document.html) + * [*analyze entities*](https://docs.rs/google-language1/1.0.12+20190623/google_language1/struct.DocumentAnalyzeEntityCall.html), [*analyze entity sentiment*](https://docs.rs/google-language1/1.0.12+20190623/google_language1/struct.DocumentAnalyzeEntitySentimentCall.html), [*analyze sentiment*](https://docs.rs/google-language1/1.0.12+20190623/google_language1/struct.DocumentAnalyzeSentimentCall.html), [*analyze syntax*](https://docs.rs/google-language1/1.0.12+20190623/google_language1/struct.DocumentAnalyzeSyntaxCall.html), [*annotate text*](https://docs.rs/google-language1/1.0.12+20190623/google_language1/struct.DocumentAnnotateTextCall.html) and [*classify text*](https://docs.rs/google-language1/1.0.12+20190623/google_language1/struct.DocumentClassifyTextCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-language1/1.0.11+20190623/google_language1/struct.CloudNaturalLanguage.html)** +* **[Hub](https://docs.rs/google-language1/1.0.12+20190623/google_language1/struct.CloudNaturalLanguage.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.Part.html)** + * **[Parts](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -135,17 +135,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-language1/1.0.11+20190623/google_language1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-language1/1.0.12+20190623/google_language1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-language1/1.0.11+20190623/google_language1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-language1/1.0.12+20190623/google_language1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -155,29 +155,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-language1/1.0.11+20190623/google_language1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-language1/1.0.12+20190623/google_language1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/language1/src/lib.rs b/gen/language1/src/lib.rs index 307d454297..4e8e1bf245 100644 --- a/gen/language1/src/lib.rs +++ b/gen/language1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Natural Language* crate version *1.0.11+20190623*, where *20190623* is the exact revision of the *language:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Natural Language* crate version *1.0.12+20190623*, where *20190623* is the exact revision of the *language:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Natural Language* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/natural-language/). @@ -338,7 +338,7 @@ impl<'a, C, A> CloudNaturalLanguage CloudNaturalLanguage { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://language.googleapis.com/".to_string(), _root_url: "https://language.googleapis.com/".to_string(), } @@ -349,7 +349,7 @@ impl<'a, C, A> CloudNaturalLanguage } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/language1_beta1-cli/Cargo.toml b/gen/language1_beta1-cli/Cargo.toml index 821c203d2c..e556f7b954 100644 --- a/gen/language1_beta1-cli/Cargo.toml +++ b/gen/language1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-language1_beta1-cli" -version = "1.0.11+20190623" +version = "1.0.12+20190623" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Natural Language (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/language1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-language1_beta1] path = "../language1_beta1" -version = "1.0.11+20190623" +version = "1.0.12+20190623" diff --git a/gen/language1_beta1-cli/LICENSE.md b/gen/language1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/language1_beta1-cli/LICENSE.md +++ b/gen/language1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/language1_beta1-cli/README.md b/gen/language1_beta1-cli/README.md index 0eae110cde..62ad104c56 100644 --- a/gen/language1_beta1-cli/README.md +++ b/gen/language1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Natural Language* API at revision *20190623*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Natural Language* API at revision *20190623*. The CLI is at version *1.0.12*. ```bash language1-beta1 [options] diff --git a/gen/language1_beta1-cli/mkdocs.yml b/gen/language1_beta1-cli/mkdocs.yml index d4ed012d24..085b7abb50 100644 --- a/gen/language1_beta1-cli/mkdocs.yml +++ b/gen/language1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Natural Language v1.0.11+20190623 +site_name: Cloud Natural Language v1.0.12+20190623 site_url: http://byron.github.io/google-apis-rs/google-language1_beta1-cli site_description: A complete library to interact with Cloud Natural Language (protocol v1beta1) @@ -16,5 +16,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/language1_beta1-cli/src/cmn.rs b/gen/language1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/language1_beta1-cli/src/cmn.rs +++ b/gen/language1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/language1_beta1-cli/src/main.rs b/gen/language1_beta1-cli/src/main.rs index ed25c1cbee..9479ad464f 100644 --- a/gen/language1_beta1-cli/src/main.rs +++ b/gen/language1_beta1-cli/src/main.rs @@ -615,7 +615,7 @@ fn main() { let mut app = App::new("language1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190623") + .version("1.0.12+20190623") .about("Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_language1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/language1_beta1/Cargo.toml b/gen/language1_beta1/Cargo.toml index 8252c5e349..8741231bce 100644 --- a/gen/language1_beta1/Cargo.toml +++ b/gen/language1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-language1_beta1" -version = "1.0.11+20190623" +version = "1.0.12+20190623" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Natural Language (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/language1_beta1" homepage = "https://cloud.google.com/natural-language/" -documentation = "https://docs.rs/google-language1_beta1/1.0.11+20190623" +documentation = "https://docs.rs/google-language1_beta1/1.0.12+20190623" license = "MIT" keywords = ["language", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/language1_beta1/LICENSE.md b/gen/language1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/language1_beta1/LICENSE.md +++ b/gen/language1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/language1_beta1/README.md b/gen/language1_beta1/README.md index dd041eb1fe..a574238782 100644 --- a/gen/language1_beta1/README.md +++ b/gen/language1_beta1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-language1_beta1` library allows access to all features of the *Google Cloud Natural Language* service. -This documentation was generated from *Cloud Natural Language* crate version *1.0.11+20190623*, where *20190623* is the exact revision of the *language:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Natural Language* crate version *1.0.12+20190623*, where *20190623* is the exact revision of the *language:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Natural Language* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/natural-language/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/struct.CloudNaturalLanguage.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/struct.CloudNaturalLanguage.html) ... -* [documents](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/struct.Document.html) - * [*analyze entities*](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/struct.DocumentAnalyzeEntityCall.html), [*analyze sentiment*](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/struct.DocumentAnalyzeSentimentCall.html), [*analyze syntax*](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/struct.DocumentAnalyzeSyntaxCall.html) and [*annotate text*](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/struct.DocumentAnnotateTextCall.html) +* [documents](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/struct.Document.html) + * [*analyze entities*](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/struct.DocumentAnalyzeEntityCall.html), [*analyze sentiment*](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/struct.DocumentAnalyzeSentimentCall.html), [*analyze syntax*](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/struct.DocumentAnalyzeSyntaxCall.html) and [*annotate text*](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/struct.DocumentAnnotateTextCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/struct.CloudNaturalLanguage.html)** +* **[Hub](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/struct.CloudNaturalLanguage.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -133,17 +133,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -153,29 +153,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-language1_beta1/1.0.11+20190623/google_language1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-language1_beta1/1.0.12+20190623/google_language1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/language1_beta1/src/lib.rs b/gen/language1_beta1/src/lib.rs index 622d3c5c9b..4061f88ea4 100644 --- a/gen/language1_beta1/src/lib.rs +++ b/gen/language1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Natural Language* crate version *1.0.11+20190623*, where *20190623* is the exact revision of the *language:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Natural Language* crate version *1.0.12+20190623*, where *20190623* is the exact revision of the *language:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Natural Language* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/natural-language/). @@ -336,7 +336,7 @@ impl<'a, C, A> CloudNaturalLanguage CloudNaturalLanguage { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://language.googleapis.com/".to_string(), _root_url: "https://language.googleapis.com/".to_string(), } @@ -347,7 +347,7 @@ impl<'a, C, A> CloudNaturalLanguage } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/libraryagent1-cli/Cargo.toml b/gen/libraryagent1-cli/Cargo.toml index 58c4e0a44f..91d0a9b2b3 100644 --- a/gen/libraryagent1-cli/Cargo.toml +++ b/gen/libraryagent1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-libraryagent1-cli" -version = "1.0.11+20190703" +version = "1.0.12+20190703" authors = ["Sebastian Thiel "] description = "A complete library to interact with Libraryagent (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/libraryagent1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-libraryagent1] path = "../libraryagent1" -version = "1.0.11+20190703" +version = "1.0.12+20190703" diff --git a/gen/libraryagent1-cli/LICENSE.md b/gen/libraryagent1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/libraryagent1-cli/LICENSE.md +++ b/gen/libraryagent1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/libraryagent1-cli/README.md b/gen/libraryagent1-cli/README.md index 6900372b49..bd679938c2 100644 --- a/gen/libraryagent1-cli/README.md +++ b/gen/libraryagent1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Libraryagent* API at revision *20190703*. The CLI is at version *1.0.11*. +This documentation was generated from the *Libraryagent* API at revision *20190703*. The CLI is at version *1.0.12*. ```bash libraryagent1 [options] diff --git a/gen/libraryagent1-cli/mkdocs.yml b/gen/libraryagent1-cli/mkdocs.yml index d87f5b719c..6af4b19442 100644 --- a/gen/libraryagent1-cli/mkdocs.yml +++ b/gen/libraryagent1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Libraryagent v1.0.11+20190703 +site_name: Libraryagent v1.0.12+20190703 site_url: http://byron.github.io/google-apis-rs/google-libraryagent1-cli site_description: A complete library to interact with Libraryagent (protocol v1) @@ -18,5 +18,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/libraryagent1-cli/src/cmn.rs b/gen/libraryagent1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/libraryagent1-cli/src/cmn.rs +++ b/gen/libraryagent1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/libraryagent1-cli/src/main.rs b/gen/libraryagent1-cli/src/main.rs index 9074fa1475..2964e1ce9d 100644 --- a/gen/libraryagent1-cli/src/main.rs +++ b/gen/libraryagent1-cli/src/main.rs @@ -630,7 +630,7 @@ fn main() { let mut app = App::new("libraryagent1") .author("Sebastian Thiel ") - .version("1.0.11+20190703") + .version("1.0.12+20190703") .about("A simple Google Example Library API.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_libraryagent1_cli") .arg(Arg::with_name("url") diff --git a/gen/libraryagent1/Cargo.toml b/gen/libraryagent1/Cargo.toml index 348aa477b9..3f96cc8fb2 100644 --- a/gen/libraryagent1/Cargo.toml +++ b/gen/libraryagent1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-libraryagent1" -version = "1.0.11+20190703" +version = "1.0.12+20190703" authors = ["Sebastian Thiel "] description = "A complete library to interact with Libraryagent (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/libraryagent1" homepage = "https://cloud.google.com/docs/quota" -documentation = "https://docs.rs/google-libraryagent1/1.0.11+20190703" +documentation = "https://docs.rs/google-libraryagent1/1.0.12+20190703" license = "MIT" keywords = ["libraryagent", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/libraryagent1/LICENSE.md b/gen/libraryagent1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/libraryagent1/LICENSE.md +++ b/gen/libraryagent1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/libraryagent1/README.md b/gen/libraryagent1/README.md index 631c1d77ef..c5176bc320 100644 --- a/gen/libraryagent1/README.md +++ b/gen/libraryagent1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-libraryagent1` library allows access to all features of the *Google Libraryagent* service. -This documentation was generated from *Libraryagent* crate version *1.0.11+20190703*, where *20190703* is the exact revision of the *libraryagent:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Libraryagent* crate version *1.0.12+20190703*, where *20190703* is the exact revision of the *libraryagent:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Libraryagent* *v1* API can be found at the [official documentation site](https://cloud.google.com/docs/quota). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/struct.Libraryagent.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/struct.Libraryagent.html) ... * shelves - * [*books borrow*](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/struct.ShelveBookBorrowCall.html), [*books get*](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/struct.ShelveBookGetCall.html), [*books list*](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/struct.ShelveBookListCall.html), [*books return*](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/struct.ShelveBookReturnCall.html), [*get*](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/struct.ShelveGetCall.html) and [*list*](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/struct.ShelveListCall.html) + * [*books borrow*](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/struct.ShelveBookBorrowCall.html), [*books get*](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/struct.ShelveBookGetCall.html), [*books list*](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/struct.ShelveBookListCall.html), [*books return*](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/struct.ShelveBookReturnCall.html), [*get*](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/struct.ShelveGetCall.html) and [*list*](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/struct.ShelveListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/struct.Libraryagent.html)** +* **[Hub](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/struct.Libraryagent.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.Part.html)** + * **[Parts](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -126,17 +126,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -146,29 +146,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-libraryagent1/1.0.11+20190703/google_libraryagent1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-libraryagent1/1.0.12+20190703/google_libraryagent1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/libraryagent1/src/lib.rs b/gen/libraryagent1/src/lib.rs index 6a2117483a..10db9cb383 100644 --- a/gen/libraryagent1/src/lib.rs +++ b/gen/libraryagent1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Libraryagent* crate version *1.0.11+20190703*, where *20190703* is the exact revision of the *libraryagent:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Libraryagent* crate version *1.0.12+20190703*, where *20190703* is the exact revision of the *libraryagent:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Libraryagent* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/docs/quota). @@ -319,7 +319,7 @@ impl<'a, C, A> Libraryagent Libraryagent { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://libraryagent.googleapis.com/".to_string(), _root_url: "https://libraryagent.googleapis.com/".to_string(), } @@ -330,7 +330,7 @@ impl<'a, C, A> Libraryagent } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/licensing1-cli/Cargo.toml b/gen/licensing1-cli/Cargo.toml index de89432f80..fefc446cff 100644 --- a/gen/licensing1-cli/Cargo.toml +++ b/gen/licensing1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-licensing1-cli" -version = "1.0.11+20170213" +version = "1.0.12+20170213" authors = ["Sebastian Thiel "] description = "A complete library to interact with licensing (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/licensing1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-licensing1] path = "../licensing1" -version = "1.0.11+20170213" +version = "1.0.12+20170213" diff --git a/gen/licensing1-cli/LICENSE.md b/gen/licensing1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/licensing1-cli/LICENSE.md +++ b/gen/licensing1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/licensing1-cli/README.md b/gen/licensing1-cli/README.md index d6279ffd3a..f55b7c92ea 100644 --- a/gen/licensing1-cli/README.md +++ b/gen/licensing1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *licensing* API at revision *20170213*. The CLI is at version *1.0.11*. +This documentation was generated from the *licensing* API at revision *20170213*. The CLI is at version *1.0.12*. ```bash licensing1 [options] diff --git a/gen/licensing1-cli/mkdocs.yml b/gen/licensing1-cli/mkdocs.yml index 838f8ebfb2..f2d1b969b1 100644 --- a/gen/licensing1-cli/mkdocs.yml +++ b/gen/licensing1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: licensing v1.0.11+20170213 +site_name: licensing v1.0.12+20170213 site_url: http://byron.github.io/google-apis-rs/google-licensing1-cli site_description: A complete library to interact with licensing (protocol v1) @@ -19,5 +19,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/licensing1-cli/src/cmn.rs b/gen/licensing1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/licensing1-cli/src/cmn.rs +++ b/gen/licensing1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/licensing1-cli/src/main.rs b/gen/licensing1-cli/src/main.rs index a080f96a81..de4cc31a48 100644 --- a/gen/licensing1-cli/src/main.rs +++ b/gen/licensing1-cli/src/main.rs @@ -890,7 +890,7 @@ fn main() { let mut app = App::new("licensing1") .author("Sebastian Thiel ") - .version("1.0.11+20170213") + .version("1.0.12+20170213") .about("Views and manages licenses for your domain.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_licensing1_cli") .arg(Arg::with_name("url") diff --git a/gen/licensing1/Cargo.toml b/gen/licensing1/Cargo.toml index 66f3ff4b4a..616be0668c 100644 --- a/gen/licensing1/Cargo.toml +++ b/gen/licensing1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-licensing1" -version = "1.0.11+20170213" +version = "1.0.12+20170213" authors = ["Sebastian Thiel "] description = "A complete library to interact with licensing (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/licensing1" homepage = "https://developers.google.com/google-apps/licensing/" -documentation = "https://docs.rs/google-licensing1/1.0.11+20170213" +documentation = "https://docs.rs/google-licensing1/1.0.12+20170213" license = "MIT" keywords = ["licensing", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/licensing1/LICENSE.md b/gen/licensing1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/licensing1/LICENSE.md +++ b/gen/licensing1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/licensing1/README.md b/gen/licensing1/README.md index ff4e239f01..6915801de8 100644 --- a/gen/licensing1/README.md +++ b/gen/licensing1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-licensing1` library allows access to all features of the *Google licensing* service. -This documentation was generated from *licensing* crate version *1.0.11+20170213*, where *20170213* is the exact revision of the *licensing:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *licensing* crate version *1.0.12+20170213*, where *20170213* is the exact revision of the *licensing:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *licensing* *v1* API can be found at the [official documentation site](https://developers.google.com/google-apps/licensing/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/struct.Licensing.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/struct.Licensing.html) ... -* [license assignments](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/struct.LicenseAssignment.html) - * [*delete*](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/struct.LicenseAssignmentDeleteCall.html), [*get*](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/struct.LicenseAssignmentGetCall.html), [*insert*](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/struct.LicenseAssignmentInsertCall.html), [*list for product*](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/struct.LicenseAssignmentListForProductCall.html), [*list for product and sku*](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/struct.LicenseAssignmentListForProductAndSkuCall.html), [*patch*](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/struct.LicenseAssignmentPatchCall.html) and [*update*](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/struct.LicenseAssignmentUpdateCall.html) +* [license assignments](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/struct.LicenseAssignment.html) + * [*delete*](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/struct.LicenseAssignmentDeleteCall.html), [*get*](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/struct.LicenseAssignmentGetCall.html), [*insert*](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/struct.LicenseAssignmentInsertCall.html), [*list for product*](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/struct.LicenseAssignmentListForProductCall.html), [*list for product and sku*](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/struct.LicenseAssignmentListForProductAndSkuCall.html), [*patch*](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/struct.LicenseAssignmentPatchCall.html) and [*update*](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/struct.LicenseAssignmentUpdateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/struct.Licensing.html)** +* **[Hub](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/struct.Licensing.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.Part.html)** + * **[Parts](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-licensing1/1.0.11+20170213/google_licensing1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-licensing1/1.0.12+20170213/google_licensing1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/licensing1/src/lib.rs b/gen/licensing1/src/lib.rs index 83269cd976..88b4b4b3d3 100644 --- a/gen/licensing1/src/lib.rs +++ b/gen/licensing1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *licensing* crate version *1.0.11+20170213*, where *20170213* is the exact revision of the *licensing:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *licensing* crate version *1.0.12+20170213*, where *20170213* is the exact revision of the *licensing:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *licensing* *v1* API can be found at the //! [official documentation site](https://developers.google.com/google-apps/licensing/). @@ -327,7 +327,7 @@ impl<'a, C, A> Licensing Licensing { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/apps/licensing/v1/product/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -338,7 +338,7 @@ impl<'a, C, A> Licensing } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/logging2-cli/Cargo.toml b/gen/logging2-cli/Cargo.toml index 2443c10ba1..503035dd26 100644 --- a/gen/logging2-cli/Cargo.toml +++ b/gen/logging2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-logging2-cli" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with Logging (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/logging2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-logging2] path = "../logging2" -version = "1.0.11+20190629" +version = "1.0.12+20190629" diff --git a/gen/logging2-cli/LICENSE.md b/gen/logging2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/logging2-cli/LICENSE.md +++ b/gen/logging2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/logging2-cli/README.md b/gen/logging2-cli/README.md index 71a4191ed1..beffba7c95 100644 --- a/gen/logging2-cli/README.md +++ b/gen/logging2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Logging* API at revision *20190629*. The CLI is at version *1.0.11*. +This documentation was generated from the *Logging* API at revision *20190629*. The CLI is at version *1.0.12*. ```bash logging2 [options] diff --git a/gen/logging2-cli/mkdocs.yml b/gen/logging2-cli/mkdocs.yml index c5442c4681..f048b490b9 100644 --- a/gen/logging2-cli/mkdocs.yml +++ b/gen/logging2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Logging v1.0.11+20190629 +site_name: Logging v1.0.12+20190629 site_url: http://byron.github.io/google-apis-rs/google-logging2-cli site_description: A complete library to interact with Logging (protocol v2) @@ -84,5 +84,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/logging2-cli/src/cmn.rs b/gen/logging2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/logging2-cli/src/cmn.rs +++ b/gen/logging2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/logging2-cli/src/main.rs b/gen/logging2-cli/src/main.rs index 79bd565f80..14d1be9699 100644 --- a/gen/logging2-cli/src/main.rs +++ b/gen/logging2-cli/src/main.rs @@ -7617,7 +7617,7 @@ fn main() { let mut app = App::new("logging2") .author("Sebastian Thiel ") - .version("1.0.11+20190629") + .version("1.0.12+20190629") .about("Writes log entries and manages your Stackdriver Logging configuration. The table entries below are presented in alphabetical order, not in order of common use. For explanations of the concepts found in the table entries, read the Stackdriver Logging documentation.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_logging2_cli") .arg(Arg::with_name("url") diff --git a/gen/logging2/Cargo.toml b/gen/logging2/Cargo.toml index b45e546964..f61eddb02c 100644 --- a/gen/logging2/Cargo.toml +++ b/gen/logging2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-logging2" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with Logging (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/logging2" homepage = "https://cloud.google.com/logging/docs/" -documentation = "https://docs.rs/google-logging2/1.0.11+20190629" +documentation = "https://docs.rs/google-logging2/1.0.12+20190629" license = "MIT" keywords = ["logging", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/logging2/LICENSE.md b/gen/logging2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/logging2/LICENSE.md +++ b/gen/logging2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/logging2/README.md b/gen/logging2/README.md index 66fc22ce80..9beddaefa6 100644 --- a/gen/logging2/README.md +++ b/gen/logging2/README.md @@ -5,32 +5,32 @@ DO NOT EDIT ! --> The `google-logging2` library allows access to all features of the *Google Logging* service. -This documentation was generated from *Logging* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *logging:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Logging* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *logging:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Logging* *v2* API can be found at the [official documentation site](https://cloud.google.com/logging/docs/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.Logging.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.Logging.html) ... * billing accounts - * [*exclusions create*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.BillingAccountExclusionCreateCall.html), [*exclusions delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.BillingAccountExclusionDeleteCall.html), [*exclusions get*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.BillingAccountExclusionGetCall.html), [*exclusions list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.BillingAccountExclusionListCall.html), [*exclusions patch*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.BillingAccountExclusionPatchCall.html), [*logs delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.BillingAccountLogDeleteCall.html), [*logs list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.BillingAccountLogListCall.html), [*sinks create*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.BillingAccountSinkCreateCall.html), [*sinks delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.BillingAccountSinkDeleteCall.html), [*sinks get*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.BillingAccountSinkGetCall.html), [*sinks list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.BillingAccountSinkListCall.html), [*sinks patch*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.BillingAccountSinkPatchCall.html) and [*sinks update*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.BillingAccountSinkUpdateCall.html) + * [*exclusions create*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.BillingAccountExclusionCreateCall.html), [*exclusions delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.BillingAccountExclusionDeleteCall.html), [*exclusions get*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.BillingAccountExclusionGetCall.html), [*exclusions list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.BillingAccountExclusionListCall.html), [*exclusions patch*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.BillingAccountExclusionPatchCall.html), [*logs delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.BillingAccountLogDeleteCall.html), [*logs list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.BillingAccountLogListCall.html), [*sinks create*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.BillingAccountSinkCreateCall.html), [*sinks delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.BillingAccountSinkDeleteCall.html), [*sinks get*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.BillingAccountSinkGetCall.html), [*sinks list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.BillingAccountSinkListCall.html), [*sinks patch*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.BillingAccountSinkPatchCall.html) and [*sinks update*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.BillingAccountSinkUpdateCall.html) * entries - * [*list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.EntryListCall.html) and [*write*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.EntryWriteCall.html) + * [*list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.EntryListCall.html) and [*write*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.EntryWriteCall.html) * exclusions - * [*create*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ExclusionCreateCall.html), [*delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ExclusionDeleteCall.html), [*get*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ExclusionGetCall.html), [*list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ExclusionListCall.html) and [*patch*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ExclusionPatchCall.html) + * [*create*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ExclusionCreateCall.html), [*delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ExclusionDeleteCall.html), [*get*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ExclusionGetCall.html), [*list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ExclusionListCall.html) and [*patch*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ExclusionPatchCall.html) * folders - * [*exclusions create*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.FolderExclusionCreateCall.html), [*exclusions delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.FolderExclusionDeleteCall.html), [*exclusions get*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.FolderExclusionGetCall.html), [*exclusions list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.FolderExclusionListCall.html), [*exclusions patch*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.FolderExclusionPatchCall.html), [*logs delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.FolderLogDeleteCall.html), [*logs list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.FolderLogListCall.html), [*sinks create*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.FolderSinkCreateCall.html), [*sinks delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.FolderSinkDeleteCall.html), [*sinks get*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.FolderSinkGetCall.html), [*sinks list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.FolderSinkListCall.html), [*sinks patch*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.FolderSinkPatchCall.html) and [*sinks update*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.FolderSinkUpdateCall.html) + * [*exclusions create*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.FolderExclusionCreateCall.html), [*exclusions delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.FolderExclusionDeleteCall.html), [*exclusions get*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.FolderExclusionGetCall.html), [*exclusions list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.FolderExclusionListCall.html), [*exclusions patch*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.FolderExclusionPatchCall.html), [*logs delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.FolderLogDeleteCall.html), [*logs list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.FolderLogListCall.html), [*sinks create*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.FolderSinkCreateCall.html), [*sinks delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.FolderSinkDeleteCall.html), [*sinks get*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.FolderSinkGetCall.html), [*sinks list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.FolderSinkListCall.html), [*sinks patch*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.FolderSinkPatchCall.html) and [*sinks update*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.FolderSinkUpdateCall.html) * logs - * [*delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.LogDeleteCall.html) and [*list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.LogListCall.html) -* [monitored resource descriptors](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.MonitoredResourceDescriptor.html) - * [*list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.MonitoredResourceDescriptorListCall.html) + * [*delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.LogDeleteCall.html) and [*list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.LogListCall.html) +* [monitored resource descriptors](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.MonitoredResourceDescriptor.html) + * [*list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.MonitoredResourceDescriptorListCall.html) * organizations - * [*exclusions create*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.OrganizationExclusionCreateCall.html), [*exclusions delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.OrganizationExclusionDeleteCall.html), [*exclusions get*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.OrganizationExclusionGetCall.html), [*exclusions list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.OrganizationExclusionListCall.html), [*exclusions patch*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.OrganizationExclusionPatchCall.html), [*logs delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.OrganizationLogDeleteCall.html), [*logs list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.OrganizationLogListCall.html), [*sinks create*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.OrganizationSinkCreateCall.html), [*sinks delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.OrganizationSinkDeleteCall.html), [*sinks get*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.OrganizationSinkGetCall.html), [*sinks list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.OrganizationSinkListCall.html), [*sinks patch*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.OrganizationSinkPatchCall.html) and [*sinks update*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.OrganizationSinkUpdateCall.html) + * [*exclusions create*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.OrganizationExclusionCreateCall.html), [*exclusions delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.OrganizationExclusionDeleteCall.html), [*exclusions get*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.OrganizationExclusionGetCall.html), [*exclusions list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.OrganizationExclusionListCall.html), [*exclusions patch*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.OrganizationExclusionPatchCall.html), [*logs delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.OrganizationLogDeleteCall.html), [*logs list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.OrganizationLogListCall.html), [*sinks create*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.OrganizationSinkCreateCall.html), [*sinks delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.OrganizationSinkDeleteCall.html), [*sinks get*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.OrganizationSinkGetCall.html), [*sinks list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.OrganizationSinkListCall.html), [*sinks patch*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.OrganizationSinkPatchCall.html) and [*sinks update*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.OrganizationSinkUpdateCall.html) * projects - * [*exclusions create*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectExclusionCreateCall.html), [*exclusions delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectExclusionDeleteCall.html), [*exclusions get*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectExclusionGetCall.html), [*exclusions list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectExclusionListCall.html), [*exclusions patch*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectExclusionPatchCall.html), [*logs delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectLogDeleteCall.html), [*logs list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectLogListCall.html), [*metrics create*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectMetricCreateCall.html), [*metrics delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectMetricDeleteCall.html), [*metrics get*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectMetricGetCall.html), [*metrics list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectMetricListCall.html), [*metrics update*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectMetricUpdateCall.html), [*sinks create*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectSinkCreateCall.html), [*sinks delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectSinkDeleteCall.html), [*sinks get*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectSinkGetCall.html), [*sinks list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectSinkListCall.html), [*sinks patch*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectSinkPatchCall.html) and [*sinks update*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.ProjectSinkUpdateCall.html) + * [*exclusions create*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectExclusionCreateCall.html), [*exclusions delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectExclusionDeleteCall.html), [*exclusions get*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectExclusionGetCall.html), [*exclusions list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectExclusionListCall.html), [*exclusions patch*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectExclusionPatchCall.html), [*logs delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectLogDeleteCall.html), [*logs list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectLogListCall.html), [*metrics create*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectMetricCreateCall.html), [*metrics delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectMetricDeleteCall.html), [*metrics get*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectMetricGetCall.html), [*metrics list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectMetricListCall.html), [*metrics update*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectMetricUpdateCall.html), [*sinks create*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectSinkCreateCall.html), [*sinks delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectSinkDeleteCall.html), [*sinks get*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectSinkGetCall.html), [*sinks list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectSinkListCall.html), [*sinks patch*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectSinkPatchCall.html) and [*sinks update*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.ProjectSinkUpdateCall.html) * sinks - * [*create*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.SinkCreateCall.html), [*delete*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.SinkDeleteCall.html), [*get*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.SinkGetCall.html), [*list*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.SinkListCall.html) and [*update*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.SinkUpdateCall.html) + * [*create*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.SinkCreateCall.html), [*delete*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.SinkDeleteCall.html), [*get*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.SinkGetCall.html), [*list*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.SinkListCall.html) and [*update*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.SinkUpdateCall.html) @@ -39,17 +39,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/struct.Logging.html)** +* **[Hub](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/struct.Logging.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.Part.html)** + * **[Parts](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -166,17 +166,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -186,29 +186,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-logging2/1.0.11+20190629/google_logging2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-logging2/1.0.12+20190629/google_logging2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/logging2/src/lib.rs b/gen/logging2/src/lib.rs index 2357585e6c..0dfaab5b86 100644 --- a/gen/logging2/src/lib.rs +++ b/gen/logging2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Logging* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *logging:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Logging* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *logging:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Logging* *v2* API can be found at the //! [official documentation site](https://cloud.google.com/logging/docs/). @@ -383,7 +383,7 @@ impl<'a, C, A> Logging Logging { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://logging.googleapis.com/".to_string(), _root_url: "https://logging.googleapis.com/".to_string(), } @@ -418,7 +418,7 @@ impl<'a, C, A> Logging } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/logging2_beta1-cli/Cargo.toml b/gen/logging2_beta1-cli/Cargo.toml index f751492269..c83dc360aa 100644 --- a/gen/logging2_beta1-cli/Cargo.toml +++ b/gen/logging2_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-logging2_beta1-cli" -version = "1.0.11+20190325" +version = "1.0.12+20190325" authors = ["Sebastian Thiel "] description = "A complete library to interact with Logging (protocol v2beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/logging2_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-logging2_beta1] path = "../logging2_beta1" -version = "1.0.11+20190325" +version = "1.0.12+20190325" diff --git a/gen/logging2_beta1-cli/LICENSE.md b/gen/logging2_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/logging2_beta1-cli/LICENSE.md +++ b/gen/logging2_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/logging2_beta1-cli/README.md b/gen/logging2_beta1-cli/README.md index c2b9b59e66..4d260ac32d 100644 --- a/gen/logging2_beta1-cli/README.md +++ b/gen/logging2_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Logging* API at revision *20190325*. The CLI is at version *1.0.11*. +This documentation was generated from the *Logging* API at revision *20190325*. The CLI is at version *1.0.12*. ```bash logging2-beta1 [options] diff --git a/gen/logging2_beta1-cli/mkdocs.yml b/gen/logging2_beta1-cli/mkdocs.yml index 5f399d17be..5bd6dc2d24 100644 --- a/gen/logging2_beta1-cli/mkdocs.yml +++ b/gen/logging2_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Logging v1.0.11+20190325 +site_name: Logging v1.0.12+20190325 site_url: http://byron.github.io/google-apis-rs/google-logging2_beta1-cli site_description: A complete library to interact with Logging (protocol v2beta1) @@ -25,5 +25,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/logging2_beta1-cli/src/cmn.rs b/gen/logging2_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/logging2_beta1-cli/src/cmn.rs +++ b/gen/logging2_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/logging2_beta1-cli/src/main.rs b/gen/logging2_beta1-cli/src/main.rs index dfccae0866..c7c714fe02 100644 --- a/gen/logging2_beta1-cli/src/main.rs +++ b/gen/logging2_beta1-cli/src/main.rs @@ -1529,7 +1529,7 @@ fn main() { let mut app = App::new("logging2-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190325") + .version("1.0.12+20190325") .about("Writes log entries and manages your Logging configuration.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_logging2_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/logging2_beta1/Cargo.toml b/gen/logging2_beta1/Cargo.toml index b0790d4dee..c08d5b7ca1 100644 --- a/gen/logging2_beta1/Cargo.toml +++ b/gen/logging2_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-logging2_beta1" -version = "1.0.11+20190325" +version = "1.0.12+20190325" authors = ["Sebastian Thiel "] description = "A complete library to interact with Logging (protocol v2beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/logging2_beta1" homepage = "https://cloud.google.com/logging/docs/" -documentation = "https://docs.rs/google-logging2_beta1/1.0.11+20190325" +documentation = "https://docs.rs/google-logging2_beta1/1.0.12+20190325" license = "MIT" keywords = ["logging", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/logging2_beta1/LICENSE.md b/gen/logging2_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/logging2_beta1/LICENSE.md +++ b/gen/logging2_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/logging2_beta1/README.md b/gen/logging2_beta1/README.md index bee73138d8..5d427da12b 100644 --- a/gen/logging2_beta1/README.md +++ b/gen/logging2_beta1/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-logging2_beta1` library allows access to all features of the *Google Logging* service. -This documentation was generated from *Logging* crate version *1.0.11+20190325*, where *20190325* is the exact revision of the *logging:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Logging* crate version *1.0.12+20190325*, where *20190325* is the exact revision of the *logging:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Logging* *v2_beta1* API can be found at the [official documentation site](https://cloud.google.com/logging/docs/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.Logging.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.Logging.html) ... * entries - * [*list*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.EntryListCall.html) and [*write*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.EntryWriteCall.html) -* [monitored resource descriptors](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.MonitoredResourceDescriptor.html) - * [*list*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.MonitoredResourceDescriptorListCall.html) + * [*list*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.EntryListCall.html) and [*write*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.EntryWriteCall.html) +* [monitored resource descriptors](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.MonitoredResourceDescriptor.html) + * [*list*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.MonitoredResourceDescriptorListCall.html) * projects - * [*metrics create*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.ProjectMetricCreateCall.html), [*metrics delete*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.ProjectMetricDeleteCall.html), [*metrics get*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.ProjectMetricGetCall.html), [*metrics list*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.ProjectMetricListCall.html), [*metrics update*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.ProjectMetricUpdateCall.html), [*sinks create*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.ProjectSinkCreateCall.html), [*sinks delete*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.ProjectSinkDeleteCall.html), [*sinks get*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.ProjectSinkGetCall.html), [*sinks list*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.ProjectSinkListCall.html) and [*sinks update*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.ProjectSinkUpdateCall.html) + * [*metrics create*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.ProjectMetricCreateCall.html), [*metrics delete*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.ProjectMetricDeleteCall.html), [*metrics get*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.ProjectMetricGetCall.html), [*metrics list*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.ProjectMetricListCall.html), [*metrics update*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.ProjectMetricUpdateCall.html), [*sinks create*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.ProjectSinkCreateCall.html), [*sinks delete*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.ProjectSinkDeleteCall.html), [*sinks get*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.ProjectSinkGetCall.html), [*sinks list*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.ProjectSinkListCall.html) and [*sinks update*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.ProjectSinkUpdateCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/struct.Logging.html)** +* **[Hub](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/struct.Logging.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-logging2_beta1/1.0.11+20190325/google_logging2_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-logging2_beta1/1.0.12+20190325/google_logging2_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/logging2_beta1/src/lib.rs b/gen/logging2_beta1/src/lib.rs index 7a7aced27f..1fab02ba68 100644 --- a/gen/logging2_beta1/src/lib.rs +++ b/gen/logging2_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Logging* crate version *1.0.11+20190325*, where *20190325* is the exact revision of the *logging:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Logging* crate version *1.0.12+20190325*, where *20190325* is the exact revision of the *logging:v2beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Logging* *v2_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/logging/docs/). @@ -351,7 +351,7 @@ impl<'a, C, A> Logging Logging { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://logging.googleapis.com/".to_string(), _root_url: "https://logging.googleapis.com/".to_string(), } @@ -368,7 +368,7 @@ impl<'a, C, A> Logging } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/manager1_beta2-cli/Cargo.toml b/gen/manager1_beta2-cli/Cargo.toml index 1d6f79089e..55e858985d 100644 --- a/gen/manager1_beta2-cli/Cargo.toml +++ b/gen/manager1_beta2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-manager1_beta2-cli" -version = "1.0.11+20140915" +version = "1.0.12+20140915" authors = ["Sebastian Thiel "] description = "A complete library to interact with manager (protocol v1beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/manager1_beta2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-manager1_beta2] path = "../manager1_beta2" -version = "1.0.11+20140915" +version = "1.0.12+20140915" diff --git a/gen/manager1_beta2-cli/LICENSE.md b/gen/manager1_beta2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/manager1_beta2-cli/LICENSE.md +++ b/gen/manager1_beta2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/manager1_beta2-cli/README.md b/gen/manager1_beta2-cli/README.md index 614769c708..7fffdb3089 100644 --- a/gen/manager1_beta2-cli/README.md +++ b/gen/manager1_beta2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *manager* API at revision *20140915*. The CLI is at version *1.0.11*. +This documentation was generated from the *manager* API at revision *20140915*. The CLI is at version *1.0.12*. ```bash manager1-beta2 [options] diff --git a/gen/manager1_beta2-cli/mkdocs.yml b/gen/manager1_beta2-cli/mkdocs.yml index 5f46a76936..ec9e14affc 100644 --- a/gen/manager1_beta2-cli/mkdocs.yml +++ b/gen/manager1_beta2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: manager v1.0.11+20140915 +site_name: manager v1.0.12+20140915 site_url: http://byron.github.io/google-apis-rs/google-manager1_beta2-cli site_description: A complete library to interact with manager (protocol v1beta2) @@ -20,5 +20,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/manager1_beta2-cli/src/cmn.rs b/gen/manager1_beta2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/manager1_beta2-cli/src/cmn.rs +++ b/gen/manager1_beta2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/manager1_beta2-cli/src/main.rs b/gen/manager1_beta2-cli/src/main.rs index d2dcb22875..2478039ff5 100644 --- a/gen/manager1_beta2-cli/src/main.rs +++ b/gen/manager1_beta2-cli/src/main.rs @@ -893,7 +893,7 @@ fn main() { let mut app = App::new("manager1-beta2") .author("Sebastian Thiel ") - .version("1.0.11+20140915") + .version("1.0.12+20140915") .about("The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_manager1_beta2_cli") .arg(Arg::with_name("url") diff --git a/gen/manager1_beta2/Cargo.toml b/gen/manager1_beta2/Cargo.toml index ff47e82623..e613bfe98b 100644 --- a/gen/manager1_beta2/Cargo.toml +++ b/gen/manager1_beta2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-manager1_beta2" -version = "1.0.11+20140915" +version = "1.0.12+20140915" authors = ["Sebastian Thiel "] description = "A complete library to interact with manager (protocol v1beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/manager1_beta2" homepage = "https://developers.google.com/deployment-manager/" -documentation = "https://docs.rs/google-manager1_beta2/1.0.11+20140915" +documentation = "https://docs.rs/google-manager1_beta2/1.0.12+20140915" license = "MIT" keywords = ["manager", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/manager1_beta2/LICENSE.md b/gen/manager1_beta2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/manager1_beta2/LICENSE.md +++ b/gen/manager1_beta2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/manager1_beta2/README.md b/gen/manager1_beta2/README.md index 9f9941576f..77a8038b28 100644 --- a/gen/manager1_beta2/README.md +++ b/gen/manager1_beta2/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-manager1_beta2` library allows access to all features of the *Google manager* service. -This documentation was generated from *manager* crate version *1.0.11+20140915*, where *20140915* is the exact revision of the *manager:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *manager* crate version *1.0.12+20140915*, where *20140915* is the exact revision of the *manager:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *manager* *v1_beta2* API can be found at the [official documentation site](https://developers.google.com/deployment-manager/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/struct.Manager.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/struct.Manager.html) ... -* [deployments](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/struct.Deployment.html) - * [*delete*](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/struct.DeploymentDeleteCall.html), [*get*](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/struct.DeploymentGetCall.html), [*insert*](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/struct.DeploymentInsertCall.html) and [*list*](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/struct.DeploymentListCall.html) -* [templates](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/struct.Template.html) - * [*delete*](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/struct.TemplateDeleteCall.html), [*get*](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/struct.TemplateGetCall.html), [*insert*](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/struct.TemplateInsertCall.html) and [*list*](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/struct.TemplateListCall.html) +* [deployments](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/struct.Deployment.html) + * [*delete*](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/struct.DeploymentDeleteCall.html), [*get*](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/struct.DeploymentGetCall.html), [*insert*](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/struct.DeploymentInsertCall.html) and [*list*](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/struct.DeploymentListCall.html) +* [templates](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/struct.Template.html) + * [*delete*](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/struct.TemplateDeleteCall.html), [*get*](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/struct.TemplateGetCall.html), [*insert*](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/struct.TemplateInsertCall.html) and [*list*](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/struct.TemplateListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/struct.Manager.html)** +* **[Hub](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/struct.Manager.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.Part.html)** + * **[Parts](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -131,17 +131,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -151,29 +151,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-manager1_beta2/1.0.11+20140915/google_manager1_beta2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-manager1_beta2/1.0.12+20140915/google_manager1_beta2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/manager1_beta2/src/lib.rs b/gen/manager1_beta2/src/lib.rs index 9ea356ccc2..e6ccc494e5 100644 --- a/gen/manager1_beta2/src/lib.rs +++ b/gen/manager1_beta2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *manager* crate version *1.0.11+20140915*, where *20140915* is the exact revision of the *manager:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *manager* crate version *1.0.12+20140915*, where *20140915* is the exact revision of the *manager:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *manager* *v1_beta2* API can be found at the //! [official documentation site](https://developers.google.com/deployment-manager/). @@ -350,7 +350,7 @@ impl<'a, C, A> Manager Manager { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/manager/v1beta2/projects/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -364,7 +364,7 @@ impl<'a, C, A> Manager } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/manufacturers1-cli/Cargo.toml b/gen/manufacturers1-cli/Cargo.toml index 1318ac1d27..a868eb3bb1 100644 --- a/gen/manufacturers1-cli/Cargo.toml +++ b/gen/manufacturers1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-manufacturers1-cli" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Manufacturer Center (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/manufacturers1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-manufacturers1] path = "../manufacturers1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" diff --git a/gen/manufacturers1-cli/LICENSE.md b/gen/manufacturers1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/manufacturers1-cli/LICENSE.md +++ b/gen/manufacturers1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/manufacturers1-cli/README.md b/gen/manufacturers1-cli/README.md index 54a9e9151b..ea3f14c362 100644 --- a/gen/manufacturers1-cli/README.md +++ b/gen/manufacturers1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Manufacturer Center* API at revision *20190627*. The CLI is at version *1.0.11*. +This documentation was generated from the *Manufacturer Center* API at revision *20190627*. The CLI is at version *1.0.12*. ```bash manufacturers1 [options] diff --git a/gen/manufacturers1-cli/mkdocs.yml b/gen/manufacturers1-cli/mkdocs.yml index 275e28628e..d381f6d2c0 100644 --- a/gen/manufacturers1-cli/mkdocs.yml +++ b/gen/manufacturers1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Manufacturer Center v1.0.11+20190627 +site_name: Manufacturer Center v1.0.12+20190627 site_url: http://byron.github.io/google-apis-rs/google-manufacturers1-cli site_description: A complete library to interact with Manufacturer Center (protocol v1) @@ -16,5 +16,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/manufacturers1-cli/src/cmn.rs b/gen/manufacturers1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/manufacturers1-cli/src/cmn.rs +++ b/gen/manufacturers1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/manufacturers1-cli/src/main.rs b/gen/manufacturers1-cli/src/main.rs index dfb915db24..b816ffb869 100644 --- a/gen/manufacturers1-cli/src/main.rs +++ b/gen/manufacturers1-cli/src/main.rs @@ -621,7 +621,7 @@ fn main() { let mut app = App::new("manufacturers1") .author("Sebastian Thiel ") - .version("1.0.11+20190627") + .version("1.0.12+20190627") .about("Public API for managing Manufacturer Center related data.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_manufacturers1_cli") .arg(Arg::with_name("url") diff --git a/gen/manufacturers1/Cargo.toml b/gen/manufacturers1/Cargo.toml index 97956426ca..8bbe48fd8a 100644 --- a/gen/manufacturers1/Cargo.toml +++ b/gen/manufacturers1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-manufacturers1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Manufacturer Center (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/manufacturers1" homepage = "https://developers.google.com/manufacturers/" -documentation = "https://docs.rs/google-manufacturers1/1.0.11+20190627" +documentation = "https://docs.rs/google-manufacturers1/1.0.12+20190627" license = "MIT" keywords = ["manufacturers", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/manufacturers1/LICENSE.md b/gen/manufacturers1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/manufacturers1/LICENSE.md +++ b/gen/manufacturers1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/manufacturers1/README.md b/gen/manufacturers1/README.md index f5694df395..d588cdc7f8 100644 --- a/gen/manufacturers1/README.md +++ b/gen/manufacturers1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-manufacturers1` library allows access to all features of the *Google Manufacturer Center* service. -This documentation was generated from *Manufacturer Center* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *manufacturers:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Manufacturer Center* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *manufacturers:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Manufacturer Center* *v1* API can be found at the [official documentation site](https://developers.google.com/manufacturers/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/struct.ManufacturerCenter.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/struct.ManufacturerCenter.html) ... * accounts - * [*products delete*](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/struct.AccountProductDeleteCall.html), [*products get*](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/struct.AccountProductGetCall.html), [*products list*](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/struct.AccountProductListCall.html) and [*products update*](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/struct.AccountProductUpdateCall.html) + * [*products delete*](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/struct.AccountProductDeleteCall.html), [*products get*](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/struct.AccountProductGetCall.html), [*products list*](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/struct.AccountProductListCall.html) and [*products update*](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/struct.AccountProductUpdateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/struct.ManufacturerCenter.html)** +* **[Hub](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/struct.ManufacturerCenter.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.Part.html)** + * **[Parts](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -131,17 +131,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -151,29 +151,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-manufacturers1/1.0.11+20190627/google_manufacturers1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-manufacturers1/1.0.12+20190627/google_manufacturers1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/manufacturers1/src/lib.rs b/gen/manufacturers1/src/lib.rs index c0a256a3bb..3de8e65f89 100644 --- a/gen/manufacturers1/src/lib.rs +++ b/gen/manufacturers1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Manufacturer Center* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *manufacturers:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Manufacturer Center* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *manufacturers:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Manufacturer Center* *v1* API can be found at the //! [official documentation site](https://developers.google.com/manufacturers/). @@ -330,7 +330,7 @@ impl<'a, C, A> ManufacturerCenter ManufacturerCenter { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://manufacturers.googleapis.com/".to_string(), _root_url: "https://manufacturers.googleapis.com/".to_string(), } @@ -341,7 +341,7 @@ impl<'a, C, A> ManufacturerCenter } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/mirror1-cli/Cargo.toml b/gen/mirror1-cli/Cargo.toml index 05b7df380c..0150518bee 100644 --- a/gen/mirror1-cli/Cargo.toml +++ b/gen/mirror1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-mirror1-cli" -version = "1.0.11+20190424" +version = "1.0.12+20190424" authors = ["Sebastian Thiel "] description = "A complete library to interact with mirror (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/mirror1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-mirror1] path = "../mirror1" -version = "1.0.11+20190424" +version = "1.0.12+20190424" diff --git a/gen/mirror1-cli/LICENSE.md b/gen/mirror1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/mirror1-cli/LICENSE.md +++ b/gen/mirror1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/mirror1-cli/README.md b/gen/mirror1-cli/README.md index 35f52f545e..dc7e59302d 100644 --- a/gen/mirror1-cli/README.md +++ b/gen/mirror1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *mirror* API at revision *20190424*. The CLI is at version *1.0.11*. +This documentation was generated from the *mirror* API at revision *20190424*. The CLI is at version *1.0.12*. ```bash mirror1 [options] diff --git a/gen/mirror1-cli/mkdocs.yml b/gen/mirror1-cli/mkdocs.yml index 0f007f3aa6..cd4a45563d 100644 --- a/gen/mirror1-cli/mkdocs.yml +++ b/gen/mirror1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: mirror v1.0.11+20190424 +site_name: mirror v1.0.12+20190424 site_url: http://byron.github.io/google-apis-rs/google-mirror1-cli site_description: A complete library to interact with mirror (protocol v1) @@ -36,5 +36,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/mirror1-cli/src/cmn.rs b/gen/mirror1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/mirror1-cli/src/cmn.rs +++ b/gen/mirror1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/mirror1-cli/src/main.rs b/gen/mirror1-cli/src/main.rs index 4ed81ff7e7..4bcc99bf14 100644 --- a/gen/mirror1-cli/src/main.rs +++ b/gen/mirror1-cli/src/main.rs @@ -2564,7 +2564,7 @@ fn main() { let mut app = App::new("mirror1") .author("Sebastian Thiel ") - .version("1.0.11+20190424") + .version("1.0.12+20190424") .about("Interacts with Glass users via the timeline.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_mirror1_cli") .arg(Arg::with_name("url") diff --git a/gen/mirror1/Cargo.toml b/gen/mirror1/Cargo.toml index c1d277aaaf..e7e799a48d 100644 --- a/gen/mirror1/Cargo.toml +++ b/gen/mirror1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-mirror1" -version = "1.0.11+20190424" +version = "1.0.12+20190424" authors = ["Sebastian Thiel "] description = "A complete library to interact with mirror (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/mirror1" homepage = "https://developers.google.com/glass" -documentation = "https://docs.rs/google-mirror1/1.0.11+20190424" +documentation = "https://docs.rs/google-mirror1/1.0.12+20190424" license = "MIT" keywords = ["mirror", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/mirror1/LICENSE.md b/gen/mirror1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/mirror1/LICENSE.md +++ b/gen/mirror1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/mirror1/README.md b/gen/mirror1/README.md index dd962dae8e..072c03fe9c 100644 --- a/gen/mirror1/README.md +++ b/gen/mirror1/README.md @@ -5,37 +5,37 @@ DO NOT EDIT ! --> The `google-mirror1` library allows access to all features of the *Google mirror* service. -This documentation was generated from *mirror* crate version *1.0.11+20190424*, where *20190424* is the exact revision of the *mirror:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *mirror* crate version *1.0.12+20190424*, where *20190424* is the exact revision of the *mirror:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *mirror* *v1* API can be found at the [official documentation site](https://developers.google.com/glass). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.Mirror.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.Mirror.html) ... -* [accounts](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.Account.html) - * [*insert*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.AccountInsertCall.html) -* [contacts](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.Contact.html) - * [*delete*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.ContactDeleteCall.html), [*get*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.ContactGetCall.html), [*insert*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.ContactInsertCall.html), [*list*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.ContactListCall.html), [*patch*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.ContactPatchCall.html) and [*update*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.ContactUpdateCall.html) -* [locations](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.Location.html) - * [*get*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.LocationGetCall.html) and [*list*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.LocationListCall.html) -* [settings](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.Setting.html) - * [*get*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.SettingGetCall.html) -* [subscriptions](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.Subscription.html) - * [*delete*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.SubscriptionDeleteCall.html), [*insert*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.SubscriptionInsertCall.html), [*list*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.SubscriptionListCall.html) and [*update*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.SubscriptionUpdateCall.html) +* [accounts](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.Account.html) + * [*insert*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.AccountInsertCall.html) +* [contacts](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.Contact.html) + * [*delete*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.ContactDeleteCall.html), [*get*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.ContactGetCall.html), [*insert*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.ContactInsertCall.html), [*list*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.ContactListCall.html), [*patch*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.ContactPatchCall.html) and [*update*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.ContactUpdateCall.html) +* [locations](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.Location.html) + * [*get*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.LocationGetCall.html) and [*list*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.LocationListCall.html) +* [settings](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.Setting.html) + * [*get*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.SettingGetCall.html) +* [subscriptions](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.Subscription.html) + * [*delete*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.SubscriptionDeleteCall.html), [*insert*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.SubscriptionInsertCall.html), [*list*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.SubscriptionListCall.html) and [*update*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.SubscriptionUpdateCall.html) * timeline - * [*attachments delete*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.TimelineAttachmentDeleteCall.html), [*attachments get*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.TimelineAttachmentGetCall.html), [*attachments insert*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.TimelineAttachmentInsertCall.html), [*attachments list*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.TimelineAttachmentListCall.html), [*delete*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.TimelineDeleteCall.html), [*get*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.TimelineGetCall.html), [*insert*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.TimelineInsertCall.html), [*list*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.TimelineListCall.html), [*patch*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.TimelinePatchCall.html) and [*update*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.TimelineUpdateCall.html) + * [*attachments delete*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.TimelineAttachmentDeleteCall.html), [*attachments get*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.TimelineAttachmentGetCall.html), [*attachments insert*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.TimelineAttachmentInsertCall.html), [*attachments list*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.TimelineAttachmentListCall.html), [*delete*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.TimelineDeleteCall.html), [*get*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.TimelineGetCall.html), [*insert*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.TimelineInsertCall.html), [*list*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.TimelineListCall.html), [*patch*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.TimelinePatchCall.html) and [*update*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.TimelineUpdateCall.html) Upload supported by ... -* [*update timeline*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.TimelineUpdateCall.html) -* [*insert timeline*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.TimelineInsertCall.html) -* [*attachments insert timeline*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.TimelineAttachmentInsertCall.html) +* [*update timeline*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.TimelineUpdateCall.html) +* [*insert timeline*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.TimelineInsertCall.html) +* [*attachments insert timeline*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.TimelineAttachmentInsertCall.html) Download supported by ... -* [*attachments get timeline*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.TimelineAttachmentGetCall.html) +* [*attachments get timeline*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.TimelineAttachmentGetCall.html) @@ -43,17 +43,17 @@ Download supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/struct.Mirror.html)** +* **[Hub](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/struct.Mirror.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.Part.html)** + * **[Parts](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -155,17 +155,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -175,29 +175,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-mirror1/1.0.11+20190424/google_mirror1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-mirror1/1.0.12+20190424/google_mirror1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/mirror1/src/lib.rs b/gen/mirror1/src/lib.rs index 4b607e2a7c..32da11db35 100644 --- a/gen/mirror1/src/lib.rs +++ b/gen/mirror1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *mirror* crate version *1.0.11+20190424*, where *20190424* is the exact revision of the *mirror:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *mirror* crate version *1.0.12+20190424*, where *20190424* is the exact revision of the *mirror:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *mirror* *v1* API can be found at the //! [official documentation site](https://developers.google.com/glass). @@ -358,7 +358,7 @@ impl<'a, C, A> Mirror Mirror { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/mirror/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -384,7 +384,7 @@ impl<'a, C, A> Mirror } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/ml1-cli/Cargo.toml b/gen/ml1-cli/Cargo.toml index 23885faf67..90ff27948b 100644 --- a/gen/ml1-cli/Cargo.toml +++ b/gen/ml1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-ml1-cli" -version = "1.0.11+20190621" +version = "1.0.12+20190621" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Machine Learning Engine (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/ml1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-ml1] path = "../ml1" -version = "1.0.11+20190621" +version = "1.0.12+20190621" diff --git a/gen/ml1-cli/LICENSE.md b/gen/ml1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/ml1-cli/LICENSE.md +++ b/gen/ml1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/ml1-cli/README.md b/gen/ml1-cli/README.md index f35ad9a262..df6553550b 100644 --- a/gen/ml1-cli/README.md +++ b/gen/ml1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Machine Learning Engine* API at revision *20190621*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Machine Learning Engine* API at revision *20190621*. The CLI is at version *1.0.12*. ```bash ml1 [options] diff --git a/gen/ml1-cli/mkdocs.yml b/gen/ml1-cli/mkdocs.yml index 0cdfb83b7c..a05b3243c9 100644 --- a/gen/ml1-cli/mkdocs.yml +++ b/gen/ml1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Machine Learning Engine v1.0.11+20190621 +site_name: Cloud Machine Learning Engine v1.0.12+20190621 site_url: http://byron.github.io/google-apis-rs/google-ml1-cli site_description: A complete library to interact with Cloud Machine Learning Engine (protocol v1) @@ -41,5 +41,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/ml1-cli/src/cmn.rs b/gen/ml1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/ml1-cli/src/cmn.rs +++ b/gen/ml1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/ml1-cli/src/main.rs b/gen/ml1-cli/src/main.rs index 2a46faf2bb..13e06bee36 100644 --- a/gen/ml1-cli/src/main.rs +++ b/gen/ml1-cli/src/main.rs @@ -3288,7 +3288,7 @@ fn main() { let mut app = App::new("ml1") .author("Sebastian Thiel ") - .version("1.0.11+20190621") + .version("1.0.12+20190621") .about("An API to enable creating and using machine learning models.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_ml1_cli") .arg(Arg::with_name("url") diff --git a/gen/ml1/Cargo.toml b/gen/ml1/Cargo.toml index c8c67220e0..ca19fbfd0b 100644 --- a/gen/ml1/Cargo.toml +++ b/gen/ml1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-ml1" -version = "1.0.11+20190621" +version = "1.0.12+20190621" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Machine Learning Engine (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/ml1" homepage = "https://cloud.google.com/ml/" -documentation = "https://docs.rs/google-ml1/1.0.11+20190621" +documentation = "https://docs.rs/google-ml1/1.0.12+20190621" license = "MIT" keywords = ["ml", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/ml1/LICENSE.md b/gen/ml1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/ml1/LICENSE.md +++ b/gen/ml1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/ml1/README.md b/gen/ml1/README.md index 6442c6ca20..f39ab7df5b 100644 --- a/gen/ml1/README.md +++ b/gen/ml1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-ml1` library allows access to all features of the *Google Cloud Machine Learning Engine* service. -This documentation was generated from *Cloud Machine Learning Engine* crate version *1.0.11+20190621*, where *20190621* is the exact revision of the *ml:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Machine Learning Engine* crate version *1.0.12+20190621*, where *20190621* is the exact revision of the *ml:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Machine Learning Engine* *v1* API can be found at the [official documentation site](https://cloud.google.com/ml/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.CloudMachineLearningEngine.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.CloudMachineLearningEngine.html) ... * projects - * [*get config*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectGetConfigCall.html), [*jobs cancel*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectJobCancelCall.html), [*jobs create*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectJobCreateCall.html), [*jobs get*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectJobGetCall.html), [*jobs get iam policy*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectJobGetIamPolicyCall.html), [*jobs list*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectJobListCall.html), [*jobs patch*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectJobPatchCall.html), [*jobs set iam policy*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectJobSetIamPolicyCall.html), [*jobs test iam permissions*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectJobTestIamPermissionCall.html), [*locations get*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectLocationListCall.html), [*models create*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectModelCreateCall.html), [*models delete*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectModelDeleteCall.html), [*models get*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectModelGetCall.html), [*models get iam policy*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectModelGetIamPolicyCall.html), [*models list*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectModelListCall.html), [*models patch*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectModelPatchCall.html), [*models set iam policy*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectModelSetIamPolicyCall.html), [*models test iam permissions*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectModelTestIamPermissionCall.html), [*models versions create*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectModelVersionCreateCall.html), [*models versions delete*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectModelVersionDeleteCall.html), [*models versions get*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectModelVersionGetCall.html), [*models versions list*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectModelVersionListCall.html), [*models versions patch*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectModelVersionPatchCall.html), [*models versions set default*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectModelVersionSetDefaultCall.html), [*operations cancel*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectOperationCancelCall.html), [*operations get*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectOperationGetCall.html), [*operations list*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectOperationListCall.html) and [*predict*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.ProjectPredictCall.html) + * [*get config*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectGetConfigCall.html), [*jobs cancel*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectJobCancelCall.html), [*jobs create*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectJobCreateCall.html), [*jobs get*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectJobGetCall.html), [*jobs get iam policy*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectJobGetIamPolicyCall.html), [*jobs list*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectJobListCall.html), [*jobs patch*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectJobPatchCall.html), [*jobs set iam policy*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectJobSetIamPolicyCall.html), [*jobs test iam permissions*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectJobTestIamPermissionCall.html), [*locations get*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectLocationListCall.html), [*models create*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectModelCreateCall.html), [*models delete*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectModelDeleteCall.html), [*models get*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectModelGetCall.html), [*models get iam policy*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectModelGetIamPolicyCall.html), [*models list*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectModelListCall.html), [*models patch*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectModelPatchCall.html), [*models set iam policy*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectModelSetIamPolicyCall.html), [*models test iam permissions*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectModelTestIamPermissionCall.html), [*models versions create*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectModelVersionCreateCall.html), [*models versions delete*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectModelVersionDeleteCall.html), [*models versions get*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectModelVersionGetCall.html), [*models versions list*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectModelVersionListCall.html), [*models versions patch*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectModelVersionPatchCall.html), [*models versions set default*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectModelVersionSetDefaultCall.html), [*operations cancel*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectOperationCancelCall.html), [*operations get*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectOperationGetCall.html), [*operations list*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectOperationListCall.html) and [*predict*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.ProjectPredictCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/struct.CloudMachineLearningEngine.html)** +* **[Hub](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/struct.CloudMachineLearningEngine.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.Part.html)** + * **[Parts](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-ml1/1.0.11+20190621/google_ml1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-ml1/1.0.12+20190621/google_ml1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/ml1/src/lib.rs b/gen/ml1/src/lib.rs index aaae89fd73..58f61f46f5 100644 --- a/gen/ml1/src/lib.rs +++ b/gen/ml1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Machine Learning Engine* crate version *1.0.11+20190621*, where *20190621* is the exact revision of the *ml:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Machine Learning Engine* crate version *1.0.12+20190621*, where *20190621* is the exact revision of the *ml:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Machine Learning Engine* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/ml/). @@ -336,7 +336,7 @@ impl<'a, C, A> CloudMachineLearningEngine CloudMachineLearningEngine { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://ml.googleapis.com/".to_string(), _root_url: "https://ml.googleapis.com/".to_string(), } @@ -347,7 +347,7 @@ impl<'a, C, A> CloudMachineLearningEngine } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/monitoring3-cli/Cargo.toml b/gen/monitoring3-cli/Cargo.toml index 9fba6b90fc..1a151b685a 100644 --- a/gen/monitoring3-cli/Cargo.toml +++ b/gen/monitoring3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-monitoring3-cli" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with Monitoring (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/monitoring3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-monitoring3] path = "../monitoring3" -version = "1.0.11+20190629" +version = "1.0.12+20190629" diff --git a/gen/monitoring3-cli/LICENSE.md b/gen/monitoring3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/monitoring3-cli/LICENSE.md +++ b/gen/monitoring3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/monitoring3-cli/README.md b/gen/monitoring3-cli/README.md index 9d1a0c6d51..0abc6a742f 100644 --- a/gen/monitoring3-cli/README.md +++ b/gen/monitoring3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Monitoring* API at revision *20190629*. The CLI is at version *1.0.11*. +This documentation was generated from the *Monitoring* API at revision *20190629*. The CLI is at version *1.0.12*. ```bash monitoring3 [options] diff --git a/gen/monitoring3-cli/mkdocs.yml b/gen/monitoring3-cli/mkdocs.yml index 26620f5a6f..b2897a521e 100644 --- a/gen/monitoring3-cli/mkdocs.yml +++ b/gen/monitoring3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Monitoring v1.0.11+20190629 +site_name: Monitoring v1.0.12+20190629 site_url: http://byron.github.io/google-apis-rs/google-monitoring3-cli site_description: A complete library to interact with Monitoring (protocol v3) @@ -48,5 +48,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/monitoring3-cli/src/cmn.rs b/gen/monitoring3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/monitoring3-cli/src/cmn.rs +++ b/gen/monitoring3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/monitoring3-cli/src/main.rs b/gen/monitoring3-cli/src/main.rs index e671e1d6ee..aa41848cd1 100644 --- a/gen/monitoring3-cli/src/main.rs +++ b/gen/monitoring3-cli/src/main.rs @@ -3735,7 +3735,7 @@ fn main() { let mut app = App::new("monitoring3") .author("Sebastian Thiel ") - .version("1.0.11+20190629") + .version("1.0.12+20190629") .about("Manages your Stackdriver Monitoring data and configurations. Most projects must be associated with a Stackdriver account, with a few exceptions as noted on the individual method pages. The table entries below are presented in alphabetical order, not in order of common use. For explanations of the concepts found in the table entries, read the Stackdriver Monitoring documentation.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_monitoring3_cli") .arg(Arg::with_name("url") diff --git a/gen/monitoring3/Cargo.toml b/gen/monitoring3/Cargo.toml index 2bdb0fe08c..1978924d5b 100644 --- a/gen/monitoring3/Cargo.toml +++ b/gen/monitoring3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-monitoring3" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with Monitoring (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/monitoring3" homepage = "https://cloud.google.com/monitoring/api/" -documentation = "https://docs.rs/google-monitoring3/1.0.11+20190629" +documentation = "https://docs.rs/google-monitoring3/1.0.12+20190629" license = "MIT" keywords = ["monitoring", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/monitoring3/LICENSE.md b/gen/monitoring3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/monitoring3/LICENSE.md +++ b/gen/monitoring3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/monitoring3/README.md b/gen/monitoring3/README.md index 2d7142ce50..5af3585479 100644 --- a/gen/monitoring3/README.md +++ b/gen/monitoring3/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-monitoring3` library allows access to all features of the *Google Monitoring* service. -This documentation was generated from *Monitoring* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *monitoring:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Monitoring* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *monitoring:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Monitoring* *v3* API can be found at the [official documentation site](https://cloud.google.com/monitoring/api/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.Monitoring.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.Monitoring.html) ... * projects - * [*alert policies create*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectAlertPolicyCreateCall.html), [*alert policies delete*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectAlertPolicyDeleteCall.html), [*alert policies get*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectAlertPolicyGetCall.html), [*alert policies list*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectAlertPolicyListCall.html), [*alert policies patch*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectAlertPolicyPatchCall.html), [*collectd time series create*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectCollectdTimeSeryCreateCall.html), [*groups create*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectGroupCreateCall.html), [*groups delete*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectGroupDeleteCall.html), [*groups get*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectGroupGetCall.html), [*groups list*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectGroupListCall.html), [*groups members list*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectGroupMemberListCall.html), [*groups update*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectGroupUpdateCall.html), [*metric descriptors create*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectMetricDescriptorCreateCall.html), [*metric descriptors delete*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectMetricDescriptorDeleteCall.html), [*metric descriptors get*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectMetricDescriptorGetCall.html), [*metric descriptors list*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectMetricDescriptorListCall.html), [*monitored resource descriptors get*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectMonitoredResourceDescriptorGetCall.html), [*monitored resource descriptors list*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectMonitoredResourceDescriptorListCall.html), [*notification channel descriptors get*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectNotificationChannelDescriptorGetCall.html), [*notification channel descriptors list*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectNotificationChannelDescriptorListCall.html), [*notification channels create*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectNotificationChannelCreateCall.html), [*notification channels delete*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectNotificationChannelDeleteCall.html), [*notification channels get*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectNotificationChannelGetCall.html), [*notification channels get verification code*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectNotificationChannelGetVerificationCodeCall.html), [*notification channels list*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectNotificationChannelListCall.html), [*notification channels patch*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectNotificationChannelPatchCall.html), [*notification channels send verification code*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectNotificationChannelSendVerificationCodeCall.html), [*notification channels verify*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectNotificationChannelVerifyCall.html), [*time series create*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectTimeSeryCreateCall.html), [*time series list*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectTimeSeryListCall.html), [*uptime check configs create*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectUptimeCheckConfigCreateCall.html), [*uptime check configs delete*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectUptimeCheckConfigDeleteCall.html), [*uptime check configs get*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectUptimeCheckConfigGetCall.html), [*uptime check configs list*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectUptimeCheckConfigListCall.html) and [*uptime check configs patch*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.ProjectUptimeCheckConfigPatchCall.html) -* [uptime check ips](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.UptimeCheckIp.html) - * [*list*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.UptimeCheckIpListCall.html) + * [*alert policies create*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectAlertPolicyCreateCall.html), [*alert policies delete*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectAlertPolicyDeleteCall.html), [*alert policies get*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectAlertPolicyGetCall.html), [*alert policies list*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectAlertPolicyListCall.html), [*alert policies patch*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectAlertPolicyPatchCall.html), [*collectd time series create*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectCollectdTimeSeryCreateCall.html), [*groups create*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectGroupCreateCall.html), [*groups delete*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectGroupDeleteCall.html), [*groups get*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectGroupGetCall.html), [*groups list*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectGroupListCall.html), [*groups members list*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectGroupMemberListCall.html), [*groups update*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectGroupUpdateCall.html), [*metric descriptors create*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectMetricDescriptorCreateCall.html), [*metric descriptors delete*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectMetricDescriptorDeleteCall.html), [*metric descriptors get*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectMetricDescriptorGetCall.html), [*metric descriptors list*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectMetricDescriptorListCall.html), [*monitored resource descriptors get*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectMonitoredResourceDescriptorGetCall.html), [*monitored resource descriptors list*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectMonitoredResourceDescriptorListCall.html), [*notification channel descriptors get*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectNotificationChannelDescriptorGetCall.html), [*notification channel descriptors list*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectNotificationChannelDescriptorListCall.html), [*notification channels create*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectNotificationChannelCreateCall.html), [*notification channels delete*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectNotificationChannelDeleteCall.html), [*notification channels get*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectNotificationChannelGetCall.html), [*notification channels get verification code*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectNotificationChannelGetVerificationCodeCall.html), [*notification channels list*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectNotificationChannelListCall.html), [*notification channels patch*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectNotificationChannelPatchCall.html), [*notification channels send verification code*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectNotificationChannelSendVerificationCodeCall.html), [*notification channels verify*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectNotificationChannelVerifyCall.html), [*time series create*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectTimeSeryCreateCall.html), [*time series list*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectTimeSeryListCall.html), [*uptime check configs create*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectUptimeCheckConfigCreateCall.html), [*uptime check configs delete*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectUptimeCheckConfigDeleteCall.html), [*uptime check configs get*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectUptimeCheckConfigGetCall.html), [*uptime check configs list*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectUptimeCheckConfigListCall.html) and [*uptime check configs patch*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.ProjectUptimeCheckConfigPatchCall.html) +* [uptime check ips](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.UptimeCheckIp.html) + * [*list*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.UptimeCheckIpListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/struct.Monitoring.html)** +* **[Hub](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/struct.Monitoring.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.Part.html)** + * **[Parts](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -133,17 +133,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -153,29 +153,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-monitoring3/1.0.11+20190629/google_monitoring3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-monitoring3/1.0.12+20190629/google_monitoring3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/monitoring3/src/lib.rs b/gen/monitoring3/src/lib.rs index 57efc5907e..7d44e21357 100644 --- a/gen/monitoring3/src/lib.rs +++ b/gen/monitoring3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Monitoring* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *monitoring:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Monitoring* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *monitoring:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Monitoring* *v3* API can be found at the //! [official documentation site](https://cloud.google.com/monitoring/api/). @@ -339,7 +339,7 @@ impl<'a, C, A> Monitoring Monitoring { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://monitoring.googleapis.com/".to_string(), _root_url: "https://monitoring.googleapis.com/".to_string(), } @@ -353,7 +353,7 @@ impl<'a, C, A> Monitoring } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/oslogin1-cli/Cargo.toml b/gen/oslogin1-cli/Cargo.toml index 0694dd407b..6e8c3e3291 100644 --- a/gen/oslogin1-cli/Cargo.toml +++ b/gen/oslogin1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-oslogin1-cli" -version = "1.0.11+20190614" +version = "1.0.12+20190614" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud OS Login (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/oslogin1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-oslogin1] path = "../oslogin1" -version = "1.0.11+20190614" +version = "1.0.12+20190614" diff --git a/gen/oslogin1-cli/LICENSE.md b/gen/oslogin1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/oslogin1-cli/LICENSE.md +++ b/gen/oslogin1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/oslogin1-cli/README.md b/gen/oslogin1-cli/README.md index 4ebf870a0b..237908585a 100644 --- a/gen/oslogin1-cli/README.md +++ b/gen/oslogin1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud OS Login* API at revision *20190614*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud OS Login* API at revision *20190614*. The CLI is at version *1.0.12*. ```bash oslogin1 [options] diff --git a/gen/oslogin1-cli/mkdocs.yml b/gen/oslogin1-cli/mkdocs.yml index 08cf60d6e6..13127d11a0 100644 --- a/gen/oslogin1-cli/mkdocs.yml +++ b/gen/oslogin1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud OS Login v1.0.11+20190614 +site_name: Cloud OS Login v1.0.12+20190614 site_url: http://byron.github.io/google-apis-rs/google-oslogin1-cli site_description: A complete library to interact with Cloud OS Login (protocol v1) @@ -18,5 +18,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/oslogin1-cli/src/cmn.rs b/gen/oslogin1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/oslogin1-cli/src/cmn.rs +++ b/gen/oslogin1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/oslogin1-cli/src/main.rs b/gen/oslogin1-cli/src/main.rs index 240d111e94..e1199b1afd 100644 --- a/gen/oslogin1-cli/src/main.rs +++ b/gen/oslogin1-cli/src/main.rs @@ -722,7 +722,7 @@ fn main() { let mut app = App::new("oslogin1") .author("Sebastian Thiel ") - .version("1.0.11+20190614") + .version("1.0.12+20190614") .about("You can use OS Login to manage access to your VM instances using IAM roles. For more information, read [OS Login](/compute/docs/oslogin/).") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_oslogin1_cli") .arg(Arg::with_name("url") diff --git a/gen/oslogin1/Cargo.toml b/gen/oslogin1/Cargo.toml index 4e007adad1..70cf4c2240 100644 --- a/gen/oslogin1/Cargo.toml +++ b/gen/oslogin1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-oslogin1" -version = "1.0.11+20190614" +version = "1.0.12+20190614" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud OS Login (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/oslogin1" homepage = "https://cloud.google.com/compute/docs/oslogin/" -documentation = "https://docs.rs/google-oslogin1/1.0.11+20190614" +documentation = "https://docs.rs/google-oslogin1/1.0.12+20190614" license = "MIT" keywords = ["oslogin", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/oslogin1/LICENSE.md b/gen/oslogin1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/oslogin1/LICENSE.md +++ b/gen/oslogin1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/oslogin1/README.md b/gen/oslogin1/README.md index dd19c7ad12..5be8b0ef57 100644 --- a/gen/oslogin1/README.md +++ b/gen/oslogin1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-oslogin1` library allows access to all features of the *Google Cloud OS Login* service. -This documentation was generated from *Cloud OS Login* crate version *1.0.11+20190614*, where *20190614* is the exact revision of the *oslogin:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud OS Login* crate version *1.0.12+20190614*, where *20190614* is the exact revision of the *oslogin:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud OS Login* *v1* API can be found at the [official documentation site](https://cloud.google.com/compute/docs/oslogin/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/struct.CloudOSLogin.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/struct.CloudOSLogin.html) ... * users - * [*get login profile*](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/struct.UserGetLoginProfileCall.html), [*import ssh public key*](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/struct.UserImportSshPublicKeyCall.html), [*projects delete*](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/struct.UserProjectDeleteCall.html), [*ssh public keys delete*](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/struct.UserSshPublicKeyDeleteCall.html), [*ssh public keys get*](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/struct.UserSshPublicKeyGetCall.html) and [*ssh public keys patch*](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/struct.UserSshPublicKeyPatchCall.html) + * [*get login profile*](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/struct.UserGetLoginProfileCall.html), [*import ssh public key*](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/struct.UserImportSshPublicKeyCall.html), [*projects delete*](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/struct.UserProjectDeleteCall.html), [*ssh public keys delete*](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/struct.UserSshPublicKeyDeleteCall.html), [*ssh public keys get*](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/struct.UserSshPublicKeyGetCall.html) and [*ssh public keys patch*](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/struct.UserSshPublicKeyPatchCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/struct.CloudOSLogin.html)** +* **[Hub](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/struct.CloudOSLogin.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.Part.html)** + * **[Parts](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -133,17 +133,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -153,29 +153,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-oslogin1/1.0.11+20190614/google_oslogin1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-oslogin1/1.0.12+20190614/google_oslogin1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/oslogin1/src/lib.rs b/gen/oslogin1/src/lib.rs index aa18465726..5cbc498d2e 100644 --- a/gen/oslogin1/src/lib.rs +++ b/gen/oslogin1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud OS Login* crate version *1.0.11+20190614*, where *20190614* is the exact revision of the *oslogin:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud OS Login* crate version *1.0.12+20190614*, where *20190614* is the exact revision of the *oslogin:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud OS Login* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/compute/docs/oslogin/). @@ -337,7 +337,7 @@ impl<'a, C, A> CloudOSLogin CloudOSLogin { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://oslogin.googleapis.com/".to_string(), _root_url: "https://oslogin.googleapis.com/".to_string(), } @@ -348,7 +348,7 @@ impl<'a, C, A> CloudOSLogin } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/oslogin1_beta-cli/Cargo.toml b/gen/oslogin1_beta-cli/Cargo.toml index b6267e93cf..86b206b514 100644 --- a/gen/oslogin1_beta-cli/Cargo.toml +++ b/gen/oslogin1_beta-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-oslogin1_beta-cli" -version = "1.0.11+20190614" +version = "1.0.12+20190614" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud OS Login (protocol v1beta)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/oslogin1_beta-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-oslogin1_beta] path = "../oslogin1_beta" -version = "1.0.11+20190614" +version = "1.0.12+20190614" diff --git a/gen/oslogin1_beta-cli/LICENSE.md b/gen/oslogin1_beta-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/oslogin1_beta-cli/LICENSE.md +++ b/gen/oslogin1_beta-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/oslogin1_beta-cli/README.md b/gen/oslogin1_beta-cli/README.md index dddbcd8971..5527b8909f 100644 --- a/gen/oslogin1_beta-cli/README.md +++ b/gen/oslogin1_beta-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud OS Login* API at revision *20190614*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud OS Login* API at revision *20190614*. The CLI is at version *1.0.12*. ```bash oslogin1-beta [options] diff --git a/gen/oslogin1_beta-cli/mkdocs.yml b/gen/oslogin1_beta-cli/mkdocs.yml index 33e4a072d5..a6ca0bd6db 100644 --- a/gen/oslogin1_beta-cli/mkdocs.yml +++ b/gen/oslogin1_beta-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud OS Login v1.0.11+20190614 +site_name: Cloud OS Login v1.0.12+20190614 site_url: http://byron.github.io/google-apis-rs/google-oslogin1_beta-cli site_description: A complete library to interact with Cloud OS Login (protocol v1beta) @@ -18,5 +18,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/oslogin1_beta-cli/src/cmn.rs b/gen/oslogin1_beta-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/oslogin1_beta-cli/src/cmn.rs +++ b/gen/oslogin1_beta-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/oslogin1_beta-cli/src/main.rs b/gen/oslogin1_beta-cli/src/main.rs index 198a5f03e6..d5b09e0dec 100644 --- a/gen/oslogin1_beta-cli/src/main.rs +++ b/gen/oslogin1_beta-cli/src/main.rs @@ -722,7 +722,7 @@ fn main() { let mut app = App::new("oslogin1-beta") .author("Sebastian Thiel ") - .version("1.0.11+20190614") + .version("1.0.12+20190614") .about("You can use OS Login to manage access to your VM instances using IAM roles. For more information, read [OS Login](/compute/docs/oslogin/).") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_oslogin1_beta_cli") .arg(Arg::with_name("url") diff --git a/gen/oslogin1_beta/Cargo.toml b/gen/oslogin1_beta/Cargo.toml index 410c8b3184..8b3d324c82 100644 --- a/gen/oslogin1_beta/Cargo.toml +++ b/gen/oslogin1_beta/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-oslogin1_beta" -version = "1.0.11+20190614" +version = "1.0.12+20190614" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud OS Login (protocol v1beta)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/oslogin1_beta" homepage = "https://cloud.google.com/compute/docs/oslogin/" -documentation = "https://docs.rs/google-oslogin1_beta/1.0.11+20190614" +documentation = "https://docs.rs/google-oslogin1_beta/1.0.12+20190614" license = "MIT" keywords = ["oslogin", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/oslogin1_beta/LICENSE.md b/gen/oslogin1_beta/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/oslogin1_beta/LICENSE.md +++ b/gen/oslogin1_beta/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/oslogin1_beta/README.md b/gen/oslogin1_beta/README.md index 6d89e801ad..e3be5010d5 100644 --- a/gen/oslogin1_beta/README.md +++ b/gen/oslogin1_beta/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-oslogin1_beta` library allows access to all features of the *Google Cloud OS Login* service. -This documentation was generated from *Cloud OS Login* crate version *1.0.11+20190614*, where *20190614* is the exact revision of the *oslogin:v1beta* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud OS Login* crate version *1.0.12+20190614*, where *20190614* is the exact revision of the *oslogin:v1beta* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud OS Login* *v1_beta* API can be found at the [official documentation site](https://cloud.google.com/compute/docs/oslogin/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/struct.CloudOSLogin.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/struct.CloudOSLogin.html) ... * users - * [*get login profile*](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/struct.UserGetLoginProfileCall.html), [*import ssh public key*](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/struct.UserImportSshPublicKeyCall.html), [*projects delete*](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/struct.UserProjectDeleteCall.html), [*ssh public keys delete*](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/struct.UserSshPublicKeyDeleteCall.html), [*ssh public keys get*](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/struct.UserSshPublicKeyGetCall.html) and [*ssh public keys patch*](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/struct.UserSshPublicKeyPatchCall.html) + * [*get login profile*](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/struct.UserGetLoginProfileCall.html), [*import ssh public key*](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/struct.UserImportSshPublicKeyCall.html), [*projects delete*](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/struct.UserProjectDeleteCall.html), [*ssh public keys delete*](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/struct.UserSshPublicKeyDeleteCall.html), [*ssh public keys get*](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/struct.UserSshPublicKeyGetCall.html) and [*ssh public keys patch*](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/struct.UserSshPublicKeyPatchCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/struct.CloudOSLogin.html)** +* **[Hub](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/struct.CloudOSLogin.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.Part.html)** + * **[Parts](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -133,17 +133,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -153,29 +153,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.RequestValue.html) and -[decodable](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.RequestValue.html) and +[decodable](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-oslogin1_beta/1.0.11+20190614/google_oslogin1_beta/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-oslogin1_beta/1.0.12+20190614/google_oslogin1_beta/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/oslogin1_beta/src/lib.rs b/gen/oslogin1_beta/src/lib.rs index b2d20b2e01..ff0bb3d857 100644 --- a/gen/oslogin1_beta/src/lib.rs +++ b/gen/oslogin1_beta/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud OS Login* crate version *1.0.11+20190614*, where *20190614* is the exact revision of the *oslogin:v1beta* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud OS Login* crate version *1.0.12+20190614*, where *20190614* is the exact revision of the *oslogin:v1beta* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud OS Login* *v1_beta* API can be found at the //! [official documentation site](https://cloud.google.com/compute/docs/oslogin/). @@ -345,7 +345,7 @@ impl<'a, C, A> CloudOSLogin CloudOSLogin { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://oslogin.googleapis.com/".to_string(), _root_url: "https://oslogin.googleapis.com/".to_string(), } @@ -356,7 +356,7 @@ impl<'a, C, A> CloudOSLogin } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/pagespeedonline2-cli/Cargo.toml b/gen/pagespeedonline2-cli/Cargo.toml index 479633bae5..83ae6e43a4 100644 --- a/gen/pagespeedonline2-cli/Cargo.toml +++ b/gen/pagespeedonline2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-pagespeedonline2-cli" -version = "1.0.11+20190507" +version = "1.0.12+20190507" authors = ["Sebastian Thiel "] description = "A complete library to interact with pagespeedonline (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/pagespeedonline2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-pagespeedonline2] path = "../pagespeedonline2" -version = "1.0.11+20190507" +version = "1.0.12+20190507" diff --git a/gen/pagespeedonline2-cli/LICENSE.md b/gen/pagespeedonline2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/pagespeedonline2-cli/LICENSE.md +++ b/gen/pagespeedonline2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/pagespeedonline2-cli/README.md b/gen/pagespeedonline2-cli/README.md index 603e869cbe..59c1823248 100644 --- a/gen/pagespeedonline2-cli/README.md +++ b/gen/pagespeedonline2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *pagespeedonline* API at revision *20190507*. The CLI is at version *1.0.11*. +This documentation was generated from the *pagespeedonline* API at revision *20190507*. The CLI is at version *1.0.12*. ```bash pagespeedonline2 [options] diff --git a/gen/pagespeedonline2-cli/mkdocs.yml b/gen/pagespeedonline2-cli/mkdocs.yml index 41595321d1..d7f8fc7441 100644 --- a/gen/pagespeedonline2-cli/mkdocs.yml +++ b/gen/pagespeedonline2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: pagespeedonline v1.0.11+20190507 +site_name: pagespeedonline v1.0.12+20190507 site_url: http://byron.github.io/google-apis-rs/google-pagespeedonline2-cli site_description: A complete library to interact with pagespeedonline (protocol v2) @@ -13,5 +13,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/pagespeedonline2-cli/src/cmn.rs b/gen/pagespeedonline2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/pagespeedonline2-cli/src/cmn.rs +++ b/gen/pagespeedonline2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/pagespeedonline2-cli/src/main.rs b/gen/pagespeedonline2-cli/src/main.rs index 8f4681d7e0..84b28e7d7d 100644 --- a/gen/pagespeedonline2-cli/src/main.rs +++ b/gen/pagespeedonline2-cli/src/main.rs @@ -238,7 +238,7 @@ fn main() { let mut app = App::new("pagespeedonline2") .author("Sebastian Thiel ") - .version("1.0.11+20190507") + .version("1.0.12+20190507") .about("Analyzes the performance of a web page and provides tailored suggestions to make that page faster.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_pagespeedonline2_cli") .arg(Arg::with_name("folder") diff --git a/gen/pagespeedonline2/Cargo.toml b/gen/pagespeedonline2/Cargo.toml index 452a1b51d6..a8e41276a8 100644 --- a/gen/pagespeedonline2/Cargo.toml +++ b/gen/pagespeedonline2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-pagespeedonline2" -version = "1.0.11+20190507" +version = "1.0.12+20190507" authors = ["Sebastian Thiel "] description = "A complete library to interact with pagespeedonline (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/pagespeedonline2" homepage = "https://developers.google.com/speed/docs/insights/v2/getting-started" -documentation = "https://docs.rs/google-pagespeedonline2/1.0.11+20190507" +documentation = "https://docs.rs/google-pagespeedonline2/1.0.12+20190507" license = "MIT" keywords = ["pagespeedonline", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/pagespeedonline2/LICENSE.md b/gen/pagespeedonline2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/pagespeedonline2/LICENSE.md +++ b/gen/pagespeedonline2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/pagespeedonline2/README.md b/gen/pagespeedonline2/README.md index 6ddb3c44b1..5f0fbab24b 100644 --- a/gen/pagespeedonline2/README.md +++ b/gen/pagespeedonline2/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-pagespeedonline2` library allows access to all features of the *Google pagespeedonline* service. -This documentation was generated from *pagespeedonline* crate version *1.0.11+20190507*, where *20190507* is the exact revision of the *pagespeedonline:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *pagespeedonline* crate version *1.0.12+20190507*, where *20190507* is the exact revision of the *pagespeedonline:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *pagespeedonline* *v2* API can be found at the [official documentation site](https://developers.google.com/speed/docs/insights/v2/getting-started). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/struct.Pagespeedonline.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/struct.Pagespeedonline.html) ... * pagespeedapi - * [*runpagespeed*](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/struct.PagespeedapiRunpagespeedCall.html) + * [*runpagespeed*](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/struct.PagespeedapiRunpagespeedCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/struct.Pagespeedonline.html)** +* **[Hub](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/struct.Pagespeedonline.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.Part.html)** + * **[Parts](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -129,17 +129,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -149,29 +149,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-pagespeedonline2/1.0.11+20190507/google_pagespeedonline2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-pagespeedonline2/1.0.12+20190507/google_pagespeedonline2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/pagespeedonline2/src/lib.rs b/gen/pagespeedonline2/src/lib.rs index 69346df3cb..769c92dfd9 100644 --- a/gen/pagespeedonline2/src/lib.rs +++ b/gen/pagespeedonline2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *pagespeedonline* crate version *1.0.11+20190507*, where *20190507* is the exact revision of the *pagespeedonline:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *pagespeedonline* crate version *1.0.12+20190507*, where *20190507* is the exact revision of the *pagespeedonline:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *pagespeedonline* *v2* API can be found at the //! [official documentation site](https://developers.google.com/speed/docs/insights/v2/getting-started). @@ -305,7 +305,7 @@ impl<'a, C, A> Pagespeedonline Pagespeedonline { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/pagespeedonline/v2/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -316,7 +316,7 @@ impl<'a, C, A> Pagespeedonline } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/pagespeedonline4-cli/Cargo.toml b/gen/pagespeedonline4-cli/Cargo.toml index 23dbe84e6c..36c4b7cd84 100644 --- a/gen/pagespeedonline4-cli/Cargo.toml +++ b/gen/pagespeedonline4-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-pagespeedonline4-cli" -version = "1.0.11+20190507" +version = "1.0.12+20190507" authors = ["Sebastian Thiel "] description = "A complete library to interact with pagespeedonline (protocol v4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/pagespeedonline4-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-pagespeedonline4] path = "../pagespeedonline4" -version = "1.0.11+20190507" +version = "1.0.12+20190507" diff --git a/gen/pagespeedonline4-cli/LICENSE.md b/gen/pagespeedonline4-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/pagespeedonline4-cli/LICENSE.md +++ b/gen/pagespeedonline4-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/pagespeedonline4-cli/README.md b/gen/pagespeedonline4-cli/README.md index 409b09de83..729479b568 100644 --- a/gen/pagespeedonline4-cli/README.md +++ b/gen/pagespeedonline4-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *pagespeedonline* API at revision *20190507*. The CLI is at version *1.0.11*. +This documentation was generated from the *pagespeedonline* API at revision *20190507*. The CLI is at version *1.0.12*. ```bash pagespeedonline4 [options] diff --git a/gen/pagespeedonline4-cli/mkdocs.yml b/gen/pagespeedonline4-cli/mkdocs.yml index b98e6e1a2d..d401f1c66f 100644 --- a/gen/pagespeedonline4-cli/mkdocs.yml +++ b/gen/pagespeedonline4-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: pagespeedonline v1.0.11+20190507 +site_name: pagespeedonline v1.0.12+20190507 site_url: http://byron.github.io/google-apis-rs/google-pagespeedonline4-cli site_description: A complete library to interact with pagespeedonline (protocol v4) @@ -13,5 +13,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/pagespeedonline4-cli/src/cmn.rs b/gen/pagespeedonline4-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/pagespeedonline4-cli/src/cmn.rs +++ b/gen/pagespeedonline4-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/pagespeedonline4-cli/src/main.rs b/gen/pagespeedonline4-cli/src/main.rs index d3ef53057c..8acebd7107 100644 --- a/gen/pagespeedonline4-cli/src/main.rs +++ b/gen/pagespeedonline4-cli/src/main.rs @@ -247,7 +247,7 @@ fn main() { let mut app = App::new("pagespeedonline4") .author("Sebastian Thiel ") - .version("1.0.11+20190507") + .version("1.0.12+20190507") .about("Analyzes the performance of a web page and provides tailored suggestions to make that page faster.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_pagespeedonline4_cli") .arg(Arg::with_name("folder") diff --git a/gen/pagespeedonline4/Cargo.toml b/gen/pagespeedonline4/Cargo.toml index 1a03d1aea3..839c64913e 100644 --- a/gen/pagespeedonline4/Cargo.toml +++ b/gen/pagespeedonline4/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-pagespeedonline4" -version = "1.0.11+20190507" +version = "1.0.12+20190507" authors = ["Sebastian Thiel "] description = "A complete library to interact with pagespeedonline (protocol v4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/pagespeedonline4" homepage = "https://developers.google.com/speed/docs/insights/v4/getting-started" -documentation = "https://docs.rs/google-pagespeedonline4/1.0.11+20190507" +documentation = "https://docs.rs/google-pagespeedonline4/1.0.12+20190507" license = "MIT" keywords = ["pagespeedonline", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/pagespeedonline4/LICENSE.md b/gen/pagespeedonline4/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/pagespeedonline4/LICENSE.md +++ b/gen/pagespeedonline4/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/pagespeedonline4/README.md b/gen/pagespeedonline4/README.md index 2f93cfe396..93f186c8cd 100644 --- a/gen/pagespeedonline4/README.md +++ b/gen/pagespeedonline4/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-pagespeedonline4` library allows access to all features of the *Google pagespeedonline* service. -This documentation was generated from *pagespeedonline* crate version *1.0.11+20190507*, where *20190507* is the exact revision of the *pagespeedonline:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *pagespeedonline* crate version *1.0.12+20190507*, where *20190507* is the exact revision of the *pagespeedonline:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *pagespeedonline* *v4* API can be found at the [official documentation site](https://developers.google.com/speed/docs/insights/v4/getting-started). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/struct.Pagespeedonline.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/struct.Pagespeedonline.html) ... * pagespeedapi - * [*runpagespeed*](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/struct.PagespeedapiRunpagespeedCall.html) + * [*runpagespeed*](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/struct.PagespeedapiRunpagespeedCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/struct.Pagespeedonline.html)** +* **[Hub](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/struct.Pagespeedonline.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.Part.html)** + * **[Parts](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.RequestValue.html) and -[decodable](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.RequestValue.html) and +[decodable](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-pagespeedonline4/1.0.11+20190507/google_pagespeedonline4/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-pagespeedonline4/1.0.12+20190507/google_pagespeedonline4/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/pagespeedonline4/src/lib.rs b/gen/pagespeedonline4/src/lib.rs index bf8a548dbc..543ec777e0 100644 --- a/gen/pagespeedonline4/src/lib.rs +++ b/gen/pagespeedonline4/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *pagespeedonline* crate version *1.0.11+20190507*, where *20190507* is the exact revision of the *pagespeedonline:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *pagespeedonline* crate version *1.0.12+20190507*, where *20190507* is the exact revision of the *pagespeedonline:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *pagespeedonline* *v4* API can be found at the //! [official documentation site](https://developers.google.com/speed/docs/insights/v4/getting-started). @@ -311,7 +311,7 @@ impl<'a, C, A> Pagespeedonline Pagespeedonline { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/pagespeedonline/v4/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -322,7 +322,7 @@ impl<'a, C, A> Pagespeedonline } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/pagespeedonline5-cli/Cargo.toml b/gen/pagespeedonline5-cli/Cargo.toml index f2a2448374..3c152c7b66 100644 --- a/gen/pagespeedonline5-cli/Cargo.toml +++ b/gen/pagespeedonline5-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-pagespeedonline5-cli" -version = "1.0.11+20190507" +version = "1.0.12+20190507" authors = ["Sebastian Thiel "] description = "A complete library to interact with pagespeedonline (protocol v5)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/pagespeedonline5-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-pagespeedonline5] path = "../pagespeedonline5" -version = "1.0.11+20190507" +version = "1.0.12+20190507" diff --git a/gen/pagespeedonline5-cli/LICENSE.md b/gen/pagespeedonline5-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/pagespeedonline5-cli/LICENSE.md +++ b/gen/pagespeedonline5-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/pagespeedonline5-cli/README.md b/gen/pagespeedonline5-cli/README.md index 1f4e2b2f0d..99e3c3910e 100644 --- a/gen/pagespeedonline5-cli/README.md +++ b/gen/pagespeedonline5-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *pagespeedonline* API at revision *20190507*. The CLI is at version *1.0.11*. +This documentation was generated from the *pagespeedonline* API at revision *20190507*. The CLI is at version *1.0.12*. ```bash pagespeedonline5 [options] diff --git a/gen/pagespeedonline5-cli/mkdocs.yml b/gen/pagespeedonline5-cli/mkdocs.yml index 813699b6af..4c2de7c7d7 100644 --- a/gen/pagespeedonline5-cli/mkdocs.yml +++ b/gen/pagespeedonline5-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: pagespeedonline v1.0.11+20190507 +site_name: pagespeedonline v1.0.12+20190507 site_url: http://byron.github.io/google-apis-rs/google-pagespeedonline5-cli site_description: A complete library to interact with pagespeedonline (protocol v5) @@ -13,5 +13,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/pagespeedonline5-cli/src/cmn.rs b/gen/pagespeedonline5-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/pagespeedonline5-cli/src/cmn.rs +++ b/gen/pagespeedonline5-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/pagespeedonline5-cli/src/main.rs b/gen/pagespeedonline5-cli/src/main.rs index d68a707832..64c4a5f835 100644 --- a/gen/pagespeedonline5-cli/src/main.rs +++ b/gen/pagespeedonline5-cli/src/main.rs @@ -238,7 +238,7 @@ fn main() { let mut app = App::new("pagespeedonline5") .author("Sebastian Thiel ") - .version("1.0.11+20190507") + .version("1.0.12+20190507") .about("Analyzes the performance of a web page and provides tailored suggestions to make that page faster.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_pagespeedonline5_cli") .arg(Arg::with_name("folder") diff --git a/gen/pagespeedonline5/Cargo.toml b/gen/pagespeedonline5/Cargo.toml index 1c755004d9..be61dc8065 100644 --- a/gen/pagespeedonline5/Cargo.toml +++ b/gen/pagespeedonline5/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-pagespeedonline5" -version = "1.0.11+20190507" +version = "1.0.12+20190507" authors = ["Sebastian Thiel "] description = "A complete library to interact with pagespeedonline (protocol v5)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/pagespeedonline5" homepage = "https://developers.google.com/speed/docs/insights/v5/get-started" -documentation = "https://docs.rs/google-pagespeedonline5/1.0.11+20190507" +documentation = "https://docs.rs/google-pagespeedonline5/1.0.12+20190507" license = "MIT" keywords = ["pagespeedonline", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/pagespeedonline5/LICENSE.md b/gen/pagespeedonline5/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/pagespeedonline5/LICENSE.md +++ b/gen/pagespeedonline5/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/pagespeedonline5/README.md b/gen/pagespeedonline5/README.md index 87cfa4b254..51a2cc11a1 100644 --- a/gen/pagespeedonline5/README.md +++ b/gen/pagespeedonline5/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-pagespeedonline5` library allows access to all features of the *Google pagespeedonline* service. -This documentation was generated from *pagespeedonline* crate version *1.0.11+20190507*, where *20190507* is the exact revision of the *pagespeedonline:v5* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *pagespeedonline* crate version *1.0.12+20190507*, where *20190507* is the exact revision of the *pagespeedonline:v5* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *pagespeedonline* *v5* API can be found at the [official documentation site](https://developers.google.com/speed/docs/insights/v5/get-started). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/struct.Pagespeedonline.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/struct.Pagespeedonline.html) ... * pagespeedapi - * [*runpagespeed*](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/struct.PagespeedapiRunpagespeedCall.html) + * [*runpagespeed*](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/struct.PagespeedapiRunpagespeedCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/struct.Pagespeedonline.html)** +* **[Hub](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/struct.Pagespeedonline.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.Part.html)** + * **[Parts](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -129,17 +129,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -149,29 +149,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.RequestValue.html) and -[decodable](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.RequestValue.html) and +[decodable](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-pagespeedonline5/1.0.11+20190507/google_pagespeedonline5/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-pagespeedonline5/1.0.12+20190507/google_pagespeedonline5/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/pagespeedonline5/src/lib.rs b/gen/pagespeedonline5/src/lib.rs index 27a5954de0..a27fa8bdcf 100644 --- a/gen/pagespeedonline5/src/lib.rs +++ b/gen/pagespeedonline5/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *pagespeedonline* crate version *1.0.11+20190507*, where *20190507* is the exact revision of the *pagespeedonline:v5* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *pagespeedonline* crate version *1.0.12+20190507*, where *20190507* is the exact revision of the *pagespeedonline:v5* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *pagespeedonline* *v5* API can be found at the //! [official documentation site](https://developers.google.com/speed/docs/insights/v5/get-started). @@ -305,7 +305,7 @@ impl<'a, C, A> Pagespeedonline Pagespeedonline { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/pagespeedonline/v5/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -316,7 +316,7 @@ impl<'a, C, A> Pagespeedonline } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/partners2-cli/Cargo.toml b/gen/partners2-cli/Cargo.toml index a22c495698..5e1c261b8e 100644 --- a/gen/partners2-cli/Cargo.toml +++ b/gen/partners2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-partners2-cli" -version = "1.0.11+20180925" +version = "1.0.12+20180925" authors = ["Sebastian Thiel "] description = "A complete library to interact with Partners (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/partners2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-partners2] path = "../partners2" -version = "1.0.11+20180925" +version = "1.0.12+20180925" diff --git a/gen/partners2-cli/LICENSE.md b/gen/partners2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/partners2-cli/LICENSE.md +++ b/gen/partners2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/partners2-cli/README.md b/gen/partners2-cli/README.md index eae802f666..c5c0b4821d 100644 --- a/gen/partners2-cli/README.md +++ b/gen/partners2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Partners* API at revision *20180925*. The CLI is at version *1.0.11*. +This documentation was generated from the *Partners* API at revision *20180925*. The CLI is at version *1.0.12*. ```bash partners2 [options] diff --git a/gen/partners2-cli/mkdocs.yml b/gen/partners2-cli/mkdocs.yml index 9dcdab9ffe..1c93e8c7ce 100644 --- a/gen/partners2-cli/mkdocs.yml +++ b/gen/partners2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Partners v1.0.11+20180925 +site_name: Partners v1.0.12+20180925 site_url: http://byron.github.io/google-apis-rs/google-partners2-cli site_description: A complete library to interact with Partners (protocol v2) @@ -29,5 +29,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/partners2-cli/src/cmn.rs b/gen/partners2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/partners2-cli/src/cmn.rs +++ b/gen/partners2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/partners2-cli/src/main.rs b/gen/partners2-cli/src/main.rs index 634b6b559c..ac646bd3fe 100644 --- a/gen/partners2-cli/src/main.rs +++ b/gen/partners2-cli/src/main.rs @@ -2284,7 +2284,7 @@ fn main() { let mut app = App::new("partners2") .author("Sebastian Thiel ") - .version("1.0.11+20180925") + .version("1.0.12+20180925") .about("Searches certified companies and creates contact leads with them, and also audits the usage of clients.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_partners2_cli") .arg(Arg::with_name("folder") diff --git a/gen/partners2/Cargo.toml b/gen/partners2/Cargo.toml index f767ed924e..b5043685af 100644 --- a/gen/partners2/Cargo.toml +++ b/gen/partners2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-partners2" -version = "1.0.11+20180925" +version = "1.0.12+20180925" authors = ["Sebastian Thiel "] description = "A complete library to interact with Partners (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/partners2" homepage = "https://developers.google.com/partners/" -documentation = "https://docs.rs/google-partners2/1.0.11+20180925" +documentation = "https://docs.rs/google-partners2/1.0.12+20180925" license = "MIT" keywords = ["partners", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/partners2/LICENSE.md b/gen/partners2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/partners2/LICENSE.md +++ b/gen/partners2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/partners2/README.md b/gen/partners2/README.md index 6d72ba96a7..2e7ed2f20c 100644 --- a/gen/partners2/README.md +++ b/gen/partners2/README.md @@ -5,36 +5,36 @@ DO NOT EDIT ! --> The `google-partners2` library allows access to all features of the *Google Partners* service. -This documentation was generated from *Partners* crate version *1.0.11+20180925*, where *20180925* is the exact revision of the *partners:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Partners* crate version *1.0.12+20180925*, where *20180925* is the exact revision of the *partners:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Partners* *v2* API can be found at the [official documentation site](https://developers.google.com/partners/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.Partners.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.Partners.html) ... * analytics - * [*list*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.AnalyticListCall.html) + * [*list*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.AnalyticListCall.html) * client messages - * [*log*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.ClientMessageLogCall.html) -* [companies](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.Company.html) - * [*get*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.CompanyGetCall.html), [*leads create*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.CompanyLeadCreateCall.html) and [*list*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.CompanyListCall.html) -* [leads](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.Lead.html) - * [*list*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.LeadListCall.html) + * [*log*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.ClientMessageLogCall.html) +* [companies](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.Company.html) + * [*get*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.CompanyGetCall.html), [*leads create*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.CompanyLeadCreateCall.html) and [*list*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.CompanyListCall.html) +* [leads](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.Lead.html) + * [*list*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.LeadListCall.html) * offers - * [*history list*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.OfferHistoryListCall.html) and [*list*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.OfferListCall.html) + * [*history list*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.OfferHistoryListCall.html) and [*list*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.OfferListCall.html) * user events - * [*log*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.UserEventLogCall.html) + * [*log*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.UserEventLogCall.html) * user states - * [*list*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.UserStateListCall.html) -* [users](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.User.html) - * [*create company relation*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.UserCreateCompanyRelationCall.html), [*delete company relation*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.UserDeleteCompanyRelationCall.html), [*get*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.UserGetCall.html) and [*update profile*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.UserUpdateProfileCall.html) + * [*list*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.UserStateListCall.html) +* [users](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.User.html) + * [*create company relation*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.UserCreateCompanyRelationCall.html), [*delete company relation*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.UserDeleteCompanyRelationCall.html), [*get*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.UserGetCall.html) and [*update profile*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.UserUpdateProfileCall.html) Other activities are ... -* [get partnersstatus](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.MethodGetPartnersstatuCall.html) -* [update companies](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.MethodUpdateCompanyCall.html) -* [update leads](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.MethodUpdateLeadCall.html) +* [get partnersstatus](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.MethodGetPartnersstatuCall.html) +* [update companies](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.MethodUpdateCompanyCall.html) +* [update leads](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.MethodUpdateLeadCall.html) @@ -42,17 +42,17 @@ Other activities are ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/struct.Partners.html)** +* **[Hub](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/struct.Partners.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.Part.html)** + * **[Parts](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -159,17 +159,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -179,29 +179,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-partners2/1.0.11+20180925/google_partners2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-partners2/1.0.12+20180925/google_partners2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/partners2/src/lib.rs b/gen/partners2/src/lib.rs index 9f2b61a1f3..df826ffc48 100644 --- a/gen/partners2/src/lib.rs +++ b/gen/partners2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Partners* crate version *1.0.11+20180925*, where *20180925* is the exact revision of the *partners:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Partners* crate version *1.0.12+20180925*, where *20180925* is the exact revision of the *partners:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Partners* *v2* API can be found at the //! [official documentation site](https://developers.google.com/partners/). @@ -343,7 +343,7 @@ impl<'a, C, A> Partners Partners { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://partners.googleapis.com/".to_string(), _root_url: "https://partners.googleapis.com/".to_string(), } @@ -378,7 +378,7 @@ impl<'a, C, A> Partners } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/people1-cli/Cargo.toml b/gen/people1-cli/Cargo.toml index 09123f6764..aefbb7bdff 100644 --- a/gen/people1-cli/Cargo.toml +++ b/gen/people1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-people1-cli" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with People Service (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/people1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-people1] path = "../people1" -version = "1.0.11+20190702" +version = "1.0.12+20190702" diff --git a/gen/people1-cli/LICENSE.md b/gen/people1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/people1-cli/LICENSE.md +++ b/gen/people1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/people1-cli/README.md b/gen/people1-cli/README.md index 45d0c8cc0c..974b9419b0 100644 --- a/gen/people1-cli/README.md +++ b/gen/people1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *People Service* API at revision *20190702*. The CLI is at version *1.0.11*. +This documentation was generated from the *People Service* API at revision *20190702*. The CLI is at version *1.0.12*. ```bash people1 [options] diff --git a/gen/people1-cli/mkdocs.yml b/gen/people1-cli/mkdocs.yml index 48727d6343..0c81a11bc5 100644 --- a/gen/people1-cli/mkdocs.yml +++ b/gen/people1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: People Service v1.0.11+20190702 +site_name: People Service v1.0.12+20190702 site_url: http://byron.github.io/google-apis-rs/google-people1-cli site_description: A complete library to interact with People Service (protocol v1) @@ -25,5 +25,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/people1-cli/src/cmn.rs b/gen/people1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/people1-cli/src/cmn.rs +++ b/gen/people1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/people1-cli/src/main.rs b/gen/people1-cli/src/main.rs index f835639332..f48e732806 100644 --- a/gen/people1-cli/src/main.rs +++ b/gen/people1-cli/src/main.rs @@ -1469,7 +1469,7 @@ fn main() { let mut app = App::new("people1") .author("Sebastian Thiel ") - .version("1.0.11+20190702") + .version("1.0.12+20190702") .about("Provides access to information about profiles and contacts.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_people1_cli") .arg(Arg::with_name("url") diff --git a/gen/people1/Cargo.toml b/gen/people1/Cargo.toml index 13cca682f3..bd103a5433 100644 --- a/gen/people1/Cargo.toml +++ b/gen/people1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-people1" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with People Service (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/people1" homepage = "https://developers.google.com/people/" -documentation = "https://docs.rs/google-people1/1.0.11+20190702" +documentation = "https://docs.rs/google-people1/1.0.12+20190702" license = "MIT" keywords = ["people", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/people1/LICENSE.md b/gen/people1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/people1/LICENSE.md +++ b/gen/people1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/people1/README.md b/gen/people1/README.md index 624c8b961d..89c5de2c22 100644 --- a/gen/people1/README.md +++ b/gen/people1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-people1` library allows access to all features of the *Google People Service* service. -This documentation was generated from *People Service* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *people:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *People Service* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *people:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *People Service* *v1* API can be found at the [official documentation site](https://developers.google.com/people/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.PeopleService.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.PeopleService.html) ... -* [contact groups](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.ContactGroup.html) - * [*batch get*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.ContactGroupBatchGetCall.html), [*create*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.ContactGroupCreateCall.html), [*delete*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.ContactGroupDeleteCall.html), [*get*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.ContactGroupGetCall.html), [*list*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.ContactGroupListCall.html), [*members modify*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.ContactGroupMemberModifyCall.html) and [*update*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.ContactGroupUpdateCall.html) +* [contact groups](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.ContactGroup.html) + * [*batch get*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.ContactGroupBatchGetCall.html), [*create*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.ContactGroupCreateCall.html), [*delete*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.ContactGroupDeleteCall.html), [*get*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.ContactGroupGetCall.html), [*list*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.ContactGroupListCall.html), [*members modify*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.ContactGroupMemberModifyCall.html) and [*update*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.ContactGroupUpdateCall.html) * people - * [*connections list*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.PeopleConnectionListCall.html), [*create contact*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.PeopleCreateContactCall.html), [*delete contact*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.PeopleDeleteContactCall.html), [*get*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.PeopleGetCall.html), [*get batch get*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.PeopleGetBatchGetCall.html) and [*update contact*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.PeopleUpdateContactCall.html) + * [*connections list*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.PeopleConnectionListCall.html), [*create contact*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.PeopleCreateContactCall.html), [*delete contact*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.PeopleDeleteContactCall.html), [*get*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.PeopleGetCall.html), [*get batch get*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.PeopleGetBatchGetCall.html) and [*update contact*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.PeopleUpdateContactCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-people1/1.0.11+20190702/google_people1/struct.PeopleService.html)** +* **[Hub](https://docs.rs/google-people1/1.0.12+20190702/google_people1/struct.PeopleService.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.Part.html)** + * **[Parts](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -135,17 +135,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-people1/1.0.11+20190702/google_people1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-people1/1.0.12+20190702/google_people1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-people1/1.0.11+20190702/google_people1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-people1/1.0.12+20190702/google_people1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -155,29 +155,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-people1/1.0.11+20190702/google_people1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-people1/1.0.12+20190702/google_people1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/people1/src/lib.rs b/gen/people1/src/lib.rs index dfb608b330..1e092041ad 100644 --- a/gen/people1/src/lib.rs +++ b/gen/people1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *People Service* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *people:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *People Service* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *people:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *People Service* *v1* API can be found at the //! [official documentation site](https://developers.google.com/people/). @@ -359,7 +359,7 @@ impl<'a, C, A> PeopleService PeopleService { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://people.googleapis.com/".to_string(), _root_url: "https://people.googleapis.com/".to_string(), } @@ -373,7 +373,7 @@ impl<'a, C, A> PeopleService } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/photoslibrary1-cli/Cargo.toml b/gen/photoslibrary1-cli/Cargo.toml index 13e01db492..5517ff76c8 100644 --- a/gen/photoslibrary1-cli/Cargo.toml +++ b/gen/photoslibrary1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-photoslibrary1-cli" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Photos Library (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/photoslibrary1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-photoslibrary1] path = "../photoslibrary1" -version = "1.0.11+20190702" +version = "1.0.12+20190702" diff --git a/gen/photoslibrary1-cli/LICENSE.md b/gen/photoslibrary1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/photoslibrary1-cli/LICENSE.md +++ b/gen/photoslibrary1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/photoslibrary1-cli/README.md b/gen/photoslibrary1-cli/README.md index 92588b3d7d..647718445c 100644 --- a/gen/photoslibrary1-cli/README.md +++ b/gen/photoslibrary1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Photos Library* API at revision *20190702*. The CLI is at version *1.0.11*. +This documentation was generated from the *Photos Library* API at revision *20190702*. The CLI is at version *1.0.12*. ```bash photoslibrary1 [options] diff --git a/gen/photoslibrary1-cli/mkdocs.yml b/gen/photoslibrary1-cli/mkdocs.yml index b9aaccc420..14ca880d1f 100644 --- a/gen/photoslibrary1-cli/mkdocs.yml +++ b/gen/photoslibrary1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Photos Library v1.0.11+20190702 +site_name: Photos Library v1.0.12+20190702 site_url: http://byron.github.io/google-apis-rs/google-photoslibrary1-cli site_description: A complete library to interact with Photos Library (protocol v1) @@ -29,5 +29,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/photoslibrary1-cli/src/cmn.rs b/gen/photoslibrary1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/photoslibrary1-cli/src/cmn.rs +++ b/gen/photoslibrary1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/photoslibrary1-cli/src/main.rs b/gen/photoslibrary1-cli/src/main.rs index 098b4696ac..6af0de0fdc 100644 --- a/gen/photoslibrary1-cli/src/main.rs +++ b/gen/photoslibrary1-cli/src/main.rs @@ -1947,7 +1947,7 @@ fn main() { let mut app = App::new("photoslibrary1") .author("Sebastian Thiel ") - .version("1.0.11+20190702") + .version("1.0.12+20190702") .about("Manage photos, videos, and albums in Google Photos ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_photoslibrary1_cli") diff --git a/gen/photoslibrary1/Cargo.toml b/gen/photoslibrary1/Cargo.toml index d7111c611f..a1eb671714 100644 --- a/gen/photoslibrary1/Cargo.toml +++ b/gen/photoslibrary1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-photoslibrary1" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Photos Library (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/photoslibrary1" homepage = "https://developers.google.com/photos/" -documentation = "https://docs.rs/google-photoslibrary1/1.0.11+20190702" +documentation = "https://docs.rs/google-photoslibrary1/1.0.12+20190702" license = "MIT" keywords = ["photoslibrary", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/photoslibrary1/LICENSE.md b/gen/photoslibrary1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/photoslibrary1/LICENSE.md +++ b/gen/photoslibrary1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/photoslibrary1/README.md b/gen/photoslibrary1/README.md index 483818186b..8770dff6af 100644 --- a/gen/photoslibrary1/README.md +++ b/gen/photoslibrary1/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-photoslibrary1` library allows access to all features of the *Google Photos Library* service. -This documentation was generated from *Photos Library* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *photoslibrary:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Photos Library* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *photoslibrary:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Photos Library* *v1* API can be found at the [official documentation site](https://developers.google.com/photos/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.PhotosLibrary.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.PhotosLibrary.html) ... -* [albums](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.Album.html) - * [*add enrichment*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.AlbumAddEnrichmentCall.html), [*batch add media items*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.AlbumBatchAddMediaItemCall.html), [*batch remove media items*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.AlbumBatchRemoveMediaItemCall.html), [*create*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.AlbumCreateCall.html), [*get*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.AlbumGetCall.html), [*list*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.AlbumListCall.html), [*share*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.AlbumShareCall.html) and [*unshare*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.AlbumUnshareCall.html) -* [media items](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.MediaItem.html) - * [*batch create*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.MediaItemBatchCreateCall.html), [*batch get*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.MediaItemBatchGetCall.html), [*get*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.MediaItemGetCall.html), [*list*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.MediaItemListCall.html) and [*search*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.MediaItemSearchCall.html) +* [albums](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.Album.html) + * [*add enrichment*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.AlbumAddEnrichmentCall.html), [*batch add media items*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.AlbumBatchAddMediaItemCall.html), [*batch remove media items*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.AlbumBatchRemoveMediaItemCall.html), [*create*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.AlbumCreateCall.html), [*get*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.AlbumGetCall.html), [*list*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.AlbumListCall.html), [*share*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.AlbumShareCall.html) and [*unshare*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.AlbumUnshareCall.html) +* [media items](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.MediaItem.html) + * [*batch create*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.MediaItemBatchCreateCall.html), [*batch get*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.MediaItemBatchGetCall.html), [*get*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.MediaItemGetCall.html), [*list*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.MediaItemListCall.html) and [*search*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.MediaItemSearchCall.html) * shared albums - * [*get*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.SharedAlbumGetCall.html), [*join*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.SharedAlbumJoinCall.html), [*leave*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.SharedAlbumLeaveCall.html) and [*list*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.SharedAlbumListCall.html) + * [*get*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.SharedAlbumGetCall.html), [*join*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.SharedAlbumJoinCall.html), [*leave*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.SharedAlbumLeaveCall.html) and [*list*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.SharedAlbumListCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/struct.PhotosLibrary.html)** +* **[Hub](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/struct.PhotosLibrary.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.Part.html)** + * **[Parts](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -139,17 +139,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -159,29 +159,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-photoslibrary1/1.0.11+20190702/google_photoslibrary1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-photoslibrary1/1.0.12+20190702/google_photoslibrary1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/photoslibrary1/src/lib.rs b/gen/photoslibrary1/src/lib.rs index 709b82b151..5ffe46deb9 100644 --- a/gen/photoslibrary1/src/lib.rs +++ b/gen/photoslibrary1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Photos Library* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *photoslibrary:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Photos Library* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *photoslibrary:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Photos Library* *v1* API can be found at the //! [official documentation site](https://developers.google.com/photos/). @@ -351,7 +351,7 @@ impl<'a, C, A> PhotosLibrary PhotosLibrary { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://photoslibrary.googleapis.com/".to_string(), _root_url: "https://photoslibrary.googleapis.com/".to_string(), } @@ -368,7 +368,7 @@ impl<'a, C, A> PhotosLibrary } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/playcustomapp1-cli/Cargo.toml b/gen/playcustomapp1-cli/Cargo.toml index eff7145ef2..e8818590f9 100644 --- a/gen/playcustomapp1-cli/Cargo.toml +++ b/gen/playcustomapp1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-playcustomapp1-cli" -version = "1.0.11+20170622" +version = "1.0.12+20170622" authors = ["Sebastian Thiel "] description = "A complete library to interact with playcustomapp (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/playcustomapp1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-playcustomapp1] path = "../playcustomapp1" -version = "1.0.11+20170622" +version = "1.0.12+20170622" diff --git a/gen/playcustomapp1-cli/LICENSE.md b/gen/playcustomapp1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/playcustomapp1-cli/LICENSE.md +++ b/gen/playcustomapp1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/playcustomapp1-cli/README.md b/gen/playcustomapp1-cli/README.md index 333f8fd094..a8aafc3e9f 100644 --- a/gen/playcustomapp1-cli/README.md +++ b/gen/playcustomapp1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *playcustomapp* API at revision *20170622*. The CLI is at version *1.0.11*. +This documentation was generated from the *playcustomapp* API at revision *20170622*. The CLI is at version *1.0.12*. ```bash playcustomapp1 [options] diff --git a/gen/playcustomapp1-cli/mkdocs.yml b/gen/playcustomapp1-cli/mkdocs.yml index 078b364a85..3a8e0586f9 100644 --- a/gen/playcustomapp1-cli/mkdocs.yml +++ b/gen/playcustomapp1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: playcustomapp v1.0.11+20170622 +site_name: playcustomapp v1.0.12+20170622 site_url: http://byron.github.io/google-apis-rs/google-playcustomapp1-cli site_description: A complete library to interact with playcustomapp (protocol v1) @@ -13,5 +13,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/playcustomapp1-cli/src/cmn.rs b/gen/playcustomapp1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/playcustomapp1-cli/src/cmn.rs +++ b/gen/playcustomapp1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/playcustomapp1-cli/src/main.rs b/gen/playcustomapp1-cli/src/main.rs index 6f4fa91faa..540ae68223 100644 --- a/gen/playcustomapp1-cli/src/main.rs +++ b/gen/playcustomapp1-cli/src/main.rs @@ -276,7 +276,7 @@ fn main() { let mut app = App::new("playcustomapp1") .author("Sebastian Thiel ") - .version("1.0.11+20170622") + .version("1.0.12+20170622") .about("An API to publish custom Android apps.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_playcustomapp1_cli") .arg(Arg::with_name("url") diff --git a/gen/playcustomapp1/Cargo.toml b/gen/playcustomapp1/Cargo.toml index 299348536e..f4ff12c11c 100644 --- a/gen/playcustomapp1/Cargo.toml +++ b/gen/playcustomapp1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-playcustomapp1" -version = "1.0.11+20170622" +version = "1.0.12+20170622" authors = ["Sebastian Thiel "] description = "A complete library to interact with playcustomapp (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/playcustomapp1" homepage = "https://developers.google.com/android/work/play/custom-app-api" -documentation = "https://docs.rs/google-playcustomapp1/1.0.11+20170622" +documentation = "https://docs.rs/google-playcustomapp1/1.0.12+20170622" license = "MIT" keywords = ["playcustomapp", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/playcustomapp1/LICENSE.md b/gen/playcustomapp1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/playcustomapp1/LICENSE.md +++ b/gen/playcustomapp1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/playcustomapp1/README.md b/gen/playcustomapp1/README.md index 7292a505d6..bfc936c087 100644 --- a/gen/playcustomapp1/README.md +++ b/gen/playcustomapp1/README.md @@ -5,21 +5,21 @@ DO NOT EDIT ! --> The `google-playcustomapp1` library allows access to all features of the *Google playcustomapp* service. -This documentation was generated from *playcustomapp* crate version *1.0.11+20170622*, where *20170622* is the exact revision of the *playcustomapp:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *playcustomapp* crate version *1.0.12+20170622*, where *20170622* is the exact revision of the *playcustomapp:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *playcustomapp* *v1* API can be found at the [official documentation site](https://developers.google.com/android/work/play/custom-app-api). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/struct.Playcustomapp.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/struct.Playcustomapp.html) ... * accounts - * [*custom apps create*](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/struct.AccountCustomAppCreateCall.html) + * [*custom apps create*](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/struct.AccountCustomAppCreateCall.html) Upload supported by ... -* [*custom apps create accounts*](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/struct.AccountCustomAppCreateCall.html) +* [*custom apps create accounts*](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/struct.AccountCustomAppCreateCall.html) @@ -27,17 +27,17 @@ Upload supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/struct.Playcustomapp.html)** +* **[Hub](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/struct.Playcustomapp.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.Part.html)** + * **[Parts](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -135,17 +135,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -155,29 +155,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-playcustomapp1/1.0.11+20170622/google_playcustomapp1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-playcustomapp1/1.0.12+20170622/google_playcustomapp1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/playcustomapp1/src/lib.rs b/gen/playcustomapp1/src/lib.rs index 877f185e10..2f2098bd8f 100644 --- a/gen/playcustomapp1/src/lib.rs +++ b/gen/playcustomapp1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *playcustomapp* crate version *1.0.11+20170622*, where *20170622* is the exact revision of the *playcustomapp:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *playcustomapp* crate version *1.0.12+20170622*, where *20170622* is the exact revision of the *playcustomapp:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *playcustomapp* *v1* API can be found at the //! [official documentation site](https://developers.google.com/android/work/play/custom-app-api). @@ -335,7 +335,7 @@ impl<'a, C, A> Playcustomapp Playcustomapp { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/playcustomapp/v1/accounts/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -346,7 +346,7 @@ impl<'a, C, A> Playcustomapp } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/playmoviespartner1-cli/Cargo.toml b/gen/playmoviespartner1-cli/Cargo.toml index 9e1efcab9b..dbdcaae613 100644 --- a/gen/playmoviespartner1-cli/Cargo.toml +++ b/gen/playmoviespartner1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-playmoviespartner1-cli" -version = "1.0.11+20170919" +version = "1.0.12+20170919" authors = ["Sebastian Thiel "] description = "A complete library to interact with Play Movies (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/playmoviespartner1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-playmoviespartner1] path = "../playmoviespartner1" -version = "1.0.11+20170919" +version = "1.0.12+20170919" diff --git a/gen/playmoviespartner1-cli/LICENSE.md b/gen/playmoviespartner1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/playmoviespartner1-cli/LICENSE.md +++ b/gen/playmoviespartner1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/playmoviespartner1-cli/README.md b/gen/playmoviespartner1-cli/README.md index 38eeef730e..578b2fb824 100644 --- a/gen/playmoviespartner1-cli/README.md +++ b/gen/playmoviespartner1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Play Movies* API at revision *20170919*. The CLI is at version *1.0.11*. +This documentation was generated from the *Play Movies* API at revision *20170919*. The CLI is at version *1.0.12*. ```bash playmoviespartner1 [options] diff --git a/gen/playmoviespartner1-cli/mkdocs.yml b/gen/playmoviespartner1-cli/mkdocs.yml index 7d34a3938d..2594c1e936 100644 --- a/gen/playmoviespartner1-cli/mkdocs.yml +++ b/gen/playmoviespartner1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Play Movies v1.0.11+20170919 +site_name: Play Movies v1.0.12+20170919 site_url: http://byron.github.io/google-apis-rs/google-playmoviespartner1-cli site_description: A complete library to interact with Play Movies (protocol v1) @@ -18,5 +18,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/playmoviespartner1-cli/src/cmn.rs b/gen/playmoviespartner1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/playmoviespartner1-cli/src/cmn.rs +++ b/gen/playmoviespartner1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/playmoviespartner1-cli/src/main.rs b/gen/playmoviespartner1-cli/src/main.rs index 22b8862ca2..bb7115e6a1 100644 --- a/gen/playmoviespartner1-cli/src/main.rs +++ b/gen/playmoviespartner1-cli/src/main.rs @@ -737,7 +737,7 @@ fn main() { let mut app = App::new("playmoviespartner1") .author("Sebastian Thiel ") - .version("1.0.11+20170919") + .version("1.0.12+20170919") .about("Gets the delivery status of titles for Google Play Movies Partners.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_playmoviespartner1_cli") .arg(Arg::with_name("url") diff --git a/gen/playmoviespartner1/Cargo.toml b/gen/playmoviespartner1/Cargo.toml index 4ea8568758..bc350aa4df 100644 --- a/gen/playmoviespartner1/Cargo.toml +++ b/gen/playmoviespartner1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-playmoviespartner1" -version = "1.0.11+20170919" +version = "1.0.12+20170919" authors = ["Sebastian Thiel "] description = "A complete library to interact with Play Movies (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/playmoviespartner1" homepage = "https://developers.google.com/playmoviespartner/" -documentation = "https://docs.rs/google-playmoviespartner1/1.0.11+20170919" +documentation = "https://docs.rs/google-playmoviespartner1/1.0.12+20170919" license = "MIT" keywords = ["playmoviespartner", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/playmoviespartner1/LICENSE.md b/gen/playmoviespartner1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/playmoviespartner1/LICENSE.md +++ b/gen/playmoviespartner1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/playmoviespartner1/README.md b/gen/playmoviespartner1/README.md index e1e4fbaf88..9ada5dc8fc 100644 --- a/gen/playmoviespartner1/README.md +++ b/gen/playmoviespartner1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-playmoviespartner1` library allows access to all features of the *Google Play Movies* service. -This documentation was generated from *Play Movies* crate version *1.0.11+20170919*, where *20170919* is the exact revision of the *playmoviespartner:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Play Movies* crate version *1.0.12+20170919*, where *20170919* is the exact revision of the *playmoviespartner:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Play Movies* *v1* API can be found at the [official documentation site](https://developers.google.com/playmoviespartner/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/struct.PlayMovies.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/struct.PlayMovies.html) ... * accounts - * [*avails get*](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/struct.AccountAvailGetCall.html), [*avails list*](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/struct.AccountAvailListCall.html), [*orders get*](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/struct.AccountOrderGetCall.html), [*orders list*](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/struct.AccountOrderListCall.html), [*store infos country get*](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/struct.AccountStoreInfoCountryGetCall.html) and [*store infos list*](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/struct.AccountStoreInfoListCall.html) + * [*avails get*](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/struct.AccountAvailGetCall.html), [*avails list*](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/struct.AccountAvailListCall.html), [*orders get*](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/struct.AccountOrderGetCall.html), [*orders list*](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/struct.AccountOrderListCall.html), [*store infos country get*](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/struct.AccountStoreInfoCountryGetCall.html) and [*store infos list*](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/struct.AccountStoreInfoListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/struct.PlayMovies.html)** +* **[Hub](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/struct.PlayMovies.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.Part.html)** + * **[Parts](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -124,17 +124,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -144,29 +144,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-playmoviespartner1/1.0.11+20170919/google_playmoviespartner1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-playmoviespartner1/1.0.12+20170919/google_playmoviespartner1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/playmoviespartner1/src/lib.rs b/gen/playmoviespartner1/src/lib.rs index a7b1e7609b..eaea23d388 100644 --- a/gen/playmoviespartner1/src/lib.rs +++ b/gen/playmoviespartner1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Play Movies* crate version *1.0.11+20170919*, where *20170919* is the exact revision of the *playmoviespartner:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Play Movies* crate version *1.0.12+20170919*, where *20170919* is the exact revision of the *playmoviespartner:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Play Movies* *v1* API can be found at the //! [official documentation site](https://developers.google.com/playmoviespartner/). @@ -317,7 +317,7 @@ impl<'a, C, A> PlayMovies PlayMovies { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://playmoviespartner.googleapis.com/".to_string(), _root_url: "https://playmoviespartner.googleapis.com/".to_string(), } @@ -328,7 +328,7 @@ impl<'a, C, A> PlayMovies } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/plus1-cli/Cargo.toml b/gen/plus1-cli/Cargo.toml index 67eb8407d1..9ab0029c60 100644 --- a/gen/plus1-cli/Cargo.toml +++ b/gen/plus1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-plus1-cli" -version = "1.0.11+20190616" +version = "1.0.12+20190616" authors = ["Sebastian Thiel "] description = "A complete library to interact with plus (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/plus1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-plus1] path = "../plus1" -version = "1.0.11+20190616" +version = "1.0.12+20190616" diff --git a/gen/plus1-cli/LICENSE.md b/gen/plus1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/plus1-cli/LICENSE.md +++ b/gen/plus1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/plus1-cli/README.md b/gen/plus1-cli/README.md index 95e03df516..fad8d358c0 100644 --- a/gen/plus1-cli/README.md +++ b/gen/plus1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *plus* API at revision *20190616*. The CLI is at version *1.0.11*. +This documentation was generated from the *plus* API at revision *20190616*. The CLI is at version *1.0.12*. ```bash plus1 [options] diff --git a/gen/plus1-cli/mkdocs.yml b/gen/plus1-cli/mkdocs.yml index 61e6705db7..9ccfa85742 100644 --- a/gen/plus1-cli/mkdocs.yml +++ b/gen/plus1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: plus v1.0.11+20190616 +site_name: plus v1.0.12+20190616 site_url: http://byron.github.io/google-apis-rs/google-plus1-cli site_description: A complete library to interact with plus (protocol v1) @@ -21,5 +21,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/plus1-cli/src/cmn.rs b/gen/plus1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/plus1-cli/src/cmn.rs +++ b/gen/plus1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/plus1-cli/src/main.rs b/gen/plus1-cli/src/main.rs index fa1945f863..13624fddd3 100644 --- a/gen/plus1-cli/src/main.rs +++ b/gen/plus1-cli/src/main.rs @@ -938,7 +938,7 @@ fn main() { let mut app = App::new("plus1") .author("Sebastian Thiel ") - .version("1.0.11+20190616") + .version("1.0.12+20190616") .about("Builds on top of the Google+ platform.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_plus1_cli") .arg(Arg::with_name("url") diff --git a/gen/plus1/Cargo.toml b/gen/plus1/Cargo.toml index 50dab9164b..6215617b53 100644 --- a/gen/plus1/Cargo.toml +++ b/gen/plus1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-plus1" -version = "1.0.11+20190616" +version = "1.0.12+20190616" authors = ["Sebastian Thiel "] description = "A complete library to interact with plus (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/plus1" homepage = "https://developers.google.com/+/api/" -documentation = "https://docs.rs/google-plus1/1.0.11+20190616" +documentation = "https://docs.rs/google-plus1/1.0.12+20190616" license = "MIT" keywords = ["plus", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/plus1/LICENSE.md b/gen/plus1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/plus1/LICENSE.md +++ b/gen/plus1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/plus1/README.md b/gen/plus1/README.md index 4e3747bbd2..04f67033e4 100644 --- a/gen/plus1/README.md +++ b/gen/plus1/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-plus1` library allows access to all features of the *Google plus* service. -This documentation was generated from *plus* crate version *1.0.11+20190616*, where *20190616* is the exact revision of the *plus:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *plus* crate version *1.0.12+20190616*, where *20190616* is the exact revision of the *plus:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *plus* *v1* API can be found at the [official documentation site](https://developers.google.com/+/api/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/struct.Plus.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/struct.Plus.html) ... -* [activities](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/struct.Activity.html) - * [*get*](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/struct.ActivityGetCall.html), [*list*](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/struct.ActivityListCall.html) and [*search*](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/struct.ActivitySearchCall.html) -* [comments](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/struct.Comment.html) - * [*get*](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/struct.CommentGetCall.html) and [*list*](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/struct.CommentListCall.html) +* [activities](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/struct.Activity.html) + * [*get*](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/struct.ActivityGetCall.html), [*list*](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/struct.ActivityListCall.html) and [*search*](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/struct.ActivitySearchCall.html) +* [comments](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/struct.Comment.html) + * [*get*](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/struct.CommentGetCall.html) and [*list*](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/struct.CommentListCall.html) * people - * [*get*](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/struct.PeopleGetCall.html), [*list*](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/struct.PeopleListCall.html), [*list by activity*](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/struct.PeopleListByActivityCall.html) and [*search*](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/struct.PeopleSearchCall.html) + * [*get*](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/struct.PeopleGetCall.html), [*list*](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/struct.PeopleListCall.html), [*list by activity*](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/struct.PeopleListByActivityCall.html) and [*search*](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/struct.PeopleSearchCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/struct.Plus.html)** +* **[Hub](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/struct.Plus.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.Part.html)** + * **[Parts](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -133,17 +133,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -153,29 +153,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-plus1/1.0.11+20190616/google_plus1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-plus1/1.0.12+20190616/google_plus1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/plus1/src/lib.rs b/gen/plus1/src/lib.rs index 6a92696c21..0d1196478a 100644 --- a/gen/plus1/src/lib.rs +++ b/gen/plus1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *plus* crate version *1.0.11+20190616*, where *20190616* is the exact revision of the *plus:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *plus* crate version *1.0.12+20190616*, where *20190616* is the exact revision of the *plus:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *plus* *v1* API can be found at the //! [official documentation site](https://developers.google.com/+/api/). @@ -341,7 +341,7 @@ impl<'a, C, A> Plus Plus { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/plus/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -358,7 +358,7 @@ impl<'a, C, A> Plus } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/plusdomains1-cli/Cargo.toml b/gen/plusdomains1-cli/Cargo.toml index 3820b105a6..53eb00a030 100644 --- a/gen/plusdomains1-cli/Cargo.toml +++ b/gen/plusdomains1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-plusdomains1-cli" -version = "1.0.11+20190616" +version = "1.0.12+20190616" authors = ["Sebastian Thiel "] description = "A complete library to interact with plusDomains (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/plusdomains1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-plusdomains1] path = "../plusdomains1" -version = "1.0.11+20190616" +version = "1.0.12+20190616" diff --git a/gen/plusdomains1-cli/LICENSE.md b/gen/plusdomains1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/plusdomains1-cli/LICENSE.md +++ b/gen/plusdomains1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/plusdomains1-cli/README.md b/gen/plusdomains1-cli/README.md index 91b1f1987e..6f58931ea4 100644 --- a/gen/plusdomains1-cli/README.md +++ b/gen/plusdomains1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *plusDomains* API at revision *20190616*. The CLI is at version *1.0.11*. +This documentation was generated from the *plusDomains* API at revision *20190616*. The CLI is at version *1.0.12*. ```bash plusdomains1 [options] diff --git a/gen/plusdomains1-cli/mkdocs.yml b/gen/plusdomains1-cli/mkdocs.yml index a6a35e4a0a..3c0f00aaa0 100644 --- a/gen/plusdomains1-cli/mkdocs.yml +++ b/gen/plusdomains1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: plusDomains v1.0.11+20190616 +site_name: plusDomains v1.0.12+20190616 site_url: http://byron.github.io/google-apis-rs/google-plusdomains1-cli site_description: A complete library to interact with plusDomains (protocol v1) @@ -22,5 +22,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/plusdomains1-cli/src/cmn.rs b/gen/plusdomains1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/plusdomains1-cli/src/cmn.rs +++ b/gen/plusdomains1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/plusdomains1-cli/src/main.rs b/gen/plusdomains1-cli/src/main.rs index 38123d8ff4..a04e909bb3 100644 --- a/gen/plusdomains1-cli/src/main.rs +++ b/gen/plusdomains1-cli/src/main.rs @@ -1114,7 +1114,7 @@ fn main() { let mut app = App::new("plusdomains1") .author("Sebastian Thiel ") - .version("1.0.11+20190616") + .version("1.0.12+20190616") .about("Builds on top of the Google+ platform for Google Apps Domains.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_plusdomains1_cli") .arg(Arg::with_name("url") diff --git a/gen/plusdomains1/Cargo.toml b/gen/plusdomains1/Cargo.toml index 6977359747..400f70d1f9 100644 --- a/gen/plusdomains1/Cargo.toml +++ b/gen/plusdomains1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-plusdomains1" -version = "1.0.11+20190616" +version = "1.0.12+20190616" authors = ["Sebastian Thiel "] description = "A complete library to interact with plusDomains (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/plusdomains1" homepage = "https://developers.google.com/+/domains/" -documentation = "https://docs.rs/google-plusdomains1/1.0.11+20190616" +documentation = "https://docs.rs/google-plusdomains1/1.0.12+20190616" license = "MIT" keywords = ["plusDomains", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/plusdomains1/LICENSE.md b/gen/plusdomains1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/plusdomains1/LICENSE.md +++ b/gen/plusdomains1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/plusdomains1/README.md b/gen/plusdomains1/README.md index 3be9cddb40..8357965f3e 100644 --- a/gen/plusdomains1/README.md +++ b/gen/plusdomains1/README.md @@ -5,31 +5,31 @@ DO NOT EDIT ! --> The `google-plusdomains1` library allows access to all features of the *Google plusDomains* service. -This documentation was generated from *plusDomains* crate version *1.0.11+20190616*, where *20190616* is the exact revision of the *plusDomains:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *plusDomains* crate version *1.0.12+20190616*, where *20190616* is the exact revision of the *plusDomains:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *plusDomains* *v1* API can be found at the [official documentation site](https://developers.google.com/+/domains/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.PlusDomains.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.PlusDomains.html) ... -* [activities](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.Activity.html) - * [*get*](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.ActivityGetCall.html) and [*list*](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.ActivityListCall.html) -* [audiences](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.Audience.html) - * [*list*](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.AudienceListCall.html) -* [circles](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.Circle.html) - * [*list*](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.CircleListCall.html) -* [comments](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.Comment.html) - * [*get*](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.CommentGetCall.html) and [*list*](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.CommentListCall.html) -* [media](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.Media.html) - * [*insert*](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.MediaInsertCall.html) +* [activities](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.Activity.html) + * [*get*](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.ActivityGetCall.html) and [*list*](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.ActivityListCall.html) +* [audiences](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.Audience.html) + * [*list*](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.AudienceListCall.html) +* [circles](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.Circle.html) + * [*list*](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.CircleListCall.html) +* [comments](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.Comment.html) + * [*get*](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.CommentGetCall.html) and [*list*](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.CommentListCall.html) +* [media](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.Media.html) + * [*insert*](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.MediaInsertCall.html) * people - * [*get*](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.PeopleGetCall.html), [*list*](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.PeopleListCall.html) and [*list by activity*](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.PeopleListByActivityCall.html) + * [*get*](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.PeopleGetCall.html), [*list*](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.PeopleListCall.html) and [*list by activity*](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.PeopleListByActivityCall.html) Upload supported by ... -* [*insert media*](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.MediaInsertCall.html) +* [*insert media*](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.MediaInsertCall.html) @@ -37,17 +37,17 @@ Upload supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/struct.PlusDomains.html)** +* **[Hub](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/struct.PlusDomains.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.Part.html)** + * **[Parts](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -142,17 +142,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -162,29 +162,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-plusdomains1/1.0.11+20190616/google_plusdomains1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-plusdomains1/1.0.12+20190616/google_plusdomains1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/plusdomains1/src/lib.rs b/gen/plusdomains1/src/lib.rs index 811a3975ad..adf33150a7 100644 --- a/gen/plusdomains1/src/lib.rs +++ b/gen/plusdomains1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *plusDomains* crate version *1.0.11+20190616*, where *20190616* is the exact revision of the *plusDomains:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *plusDomains* crate version *1.0.12+20190616*, where *20190616* is the exact revision of the *plusDomains:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *plusDomains* *v1* API can be found at the //! [official documentation site](https://developers.google.com/+/domains/). @@ -366,7 +366,7 @@ impl<'a, C, A> PlusDomains PlusDomains { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/plusDomains/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -392,7 +392,7 @@ impl<'a, C, A> PlusDomains } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/prediction1d6-cli/Cargo.toml b/gen/prediction1d6-cli/Cargo.toml index 5b8a8d978e..a5f3a7aabd 100644 --- a/gen/prediction1d6-cli/Cargo.toml +++ b/gen/prediction1d6-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-prediction1d6-cli" -version = "1.0.11+20160511" +version = "1.0.12+20160511" authors = ["Sebastian Thiel "] description = "A complete library to interact with prediction (protocol v1.6)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/prediction1d6-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-prediction1d6] path = "../prediction1d6" -version = "1.0.11+20160511" +version = "1.0.12+20160511" diff --git a/gen/prediction1d6-cli/LICENSE.md b/gen/prediction1d6-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/prediction1d6-cli/LICENSE.md +++ b/gen/prediction1d6-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/prediction1d6-cli/README.md b/gen/prediction1d6-cli/README.md index 82e77e61f4..eccd3ec8b7 100644 --- a/gen/prediction1d6-cli/README.md +++ b/gen/prediction1d6-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *prediction* API at revision *20160511*. The CLI is at version *1.0.11*. +This documentation was generated from the *prediction* API at revision *20160511*. The CLI is at version *1.0.12*. ```bash prediction1d6 [options] diff --git a/gen/prediction1d6-cli/mkdocs.yml b/gen/prediction1d6-cli/mkdocs.yml index c8eeba5511..35247fed01 100644 --- a/gen/prediction1d6-cli/mkdocs.yml +++ b/gen/prediction1d6-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: prediction v1.0.11+20160511 +site_name: prediction v1.0.12+20160511 site_url: http://byron.github.io/google-apis-rs/google-prediction1d6-cli site_description: A complete library to interact with prediction (protocol v1.6) @@ -20,5 +20,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/prediction1d6-cli/src/cmn.rs b/gen/prediction1d6-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/prediction1d6-cli/src/cmn.rs +++ b/gen/prediction1d6-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/prediction1d6-cli/src/main.rs b/gen/prediction1d6-cli/src/main.rs index f183d005b2..38b1b28d05 100644 --- a/gen/prediction1d6-cli/src/main.rs +++ b/gen/prediction1d6-cli/src/main.rs @@ -963,7 +963,7 @@ fn main() { let mut app = App::new("prediction1d6") .author("Sebastian Thiel ") - .version("1.0.11+20160511") + .version("1.0.12+20160511") .about("Lets you access a cloud hosted machine learning service that makes it easy to build smart apps") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_prediction1d6_cli") .arg(Arg::with_name("url") diff --git a/gen/prediction1d6/Cargo.toml b/gen/prediction1d6/Cargo.toml index 8a49031b0a..8d596f32b1 100644 --- a/gen/prediction1d6/Cargo.toml +++ b/gen/prediction1d6/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-prediction1d6" -version = "1.0.11+20160511" +version = "1.0.12+20160511" authors = ["Sebastian Thiel "] description = "A complete library to interact with prediction (protocol v1.6)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/prediction1d6" homepage = "https://developers.google.com/prediction/docs/developer-guide" -documentation = "https://docs.rs/google-prediction1d6/1.0.11+20160511" +documentation = "https://docs.rs/google-prediction1d6/1.0.12+20160511" license = "MIT" keywords = ["prediction", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/prediction1d6/LICENSE.md b/gen/prediction1d6/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/prediction1d6/LICENSE.md +++ b/gen/prediction1d6/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/prediction1d6/README.md b/gen/prediction1d6/README.md index 822c5c6e3d..86b982ea8b 100644 --- a/gen/prediction1d6/README.md +++ b/gen/prediction1d6/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-prediction1d6` library allows access to all features of the *Google prediction* service. -This documentation was generated from *prediction* crate version *1.0.11+20160511*, where *20160511* is the exact revision of the *prediction:v1.6* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *prediction* crate version *1.0.12+20160511*, where *20160511* is the exact revision of the *prediction:v1.6* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *prediction* *v1d6* API can be found at the [official documentation site](https://developers.google.com/prediction/docs/developer-guide). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/struct.Prediction.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/struct.Prediction.html) ... * hostedmodels - * [*predict*](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/struct.HostedmodelPredictCall.html) + * [*predict*](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/struct.HostedmodelPredictCall.html) * trainedmodels - * [*analyze*](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/struct.TrainedmodelAnalyzeCall.html), [*delete*](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/struct.TrainedmodelDeleteCall.html), [*get*](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/struct.TrainedmodelGetCall.html), [*insert*](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/struct.TrainedmodelInsertCall.html), [*list*](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/struct.TrainedmodelListCall.html), [*predict*](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/struct.TrainedmodelPredictCall.html) and [*update*](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/struct.TrainedmodelUpdateCall.html) + * [*analyze*](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/struct.TrainedmodelAnalyzeCall.html), [*delete*](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/struct.TrainedmodelDeleteCall.html), [*get*](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/struct.TrainedmodelGetCall.html), [*insert*](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/struct.TrainedmodelInsertCall.html), [*list*](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/struct.TrainedmodelListCall.html), [*predict*](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/struct.TrainedmodelPredictCall.html) and [*update*](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/struct.TrainedmodelUpdateCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/struct.Prediction.html)** +* **[Hub](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/struct.Prediction.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.Part.html)** + * **[Parts](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -134,17 +134,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -154,29 +154,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.RequestValue.html) and -[decodable](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.RequestValue.html) and +[decodable](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-prediction1d6/1.0.11+20160511/google_prediction1d6/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-prediction1d6/1.0.12+20160511/google_prediction1d6/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/prediction1d6/src/lib.rs b/gen/prediction1d6/src/lib.rs index 018195e2d1..daa6a5a29e 100644 --- a/gen/prediction1d6/src/lib.rs +++ b/gen/prediction1d6/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *prediction* crate version *1.0.11+20160511*, where *20160511* is the exact revision of the *prediction:v1.6* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *prediction* crate version *1.0.12+20160511*, where *20160511* is the exact revision of the *prediction:v1.6* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *prediction* *v1d6* API can be found at the //! [official documentation site](https://developers.google.com/prediction/docs/developer-guide). @@ -349,7 +349,7 @@ impl<'a, C, A> Prediction Prediction { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/prediction/v1.6/projects/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -363,7 +363,7 @@ impl<'a, C, A> Prediction } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/proximitybeacon1_beta1-cli/Cargo.toml b/gen/proximitybeacon1_beta1-cli/Cargo.toml index 884a49f856..88bcac4194 100644 --- a/gen/proximitybeacon1_beta1-cli/Cargo.toml +++ b/gen/proximitybeacon1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-proximitybeacon1_beta1-cli" -version = "1.0.11+20190323" +version = "1.0.12+20190323" authors = ["Sebastian Thiel "] description = "A complete library to interact with proximitybeacon (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/proximitybeacon1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-proximitybeacon1_beta1] path = "../proximitybeacon1_beta1" -version = "1.0.11+20190323" +version = "1.0.12+20190323" diff --git a/gen/proximitybeacon1_beta1-cli/LICENSE.md b/gen/proximitybeacon1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/proximitybeacon1_beta1-cli/LICENSE.md +++ b/gen/proximitybeacon1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/proximitybeacon1_beta1-cli/README.md b/gen/proximitybeacon1_beta1-cli/README.md index 73a3fbeabd..16fc3a22d9 100644 --- a/gen/proximitybeacon1_beta1-cli/README.md +++ b/gen/proximitybeacon1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *proximitybeacon* API at revision *20190323*. The CLI is at version *1.0.11*. +This documentation was generated from the *proximitybeacon* API at revision *20190323*. The CLI is at version *1.0.12*. ```bash proximitybeacon1-beta1 [options] diff --git a/gen/proximitybeacon1_beta1-cli/mkdocs.yml b/gen/proximitybeacon1_beta1-cli/mkdocs.yml index 6ae595d9ba..22cc989a24 100644 --- a/gen/proximitybeacon1_beta1-cli/mkdocs.yml +++ b/gen/proximitybeacon1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: proximitybeacon v1.0.11+20190323 +site_name: proximitybeacon v1.0.12+20190323 site_url: http://byron.github.io/google-apis-rs/google-proximitybeacon1_beta1-cli site_description: A complete library to interact with proximitybeacon (protocol v1beta1) @@ -29,5 +29,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/proximitybeacon1_beta1-cli/src/cmn.rs b/gen/proximitybeacon1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/proximitybeacon1_beta1-cli/src/cmn.rs +++ b/gen/proximitybeacon1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/proximitybeacon1_beta1-cli/src/main.rs b/gen/proximitybeacon1_beta1-cli/src/main.rs index 5c0f207062..d4247eea24 100644 --- a/gen/proximitybeacon1_beta1-cli/src/main.rs +++ b/gen/proximitybeacon1_beta1-cli/src/main.rs @@ -1961,7 +1961,7 @@ fn main() { let mut app = App::new("proximitybeacon1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190323") + .version("1.0.12+20190323") .about("Registers, manages, indexes, and searches beacons.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_proximitybeacon1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/proximitybeacon1_beta1/Cargo.toml b/gen/proximitybeacon1_beta1/Cargo.toml index c2a6e69dbe..b990f6971a 100644 --- a/gen/proximitybeacon1_beta1/Cargo.toml +++ b/gen/proximitybeacon1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-proximitybeacon1_beta1" -version = "1.0.11+20190323" +version = "1.0.12+20190323" authors = ["Sebastian Thiel "] description = "A complete library to interact with proximitybeacon (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/proximitybeacon1_beta1" homepage = "https://developers.google.com/beacons/proximity/" -documentation = "https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323" +documentation = "https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323" license = "MIT" keywords = ["proximitybeacon", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/proximitybeacon1_beta1/LICENSE.md b/gen/proximitybeacon1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/proximitybeacon1_beta1/LICENSE.md +++ b/gen/proximitybeacon1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/proximitybeacon1_beta1/README.md b/gen/proximitybeacon1_beta1/README.md index a17eced06e..adb9ea39f4 100644 --- a/gen/proximitybeacon1_beta1/README.md +++ b/gen/proximitybeacon1_beta1/README.md @@ -5,24 +5,24 @@ DO NOT EDIT ! --> The `google-proximitybeacon1_beta1` library allows access to all features of the *Google proximitybeacon* service. -This documentation was generated from *proximitybeacon* crate version *1.0.11+20190323*, where *20190323* is the exact revision of the *proximitybeacon:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *proximitybeacon* crate version *1.0.12+20190323*, where *20190323* is the exact revision of the *proximitybeacon:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *proximitybeacon* *v1_beta1* API can be found at the [official documentation site](https://developers.google.com/beacons/proximity/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.Proximitybeacon.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.Proximitybeacon.html) ... * beaconinfo - * [*getforobserved*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.BeaconinfoGetforobservedCall.html) -* [beacons](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.Beacon.html) - * [*activate*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.BeaconActivateCall.html), [*attachments batch delete*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.BeaconAttachmentBatchDeleteCall.html), [*attachments create*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.BeaconAttachmentCreateCall.html), [*attachments delete*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.BeaconAttachmentDeleteCall.html), [*attachments list*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.BeaconAttachmentListCall.html), [*deactivate*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.BeaconDeactivateCall.html), [*decommission*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.BeaconDecommissionCall.html), [*delete*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.BeaconDeleteCall.html), [*diagnostics list*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.BeaconDiagnosticListCall.html), [*get*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.BeaconGetCall.html), [*list*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.BeaconListCall.html), [*register*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.BeaconRegisterCall.html) and [*update*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.BeaconUpdateCall.html) -* [namespaces](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.Namespace.html) - * [*list*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.NamespaceListCall.html) and [*update*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.NamespaceUpdateCall.html) + * [*getforobserved*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.BeaconinfoGetforobservedCall.html) +* [beacons](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.Beacon.html) + * [*activate*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.BeaconActivateCall.html), [*attachments batch delete*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.BeaconAttachmentBatchDeleteCall.html), [*attachments create*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.BeaconAttachmentCreateCall.html), [*attachments delete*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.BeaconAttachmentDeleteCall.html), [*attachments list*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.BeaconAttachmentListCall.html), [*deactivate*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.BeaconDeactivateCall.html), [*decommission*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.BeaconDecommissionCall.html), [*delete*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.BeaconDeleteCall.html), [*diagnostics list*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.BeaconDiagnosticListCall.html), [*get*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.BeaconGetCall.html), [*list*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.BeaconListCall.html), [*register*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.BeaconRegisterCall.html) and [*update*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.BeaconUpdateCall.html) +* [namespaces](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.Namespace.html) + * [*list*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.NamespaceListCall.html) and [*update*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.NamespaceUpdateCall.html) Other activities are ... -* [get eidparams](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.MethodGetEidparamCall.html) +* [get eidparams](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.MethodGetEidparamCall.html) @@ -30,17 +30,17 @@ Other activities are ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/struct.Proximitybeacon.html)** +* **[Hub](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/struct.Proximitybeacon.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -147,17 +147,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -167,29 +167,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-proximitybeacon1_beta1/1.0.11+20190323/google_proximitybeacon1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-proximitybeacon1_beta1/1.0.12+20190323/google_proximitybeacon1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/proximitybeacon1_beta1/src/lib.rs b/gen/proximitybeacon1_beta1/src/lib.rs index 2ca44cd81b..07153cf7f2 100644 --- a/gen/proximitybeacon1_beta1/src/lib.rs +++ b/gen/proximitybeacon1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *proximitybeacon* crate version *1.0.11+20190323*, where *20190323* is the exact revision of the *proximitybeacon:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *proximitybeacon* crate version *1.0.12+20190323*, where *20190323* is the exact revision of the *proximitybeacon:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *proximitybeacon* *v1_beta1* API can be found at the //! [official documentation site](https://developers.google.com/beacons/proximity/). @@ -344,7 +344,7 @@ impl<'a, C, A> Proximitybeacon Proximitybeacon { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://proximitybeacon.googleapis.com/".to_string(), _root_url: "https://proximitybeacon.googleapis.com/".to_string(), } @@ -364,7 +364,7 @@ impl<'a, C, A> Proximitybeacon } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/pubsub1-cli/Cargo.toml b/gen/pubsub1-cli/Cargo.toml index f8a85de9cc..751f031ab9 100644 --- a/gen/pubsub1-cli/Cargo.toml +++ b/gen/pubsub1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-pubsub1-cli" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with Pubsub (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/pubsub1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-pubsub1] path = "../pubsub1" -version = "1.0.11+20190625" +version = "1.0.12+20190625" diff --git a/gen/pubsub1-cli/LICENSE.md b/gen/pubsub1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/pubsub1-cli/LICENSE.md +++ b/gen/pubsub1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/pubsub1-cli/README.md b/gen/pubsub1-cli/README.md index dd65795885..a334b9236c 100644 --- a/gen/pubsub1-cli/README.md +++ b/gen/pubsub1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Pubsub* API at revision *20190625*. The CLI is at version *1.0.11*. +This documentation was generated from the *Pubsub* API at revision *20190625*. The CLI is at version *1.0.12*. ```bash pubsub1 [options] diff --git a/gen/pubsub1-cli/mkdocs.yml b/gen/pubsub1-cli/mkdocs.yml index 55a3fff81a..3016153cee 100644 --- a/gen/pubsub1-cli/mkdocs.yml +++ b/gen/pubsub1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Pubsub v1.0.11+20190625 +site_name: Pubsub v1.0.12+20190625 site_url: http://byron.github.io/google-apis-rs/google-pubsub1-cli site_description: A complete library to interact with Pubsub (protocol v1) @@ -44,5 +44,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/pubsub1-cli/src/cmn.rs b/gen/pubsub1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/pubsub1-cli/src/cmn.rs +++ b/gen/pubsub1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/pubsub1-cli/src/main.rs b/gen/pubsub1-cli/src/main.rs index cabf849a52..586085d3a5 100644 --- a/gen/pubsub1-cli/src/main.rs +++ b/gen/pubsub1-cli/src/main.rs @@ -3565,7 +3565,7 @@ fn main() { let mut app = App::new("pubsub1") .author("Sebastian Thiel ") - .version("1.0.11+20190625") + .version("1.0.12+20190625") .about("Provides reliable, many-to-many, asynchronous messaging between applications. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_pubsub1_cli") diff --git a/gen/pubsub1/Cargo.toml b/gen/pubsub1/Cargo.toml index e99aa61cd5..1bb78aa996 100644 --- a/gen/pubsub1/Cargo.toml +++ b/gen/pubsub1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-pubsub1" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with Pubsub (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/pubsub1" homepage = "https://cloud.google.com/pubsub/docs" -documentation = "https://docs.rs/google-pubsub1/1.0.11+20190625" +documentation = "https://docs.rs/google-pubsub1/1.0.12+20190625" license = "MIT" keywords = ["pubsub", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/pubsub1/LICENSE.md b/gen/pubsub1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/pubsub1/LICENSE.md +++ b/gen/pubsub1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/pubsub1/README.md b/gen/pubsub1/README.md index 45334a200a..4e86154f41 100644 --- a/gen/pubsub1/README.md +++ b/gen/pubsub1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-pubsub1` library allows access to all features of the *Google Pubsub* service. -This documentation was generated from *Pubsub* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *pubsub:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Pubsub* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *pubsub:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Pubsub* *v1* API can be found at the [official documentation site](https://cloud.google.com/pubsub/docs). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.Pubsub.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.Pubsub.html) ... * projects - * [*snapshots create*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSnapshotCreateCall.html), [*snapshots delete*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSnapshotDeleteCall.html), [*snapshots get*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSnapshotGetCall.html), [*snapshots get iam policy*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSnapshotGetIamPolicyCall.html), [*snapshots list*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSnapshotListCall.html), [*snapshots patch*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSnapshotPatchCall.html), [*snapshots set iam policy*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSnapshotSetIamPolicyCall.html), [*snapshots test iam permissions*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSnapshotTestIamPermissionCall.html), [*subscriptions acknowledge*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSubscriptionAcknowledgeCall.html), [*subscriptions create*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSubscriptionCreateCall.html), [*subscriptions delete*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSubscriptionDeleteCall.html), [*subscriptions get*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSubscriptionGetCall.html), [*subscriptions get iam policy*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSubscriptionGetIamPolicyCall.html), [*subscriptions list*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSubscriptionListCall.html), [*subscriptions modify ack deadline*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSubscriptionModifyAckDeadlineCall.html), [*subscriptions modify push config*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSubscriptionModifyPushConfigCall.html), [*subscriptions patch*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSubscriptionPatchCall.html), [*subscriptions pull*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSubscriptionPullCall.html), [*subscriptions seek*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSubscriptionSeekCall.html), [*subscriptions set iam policy*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSubscriptionSetIamPolicyCall.html), [*subscriptions test iam permissions*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectSubscriptionTestIamPermissionCall.html), [*topics create*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectTopicCreateCall.html), [*topics delete*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectTopicDeleteCall.html), [*topics get*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectTopicGetCall.html), [*topics get iam policy*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectTopicGetIamPolicyCall.html), [*topics list*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectTopicListCall.html), [*topics patch*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectTopicPatchCall.html), [*topics publish*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectTopicPublishCall.html), [*topics set iam policy*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectTopicSetIamPolicyCall.html), [*topics snapshots list*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectTopicSnapshotListCall.html), [*topics subscriptions list*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectTopicSubscriptionListCall.html) and [*topics test iam permissions*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.ProjectTopicTestIamPermissionCall.html) + * [*snapshots create*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSnapshotCreateCall.html), [*snapshots delete*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSnapshotDeleteCall.html), [*snapshots get*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSnapshotGetCall.html), [*snapshots get iam policy*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSnapshotGetIamPolicyCall.html), [*snapshots list*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSnapshotListCall.html), [*snapshots patch*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSnapshotPatchCall.html), [*snapshots set iam policy*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSnapshotSetIamPolicyCall.html), [*snapshots test iam permissions*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSnapshotTestIamPermissionCall.html), [*subscriptions acknowledge*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSubscriptionAcknowledgeCall.html), [*subscriptions create*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSubscriptionCreateCall.html), [*subscriptions delete*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSubscriptionDeleteCall.html), [*subscriptions get*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSubscriptionGetCall.html), [*subscriptions get iam policy*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSubscriptionGetIamPolicyCall.html), [*subscriptions list*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSubscriptionListCall.html), [*subscriptions modify ack deadline*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSubscriptionModifyAckDeadlineCall.html), [*subscriptions modify push config*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSubscriptionModifyPushConfigCall.html), [*subscriptions patch*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSubscriptionPatchCall.html), [*subscriptions pull*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSubscriptionPullCall.html), [*subscriptions seek*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSubscriptionSeekCall.html), [*subscriptions set iam policy*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSubscriptionSetIamPolicyCall.html), [*subscriptions test iam permissions*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectSubscriptionTestIamPermissionCall.html), [*topics create*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectTopicCreateCall.html), [*topics delete*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectTopicDeleteCall.html), [*topics get*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectTopicGetCall.html), [*topics get iam policy*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectTopicGetIamPolicyCall.html), [*topics list*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectTopicListCall.html), [*topics patch*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectTopicPatchCall.html), [*topics publish*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectTopicPublishCall.html), [*topics set iam policy*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectTopicSetIamPolicyCall.html), [*topics snapshots list*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectTopicSnapshotListCall.html), [*topics subscriptions list*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectTopicSubscriptionListCall.html) and [*topics test iam permissions*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.ProjectTopicTestIamPermissionCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/struct.Pubsub.html)** +* **[Hub](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/struct.Pubsub.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.Part.html)** + * **[Parts](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -135,17 +135,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -155,29 +155,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-pubsub1/1.0.11+20190625/google_pubsub1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-pubsub1/1.0.12+20190625/google_pubsub1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/pubsub1/src/lib.rs b/gen/pubsub1/src/lib.rs index 3f4e14c226..8982e51168 100644 --- a/gen/pubsub1/src/lib.rs +++ b/gen/pubsub1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Pubsub* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *pubsub:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Pubsub* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *pubsub:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Pubsub* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/pubsub/docs). @@ -338,7 +338,7 @@ impl<'a, C, A> Pubsub Pubsub { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://pubsub.googleapis.com/".to_string(), _root_url: "https://pubsub.googleapis.com/".to_string(), } @@ -349,7 +349,7 @@ impl<'a, C, A> Pubsub } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/pubsub1_beta2-cli/Cargo.toml b/gen/pubsub1_beta2-cli/Cargo.toml index efcc672a92..ce6a7be764 100644 --- a/gen/pubsub1_beta2-cli/Cargo.toml +++ b/gen/pubsub1_beta2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-pubsub1_beta2-cli" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with Pubsub (protocol v1beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/pubsub1_beta2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-pubsub1_beta2] path = "../pubsub1_beta2" -version = "1.0.11+20190625" +version = "1.0.12+20190625" diff --git a/gen/pubsub1_beta2-cli/LICENSE.md b/gen/pubsub1_beta2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/pubsub1_beta2-cli/LICENSE.md +++ b/gen/pubsub1_beta2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/pubsub1_beta2-cli/README.md b/gen/pubsub1_beta2-cli/README.md index 9107307165..3fd4b2256d 100644 --- a/gen/pubsub1_beta2-cli/README.md +++ b/gen/pubsub1_beta2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Pubsub* API at revision *20190625*. The CLI is at version *1.0.11*. +This documentation was generated from the *Pubsub* API at revision *20190625*. The CLI is at version *1.0.12*. ```bash pubsub1-beta2 [options] diff --git a/gen/pubsub1_beta2-cli/mkdocs.yml b/gen/pubsub1_beta2-cli/mkdocs.yml index 0e6ec2b0a0..74896ab7cc 100644 --- a/gen/pubsub1_beta2-cli/mkdocs.yml +++ b/gen/pubsub1_beta2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Pubsub v1.0.11+20190625 +site_name: Pubsub v1.0.12+20190625 site_url: http://byron.github.io/google-apis-rs/google-pubsub1_beta2-cli site_description: A complete library to interact with Pubsub (protocol v1beta2) @@ -32,5 +32,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/pubsub1_beta2-cli/src/cmn.rs b/gen/pubsub1_beta2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/pubsub1_beta2-cli/src/cmn.rs +++ b/gen/pubsub1_beta2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/pubsub1_beta2-cli/src/main.rs b/gen/pubsub1_beta2-cli/src/main.rs index b16e798200..4b0e3010d3 100644 --- a/gen/pubsub1_beta2-cli/src/main.rs +++ b/gen/pubsub1_beta2-cli/src/main.rs @@ -2222,7 +2222,7 @@ fn main() { let mut app = App::new("pubsub1-beta2") .author("Sebastian Thiel ") - .version("1.0.11+20190625") + .version("1.0.12+20190625") .about("Provides reliable, many-to-many, asynchronous messaging between applications. ") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_pubsub1_beta2_cli") diff --git a/gen/pubsub1_beta2/Cargo.toml b/gen/pubsub1_beta2/Cargo.toml index 5a7f6a1c21..484cd13462 100644 --- a/gen/pubsub1_beta2/Cargo.toml +++ b/gen/pubsub1_beta2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-pubsub1_beta2" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with Pubsub (protocol v1beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/pubsub1_beta2" homepage = "https://cloud.google.com/pubsub/docs" -documentation = "https://docs.rs/google-pubsub1_beta2/1.0.11+20190625" +documentation = "https://docs.rs/google-pubsub1_beta2/1.0.12+20190625" license = "MIT" keywords = ["pubsub", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/pubsub1_beta2/LICENSE.md b/gen/pubsub1_beta2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/pubsub1_beta2/LICENSE.md +++ b/gen/pubsub1_beta2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/pubsub1_beta2/README.md b/gen/pubsub1_beta2/README.md index d46c296852..fc79e9a81e 100644 --- a/gen/pubsub1_beta2/README.md +++ b/gen/pubsub1_beta2/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-pubsub1_beta2` library allows access to all features of the *Google Pubsub* service. -This documentation was generated from *Pubsub* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *pubsub:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Pubsub* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *pubsub:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Pubsub* *v1_beta2* API can be found at the [official documentation site](https://cloud.google.com/pubsub/docs). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.Pubsub.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.Pubsub.html) ... * projects - * [*subscriptions acknowledge*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionAcknowledgeCall.html), [*subscriptions create*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionCreateCall.html), [*subscriptions delete*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionDeleteCall.html), [*subscriptions get*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionGetCall.html), [*subscriptions get iam policy*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionGetIamPolicyCall.html), [*subscriptions list*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionListCall.html), [*subscriptions modify ack deadline*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionModifyAckDeadlineCall.html), [*subscriptions modify push config*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionModifyPushConfigCall.html), [*subscriptions pull*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionPullCall.html), [*subscriptions set iam policy*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionSetIamPolicyCall.html), [*subscriptions test iam permissions*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionTestIamPermissionCall.html), [*topics create*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectTopicCreateCall.html), [*topics delete*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectTopicDeleteCall.html), [*topics get*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectTopicGetCall.html), [*topics get iam policy*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectTopicGetIamPolicyCall.html), [*topics list*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectTopicListCall.html), [*topics publish*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectTopicPublishCall.html), [*topics set iam policy*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectTopicSetIamPolicyCall.html), [*topics subscriptions list*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectTopicSubscriptionListCall.html) and [*topics test iam permissions*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.ProjectTopicTestIamPermissionCall.html) + * [*subscriptions acknowledge*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionAcknowledgeCall.html), [*subscriptions create*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionCreateCall.html), [*subscriptions delete*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionDeleteCall.html), [*subscriptions get*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionGetCall.html), [*subscriptions get iam policy*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionGetIamPolicyCall.html), [*subscriptions list*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionListCall.html), [*subscriptions modify ack deadline*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionModifyAckDeadlineCall.html), [*subscriptions modify push config*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionModifyPushConfigCall.html), [*subscriptions pull*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionPullCall.html), [*subscriptions set iam policy*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionSetIamPolicyCall.html), [*subscriptions test iam permissions*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectSubscriptionTestIamPermissionCall.html), [*topics create*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectTopicCreateCall.html), [*topics delete*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectTopicDeleteCall.html), [*topics get*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectTopicGetCall.html), [*topics get iam policy*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectTopicGetIamPolicyCall.html), [*topics list*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectTopicListCall.html), [*topics publish*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectTopicPublishCall.html), [*topics set iam policy*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectTopicSetIamPolicyCall.html), [*topics subscriptions list*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectTopicSubscriptionListCall.html) and [*topics test iam permissions*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.ProjectTopicTestIamPermissionCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/struct.Pubsub.html)** +* **[Hub](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/struct.Pubsub.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.Part.html)** + * **[Parts](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -134,17 +134,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -154,29 +154,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-pubsub1_beta2/1.0.11+20190625/google_pubsub1_beta2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-pubsub1_beta2/1.0.12+20190625/google_pubsub1_beta2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/pubsub1_beta2/src/lib.rs b/gen/pubsub1_beta2/src/lib.rs index 560803d9c9..1862c4b406 100644 --- a/gen/pubsub1_beta2/src/lib.rs +++ b/gen/pubsub1_beta2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Pubsub* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *pubsub:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Pubsub* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *pubsub:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Pubsub* *v1_beta2* API can be found at the //! [official documentation site](https://cloud.google.com/pubsub/docs). @@ -337,7 +337,7 @@ impl<'a, C, A> Pubsub Pubsub { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://pubsub.googleapis.com/".to_string(), _root_url: "https://pubsub.googleapis.com/".to_string(), } @@ -348,7 +348,7 @@ impl<'a, C, A> Pubsub } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/qpxexpress1-cli/Cargo.toml b/gen/qpxexpress1-cli/Cargo.toml index 0b735552e6..286f814afe 100644 --- a/gen/qpxexpress1-cli/Cargo.toml +++ b/gen/qpxexpress1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-qpxexpress1-cli" -version = "1.0.11+20160708" +version = "1.0.12+20160708" authors = ["Sebastian Thiel "] description = "A complete library to interact with QPX Express (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/qpxexpress1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-qpxexpress1] path = "../qpxexpress1" -version = "1.0.11+20160708" +version = "1.0.12+20160708" diff --git a/gen/qpxexpress1-cli/LICENSE.md b/gen/qpxexpress1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/qpxexpress1-cli/LICENSE.md +++ b/gen/qpxexpress1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/qpxexpress1-cli/README.md b/gen/qpxexpress1-cli/README.md index 431cd9f519..340fb1d58b 100644 --- a/gen/qpxexpress1-cli/README.md +++ b/gen/qpxexpress1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *QPX Express* API at revision *20160708*. The CLI is at version *1.0.11*. +This documentation was generated from the *QPX Express* API at revision *20160708*. The CLI is at version *1.0.12*. ```bash qpxexpress1 [options] diff --git a/gen/qpxexpress1-cli/mkdocs.yml b/gen/qpxexpress1-cli/mkdocs.yml index d08cb4e84e..a0e9ff130a 100644 --- a/gen/qpxexpress1-cli/mkdocs.yml +++ b/gen/qpxexpress1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: QPX Express v1.0.11+20160708 +site_name: QPX Express v1.0.12+20160708 site_url: http://byron.github.io/google-apis-rs/google-qpxexpress1-cli site_description: A complete library to interact with QPX Express (protocol v1) @@ -13,5 +13,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/qpxexpress1-cli/src/cmn.rs b/gen/qpxexpress1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/qpxexpress1-cli/src/cmn.rs +++ b/gen/qpxexpress1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/qpxexpress1-cli/src/main.rs b/gen/qpxexpress1-cli/src/main.rs index 3e18508d2e..aea0c5e0af 100644 --- a/gen/qpxexpress1-cli/src/main.rs +++ b/gen/qpxexpress1-cli/src/main.rs @@ -265,7 +265,7 @@ fn main() { let mut app = App::new("qpxexpress1") .author("Sebastian Thiel ") - .version("1.0.11+20160708") + .version("1.0.12+20160708") .about("Finds the least expensive flights between an origin and a destination.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_qpxexpress1_cli") .arg(Arg::with_name("folder") diff --git a/gen/qpxexpress1/Cargo.toml b/gen/qpxexpress1/Cargo.toml index 6cb09491a5..c61948136e 100644 --- a/gen/qpxexpress1/Cargo.toml +++ b/gen/qpxexpress1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-qpxexpress1" -version = "1.0.11+20160708" +version = "1.0.12+20160708" authors = ["Sebastian Thiel "] description = "A complete library to interact with QPX Express (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/qpxexpress1" homepage = "http://developers.google.com/qpx-express" -documentation = "https://docs.rs/google-qpxexpress1/1.0.11+20160708" +documentation = "https://docs.rs/google-qpxexpress1/1.0.12+20160708" license = "MIT" keywords = ["qpxExpress", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/qpxexpress1/LICENSE.md b/gen/qpxexpress1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/qpxexpress1/LICENSE.md +++ b/gen/qpxexpress1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/qpxexpress1/README.md b/gen/qpxexpress1/README.md index 4ea0f25164..edae23fff2 100644 --- a/gen/qpxexpress1/README.md +++ b/gen/qpxexpress1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-qpxexpress1` library allows access to all features of the *Google QPX Express* service. -This documentation was generated from *QPX Express* crate version *1.0.11+20160708*, where *20160708* is the exact revision of the *qpxExpress:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *QPX Express* crate version *1.0.12+20160708*, where *20160708* is the exact revision of the *qpxExpress:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *QPX Express* *v1* API can be found at the [official documentation site](http://developers.google.com/qpx-express). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/struct.QPXExpress.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/struct.QPXExpress.html) ... * trips - * [*search*](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/struct.TripSearchCall.html) + * [*search*](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/struct.TripSearchCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/struct.QPXExpress.html)** +* **[Hub](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/struct.QPXExpress.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.Part.html)** + * **[Parts](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -130,17 +130,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-qpxexpress1/1.0.11+20160708/google_qpxexpress1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-qpxexpress1/1.0.12+20160708/google_qpxexpress1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/qpxexpress1/src/lib.rs b/gen/qpxexpress1/src/lib.rs index 7adaed1f32..5dc28ce070 100644 --- a/gen/qpxexpress1/src/lib.rs +++ b/gen/qpxexpress1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *QPX Express* crate version *1.0.11+20160708*, where *20160708* is the exact revision of the *qpxExpress:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *QPX Express* crate version *1.0.12+20160708*, where *20160708* is the exact revision of the *qpxExpress:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *QPX Express* *v1* API can be found at the //! [official documentation site](http://developers.google.com/qpx-express). @@ -307,7 +307,7 @@ impl<'a, C, A> QPXExpress QPXExpress { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/qpxExpress/v1/trips/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -318,7 +318,7 @@ impl<'a, C, A> QPXExpress } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/redis1-cli/Cargo.toml b/gen/redis1-cli/Cargo.toml index 31aae2ec9b..dfe6e9ddbf 100644 --- a/gen/redis1-cli/Cargo.toml +++ b/gen/redis1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-redis1-cli" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Redis (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/redis1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-redis1] path = "../redis1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" diff --git a/gen/redis1-cli/LICENSE.md b/gen/redis1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/redis1-cli/LICENSE.md +++ b/gen/redis1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/redis1-cli/README.md b/gen/redis1-cli/README.md index 5493ab5a5d..c00864cb87 100644 --- a/gen/redis1-cli/README.md +++ b/gen/redis1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Redis* API at revision *20190628*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Redis* API at revision *20190628*. The CLI is at version *1.0.12*. ```bash redis1 [options] diff --git a/gen/redis1-cli/mkdocs.yml b/gen/redis1-cli/mkdocs.yml index 53ecfd6104..cec5e64357 100644 --- a/gen/redis1-cli/mkdocs.yml +++ b/gen/redis1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Redis v1.0.11+20190628 +site_name: Cloud Redis v1.0.12+20190628 site_url: http://byron.github.io/google-apis-rs/google-redis1-cli site_description: A complete library to interact with Cloud Redis (protocol v1) @@ -26,5 +26,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/redis1-cli/src/cmn.rs b/gen/redis1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/redis1-cli/src/cmn.rs +++ b/gen/redis1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/redis1-cli/src/main.rs b/gen/redis1-cli/src/main.rs index 6d50f90cd6..733f4fb06d 100644 --- a/gen/redis1-cli/src/main.rs +++ b/gen/redis1-cli/src/main.rs @@ -1574,7 +1574,7 @@ fn main() { let mut app = App::new("redis1") .author("Sebastian Thiel ") - .version("1.0.11+20190628") + .version("1.0.12+20190628") .about("Creates and manages Redis instances on the Google Cloud Platform.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_redis1_cli") .arg(Arg::with_name("url") diff --git a/gen/redis1/Cargo.toml b/gen/redis1/Cargo.toml index a14a71b573..06cc875b8e 100644 --- a/gen/redis1/Cargo.toml +++ b/gen/redis1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-redis1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Redis (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/redis1" homepage = "https://cloud.google.com/memorystore/docs/redis/" -documentation = "https://docs.rs/google-redis1/1.0.11+20190628" +documentation = "https://docs.rs/google-redis1/1.0.12+20190628" license = "MIT" keywords = ["redis", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/redis1/LICENSE.md b/gen/redis1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/redis1/LICENSE.md +++ b/gen/redis1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/redis1/README.md b/gen/redis1/README.md index fc8f65f1f7..9151e567f6 100644 --- a/gen/redis1/README.md +++ b/gen/redis1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-redis1` library allows access to all features of the *Google Cloud Redis* service. -This documentation was generated from *Cloud Redis* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *redis:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Redis* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *redis:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Redis* *v1* API can be found at the [official documentation site](https://cloud.google.com/memorystore/docs/redis/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.CloudRedis.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.CloudRedis.html) ... * projects - * [*locations get*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.ProjectLocationGetCall.html), [*locations instances create*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.ProjectLocationInstanceCreateCall.html), [*locations instances delete*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.ProjectLocationInstanceDeleteCall.html), [*locations instances export*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.ProjectLocationInstanceExportCall.html), [*locations instances failover*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.ProjectLocationInstanceFailoverCall.html), [*locations instances get*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.ProjectLocationInstanceGetCall.html), [*locations instances import*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.ProjectLocationInstanceImportCall.html), [*locations instances list*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.ProjectLocationInstanceListCall.html), [*locations instances patch*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.ProjectLocationInstancePatchCall.html), [*locations list*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.ProjectLocationListCall.html), [*locations operations cancel*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.ProjectLocationOperationCancelCall.html), [*locations operations delete*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.ProjectLocationOperationGetCall.html) and [*locations operations list*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.ProjectLocationOperationListCall.html) + * [*locations get*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.ProjectLocationGetCall.html), [*locations instances create*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.ProjectLocationInstanceCreateCall.html), [*locations instances delete*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.ProjectLocationInstanceDeleteCall.html), [*locations instances export*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.ProjectLocationInstanceExportCall.html), [*locations instances failover*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.ProjectLocationInstanceFailoverCall.html), [*locations instances get*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.ProjectLocationInstanceGetCall.html), [*locations instances import*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.ProjectLocationInstanceImportCall.html), [*locations instances list*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.ProjectLocationInstanceListCall.html), [*locations instances patch*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.ProjectLocationInstancePatchCall.html), [*locations list*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.ProjectLocationListCall.html), [*locations operations cancel*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.ProjectLocationOperationCancelCall.html), [*locations operations delete*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.ProjectLocationOperationGetCall.html) and [*locations operations list*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.ProjectLocationOperationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/struct.CloudRedis.html)** +* **[Hub](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/struct.CloudRedis.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.Part.html)** + * **[Parts](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -137,17 +137,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -157,29 +157,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-redis1/1.0.11+20190628/google_redis1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-redis1/1.0.12+20190628/google_redis1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/redis1/src/lib.rs b/gen/redis1/src/lib.rs index ec6120a545..74e35486ee 100644 --- a/gen/redis1/src/lib.rs +++ b/gen/redis1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Redis* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *redis:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Redis* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *redis:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Redis* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/memorystore/docs/redis/). @@ -337,7 +337,7 @@ impl<'a, C, A> CloudRedis CloudRedis { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://redis.googleapis.com/".to_string(), _root_url: "https://redis.googleapis.com/".to_string(), } @@ -348,7 +348,7 @@ impl<'a, C, A> CloudRedis } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/remotebuildexecution2-cli/Cargo.toml b/gen/remotebuildexecution2-cli/Cargo.toml index 396c0adf3b..b3a8acf5ff 100644 --- a/gen/remotebuildexecution2-cli/Cargo.toml +++ b/gen/remotebuildexecution2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-remotebuildexecution2-cli" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Remote Build Execution (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/remotebuildexecution2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-remotebuildexecution2] path = "../remotebuildexecution2" -version = "1.0.11+20190702" +version = "1.0.12+20190702" diff --git a/gen/remotebuildexecution2-cli/LICENSE.md b/gen/remotebuildexecution2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/remotebuildexecution2-cli/LICENSE.md +++ b/gen/remotebuildexecution2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/remotebuildexecution2-cli/README.md b/gen/remotebuildexecution2-cli/README.md index 9dbad27349..e13b86dc88 100644 --- a/gen/remotebuildexecution2-cli/README.md +++ b/gen/remotebuildexecution2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Remote Build Execution* API at revision *20190702*. The CLI is at version *1.0.11*. +This documentation was generated from the *Remote Build Execution* API at revision *20190702*. The CLI is at version *1.0.12*. ```bash remotebuildexecution2 [options] diff --git a/gen/remotebuildexecution2-cli/mkdocs.yml b/gen/remotebuildexecution2-cli/mkdocs.yml index c70a704557..396ef20995 100644 --- a/gen/remotebuildexecution2-cli/mkdocs.yml +++ b/gen/remotebuildexecution2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Remote Build Execution v1.0.11+20190702 +site_name: Remote Build Execution v1.0.12+20190702 site_url: http://byron.github.io/google-apis-rs/google-remotebuildexecution2-cli site_description: A complete library to interact with Remote Build Execution (protocol v2) @@ -21,5 +21,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/remotebuildexecution2-cli/src/cmn.rs b/gen/remotebuildexecution2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/remotebuildexecution2-cli/src/cmn.rs +++ b/gen/remotebuildexecution2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/remotebuildexecution2-cli/src/main.rs b/gen/remotebuildexecution2-cli/src/main.rs index 97e8eabad5..b90e472331 100644 --- a/gen/remotebuildexecution2-cli/src/main.rs +++ b/gen/remotebuildexecution2-cli/src/main.rs @@ -1398,7 +1398,7 @@ fn main() { let mut app = App::new("remotebuildexecution2") .author("Sebastian Thiel ") - .version("1.0.11+20190702") + .version("1.0.12+20190702") .about("Supplies a Remote Execution API service for tools such as bazel.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_remotebuildexecution2_cli") .arg(Arg::with_name("url") diff --git a/gen/remotebuildexecution2/Cargo.toml b/gen/remotebuildexecution2/Cargo.toml index 6eaf5b88dd..2d8d00c6ff 100644 --- a/gen/remotebuildexecution2/Cargo.toml +++ b/gen/remotebuildexecution2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-remotebuildexecution2" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with Remote Build Execution (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/remotebuildexecution2" homepage = "https://cloud.google.com/remote-build-execution/docs/" -documentation = "https://docs.rs/google-remotebuildexecution2/1.0.11+20190702" +documentation = "https://docs.rs/google-remotebuildexecution2/1.0.12+20190702" license = "MIT" keywords = ["remotebuildexecution", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/remotebuildexecution2/LICENSE.md b/gen/remotebuildexecution2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/remotebuildexecution2/LICENSE.md +++ b/gen/remotebuildexecution2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/remotebuildexecution2/README.md b/gen/remotebuildexecution2/README.md index 927f98aa06..e5fad28d4c 100644 --- a/gen/remotebuildexecution2/README.md +++ b/gen/remotebuildexecution2/README.md @@ -5,26 +5,26 @@ DO NOT EDIT ! --> The `google-remotebuildexecution2` library allows access to all features of the *Google Remote Build Execution* service. -This documentation was generated from *Remote Build Execution* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *remotebuildexecution:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Remote Build Execution* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *remotebuildexecution:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Remote Build Execution* *v2* API can be found at the [official documentation site](https://cloud.google.com/remote-build-execution/docs/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/struct.RemoteBuildExecution.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/struct.RemoteBuildExecution.html) ... * action results - * [*get*](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/struct.ActionResultGetCall.html) and [*update*](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/struct.ActionResultUpdateCall.html) + * [*get*](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/struct.ActionResultGetCall.html) and [*update*](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/struct.ActionResultUpdateCall.html) * actions - * [*execute*](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/struct.ActionExecuteCall.html) + * [*execute*](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/struct.ActionExecuteCall.html) * blobs - * [*batch read*](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/struct.BlobBatchReadCall.html), [*batch update*](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/struct.BlobBatchUpdateCall.html), [*find missing*](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/struct.BlobFindMissingCall.html) and [*get tree*](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/struct.BlobGetTreeCall.html) + * [*batch read*](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/struct.BlobBatchReadCall.html), [*batch update*](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/struct.BlobBatchUpdateCall.html), [*find missing*](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/struct.BlobFindMissingCall.html) and [*get tree*](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/struct.BlobGetTreeCall.html) * operations - * [*wait execution*](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/struct.OperationWaitExecutionCall.html) + * [*wait execution*](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/struct.OperationWaitExecutionCall.html) Other activities are ... -* [get capabilities](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/struct.MethodGetCapabilityCall.html) +* [get capabilities](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/struct.MethodGetCapabilityCall.html) @@ -32,17 +32,17 @@ Other activities are ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/struct.RemoteBuildExecution.html)** +* **[Hub](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/struct.RemoteBuildExecution.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.Part.html)** + * **[Parts](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -137,17 +137,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -157,29 +157,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-remotebuildexecution2/1.0.11+20190702/google_remotebuildexecution2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-remotebuildexecution2/1.0.12+20190702/google_remotebuildexecution2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/remotebuildexecution2/src/lib.rs b/gen/remotebuildexecution2/src/lib.rs index a8f8243c8c..65dbd7914f 100644 --- a/gen/remotebuildexecution2/src/lib.rs +++ b/gen/remotebuildexecution2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Remote Build Execution* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *remotebuildexecution:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Remote Build Execution* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *remotebuildexecution:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Remote Build Execution* *v2* API can be found at the //! [official documentation site](https://cloud.google.com/remote-build-execution/docs/). @@ -333,7 +333,7 @@ impl<'a, C, A> RemoteBuildExecution RemoteBuildExecution { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://remotebuildexecution.googleapis.com/".to_string(), _root_url: "https://remotebuildexecution.googleapis.com/".to_string(), } @@ -356,7 +356,7 @@ impl<'a, C, A> RemoteBuildExecution } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/replicapool1_beta2-cli/Cargo.toml b/gen/replicapool1_beta2-cli/Cargo.toml index 9d28472e83..5b719a0928 100644 --- a/gen/replicapool1_beta2-cli/Cargo.toml +++ b/gen/replicapool1_beta2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-replicapool1_beta2-cli" -version = "1.0.11+20160512" +version = "1.0.12+20160512" authors = ["Sebastian Thiel "] description = "A complete library to interact with replicapool (protocol v1beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/replicapool1_beta2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-replicapool1_beta2] path = "../replicapool1_beta2" -version = "1.0.11+20160512" +version = "1.0.12+20160512" diff --git a/gen/replicapool1_beta2-cli/LICENSE.md b/gen/replicapool1_beta2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/replicapool1_beta2-cli/LICENSE.md +++ b/gen/replicapool1_beta2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/replicapool1_beta2-cli/README.md b/gen/replicapool1_beta2-cli/README.md index 4618b5378b..83e87441e8 100644 --- a/gen/replicapool1_beta2-cli/README.md +++ b/gen/replicapool1_beta2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *replicapool* API at revision *20160512*. The CLI is at version *1.0.11*. +This documentation was generated from the *replicapool* API at revision *20160512*. The CLI is at version *1.0.12*. ```bash replicapool1-beta2 [options] diff --git a/gen/replicapool1_beta2-cli/mkdocs.yml b/gen/replicapool1_beta2-cli/mkdocs.yml index e0c67d39b0..c7d7af0ed3 100644 --- a/gen/replicapool1_beta2-cli/mkdocs.yml +++ b/gen/replicapool1_beta2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: replicapool v1.0.11+20160512 +site_name: replicapool v1.0.12+20160512 site_url: http://byron.github.io/google-apis-rs/google-replicapool1_beta2-cli site_description: A complete library to interact with replicapool (protocol v1beta2) @@ -24,5 +24,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/replicapool1_beta2-cli/src/cmn.rs b/gen/replicapool1_beta2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/replicapool1_beta2-cli/src/cmn.rs +++ b/gen/replicapool1_beta2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/replicapool1_beta2-cli/src/main.rs b/gen/replicapool1_beta2-cli/src/main.rs index cd86cffb36..c4ca4e7efa 100644 --- a/gen/replicapool1_beta2-cli/src/main.rs +++ b/gen/replicapool1_beta2-cli/src/main.rs @@ -1490,7 +1490,7 @@ fn main() { let mut app = App::new("replicapool1-beta2") .author("Sebastian Thiel ") - .version("1.0.11+20160512") + .version("1.0.12+20160512") .about("[Deprecated. Please use Instance Group Manager in Compute API] Provides groups of homogenous Compute Engine instances.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_replicapool1_beta2_cli") .arg(Arg::with_name("url") diff --git a/gen/replicapool1_beta2/Cargo.toml b/gen/replicapool1_beta2/Cargo.toml index 059c026f44..ed0127e177 100644 --- a/gen/replicapool1_beta2/Cargo.toml +++ b/gen/replicapool1_beta2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-replicapool1_beta2" -version = "1.0.11+20160512" +version = "1.0.12+20160512" authors = ["Sebastian Thiel "] description = "A complete library to interact with replicapool (protocol v1beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/replicapool1_beta2" homepage = "https://developers.google.com/compute/docs/instance-groups/manager/v1beta2" -documentation = "https://docs.rs/google-replicapool1_beta2/1.0.11+20160512" +documentation = "https://docs.rs/google-replicapool1_beta2/1.0.12+20160512" license = "MIT" keywords = ["replicapool", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/replicapool1_beta2/LICENSE.md b/gen/replicapool1_beta2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/replicapool1_beta2/LICENSE.md +++ b/gen/replicapool1_beta2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/replicapool1_beta2/README.md b/gen/replicapool1_beta2/README.md index 4e470661c3..ceef834fd1 100644 --- a/gen/replicapool1_beta2/README.md +++ b/gen/replicapool1_beta2/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-replicapool1_beta2` library allows access to all features of the *Google replicapool* service. -This documentation was generated from *replicapool* crate version *1.0.11+20160512*, where *20160512* is the exact revision of the *replicapool:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *replicapool* crate version *1.0.12+20160512*, where *20160512* is the exact revision of the *replicapool:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *replicapool* *v1_beta2* API can be found at the [official documentation site](https://developers.google.com/compute/docs/instance-groups/manager/v1beta2). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.Replicapool.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.Replicapool.html) ... -* [instance group managers](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.InstanceGroupManager.html) - * [*abandon instances*](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerAbandonInstanceCall.html), [*delete*](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerDeleteCall.html), [*delete instances*](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerDeleteInstanceCall.html), [*get*](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerGetCall.html), [*insert*](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerInsertCall.html), [*list*](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerListCall.html), [*recreate instances*](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerRecreateInstanceCall.html), [*resize*](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerResizeCall.html), [*set instance template*](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerSetInstanceTemplateCall.html) and [*set target pools*](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerSetTargetPoolCall.html) +* [instance group managers](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.InstanceGroupManager.html) + * [*abandon instances*](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerAbandonInstanceCall.html), [*delete*](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerDeleteCall.html), [*delete instances*](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerDeleteInstanceCall.html), [*get*](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerGetCall.html), [*insert*](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerInsertCall.html), [*list*](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerListCall.html), [*recreate instances*](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerRecreateInstanceCall.html), [*resize*](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerResizeCall.html), [*set instance template*](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerSetInstanceTemplateCall.html) and [*set target pools*](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.InstanceGroupManagerSetTargetPoolCall.html) * zone operations - * [*get*](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.ZoneOperationGetCall.html) and [*list*](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.ZoneOperationListCall.html) + * [*get*](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.ZoneOperationGetCall.html) and [*list*](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.ZoneOperationListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/struct.Replicapool.html)** +* **[Hub](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/struct.Replicapool.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.Part.html)** + * **[Parts](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -138,17 +138,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -158,29 +158,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-replicapool1_beta2/1.0.11+20160512/google_replicapool1_beta2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-replicapool1_beta2/1.0.12+20160512/google_replicapool1_beta2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/replicapool1_beta2/src/lib.rs b/gen/replicapool1_beta2/src/lib.rs index 9937c5014a..1b3efa1ec6 100644 --- a/gen/replicapool1_beta2/src/lib.rs +++ b/gen/replicapool1_beta2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *replicapool* crate version *1.0.11+20160512*, where *20160512* is the exact revision of the *replicapool:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *replicapool* crate version *1.0.12+20160512*, where *20160512* is the exact revision of the *replicapool:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *replicapool* *v1_beta2* API can be found at the //! [official documentation site](https://developers.google.com/compute/docs/instance-groups/manager/v1beta2). @@ -346,7 +346,7 @@ impl<'a, C, A> Replicapool Replicapool { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/replicapool/v1beta2/projects/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -360,7 +360,7 @@ impl<'a, C, A> Replicapool } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/replicapoolupdater1_beta1-cli/Cargo.toml b/gen/replicapoolupdater1_beta1-cli/Cargo.toml index 63a5746e61..f408fe9ce5 100644 --- a/gen/replicapoolupdater1_beta1-cli/Cargo.toml +++ b/gen/replicapoolupdater1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-replicapoolupdater1_beta1-cli" -version = "1.0.11+20161003" +version = "1.0.12+20161003" authors = ["Sebastian Thiel "] description = "A complete library to interact with replicapoolupdater (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/replicapoolupdater1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-replicapoolupdater1_beta1] path = "../replicapoolupdater1_beta1" -version = "1.0.11+20161003" +version = "1.0.12+20161003" diff --git a/gen/replicapoolupdater1_beta1-cli/LICENSE.md b/gen/replicapoolupdater1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/replicapoolupdater1_beta1-cli/LICENSE.md +++ b/gen/replicapoolupdater1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/replicapoolupdater1_beta1-cli/README.md b/gen/replicapoolupdater1_beta1-cli/README.md index 02208eeef5..d4ebff6db5 100644 --- a/gen/replicapoolupdater1_beta1-cli/README.md +++ b/gen/replicapoolupdater1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *replicapoolupdater* API at revision *20161003*. The CLI is at version *1.0.11*. +This documentation was generated from the *replicapoolupdater* API at revision *20161003*. The CLI is at version *1.0.12*. ```bash replicapoolupdater1-beta1 [options] diff --git a/gen/replicapoolupdater1_beta1-cli/mkdocs.yml b/gen/replicapoolupdater1_beta1-cli/mkdocs.yml index 35e5c722a1..d69bae142e 100644 --- a/gen/replicapoolupdater1_beta1-cli/mkdocs.yml +++ b/gen/replicapoolupdater1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: replicapoolupdater v1.0.11+20161003 +site_name: replicapoolupdater v1.0.12+20161003 site_url: http://byron.github.io/google-apis-rs/google-replicapoolupdater1_beta1-cli site_description: A complete library to interact with replicapoolupdater (protocol v1beta1) @@ -22,5 +22,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/replicapoolupdater1_beta1-cli/src/cmn.rs b/gen/replicapoolupdater1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/replicapoolupdater1_beta1-cli/src/cmn.rs +++ b/gen/replicapoolupdater1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/replicapoolupdater1_beta1-cli/src/main.rs b/gen/replicapoolupdater1_beta1-cli/src/main.rs index f6b20a6a82..c44f7ed83f 100644 --- a/gen/replicapoolupdater1_beta1-cli/src/main.rs +++ b/gen/replicapoolupdater1_beta1-cli/src/main.rs @@ -1118,7 +1118,7 @@ fn main() { let mut app = App::new("replicapoolupdater1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20161003") + .version("1.0.12+20161003") .about("[Deprecated. Please use compute.instanceGroupManagers.update method. replicapoolupdater API will be disabled after December 30th, 2016] Updates groups of Compute Engine instances.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_replicapoolupdater1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/replicapoolupdater1_beta1/Cargo.toml b/gen/replicapoolupdater1_beta1/Cargo.toml index 4a615e75e4..dbf1c7806a 100644 --- a/gen/replicapoolupdater1_beta1/Cargo.toml +++ b/gen/replicapoolupdater1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-replicapoolupdater1_beta1" -version = "1.0.11+20161003" +version = "1.0.12+20161003" authors = ["Sebastian Thiel "] description = "A complete library to interact with replicapoolupdater (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/replicapoolupdater1_beta1" homepage = "https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service" -documentation = "https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003" +documentation = "https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003" license = "MIT" keywords = ["replicapoolupdater", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/replicapoolupdater1_beta1/LICENSE.md b/gen/replicapoolupdater1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/replicapoolupdater1_beta1/LICENSE.md +++ b/gen/replicapoolupdater1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/replicapoolupdater1_beta1/README.md b/gen/replicapoolupdater1_beta1/README.md index 0acfe1d6ad..4add7a616c 100644 --- a/gen/replicapoolupdater1_beta1/README.md +++ b/gen/replicapoolupdater1_beta1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-replicapoolupdater1_beta1` library allows access to all features of the *Google replicapoolupdater* service. -This documentation was generated from *replicapoolupdater* crate version *1.0.11+20161003*, where *20161003* is the exact revision of the *replicapoolupdater:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *replicapoolupdater* crate version *1.0.12+20161003*, where *20161003* is the exact revision of the *replicapoolupdater:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *replicapoolupdater* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/struct.Replicapoolupdater.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/struct.Replicapoolupdater.html) ... -* [rolling updates](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdate.html) - * [*cancel*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdateCancelCall.html), [*get*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdateGetCall.html), [*insert*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdateInsertCall.html), [*list*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdateListCall.html), [*list instance updates*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdateListInstanceUpdateCall.html), [*pause*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdatePauseCall.html), [*resume*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdateResumeCall.html) and [*rollback*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdateRollbackCall.html) +* [rolling updates](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdate.html) + * [*cancel*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdateCancelCall.html), [*get*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdateGetCall.html), [*insert*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdateInsertCall.html), [*list*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdateListCall.html), [*list instance updates*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdateListInstanceUpdateCall.html), [*pause*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdatePauseCall.html), [*resume*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdateResumeCall.html) and [*rollback*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/struct.RollingUpdateRollbackCall.html) * zone operations - * [*get*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/struct.ZoneOperationGetCall.html) and [*list*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/struct.ZoneOperationListCall.html) + * [*get*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/struct.ZoneOperationGetCall.html) and [*list*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/struct.ZoneOperationListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/struct.Replicapoolupdater.html)** +* **[Hub](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/struct.Replicapoolupdater.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-replicapoolupdater1_beta1/1.0.11+20161003/google_replicapoolupdater1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-replicapoolupdater1_beta1/1.0.12+20161003/google_replicapoolupdater1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/replicapoolupdater1_beta1/src/lib.rs b/gen/replicapoolupdater1_beta1/src/lib.rs index 84c0845b6a..96a3449bba 100644 --- a/gen/replicapoolupdater1_beta1/src/lib.rs +++ b/gen/replicapoolupdater1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *replicapoolupdater* crate version *1.0.11+20161003*, where *20161003* is the exact revision of the *replicapoolupdater:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *replicapoolupdater* crate version *1.0.12+20161003*, where *20161003* is the exact revision of the *replicapoolupdater:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *replicapoolupdater* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service). @@ -344,7 +344,7 @@ impl<'a, C, A> Replicapoolupdater Replicapoolupdater { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/replicapoolupdater/v1beta1/projects/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -358,7 +358,7 @@ impl<'a, C, A> Replicapoolupdater } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/reseller1_sandbox-cli/Cargo.toml b/gen/reseller1_sandbox-cli/Cargo.toml index 14576e391a..135a924993 100644 --- a/gen/reseller1_sandbox-cli/Cargo.toml +++ b/gen/reseller1_sandbox-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-reseller1_sandbox-cli" -version = "1.0.11+20160329" +version = "1.0.12+20160329" authors = ["Sebastian Thiel "] description = "A complete library to interact with reseller (protocol v1sandbox)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/reseller1_sandbox-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-reseller1_sandbox] path = "../reseller1_sandbox" -version = "1.0.11+20160329" +version = "1.0.12+20160329" diff --git a/gen/reseller1_sandbox-cli/LICENSE.md b/gen/reseller1_sandbox-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/reseller1_sandbox-cli/LICENSE.md +++ b/gen/reseller1_sandbox-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/reseller1_sandbox-cli/README.md b/gen/reseller1_sandbox-cli/README.md index 2e252513b2..23787ff559 100644 --- a/gen/reseller1_sandbox-cli/README.md +++ b/gen/reseller1_sandbox-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *reseller* API at revision *20160329*. The CLI is at version *1.0.11*. +This documentation was generated from the *reseller* API at revision *20160329*. The CLI is at version *1.0.12*. ```bash reseller1-sandbox [options] diff --git a/gen/reseller1_sandbox-cli/mkdocs.yml b/gen/reseller1_sandbox-cli/mkdocs.yml index 35d6ecc61d..c307c39627 100644 --- a/gen/reseller1_sandbox-cli/mkdocs.yml +++ b/gen/reseller1_sandbox-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: reseller v1.0.11+20160329 +site_name: reseller v1.0.12+20160329 site_url: http://byron.github.io/google-apis-rs/google-reseller1_sandbox-cli site_description: A complete library to interact with reseller (protocol v1sandbox) @@ -26,5 +26,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/reseller1_sandbox-cli/src/cmn.rs b/gen/reseller1_sandbox-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/reseller1_sandbox-cli/src/cmn.rs +++ b/gen/reseller1_sandbox-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/reseller1_sandbox-cli/src/main.rs b/gen/reseller1_sandbox-cli/src/main.rs index b1d7941410..5668a6b6d2 100644 --- a/gen/reseller1_sandbox-cli/src/main.rs +++ b/gen/reseller1_sandbox-cli/src/main.rs @@ -1646,7 +1646,7 @@ fn main() { let mut app = App::new("reseller1-sandbox") .author("Sebastian Thiel ") - .version("1.0.11+20160329") + .version("1.0.12+20160329") .about("Creates and manages your customers and their subscriptions.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_reseller1_sandbox_cli") .arg(Arg::with_name("url") diff --git a/gen/reseller1_sandbox/Cargo.toml b/gen/reseller1_sandbox/Cargo.toml index 20c7d4e2e3..94b2821d05 100644 --- a/gen/reseller1_sandbox/Cargo.toml +++ b/gen/reseller1_sandbox/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-reseller1_sandbox" -version = "1.0.11+20160329" +version = "1.0.12+20160329" authors = ["Sebastian Thiel "] description = "A complete library to interact with reseller (protocol v1sandbox)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/reseller1_sandbox" homepage = "https://developers.google.com/google-apps/reseller/" -documentation = "https://docs.rs/google-reseller1_sandbox/1.0.11+20160329" +documentation = "https://docs.rs/google-reseller1_sandbox/1.0.12+20160329" license = "MIT" keywords = ["reseller", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/reseller1_sandbox/LICENSE.md b/gen/reseller1_sandbox/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/reseller1_sandbox/LICENSE.md +++ b/gen/reseller1_sandbox/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/reseller1_sandbox/README.md b/gen/reseller1_sandbox/README.md index bc4a2b47ce..46da64774a 100644 --- a/gen/reseller1_sandbox/README.md +++ b/gen/reseller1_sandbox/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-reseller1_sandbox` library allows access to all features of the *Google reseller* service. -This documentation was generated from *reseller* crate version *1.0.11+20160329*, where *20160329* is the exact revision of the *reseller:v1sandbox* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *reseller* crate version *1.0.12+20160329*, where *20160329* is the exact revision of the *reseller:v1sandbox* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *reseller* *v1_sandbox* API can be found at the [official documentation site](https://developers.google.com/google-apps/reseller/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.Reseller.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.Reseller.html) ... -* [customers](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.Customer.html) - * [*get*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.CustomerGetCall.html), [*insert*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.CustomerInsertCall.html), [*patch*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.CustomerPatchCall.html) and [*update*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.CustomerUpdateCall.html) -* [subscriptions](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.Subscription.html) - * [*activate*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.SubscriptionActivateCall.html), [*change plan*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.SubscriptionChangePlanCall.html), [*change renewal settings*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.SubscriptionChangeRenewalSettingCall.html), [*change seats*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.SubscriptionChangeSeatCall.html), [*delete*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.SubscriptionDeleteCall.html), [*get*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.SubscriptionGetCall.html), [*insert*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.SubscriptionInsertCall.html), [*list*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.SubscriptionListCall.html), [*start paid service*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.SubscriptionStartPaidServiceCall.html) and [*suspend*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.SubscriptionSuspendCall.html) +* [customers](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.Customer.html) + * [*get*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.CustomerGetCall.html), [*insert*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.CustomerInsertCall.html), [*patch*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.CustomerPatchCall.html) and [*update*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.CustomerUpdateCall.html) +* [subscriptions](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.Subscription.html) + * [*activate*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.SubscriptionActivateCall.html), [*change plan*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.SubscriptionChangePlanCall.html), [*change renewal settings*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.SubscriptionChangeRenewalSettingCall.html), [*change seats*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.SubscriptionChangeSeatCall.html), [*delete*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.SubscriptionDeleteCall.html), [*get*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.SubscriptionGetCall.html), [*insert*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.SubscriptionInsertCall.html), [*list*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.SubscriptionListCall.html), [*start paid service*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.SubscriptionStartPaidServiceCall.html) and [*suspend*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.SubscriptionSuspendCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/struct.Reseller.html)** +* **[Hub](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/struct.Reseller.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.Part.html)** + * **[Parts](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -140,17 +140,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -160,29 +160,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.RequestValue.html) and -[decodable](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.RequestValue.html) and +[decodable](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-reseller1_sandbox/1.0.11+20160329/google_reseller1_sandbox/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-reseller1_sandbox/1.0.12+20160329/google_reseller1_sandbox/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/reseller1_sandbox/src/lib.rs b/gen/reseller1_sandbox/src/lib.rs index 676a9176ab..74a69bb67d 100644 --- a/gen/reseller1_sandbox/src/lib.rs +++ b/gen/reseller1_sandbox/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *reseller* crate version *1.0.11+20160329*, where *20160329* is the exact revision of the *reseller:v1sandbox* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *reseller* crate version *1.0.12+20160329*, where *20160329* is the exact revision of the *reseller:v1sandbox* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *reseller* *v1_sandbox* API can be found at the //! [official documentation site](https://developers.google.com/google-apps/reseller/). @@ -342,7 +342,7 @@ impl<'a, C, A> Reseller Reseller { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/apps/reseller/v1sandbox/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -356,7 +356,7 @@ impl<'a, C, A> Reseller } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/resourceviews1_beta2-cli/Cargo.toml b/gen/resourceviews1_beta2-cli/Cargo.toml index 636d19fc3f..db1a9105e7 100644 --- a/gen/resourceviews1_beta2-cli/Cargo.toml +++ b/gen/resourceviews1_beta2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-resourceviews1_beta2-cli" -version = "1.0.11+20160512" +version = "1.0.12+20160512" authors = ["Sebastian Thiel "] description = "A complete library to interact with resourceviews (protocol v1beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/resourceviews1_beta2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-resourceviews1_beta2] path = "../resourceviews1_beta2" -version = "1.0.11+20160512" +version = "1.0.12+20160512" diff --git a/gen/resourceviews1_beta2-cli/LICENSE.md b/gen/resourceviews1_beta2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/resourceviews1_beta2-cli/LICENSE.md +++ b/gen/resourceviews1_beta2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/resourceviews1_beta2-cli/README.md b/gen/resourceviews1_beta2-cli/README.md index 8c52219a44..fb77bcff49 100644 --- a/gen/resourceviews1_beta2-cli/README.md +++ b/gen/resourceviews1_beta2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *resourceviews* API at revision *20160512*. The CLI is at version *1.0.11*. +This documentation was generated from the *resourceviews* API at revision *20160512*. The CLI is at version *1.0.12*. ```bash resourceviews1-beta2 [options] diff --git a/gen/resourceviews1_beta2-cli/mkdocs.yml b/gen/resourceviews1_beta2-cli/mkdocs.yml index d170ee63a8..9c88e5b826 100644 --- a/gen/resourceviews1_beta2-cli/mkdocs.yml +++ b/gen/resourceviews1_beta2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: resourceviews v1.0.11+20160512 +site_name: resourceviews v1.0.12+20160512 site_url: http://byron.github.io/google-apis-rs/google-resourceviews1_beta2-cli site_description: A complete library to interact with resourceviews (protocol v1beta2) @@ -23,5 +23,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/resourceviews1_beta2-cli/src/cmn.rs b/gen/resourceviews1_beta2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/resourceviews1_beta2-cli/src/cmn.rs +++ b/gen/resourceviews1_beta2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/resourceviews1_beta2-cli/src/main.rs b/gen/resourceviews1_beta2-cli/src/main.rs index 1353590371..123a7a3821 100644 --- a/gen/resourceviews1_beta2-cli/src/main.rs +++ b/gen/resourceviews1_beta2-cli/src/main.rs @@ -1323,7 +1323,7 @@ fn main() { let mut app = App::new("resourceviews1-beta2") .author("Sebastian Thiel ") - .version("1.0.11+20160512") + .version("1.0.12+20160512") .about("The Resource View API allows users to create and manage logical sets of Google Compute Engine instances.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_resourceviews1_beta2_cli") .arg(Arg::with_name("url") diff --git a/gen/resourceviews1_beta2/Cargo.toml b/gen/resourceviews1_beta2/Cargo.toml index 0a453ff667..4187684835 100644 --- a/gen/resourceviews1_beta2/Cargo.toml +++ b/gen/resourceviews1_beta2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-resourceviews1_beta2" -version = "1.0.11+20160512" +version = "1.0.12+20160512" authors = ["Sebastian Thiel "] description = "A complete library to interact with resourceviews (protocol v1beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/resourceviews1_beta2" homepage = "https://developers.google.com/compute/" -documentation = "https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512" +documentation = "https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512" license = "MIT" keywords = ["resourceviews", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/resourceviews1_beta2/LICENSE.md b/gen/resourceviews1_beta2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/resourceviews1_beta2/LICENSE.md +++ b/gen/resourceviews1_beta2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/resourceviews1_beta2/README.md b/gen/resourceviews1_beta2/README.md index 6606ebe9a9..42b09469d9 100644 --- a/gen/resourceviews1_beta2/README.md +++ b/gen/resourceviews1_beta2/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-resourceviews1_beta2` library allows access to all features of the *Google resourceviews* service. -This documentation was generated from *resourceviews* crate version *1.0.11+20160512*, where *20160512* is the exact revision of the *resourceviews:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *resourceviews* crate version *1.0.12+20160512*, where *20160512* is the exact revision of the *resourceviews:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *resourceviews* *v1_beta2* API can be found at the [official documentation site](https://developers.google.com/compute/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/struct.Resourceviews.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/struct.Resourceviews.html) ... * zone operations - * [*get*](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/struct.ZoneOperationGetCall.html) and [*list*](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/struct.ZoneOperationListCall.html) + * [*get*](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/struct.ZoneOperationGetCall.html) and [*list*](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/struct.ZoneOperationListCall.html) * zone views - * [*add resources*](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/struct.ZoneViewAddResourceCall.html), [*delete*](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/struct.ZoneViewDeleteCall.html), [*get*](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/struct.ZoneViewGetCall.html), [*get service*](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/struct.ZoneViewGetServiceCall.html), [*insert*](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/struct.ZoneViewInsertCall.html), [*list*](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/struct.ZoneViewListCall.html), [*list resources*](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/struct.ZoneViewListResourceCall.html), [*remove resources*](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/struct.ZoneViewRemoveResourceCall.html) and [*set service*](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/struct.ZoneViewSetServiceCall.html) + * [*add resources*](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/struct.ZoneViewAddResourceCall.html), [*delete*](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/struct.ZoneViewDeleteCall.html), [*get*](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/struct.ZoneViewGetCall.html), [*get service*](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/struct.ZoneViewGetServiceCall.html), [*insert*](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/struct.ZoneViewInsertCall.html), [*list*](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/struct.ZoneViewListCall.html), [*list resources*](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/struct.ZoneViewListResourceCall.html), [*remove resources*](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/struct.ZoneViewRemoveResourceCall.html) and [*set service*](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/struct.ZoneViewSetServiceCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/struct.Resourceviews.html)** +* **[Hub](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/struct.Resourceviews.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.Part.html)** + * **[Parts](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -137,17 +137,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -157,29 +157,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-resourceviews1_beta2/1.0.11+20160512/google_resourceviews1_beta2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-resourceviews1_beta2/1.0.12+20160512/google_resourceviews1_beta2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/resourceviews1_beta2/src/lib.rs b/gen/resourceviews1_beta2/src/lib.rs index 4b86fce813..4333116960 100644 --- a/gen/resourceviews1_beta2/src/lib.rs +++ b/gen/resourceviews1_beta2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *resourceviews* crate version *1.0.11+20160512*, where *20160512* is the exact revision of the *resourceviews:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *resourceviews* crate version *1.0.12+20160512*, where *20160512* is the exact revision of the *resourceviews:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *resourceviews* *v1_beta2* API can be found at the //! [official documentation site](https://developers.google.com/compute/). @@ -356,7 +356,7 @@ impl<'a, C, A> Resourceviews Resourceviews { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/resourceviews/v1beta2/projects/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -370,7 +370,7 @@ impl<'a, C, A> Resourceviews } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/run1-cli/Cargo.toml b/gen/run1-cli/Cargo.toml index 5fa9faacb9..a1382512ad 100644 --- a/gen/run1-cli/Cargo.toml +++ b/gen/run1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-run1-cli" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Run (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/run1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-run1] path = "../run1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" diff --git a/gen/run1-cli/LICENSE.md b/gen/run1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/run1-cli/LICENSE.md +++ b/gen/run1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/run1-cli/README.md b/gen/run1-cli/README.md index b7b11d0f71..d722364c4f 100644 --- a/gen/run1-cli/README.md +++ b/gen/run1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Run* API at revision *20190624*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Run* API at revision *20190624*. The CLI is at version *1.0.12*. ```bash run1 [options] diff --git a/gen/run1-cli/mkdocs.yml b/gen/run1-cli/mkdocs.yml index 29bda069cd..d30d6dc08e 100644 --- a/gen/run1-cli/mkdocs.yml +++ b/gen/run1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Run v1.0.11+20190624 +site_name: Cloud Run v1.0.12+20190624 site_url: http://byron.github.io/google-apis-rs/google-run1-cli site_description: A complete library to interact with Cloud Run (protocol v1) @@ -13,5 +13,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/run1-cli/src/cmn.rs b/gen/run1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/run1-cli/src/cmn.rs +++ b/gen/run1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/run1-cli/src/main.rs b/gen/run1-cli/src/main.rs index dcf8f1cea1..77852963fc 100644 --- a/gen/run1-cli/src/main.rs +++ b/gen/run1-cli/src/main.rs @@ -228,7 +228,7 @@ fn main() { let mut app = App::new("run1") .author("Sebastian Thiel ") - .version("1.0.11+20190624") + .version("1.0.12+20190624") .about("Deploy and manage user provided container images that scale automatically based on HTTP traffic.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_run1_cli") .arg(Arg::with_name("url") diff --git a/gen/run1/Cargo.toml b/gen/run1/Cargo.toml index 2fa3dfe8ed..c8cad33e5f 100644 --- a/gen/run1/Cargo.toml +++ b/gen/run1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-run1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Run (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/run1" homepage = "https://cloud.google.com/run/" -documentation = "https://docs.rs/google-run1/1.0.11+20190624" +documentation = "https://docs.rs/google-run1/1.0.12+20190624" license = "MIT" keywords = ["run", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/run1/LICENSE.md b/gen/run1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/run1/LICENSE.md +++ b/gen/run1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/run1/README.md b/gen/run1/README.md index 5101a4cff3..83b6bf6b1c 100644 --- a/gen/run1/README.md +++ b/gen/run1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-run1` library allows access to all features of the *Google Cloud Run* service. -This documentation was generated from *Cloud Run* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *run:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Run* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *run:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Run* *v1* API can be found at the [official documentation site](https://cloud.google.com/run/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-run1/1.0.11+20190624/google_run1/struct.CloudRun.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-run1/1.0.12+20190624/google_run1/struct.CloudRun.html) ... * projects - * [*locations get*](https://docs.rs/google-run1/1.0.11+20190624/google_run1/struct.ProjectLocationGetCall.html) + * [*locations get*](https://docs.rs/google-run1/1.0.12+20190624/google_run1/struct.ProjectLocationGetCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-run1/1.0.11+20190624/google_run1/struct.CloudRun.html)** +* **[Hub](https://docs.rs/google-run1/1.0.12+20190624/google_run1/struct.CloudRun.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.Part.html)** + * **[Parts](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -124,17 +124,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-run1/1.0.11+20190624/google_run1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-run1/1.0.12+20190624/google_run1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-run1/1.0.11+20190624/google_run1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-run1/1.0.12+20190624/google_run1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -144,29 +144,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-run1/1.0.11+20190624/google_run1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-run1/1.0.12+20190624/google_run1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/run1/src/lib.rs b/gen/run1/src/lib.rs index 5c830b50d7..eb309b98ee 100644 --- a/gen/run1/src/lib.rs +++ b/gen/run1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Run* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *run:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Run* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *run:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Run* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/run/). @@ -317,7 +317,7 @@ impl<'a, C, A> CloudRun CloudRun { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://run.googleapis.com/".to_string(), _root_url: "https://run.googleapis.com/".to_string(), } @@ -328,7 +328,7 @@ impl<'a, C, A> CloudRun } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/runtimeconfig1-cli/Cargo.toml b/gen/runtimeconfig1-cli/Cargo.toml index fee62cfa8d..d9390901e9 100644 --- a/gen/runtimeconfig1-cli/Cargo.toml +++ b/gen/runtimeconfig1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-runtimeconfig1-cli" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud RuntimeConfig (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/runtimeconfig1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-runtimeconfig1] path = "../runtimeconfig1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" diff --git a/gen/runtimeconfig1-cli/LICENSE.md b/gen/runtimeconfig1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/runtimeconfig1-cli/LICENSE.md +++ b/gen/runtimeconfig1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/runtimeconfig1-cli/README.md b/gen/runtimeconfig1-cli/README.md index a28ae8eb8a..2f7d652552 100644 --- a/gen/runtimeconfig1-cli/README.md +++ b/gen/runtimeconfig1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud RuntimeConfig* API at revision *20190624*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud RuntimeConfig* API at revision *20190624*. The CLI is at version *1.0.12*. ```bash runtimeconfig1 [options] diff --git a/gen/runtimeconfig1-cli/mkdocs.yml b/gen/runtimeconfig1-cli/mkdocs.yml index b3f315f520..e4657bc60c 100644 --- a/gen/runtimeconfig1-cli/mkdocs.yml +++ b/gen/runtimeconfig1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud RuntimeConfig v1.0.11+20190624 +site_name: Cloud RuntimeConfig v1.0.12+20190624 site_url: http://byron.github.io/google-apis-rs/google-runtimeconfig1-cli site_description: A complete library to interact with Cloud RuntimeConfig (protocol v1) @@ -15,5 +15,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/runtimeconfig1-cli/src/cmn.rs b/gen/runtimeconfig1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/runtimeconfig1-cli/src/cmn.rs +++ b/gen/runtimeconfig1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/runtimeconfig1-cli/src/main.rs b/gen/runtimeconfig1-cli/src/main.rs index 5b1706087a..12b11026bd 100644 --- a/gen/runtimeconfig1-cli/src/main.rs +++ b/gen/runtimeconfig1-cli/src/main.rs @@ -451,7 +451,7 @@ fn main() { let mut app = App::new("runtimeconfig1") .author("Sebastian Thiel ") - .version("1.0.11+20190624") + .version("1.0.12+20190624") .about("The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_runtimeconfig1_cli") .arg(Arg::with_name("url") diff --git a/gen/runtimeconfig1/Cargo.toml b/gen/runtimeconfig1/Cargo.toml index 3b48a1a8e8..3b68053686 100644 --- a/gen/runtimeconfig1/Cargo.toml +++ b/gen/runtimeconfig1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-runtimeconfig1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud RuntimeConfig (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/runtimeconfig1" homepage = "https://cloud.google.com/deployment-manager/runtime-configurator/" -documentation = "https://docs.rs/google-runtimeconfig1/1.0.11+20190624" +documentation = "https://docs.rs/google-runtimeconfig1/1.0.12+20190624" license = "MIT" keywords = ["runtimeconfig", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/runtimeconfig1/LICENSE.md b/gen/runtimeconfig1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/runtimeconfig1/LICENSE.md +++ b/gen/runtimeconfig1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/runtimeconfig1/README.md b/gen/runtimeconfig1/README.md index d09087566e..c6d628b2d7 100644 --- a/gen/runtimeconfig1/README.md +++ b/gen/runtimeconfig1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-runtimeconfig1` library allows access to all features of the *Google Cloud RuntimeConfig* service. -This documentation was generated from *Cloud RuntimeConfig* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *runtimeconfig:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud RuntimeConfig* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *runtimeconfig:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud RuntimeConfig* *v1* API can be found at the [official documentation site](https://cloud.google.com/deployment-manager/runtime-configurator/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/struct.CloudRuntimeConfig.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/struct.CloudRuntimeConfig.html) ... -* [operations](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/struct.Operation.html) - * [*cancel*](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/struct.OperationDeleteCall.html) and [*list*](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/struct.OperationListCall.html) +* [operations](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/struct.Operation.html) + * [*cancel*](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/struct.OperationDeleteCall.html) and [*list*](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/struct.OperationListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/struct.CloudRuntimeConfig.html)** +* **[Hub](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/struct.CloudRuntimeConfig.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.Part.html)** + * **[Parts](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -129,17 +129,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -149,29 +149,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-runtimeconfig1/1.0.11+20190624/google_runtimeconfig1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-runtimeconfig1/1.0.12+20190624/google_runtimeconfig1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/runtimeconfig1/src/lib.rs b/gen/runtimeconfig1/src/lib.rs index 96c723b3c1..e434ac764e 100644 --- a/gen/runtimeconfig1/src/lib.rs +++ b/gen/runtimeconfig1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud RuntimeConfig* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *runtimeconfig:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud RuntimeConfig* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *runtimeconfig:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud RuntimeConfig* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/deployment-manager/runtime-configurator/). @@ -329,7 +329,7 @@ impl<'a, C, A> CloudRuntimeConfig CloudRuntimeConfig { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://runtimeconfig.googleapis.com/".to_string(), _root_url: "https://runtimeconfig.googleapis.com/".to_string(), } @@ -340,7 +340,7 @@ impl<'a, C, A> CloudRuntimeConfig } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/runtimeconfig1_beta1-cli/Cargo.toml b/gen/runtimeconfig1_beta1-cli/Cargo.toml index a1602efd59..0e95fa9ee6 100644 --- a/gen/runtimeconfig1_beta1-cli/Cargo.toml +++ b/gen/runtimeconfig1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-runtimeconfig1_beta1-cli" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud RuntimeConfig (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/runtimeconfig1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-runtimeconfig1_beta1] path = "../runtimeconfig1_beta1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" diff --git a/gen/runtimeconfig1_beta1-cli/LICENSE.md b/gen/runtimeconfig1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/runtimeconfig1_beta1-cli/LICENSE.md +++ b/gen/runtimeconfig1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/runtimeconfig1_beta1-cli/README.md b/gen/runtimeconfig1_beta1-cli/README.md index c56e380f56..6b63d6736b 100644 --- a/gen/runtimeconfig1_beta1-cli/README.md +++ b/gen/runtimeconfig1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud RuntimeConfig* API at revision *20190624*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud RuntimeConfig* API at revision *20190624*. The CLI is at version *1.0.12*. ```bash runtimeconfig1-beta1 [options] diff --git a/gen/runtimeconfig1_beta1-cli/mkdocs.yml b/gen/runtimeconfig1_beta1-cli/mkdocs.yml index afd1d5e585..831c4f742c 100644 --- a/gen/runtimeconfig1_beta1-cli/mkdocs.yml +++ b/gen/runtimeconfig1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud RuntimeConfig v1.0.11+20190624 +site_name: Cloud RuntimeConfig v1.0.12+20190624 site_url: http://byron.github.io/google-apis-rs/google-runtimeconfig1_beta1-cli site_description: A complete library to interact with Cloud RuntimeConfig (protocol v1beta1) @@ -34,5 +34,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/runtimeconfig1_beta1-cli/src/cmn.rs b/gen/runtimeconfig1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/runtimeconfig1_beta1-cli/src/cmn.rs +++ b/gen/runtimeconfig1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/runtimeconfig1_beta1-cli/src/main.rs b/gen/runtimeconfig1_beta1-cli/src/main.rs index cc43340d05..da40d6ea16 100644 --- a/gen/runtimeconfig1_beta1-cli/src/main.rs +++ b/gen/runtimeconfig1_beta1-cli/src/main.rs @@ -2441,7 +2441,7 @@ fn main() { let mut app = App::new("runtimeconfig1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20190624") + .version("1.0.12+20190624") .about("The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_runtimeconfig1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/runtimeconfig1_beta1/Cargo.toml b/gen/runtimeconfig1_beta1/Cargo.toml index dbf66b1329..6513715234 100644 --- a/gen/runtimeconfig1_beta1/Cargo.toml +++ b/gen/runtimeconfig1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-runtimeconfig1_beta1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud RuntimeConfig (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/runtimeconfig1_beta1" homepage = "https://cloud.google.com/deployment-manager/runtime-configurator/" -documentation = "https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624" +documentation = "https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624" license = "MIT" keywords = ["runtimeconfig", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/runtimeconfig1_beta1/LICENSE.md b/gen/runtimeconfig1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/runtimeconfig1_beta1/LICENSE.md +++ b/gen/runtimeconfig1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/runtimeconfig1_beta1/README.md b/gen/runtimeconfig1_beta1/README.md index 64110d18a5..c16e14a42a 100644 --- a/gen/runtimeconfig1_beta1/README.md +++ b/gen/runtimeconfig1_beta1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-runtimeconfig1_beta1` library allows access to all features of the *Google Cloud RuntimeConfig* service. -This documentation was generated from *Cloud RuntimeConfig* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *runtimeconfig:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud RuntimeConfig* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *runtimeconfig:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud RuntimeConfig* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/deployment-manager/runtime-configurator/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.CloudRuntimeConfig.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.CloudRuntimeConfig.html) ... * projects - * [*configs create*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigCreateCall.html), [*configs delete*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigDeleteCall.html), [*configs get*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigGetCall.html), [*configs get iam policy*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigGetIamPolicyCall.html), [*configs list*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigListCall.html), [*configs operations get*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigOperationGetCall.html), [*configs operations test iam permissions*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigOperationTestIamPermissionCall.html), [*configs set iam policy*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigSetIamPolicyCall.html), [*configs test iam permissions*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigTestIamPermissionCall.html), [*configs update*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigUpdateCall.html), [*configs variables create*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigVariableCreateCall.html), [*configs variables delete*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigVariableDeleteCall.html), [*configs variables get*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigVariableGetCall.html), [*configs variables list*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigVariableListCall.html), [*configs variables test iam permissions*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigVariableTestIamPermissionCall.html), [*configs variables update*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigVariableUpdateCall.html), [*configs variables watch*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigVariableWatchCall.html), [*configs waiters create*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigWaiterCreateCall.html), [*configs waiters delete*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigWaiterDeleteCall.html), [*configs waiters get*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigWaiterGetCall.html), [*configs waiters list*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigWaiterListCall.html) and [*configs waiters test iam permissions*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigWaiterTestIamPermissionCall.html) + * [*configs create*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigCreateCall.html), [*configs delete*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigDeleteCall.html), [*configs get*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigGetCall.html), [*configs get iam policy*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigGetIamPolicyCall.html), [*configs list*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigListCall.html), [*configs operations get*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigOperationGetCall.html), [*configs operations test iam permissions*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigOperationTestIamPermissionCall.html), [*configs set iam policy*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigSetIamPolicyCall.html), [*configs test iam permissions*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigTestIamPermissionCall.html), [*configs update*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigUpdateCall.html), [*configs variables create*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigVariableCreateCall.html), [*configs variables delete*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigVariableDeleteCall.html), [*configs variables get*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigVariableGetCall.html), [*configs variables list*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigVariableListCall.html), [*configs variables test iam permissions*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigVariableTestIamPermissionCall.html), [*configs variables update*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigVariableUpdateCall.html), [*configs variables watch*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigVariableWatchCall.html), [*configs waiters create*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigWaiterCreateCall.html), [*configs waiters delete*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigWaiterDeleteCall.html), [*configs waiters get*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigWaiterGetCall.html), [*configs waiters list*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigWaiterListCall.html) and [*configs waiters test iam permissions*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.ProjectConfigWaiterTestIamPermissionCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/struct.CloudRuntimeConfig.html)** +* **[Hub](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/struct.CloudRuntimeConfig.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -134,17 +134,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -154,29 +154,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-runtimeconfig1_beta1/1.0.11+20190624/google_runtimeconfig1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-runtimeconfig1_beta1/1.0.12+20190624/google_runtimeconfig1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/runtimeconfig1_beta1/src/lib.rs b/gen/runtimeconfig1_beta1/src/lib.rs index ec26ef2591..a90165ca5b 100644 --- a/gen/runtimeconfig1_beta1/src/lib.rs +++ b/gen/runtimeconfig1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud RuntimeConfig* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *runtimeconfig:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud RuntimeConfig* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *runtimeconfig:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud RuntimeConfig* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/deployment-manager/runtime-configurator/). @@ -338,7 +338,7 @@ impl<'a, C, A> CloudRuntimeConfig CloudRuntimeConfig { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://runtimeconfig.googleapis.com/".to_string(), _root_url: "https://runtimeconfig.googleapis.com/".to_string(), } @@ -349,7 +349,7 @@ impl<'a, C, A> CloudRuntimeConfig } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/safebrowsing4-cli/Cargo.toml b/gen/safebrowsing4-cli/Cargo.toml index 5a3b8a3804..153f77f0df 100644 --- a/gen/safebrowsing4-cli/Cargo.toml +++ b/gen/safebrowsing4-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-safebrowsing4-cli" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with safebrowsing (protocol v4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/safebrowsing4-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-safebrowsing4] path = "../safebrowsing4" -version = "1.0.11+20190702" +version = "1.0.12+20190702" diff --git a/gen/safebrowsing4-cli/LICENSE.md b/gen/safebrowsing4-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/safebrowsing4-cli/LICENSE.md +++ b/gen/safebrowsing4-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/safebrowsing4-cli/README.md b/gen/safebrowsing4-cli/README.md index 019c416ac8..ba5aabb915 100644 --- a/gen/safebrowsing4-cli/README.md +++ b/gen/safebrowsing4-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *safebrowsing* API at revision *20190702*. The CLI is at version *1.0.11*. +This documentation was generated from the *safebrowsing* API at revision *20190702*. The CLI is at version *1.0.12*. ```bash safebrowsing4 [options] diff --git a/gen/safebrowsing4-cli/mkdocs.yml b/gen/safebrowsing4-cli/mkdocs.yml index ff0d26d17d..65fd778b05 100644 --- a/gen/safebrowsing4-cli/mkdocs.yml +++ b/gen/safebrowsing4-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: safebrowsing v1.0.11+20190702 +site_name: safebrowsing v1.0.12+20190702 site_url: http://byron.github.io/google-apis-rs/google-safebrowsing4-cli site_description: A complete library to interact with safebrowsing (protocol v4) @@ -19,5 +19,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/safebrowsing4-cli/src/cmn.rs b/gen/safebrowsing4-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/safebrowsing4-cli/src/cmn.rs +++ b/gen/safebrowsing4-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/safebrowsing4-cli/src/main.rs b/gen/safebrowsing4-cli/src/main.rs index 4008076900..6c5df6cdac 100644 --- a/gen/safebrowsing4-cli/src/main.rs +++ b/gen/safebrowsing4-cli/src/main.rs @@ -897,7 +897,7 @@ fn main() { let mut app = App::new("safebrowsing4") .author("Sebastian Thiel ") - .version("1.0.11+20190702") + .version("1.0.12+20190702") .about("Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_safebrowsing4_cli") .arg(Arg::with_name("folder") diff --git a/gen/safebrowsing4/Cargo.toml b/gen/safebrowsing4/Cargo.toml index c35ac186f7..c892028723 100644 --- a/gen/safebrowsing4/Cargo.toml +++ b/gen/safebrowsing4/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-safebrowsing4" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with safebrowsing (protocol v4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/safebrowsing4" homepage = "https://developers.google.com/safe-browsing/" -documentation = "https://docs.rs/google-safebrowsing4/1.0.11+20190702" +documentation = "https://docs.rs/google-safebrowsing4/1.0.12+20190702" license = "MIT" keywords = ["safebrowsing", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/safebrowsing4/LICENSE.md b/gen/safebrowsing4/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/safebrowsing4/LICENSE.md +++ b/gen/safebrowsing4/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/safebrowsing4/README.md b/gen/safebrowsing4/README.md index 2ca916b48a..253e4adb4c 100644 --- a/gen/safebrowsing4/README.md +++ b/gen/safebrowsing4/README.md @@ -5,28 +5,28 @@ DO NOT EDIT ! --> The `google-safebrowsing4` library allows access to all features of the *Google safebrowsing* service. -This documentation was generated from *safebrowsing* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *safebrowsing:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *safebrowsing* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *safebrowsing:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *safebrowsing* *v4* API can be found at the [official documentation site](https://developers.google.com/safe-browsing/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/struct.Safebrowsing.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/struct.Safebrowsing.html) ... * encoded full hashes - * [*get*](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/struct.EncodedFullHasheGetCall.html) + * [*get*](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/struct.EncodedFullHasheGetCall.html) * encoded updates - * [*get*](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/struct.EncodedUpdateGetCall.html) + * [*get*](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/struct.EncodedUpdateGetCall.html) * full hashes - * [*find*](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/struct.FullHasheFindCall.html) -* [threat hits](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/struct.ThreatHit.html) - * [*create*](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/struct.ThreatHitCreateCall.html) + * [*find*](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/struct.FullHasheFindCall.html) +* [threat hits](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/struct.ThreatHit.html) + * [*create*](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/struct.ThreatHitCreateCall.html) * threat list updates - * [*fetch*](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/struct.ThreatListUpdateFetchCall.html) + * [*fetch*](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/struct.ThreatListUpdateFetchCall.html) * threat lists - * [*list*](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/struct.ThreatListListCall.html) + * [*list*](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/struct.ThreatListListCall.html) * threat matches - * [*find*](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/struct.ThreatMatcheFindCall.html) + * [*find*](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/struct.ThreatMatcheFindCall.html) @@ -35,17 +35,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/struct.Safebrowsing.html)** +* **[Hub](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/struct.Safebrowsing.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.Part.html)** + * **[Parts](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -139,17 +139,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -159,29 +159,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.RequestValue.html) and -[decodable](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.RequestValue.html) and +[decodable](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-safebrowsing4/1.0.11+20190702/google_safebrowsing4/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-safebrowsing4/1.0.12+20190702/google_safebrowsing4/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/safebrowsing4/src/lib.rs b/gen/safebrowsing4/src/lib.rs index 3bde3bd1fa..a30a18f75b 100644 --- a/gen/safebrowsing4/src/lib.rs +++ b/gen/safebrowsing4/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *safebrowsing* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *safebrowsing:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *safebrowsing* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *safebrowsing:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *safebrowsing* *v4* API can be found at the //! [official documentation site](https://developers.google.com/safe-browsing/). @@ -312,7 +312,7 @@ impl<'a, C, A> Safebrowsing Safebrowsing { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://safebrowsing.googleapis.com/".to_string(), _root_url: "https://safebrowsing.googleapis.com/".to_string(), } @@ -341,7 +341,7 @@ impl<'a, C, A> Safebrowsing } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/searchconsole1-cli/Cargo.toml b/gen/searchconsole1-cli/Cargo.toml index ea24950996..19e2463a73 100644 --- a/gen/searchconsole1-cli/Cargo.toml +++ b/gen/searchconsole1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-searchconsole1-cli" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with Search Console (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/searchconsole1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-searchconsole1] path = "../searchconsole1" -version = "1.0.11+20190629" +version = "1.0.12+20190629" diff --git a/gen/searchconsole1-cli/LICENSE.md b/gen/searchconsole1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/searchconsole1-cli/LICENSE.md +++ b/gen/searchconsole1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/searchconsole1-cli/README.md b/gen/searchconsole1-cli/README.md index 2935f8b447..5221719f2e 100644 --- a/gen/searchconsole1-cli/README.md +++ b/gen/searchconsole1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Search Console* API at revision *20190629*. The CLI is at version *1.0.11*. +This documentation was generated from the *Search Console* API at revision *20190629*. The CLI is at version *1.0.12*. ```bash searchconsole1 [options] diff --git a/gen/searchconsole1-cli/mkdocs.yml b/gen/searchconsole1-cli/mkdocs.yml index 9743e6d946..9a2e1ff179 100644 --- a/gen/searchconsole1-cli/mkdocs.yml +++ b/gen/searchconsole1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Search Console v1.0.11+20190629 +site_name: Search Console v1.0.12+20190629 site_url: http://byron.github.io/google-apis-rs/google-searchconsole1-cli site_description: A complete library to interact with Search Console (protocol v1) @@ -13,5 +13,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/searchconsole1-cli/src/cmn.rs b/gen/searchconsole1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/searchconsole1-cli/src/cmn.rs +++ b/gen/searchconsole1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/searchconsole1-cli/src/main.rs b/gen/searchconsole1-cli/src/main.rs index 6dc8d2cd08..ccc286355c 100644 --- a/gen/searchconsole1-cli/src/main.rs +++ b/gen/searchconsole1-cli/src/main.rs @@ -259,7 +259,7 @@ fn main() { let mut app = App::new("searchconsole1") .author("Sebastian Thiel ") - .version("1.0.11+20190629") + .version("1.0.12+20190629") .about("Provides tools for running validation tests against single URLs") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_searchconsole1_cli") .arg(Arg::with_name("folder") diff --git a/gen/searchconsole1/Cargo.toml b/gen/searchconsole1/Cargo.toml index dacb342ea6..9ebc0f42e9 100644 --- a/gen/searchconsole1/Cargo.toml +++ b/gen/searchconsole1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-searchconsole1" -version = "1.0.11+20190629" +version = "1.0.12+20190629" authors = ["Sebastian Thiel "] description = "A complete library to interact with Search Console (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/searchconsole1" homepage = "https://developers.google.com/webmaster-tools/search-console-api/" -documentation = "https://docs.rs/google-searchconsole1/1.0.11+20190629" +documentation = "https://docs.rs/google-searchconsole1/1.0.12+20190629" license = "MIT" keywords = ["searchconsole", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/searchconsole1/LICENSE.md b/gen/searchconsole1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/searchconsole1/LICENSE.md +++ b/gen/searchconsole1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/searchconsole1/README.md b/gen/searchconsole1/README.md index 60e2dbb011..78463225b0 100644 --- a/gen/searchconsole1/README.md +++ b/gen/searchconsole1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-searchconsole1` library allows access to all features of the *Google Search Console* service. -This documentation was generated from *Search Console* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *searchconsole:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Search Console* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *searchconsole:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Search Console* *v1* API can be found at the [official documentation site](https://developers.google.com/webmaster-tools/search-console-api/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/struct.SearchConsole.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/struct.SearchConsole.html) ... * url testing tools - * [*mobile friendly test run*](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/struct.UrlTestingToolMobileFriendlyTestRunCall.html) + * [*mobile friendly test run*](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/struct.UrlTestingToolMobileFriendlyTestRunCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/struct.SearchConsole.html)** +* **[Hub](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/struct.SearchConsole.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.Part.html)** + * **[Parts](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -130,17 +130,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-searchconsole1/1.0.11+20190629/google_searchconsole1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-searchconsole1/1.0.12+20190629/google_searchconsole1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/searchconsole1/src/lib.rs b/gen/searchconsole1/src/lib.rs index a44db0dfb1..bab3400fd2 100644 --- a/gen/searchconsole1/src/lib.rs +++ b/gen/searchconsole1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Search Console* crate version *1.0.11+20190629*, where *20190629* is the exact revision of the *searchconsole:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Search Console* crate version *1.0.12+20190629*, where *20190629* is the exact revision of the *searchconsole:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Search Console* *v1* API can be found at the //! [official documentation site](https://developers.google.com/webmaster-tools/search-console-api/). @@ -307,7 +307,7 @@ impl<'a, C, A> SearchConsole SearchConsole { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://searchconsole.googleapis.com/".to_string(), _root_url: "https://searchconsole.googleapis.com/".to_string(), } @@ -318,7 +318,7 @@ impl<'a, C, A> SearchConsole } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/securitycenter1-cli/Cargo.toml b/gen/securitycenter1-cli/Cargo.toml index 6ea565bb45..e5e2ee0b57 100644 --- a/gen/securitycenter1-cli/Cargo.toml +++ b/gen/securitycenter1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-securitycenter1-cli" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Security Command Center (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/securitycenter1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-securitycenter1] path = "../securitycenter1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" diff --git a/gen/securitycenter1-cli/LICENSE.md b/gen/securitycenter1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/securitycenter1-cli/LICENSE.md +++ b/gen/securitycenter1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/securitycenter1-cli/README.md b/gen/securitycenter1-cli/README.md index 071a69e446..4a00494eeb 100644 --- a/gen/securitycenter1-cli/README.md +++ b/gen/securitycenter1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Security Command Center* API at revision *20190628*. The CLI is at version *1.0.11*. +This documentation was generated from the *Security Command Center* API at revision *20190628*. The CLI is at version *1.0.12*. ```bash securitycenter1 [options] diff --git a/gen/securitycenter1-cli/mkdocs.yml b/gen/securitycenter1-cli/mkdocs.yml index e9d2bfaae8..eeaa1d845c 100644 --- a/gen/securitycenter1-cli/mkdocs.yml +++ b/gen/securitycenter1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Security Command Center v1.0.11+20190628 +site_name: Security Command Center v1.0.12+20190628 site_url: http://byron.github.io/google-apis-rs/google-securitycenter1-cli site_description: A complete library to interact with Security Command Center (protocol v1) @@ -35,5 +35,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/securitycenter1-cli/src/cmn.rs b/gen/securitycenter1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/securitycenter1-cli/src/cmn.rs +++ b/gen/securitycenter1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/securitycenter1-cli/src/main.rs b/gen/securitycenter1-cli/src/main.rs index 28bd067a15..4b74d672c9 100644 --- a/gen/securitycenter1-cli/src/main.rs +++ b/gen/securitycenter1-cli/src/main.rs @@ -2673,7 +2673,7 @@ fn main() { let mut app = App::new("securitycenter1") .author("Sebastian Thiel ") - .version("1.0.11+20190628") + .version("1.0.12+20190628") .about("Cloud Security Command Center API provides access to temporal views of assets and findings within an organization.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_securitycenter1_cli") .arg(Arg::with_name("url") diff --git a/gen/securitycenter1/Cargo.toml b/gen/securitycenter1/Cargo.toml index 069669c5ab..1994ac8b75 100644 --- a/gen/securitycenter1/Cargo.toml +++ b/gen/securitycenter1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-securitycenter1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Security Command Center (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/securitycenter1" homepage = "https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview" -documentation = "https://docs.rs/google-securitycenter1/1.0.11+20190628" +documentation = "https://docs.rs/google-securitycenter1/1.0.12+20190628" license = "MIT" keywords = ["securitycenter", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/securitycenter1/LICENSE.md b/gen/securitycenter1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/securitycenter1/LICENSE.md +++ b/gen/securitycenter1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/securitycenter1/README.md b/gen/securitycenter1/README.md index 1b5479636a..4dd581e67a 100644 --- a/gen/securitycenter1/README.md +++ b/gen/securitycenter1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-securitycenter1` library allows access to all features of the *Google Security Command Center* service. -This documentation was generated from *Security Command Center* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *securitycenter:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Security Command Center* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *securitycenter:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Security Command Center* *v1* API can be found at the [official documentation site](https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.SecurityCommandCenter.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.SecurityCommandCenter.html) ... * organizations - * [*assets group*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationAssetGroupCall.html), [*assets list*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationAssetListCall.html), [*assets run discovery*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationAssetRunDiscoveryCall.html), [*assets update security marks*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationAssetUpdateSecurityMarkCall.html), [*get organization settings*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationGetOrganizationSettingCall.html), [*operations cancel*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationOperationCancelCall.html), [*operations delete*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationOperationDeleteCall.html), [*operations get*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationOperationGetCall.html), [*operations list*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationOperationListCall.html), [*sources create*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationSourceCreateCall.html), [*sources findings create*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationSourceFindingCreateCall.html), [*sources findings group*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationSourceFindingGroupCall.html), [*sources findings list*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationSourceFindingListCall.html), [*sources findings patch*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationSourceFindingPatchCall.html), [*sources findings set state*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationSourceFindingSetStateCall.html), [*sources findings update security marks*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationSourceFindingUpdateSecurityMarkCall.html), [*sources get*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationSourceGetCall.html), [*sources get iam policy*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationSourceGetIamPolicyCall.html), [*sources list*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationSourceListCall.html), [*sources patch*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationSourcePatchCall.html), [*sources set iam policy*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationSourceSetIamPolicyCall.html), [*sources test iam permissions*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationSourceTestIamPermissionCall.html) and [*update organization settings*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.OrganizationUpdateOrganizationSettingCall.html) + * [*assets group*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationAssetGroupCall.html), [*assets list*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationAssetListCall.html), [*assets run discovery*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationAssetRunDiscoveryCall.html), [*assets update security marks*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationAssetUpdateSecurityMarkCall.html), [*get organization settings*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationGetOrganizationSettingCall.html), [*operations cancel*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationOperationCancelCall.html), [*operations delete*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationOperationDeleteCall.html), [*operations get*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationOperationGetCall.html), [*operations list*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationOperationListCall.html), [*sources create*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationSourceCreateCall.html), [*sources findings create*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationSourceFindingCreateCall.html), [*sources findings group*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationSourceFindingGroupCall.html), [*sources findings list*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationSourceFindingListCall.html), [*sources findings patch*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationSourceFindingPatchCall.html), [*sources findings set state*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationSourceFindingSetStateCall.html), [*sources findings update security marks*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationSourceFindingUpdateSecurityMarkCall.html), [*sources get*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationSourceGetCall.html), [*sources get iam policy*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationSourceGetIamPolicyCall.html), [*sources list*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationSourceListCall.html), [*sources patch*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationSourcePatchCall.html), [*sources set iam policy*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationSourceSetIamPolicyCall.html), [*sources test iam permissions*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationSourceTestIamPermissionCall.html) and [*update organization settings*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.OrganizationUpdateOrganizationSettingCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/struct.SecurityCommandCenter.html)** +* **[Hub](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/struct.SecurityCommandCenter.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.Part.html)** + * **[Parts](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -133,17 +133,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -153,29 +153,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-securitycenter1/1.0.11+20190628/google_securitycenter1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-securitycenter1/1.0.12+20190628/google_securitycenter1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/securitycenter1/src/lib.rs b/gen/securitycenter1/src/lib.rs index 63088c0f0e..54fc574af3 100644 --- a/gen/securitycenter1/src/lib.rs +++ b/gen/securitycenter1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Security Command Center* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *securitycenter:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Security Command Center* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *securitycenter:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Security Command Center* *v1* API can be found at the //! [official documentation site](https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview). @@ -333,7 +333,7 @@ impl<'a, C, A> SecurityCommandCenter SecurityCommandCenter { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://securitycenter.googleapis.com/".to_string(), _root_url: "https://securitycenter.googleapis.com/".to_string(), } @@ -344,7 +344,7 @@ impl<'a, C, A> SecurityCommandCenter } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/servicebroker1-cli/Cargo.toml b/gen/servicebroker1-cli/Cargo.toml index fea965ab9a..1cb06c29dd 100644 --- a/gen/servicebroker1-cli/Cargo.toml +++ b/gen/servicebroker1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-servicebroker1-cli" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Service Broker (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/servicebroker1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-servicebroker1] path = "../servicebroker1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" diff --git a/gen/servicebroker1-cli/LICENSE.md b/gen/servicebroker1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/servicebroker1-cli/LICENSE.md +++ b/gen/servicebroker1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/servicebroker1-cli/README.md b/gen/servicebroker1-cli/README.md index a05149321f..444c0e2348 100644 --- a/gen/servicebroker1-cli/README.md +++ b/gen/servicebroker1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Service Broker* API at revision *20190624*. The CLI is at version *1.0.11*. +This documentation was generated from the *Service Broker* API at revision *20190624*. The CLI is at version *1.0.12*. ```bash servicebroker1 [options] diff --git a/gen/servicebroker1-cli/mkdocs.yml b/gen/servicebroker1-cli/mkdocs.yml index 64f4d620d6..ac6ce97146 100644 --- a/gen/servicebroker1-cli/mkdocs.yml +++ b/gen/servicebroker1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Service Broker v1.0.11+20190624 +site_name: Service Broker v1.0.12+20190624 site_url: http://byron.github.io/google-apis-rs/google-servicebroker1-cli site_description: A complete library to interact with Service Broker (protocol v1) @@ -15,5 +15,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/servicebroker1-cli/src/cmn.rs b/gen/servicebroker1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/servicebroker1-cli/src/cmn.rs +++ b/gen/servicebroker1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/servicebroker1-cli/src/main.rs b/gen/servicebroker1-cli/src/main.rs index 58a0c60c16..d6bdfcc9fe 100644 --- a/gen/servicebroker1-cli/src/main.rs +++ b/gen/servicebroker1-cli/src/main.rs @@ -473,7 +473,7 @@ fn main() { let mut app = App::new("servicebroker1") .author("Sebastian Thiel ") - .version("1.0.11+20190624") + .version("1.0.12+20190624") .about("The Google Cloud Platform Service Broker API provides Google hosted implementation of the Open Service Broker API (https://www.openservicebrokerapi.org/). diff --git a/gen/servicebroker1/Cargo.toml b/gen/servicebroker1/Cargo.toml index ea4f9f3823..49999912a0 100644 --- a/gen/servicebroker1/Cargo.toml +++ b/gen/servicebroker1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-servicebroker1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with Service Broker (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/servicebroker1" homepage = "https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker" -documentation = "https://docs.rs/google-servicebroker1/1.0.11+20190624" +documentation = "https://docs.rs/google-servicebroker1/1.0.12+20190624" license = "MIT" keywords = ["servicebroker", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/servicebroker1/LICENSE.md b/gen/servicebroker1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/servicebroker1/LICENSE.md +++ b/gen/servicebroker1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/servicebroker1/README.md b/gen/servicebroker1/README.md index 814eefffb3..af3ec9f940 100644 --- a/gen/servicebroker1/README.md +++ b/gen/servicebroker1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-servicebroker1` library allows access to all features of the *Google Service Broker* service. -This documentation was generated from *Service Broker* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *servicebroker:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Service Broker* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *servicebroker:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Service Broker* *v1* API can be found at the [official documentation site](https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker). # Features -Use the following functionality with ease from the central [hub](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/struct.ServiceBroker.html) ... +Use the following functionality with ease from the central [hub](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/struct.ServiceBroker.html) ... -* [get iam policy](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/struct.MethodGetIamPolicyCall.html) -* [set iam policy](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/struct.MethodSetIamPolicyCall.html) -* [test iam permissions](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/struct.MethodTestIamPermissionCall.html) +* [get iam policy](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/struct.MethodGetIamPolicyCall.html) +* [set iam policy](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/struct.MethodSetIamPolicyCall.html) +* [test iam permissions](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/struct.MethodTestIamPermissionCall.html) @@ -24,17 +24,17 @@ Use the following functionality with ease from the central [hub](https://docs.rs The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/struct.ServiceBroker.html)** +* **[Hub](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/struct.ServiceBroker.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.Part.html)** + * **[Parts](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-servicebroker1/1.0.11+20190624/google_servicebroker1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-servicebroker1/1.0.12+20190624/google_servicebroker1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/servicebroker1/src/lib.rs b/gen/servicebroker1/src/lib.rs index 61b8bfb4e8..6af7aef204 100644 --- a/gen/servicebroker1/src/lib.rs +++ b/gen/servicebroker1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Service Broker* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *servicebroker:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Service Broker* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *servicebroker:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Service Broker* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker). @@ -331,7 +331,7 @@ impl<'a, C, A> ServiceBroker ServiceBroker { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://servicebroker.googleapis.com/".to_string(), _root_url: "https://servicebroker.googleapis.com/".to_string(), } @@ -342,7 +342,7 @@ impl<'a, C, A> ServiceBroker } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/servicecontrol1-cli/Cargo.toml b/gen/servicecontrol1-cli/Cargo.toml index e9cce08f9e..7f0d8db3a2 100644 --- a/gen/servicecontrol1-cli/Cargo.toml +++ b/gen/servicecontrol1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-servicecontrol1-cli" -version = "1.0.11+20190622" +version = "1.0.12+20190622" authors = ["Sebastian Thiel "] description = "A complete library to interact with Service Control (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/servicecontrol1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-servicecontrol1] path = "../servicecontrol1" -version = "1.0.11+20190622" +version = "1.0.12+20190622" diff --git a/gen/servicecontrol1-cli/LICENSE.md b/gen/servicecontrol1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/servicecontrol1-cli/LICENSE.md +++ b/gen/servicecontrol1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/servicecontrol1-cli/README.md b/gen/servicecontrol1-cli/README.md index 660ae97c69..b2d0376f51 100644 --- a/gen/servicecontrol1-cli/README.md +++ b/gen/servicecontrol1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Service Control* API at revision *20190622*. The CLI is at version *1.0.11*. +This documentation was generated from the *Service Control* API at revision *20190622*. The CLI is at version *1.0.12*. ```bash servicecontrol1 [options] diff --git a/gen/servicecontrol1-cli/mkdocs.yml b/gen/servicecontrol1-cli/mkdocs.yml index 5e89944b08..5f19471e4a 100644 --- a/gen/servicecontrol1-cli/mkdocs.yml +++ b/gen/servicecontrol1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Service Control v1.0.11+20190622 +site_name: Service Control v1.0.12+20190622 site_url: http://byron.github.io/google-apis-rs/google-servicecontrol1-cli site_description: A complete library to interact with Service Control (protocol v1) @@ -15,5 +15,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/servicecontrol1-cli/src/cmn.rs b/gen/servicecontrol1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/servicecontrol1-cli/src/cmn.rs +++ b/gen/servicecontrol1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/servicecontrol1-cli/src/main.rs b/gen/servicecontrol1-cli/src/main.rs index 466cd2c4e2..7cc7c26fee 100644 --- a/gen/servicecontrol1-cli/src/main.rs +++ b/gen/servicecontrol1-cli/src/main.rs @@ -567,7 +567,7 @@ fn main() { let mut app = App::new("servicecontrol1") .author("Sebastian Thiel ") - .version("1.0.11+20190622") + .version("1.0.12+20190622") .about("Provides control plane functionality to managed services, such as logging, monitoring, and status checks.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_servicecontrol1_cli") .arg(Arg::with_name("url") diff --git a/gen/servicecontrol1/Cargo.toml b/gen/servicecontrol1/Cargo.toml index 889e5d6fee..57eb8bd4d4 100644 --- a/gen/servicecontrol1/Cargo.toml +++ b/gen/servicecontrol1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-servicecontrol1" -version = "1.0.11+20190622" +version = "1.0.12+20190622" authors = ["Sebastian Thiel "] description = "A complete library to interact with Service Control (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/servicecontrol1" homepage = "https://cloud.google.com/service-control/" -documentation = "https://docs.rs/google-servicecontrol1/1.0.11+20190622" +documentation = "https://docs.rs/google-servicecontrol1/1.0.12+20190622" license = "MIT" keywords = ["servicecontrol", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/servicecontrol1/LICENSE.md b/gen/servicecontrol1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/servicecontrol1/LICENSE.md +++ b/gen/servicecontrol1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/servicecontrol1/README.md b/gen/servicecontrol1/README.md index 12faecff6a..7eb4193166 100644 --- a/gen/servicecontrol1/README.md +++ b/gen/servicecontrol1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-servicecontrol1` library allows access to all features of the *Google Service Control* service. -This documentation was generated from *Service Control* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *servicecontrol:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Service Control* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *servicecontrol:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Service Control* *v1* API can be found at the [official documentation site](https://cloud.google.com/service-control/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/struct.ServiceControl.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/struct.ServiceControl.html) ... * services - * [*allocate quota*](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/struct.ServiceAllocateQuotaCall.html), [*check*](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/struct.ServiceCheckCall.html) and [*report*](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/struct.ServiceReportCall.html) + * [*allocate quota*](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/struct.ServiceAllocateQuotaCall.html), [*check*](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/struct.ServiceCheckCall.html) and [*report*](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/struct.ServiceReportCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/struct.ServiceControl.html)** +* **[Hub](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/struct.ServiceControl.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.Part.html)** + * **[Parts](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -130,17 +130,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-servicecontrol1/1.0.11+20190622/google_servicecontrol1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-servicecontrol1/1.0.12+20190622/google_servicecontrol1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/servicecontrol1/src/lib.rs b/gen/servicecontrol1/src/lib.rs index d7a01fbc3e..50bf4fd05d 100644 --- a/gen/servicecontrol1/src/lib.rs +++ b/gen/servicecontrol1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Service Control* crate version *1.0.11+20190622*, where *20190622* is the exact revision of the *servicecontrol:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Service Control* crate version *1.0.12+20190622*, where *20190622* is the exact revision of the *servicecontrol:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Service Control* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/service-control/). @@ -333,7 +333,7 @@ impl<'a, C, A> ServiceControl ServiceControl { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://servicecontrol.googleapis.com/".to_string(), _root_url: "https://servicecontrol.googleapis.com/".to_string(), } @@ -344,7 +344,7 @@ impl<'a, C, A> ServiceControl } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/serviceregistryalpha-cli/Cargo.toml b/gen/serviceregistryalpha-cli/Cargo.toml index 9c91875d7a..85285566b9 100644 --- a/gen/serviceregistryalpha-cli/Cargo.toml +++ b/gen/serviceregistryalpha-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-serviceregistryalpha-cli" -version = "1.0.11+20160401" +version = "1.0.12+20160401" authors = ["Sebastian Thiel "] description = "A complete library to interact with Service Registry (protocol alpha)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/serviceregistryalpha-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-serviceregistryalpha] path = "../serviceregistryalpha" -version = "1.0.11+20160401" +version = "1.0.12+20160401" diff --git a/gen/serviceregistryalpha-cli/LICENSE.md b/gen/serviceregistryalpha-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/serviceregistryalpha-cli/LICENSE.md +++ b/gen/serviceregistryalpha-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/serviceregistryalpha-cli/README.md b/gen/serviceregistryalpha-cli/README.md index 96be161520..072601b755 100644 --- a/gen/serviceregistryalpha-cli/README.md +++ b/gen/serviceregistryalpha-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Service Registry* API at revision *20160401*. The CLI is at version *1.0.11*. +This documentation was generated from the *Service Registry* API at revision *20160401*. The CLI is at version *1.0.12*. ```bash serviceregistryalpha [options] diff --git a/gen/serviceregistryalpha-cli/mkdocs.yml b/gen/serviceregistryalpha-cli/mkdocs.yml index 7351a35117..c4a010907e 100644 --- a/gen/serviceregistryalpha-cli/mkdocs.yml +++ b/gen/serviceregistryalpha-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Service Registry v1.0.11+20160401 +site_name: Service Registry v1.0.12+20160401 site_url: http://byron.github.io/google-apis-rs/google-serviceregistryalpha-cli site_description: A complete library to interact with Service Registry (protocol alpha) @@ -20,5 +20,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/serviceregistryalpha-cli/src/cmn.rs b/gen/serviceregistryalpha-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/serviceregistryalpha-cli/src/cmn.rs +++ b/gen/serviceregistryalpha-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/serviceregistryalpha-cli/src/main.rs b/gen/serviceregistryalpha-cli/src/main.rs index c5798e9668..b1452bf629 100644 --- a/gen/serviceregistryalpha-cli/src/main.rs +++ b/gen/serviceregistryalpha-cli/src/main.rs @@ -975,7 +975,7 @@ fn main() { let mut app = App::new("serviceregistryalpha") .author("Sebastian Thiel ") - .version("1.0.11+20160401") + .version("1.0.12+20160401") .about("Manages service endpoints in Service Registry and provides integration with DNS for service discovery and name resolution.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_serviceregistryalpha_cli") .arg(Arg::with_name("url") diff --git a/gen/serviceregistryalpha/Cargo.toml b/gen/serviceregistryalpha/Cargo.toml index c4456ca2e8..873134c611 100644 --- a/gen/serviceregistryalpha/Cargo.toml +++ b/gen/serviceregistryalpha/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-serviceregistryalpha" -version = "1.0.11+20160401" +version = "1.0.12+20160401" authors = ["Sebastian Thiel "] description = "A complete library to interact with Service Registry (protocol alpha)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/serviceregistryalpha" homepage = "https://developers.google.com/cloud-serviceregistry/" -documentation = "https://docs.rs/google-serviceregistryalpha/1.0.11+20160401" +documentation = "https://docs.rs/google-serviceregistryalpha/1.0.12+20160401" license = "MIT" keywords = ["serviceregistry", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/serviceregistryalpha/LICENSE.md b/gen/serviceregistryalpha/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/serviceregistryalpha/LICENSE.md +++ b/gen/serviceregistryalpha/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/serviceregistryalpha/README.md b/gen/serviceregistryalpha/README.md index 8ac9d3d751..821389a998 100644 --- a/gen/serviceregistryalpha/README.md +++ b/gen/serviceregistryalpha/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-serviceregistryalpha` library allows access to all features of the *Google Service Registry* service. -This documentation was generated from *Service Registry* crate version *1.0.11+20160401*, where *20160401* is the exact revision of the *serviceregistry:alpha* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Service Registry* crate version *1.0.12+20160401*, where *20160401* is the exact revision of the *serviceregistry:alpha* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Service Registry* *alpha* API can be found at the [official documentation site](https://developers.google.com/cloud-serviceregistry/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/struct.ServiceRegistry.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/struct.ServiceRegistry.html) ... -* [endpoints](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/struct.Endpoint.html) - * [*delete*](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/struct.EndpointDeleteCall.html), [*get*](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/struct.EndpointGetCall.html), [*insert*](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/struct.EndpointInsertCall.html), [*list*](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/struct.EndpointListCall.html), [*patch*](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/struct.EndpointPatchCall.html) and [*update*](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/struct.EndpointUpdateCall.html) -* [operations](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/struct.Operation.html) - * [*get*](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/struct.OperationListCall.html) +* [endpoints](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/struct.Endpoint.html) + * [*delete*](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/struct.EndpointDeleteCall.html), [*get*](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/struct.EndpointGetCall.html), [*insert*](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/struct.EndpointInsertCall.html), [*list*](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/struct.EndpointListCall.html), [*patch*](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/struct.EndpointPatchCall.html) and [*update*](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/struct.EndpointUpdateCall.html) +* [operations](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/struct.Operation.html) + * [*get*](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/struct.OperationListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/struct.ServiceRegistry.html)** +* **[Hub](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/struct.ServiceRegistry.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.Part.html)** + * **[Parts](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -135,17 +135,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -155,29 +155,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.RequestValue.html) and -[decodable](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.RequestValue.html) and +[decodable](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-serviceregistryalpha/1.0.11+20160401/google_serviceregistryalpha/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-serviceregistryalpha/1.0.12+20160401/google_serviceregistryalpha/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/serviceregistryalpha/src/lib.rs b/gen/serviceregistryalpha/src/lib.rs index c3c1321622..d02ec90b18 100644 --- a/gen/serviceregistryalpha/src/lib.rs +++ b/gen/serviceregistryalpha/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Service Registry* crate version *1.0.11+20160401*, where *20160401* is the exact revision of the *serviceregistry:alpha* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Service Registry* crate version *1.0.12+20160401*, where *20160401* is the exact revision of the *serviceregistry:alpha* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Service Registry* *alpha* API can be found at the //! [official documentation site](https://developers.google.com/cloud-serviceregistry/). @@ -344,7 +344,7 @@ impl<'a, C, A> ServiceRegistry ServiceRegistry { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/serviceregistry/alpha/projects/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -358,7 +358,7 @@ impl<'a, C, A> ServiceRegistry } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/sheets4-cli/Cargo.toml b/gen/sheets4-cli/Cargo.toml index d39f7509c9..6008977794 100644 --- a/gen/sheets4-cli/Cargo.toml +++ b/gen/sheets4-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-sheets4-cli" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with Sheets (protocol v4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/sheets4-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-sheets4] path = "../sheets4" -version = "1.0.11+20190625" +version = "1.0.12+20190625" diff --git a/gen/sheets4-cli/LICENSE.md b/gen/sheets4-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/sheets4-cli/LICENSE.md +++ b/gen/sheets4-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/sheets4-cli/README.md b/gen/sheets4-cli/README.md index 5e00aebdb0..a634a5de9a 100644 --- a/gen/sheets4-cli/README.md +++ b/gen/sheets4-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Sheets* API at revision *20190625*. The CLI is at version *1.0.11*. +This documentation was generated from the *Sheets* API at revision *20190625*. The CLI is at version *1.0.12*. ```bash sheets4 [options] diff --git a/gen/sheets4-cli/mkdocs.yml b/gen/sheets4-cli/mkdocs.yml index 46a7e6342e..7d15f92e99 100644 --- a/gen/sheets4-cli/mkdocs.yml +++ b/gen/sheets4-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Sheets v1.0.11+20190625 +site_name: Sheets v1.0.12+20190625 site_url: http://byron.github.io/google-apis-rs/google-sheets4-cli site_description: A complete library to interact with Sheets (protocol v4) @@ -29,5 +29,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/sheets4-cli/src/cmn.rs b/gen/sheets4-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/sheets4-cli/src/cmn.rs +++ b/gen/sheets4-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/sheets4-cli/src/main.rs b/gen/sheets4-cli/src/main.rs index 16f10a9a17..2ea31afa73 100644 --- a/gen/sheets4-cli/src/main.rs +++ b/gen/sheets4-cli/src/main.rs @@ -2228,7 +2228,7 @@ fn main() { let mut app = App::new("sheets4") .author("Sebastian Thiel ") - .version("1.0.11+20190625") + .version("1.0.12+20190625") .about("Reads and writes Google Sheets.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_sheets4_cli") .arg(Arg::with_name("url") diff --git a/gen/sheets4/Cargo.toml b/gen/sheets4/Cargo.toml index e282c260e1..29f3cb2787 100644 --- a/gen/sheets4/Cargo.toml +++ b/gen/sheets4/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-sheets4" -version = "1.0.11+20190625" +version = "1.0.12+20190625" authors = ["Sebastian Thiel "] description = "A complete library to interact with Sheets (protocol v4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/sheets4" homepage = "https://developers.google.com/sheets/" -documentation = "https://docs.rs/google-sheets4/1.0.11+20190625" +documentation = "https://docs.rs/google-sheets4/1.0.12+20190625" license = "MIT" keywords = ["sheets", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/sheets4/LICENSE.md b/gen/sheets4/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/sheets4/LICENSE.md +++ b/gen/sheets4/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/sheets4/README.md b/gen/sheets4/README.md index f34cf1c50c..9a07771a7d 100644 --- a/gen/sheets4/README.md +++ b/gen/sheets4/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-sheets4` library allows access to all features of the *Google Sheets* service. -This documentation was generated from *Sheets* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *sheets:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Sheets* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *sheets:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Sheets* *v4* API can be found at the [official documentation site](https://developers.google.com/sheets/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.Sheets.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.Sheets.html) ... -* [spreadsheets](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.Spreadsheet.html) - * [*batch update*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetBatchUpdateCall.html), [*create*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetCreateCall.html), [*developer metadata get*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetDeveloperMetadataGetCall.html), [*developer metadata search*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetDeveloperMetadataSearchCall.html), [*get*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetGetCall.html), [*get by data filter*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetGetByDataFilterCall.html), [*sheets copy to*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetSheetCopyToCall.html), [*values append*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetValueAppendCall.html), [*values batch clear*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetValueBatchClearCall.html), [*values batch clear by data filter*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetValueBatchClearByDataFilterCall.html), [*values batch get*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetValueBatchGetCall.html), [*values batch get by data filter*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetValueBatchGetByDataFilterCall.html), [*values batch update*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetValueBatchUpdateCall.html), [*values batch update by data filter*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetValueBatchUpdateByDataFilterCall.html), [*values clear*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetValueClearCall.html), [*values get*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetValueGetCall.html) and [*values update*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.SpreadsheetValueUpdateCall.html) +* [spreadsheets](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.Spreadsheet.html) + * [*batch update*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetBatchUpdateCall.html), [*create*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetCreateCall.html), [*developer metadata get*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetDeveloperMetadataGetCall.html), [*developer metadata search*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetDeveloperMetadataSearchCall.html), [*get*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetGetCall.html), [*get by data filter*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetGetByDataFilterCall.html), [*sheets copy to*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetSheetCopyToCall.html), [*values append*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetValueAppendCall.html), [*values batch clear*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetValueBatchClearCall.html), [*values batch clear by data filter*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetValueBatchClearByDataFilterCall.html), [*values batch get*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetValueBatchGetCall.html), [*values batch get by data filter*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetValueBatchGetByDataFilterCall.html), [*values batch update*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetValueBatchUpdateCall.html), [*values batch update by data filter*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetValueBatchUpdateByDataFilterCall.html), [*values clear*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetValueClearCall.html), [*values get*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetValueGetCall.html) and [*values update*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.SpreadsheetValueUpdateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/struct.Sheets.html)** +* **[Hub](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/struct.Sheets.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.Part.html)** + * **[Parts](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -151,17 +151,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -171,29 +171,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.RequestValue.html) and -[decodable](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.RequestValue.html) and +[decodable](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-sheets4/1.0.11+20190625/google_sheets4/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-sheets4/1.0.12+20190625/google_sheets4/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/sheets4/src/lib.rs b/gen/sheets4/src/lib.rs index c102cd4897..155e3d5f0e 100644 --- a/gen/sheets4/src/lib.rs +++ b/gen/sheets4/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Sheets* crate version *1.0.11+20190625*, where *20190625* is the exact revision of the *sheets:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Sheets* crate version *1.0.12+20190625*, where *20190625* is the exact revision of the *sheets:v4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Sheets* *v4* API can be found at the //! [official documentation site](https://developers.google.com/sheets/). @@ -371,7 +371,7 @@ impl<'a, C, A> Sheets Sheets { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://sheets.googleapis.com/".to_string(), _root_url: "https://sheets.googleapis.com/".to_string(), } @@ -382,7 +382,7 @@ impl<'a, C, A> Sheets } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/siteverification1-cli/Cargo.toml b/gen/siteverification1-cli/Cargo.toml index 7db5326d6d..5c44976b2f 100644 --- a/gen/siteverification1-cli/Cargo.toml +++ b/gen/siteverification1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-siteverification1-cli" -version = "1.0.11+20180830" +version = "1.0.12+20180830" authors = ["Sebastian Thiel "] description = "A complete library to interact with siteVerification (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/siteverification1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-siteverification1] path = "../siteverification1" -version = "1.0.11+20180830" +version = "1.0.12+20180830" diff --git a/gen/siteverification1-cli/LICENSE.md b/gen/siteverification1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/siteverification1-cli/LICENSE.md +++ b/gen/siteverification1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/siteverification1-cli/README.md b/gen/siteverification1-cli/README.md index 872a038e0d..083a31a01a 100644 --- a/gen/siteverification1-cli/README.md +++ b/gen/siteverification1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *siteVerification* API at revision *20180830*. The CLI is at version *1.0.11*. +This documentation was generated from the *siteVerification* API at revision *20180830*. The CLI is at version *1.0.12*. ```bash siteverification1 [options] diff --git a/gen/siteverification1-cli/mkdocs.yml b/gen/siteverification1-cli/mkdocs.yml index 980dc30d76..6b617c4c9e 100644 --- a/gen/siteverification1-cli/mkdocs.yml +++ b/gen/siteverification1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: siteVerification v1.0.11+20180830 +site_name: siteVerification v1.0.12+20180830 site_url: http://byron.github.io/google-apis-rs/google-siteverification1-cli site_description: A complete library to interact with siteVerification (protocol v1) @@ -19,5 +19,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/siteverification1-cli/src/cmn.rs b/gen/siteverification1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/siteverification1-cli/src/cmn.rs +++ b/gen/siteverification1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/siteverification1-cli/src/main.rs b/gen/siteverification1-cli/src/main.rs index d27c8f9f9a..177a82914e 100644 --- a/gen/siteverification1-cli/src/main.rs +++ b/gen/siteverification1-cli/src/main.rs @@ -828,7 +828,7 @@ fn main() { let mut app = App::new("siteverification1") .author("Sebastian Thiel ") - .version("1.0.11+20180830") + .version("1.0.12+20180830") .about("Verifies ownership of websites or domains with Google.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_siteverification1_cli") .arg(Arg::with_name("url") diff --git a/gen/siteverification1/Cargo.toml b/gen/siteverification1/Cargo.toml index 451d27d4bd..4a10c2c92f 100644 --- a/gen/siteverification1/Cargo.toml +++ b/gen/siteverification1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-siteverification1" -version = "1.0.11+20180830" +version = "1.0.12+20180830" authors = ["Sebastian Thiel "] description = "A complete library to interact with siteVerification (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/siteverification1" homepage = "https://developers.google.com/site-verification/" -documentation = "https://docs.rs/google-siteverification1/1.0.11+20180830" +documentation = "https://docs.rs/google-siteverification1/1.0.12+20180830" license = "MIT" keywords = ["siteVerification", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/siteverification1/LICENSE.md b/gen/siteverification1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/siteverification1/LICENSE.md +++ b/gen/siteverification1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/siteverification1/README.md b/gen/siteverification1/README.md index e6a554aba9..9c9f32e149 100644 --- a/gen/siteverification1/README.md +++ b/gen/siteverification1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-siteverification1` library allows access to all features of the *Google siteVerification* service. -This documentation was generated from *siteVerification* crate version *1.0.11+20180830*, where *20180830* is the exact revision of the *siteVerification:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *siteVerification* crate version *1.0.12+20180830*, where *20180830* is the exact revision of the *siteVerification:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *siteVerification* *v1* API can be found at the [official documentation site](https://developers.google.com/site-verification/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/struct.SiteVerification.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/struct.SiteVerification.html) ... * web resource - * [*delete*](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/struct.WebResourceDeleteCall.html), [*get*](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/struct.WebResourceGetCall.html), [*get token*](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/struct.WebResourceGetTokenCall.html), [*insert*](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/struct.WebResourceInsertCall.html), [*list*](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/struct.WebResourceListCall.html), [*patch*](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/struct.WebResourcePatchCall.html) and [*update*](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/struct.WebResourceUpdateCall.html) + * [*delete*](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/struct.WebResourceDeleteCall.html), [*get*](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/struct.WebResourceGetCall.html), [*get token*](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/struct.WebResourceGetTokenCall.html), [*insert*](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/struct.WebResourceInsertCall.html), [*list*](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/struct.WebResourceListCall.html), [*patch*](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/struct.WebResourcePatchCall.html) and [*update*](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/struct.WebResourceUpdateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/struct.SiteVerification.html)** +* **[Hub](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/struct.SiteVerification.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.Part.html)** + * **[Parts](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -133,17 +133,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -153,29 +153,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-siteverification1/1.0.11+20180830/google_siteverification1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-siteverification1/1.0.12+20180830/google_siteverification1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/siteverification1/src/lib.rs b/gen/siteverification1/src/lib.rs index 3fe66c7c46..7c78d24d70 100644 --- a/gen/siteverification1/src/lib.rs +++ b/gen/siteverification1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *siteVerification* crate version *1.0.11+20180830*, where *20180830* is the exact revision of the *siteVerification:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *siteVerification* crate version *1.0.12+20180830*, where *20180830* is the exact revision of the *siteVerification:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *siteVerification* *v1* API can be found at the //! [official documentation site](https://developers.google.com/site-verification/). @@ -336,7 +336,7 @@ impl<'a, C, A> SiteVerification SiteVerification { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/siteVerification/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -347,7 +347,7 @@ impl<'a, C, A> SiteVerification } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/sourcerepo1-cli/Cargo.toml b/gen/sourcerepo1-cli/Cargo.toml index 8beee6b58a..65e0d4f216 100644 --- a/gen/sourcerepo1-cli/Cargo.toml +++ b/gen/sourcerepo1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-sourcerepo1-cli" -version = "1.0.11+20190611" +version = "1.0.12+20190611" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Source Repositories (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/sourcerepo1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-sourcerepo1] path = "../sourcerepo1" -version = "1.0.11+20190611" +version = "1.0.12+20190611" diff --git a/gen/sourcerepo1-cli/LICENSE.md b/gen/sourcerepo1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/sourcerepo1-cli/LICENSE.md +++ b/gen/sourcerepo1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/sourcerepo1-cli/README.md b/gen/sourcerepo1-cli/README.md index 1428ce2ac6..74ca7dc829 100644 --- a/gen/sourcerepo1-cli/README.md +++ b/gen/sourcerepo1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Source Repositories* API at revision *20190611*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Source Repositories* API at revision *20190611*. The CLI is at version *1.0.12*. ```bash sourcerepo1 [options] diff --git a/gen/sourcerepo1-cli/mkdocs.yml b/gen/sourcerepo1-cli/mkdocs.yml index c9dadcafbc..0d3f4cc3ad 100644 --- a/gen/sourcerepo1-cli/mkdocs.yml +++ b/gen/sourcerepo1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Source Repositories v1.0.11+20190611 +site_name: Cloud Source Repositories v1.0.12+20190611 site_url: http://byron.github.io/google-apis-rs/google-sourcerepo1-cli site_description: A complete library to interact with Cloud Source Repositories (protocol v1) @@ -23,5 +23,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/sourcerepo1-cli/src/cmn.rs b/gen/sourcerepo1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/sourcerepo1-cli/src/cmn.rs +++ b/gen/sourcerepo1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/sourcerepo1-cli/src/main.rs b/gen/sourcerepo1-cli/src/main.rs index 55d7ebcad4..a165459c8d 100644 --- a/gen/sourcerepo1-cli/src/main.rs +++ b/gen/sourcerepo1-cli/src/main.rs @@ -1275,7 +1275,7 @@ fn main() { let mut app = App::new("sourcerepo1") .author("Sebastian Thiel ") - .version("1.0.11+20190611") + .version("1.0.12+20190611") .about("Accesses source code repositories hosted by Google.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_sourcerepo1_cli") .arg(Arg::with_name("url") diff --git a/gen/sourcerepo1/Cargo.toml b/gen/sourcerepo1/Cargo.toml index 2471d64781..9df597d96a 100644 --- a/gen/sourcerepo1/Cargo.toml +++ b/gen/sourcerepo1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-sourcerepo1" -version = "1.0.11+20190611" +version = "1.0.12+20190611" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Source Repositories (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/sourcerepo1" homepage = "https://cloud.google.com/source-repositories/docs/apis" -documentation = "https://docs.rs/google-sourcerepo1/1.0.11+20190611" +documentation = "https://docs.rs/google-sourcerepo1/1.0.12+20190611" license = "MIT" keywords = ["sourcerepo", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/sourcerepo1/LICENSE.md b/gen/sourcerepo1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/sourcerepo1/LICENSE.md +++ b/gen/sourcerepo1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/sourcerepo1/README.md b/gen/sourcerepo1/README.md index ead66be735..6c1215edf9 100644 --- a/gen/sourcerepo1/README.md +++ b/gen/sourcerepo1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-sourcerepo1` library allows access to all features of the *Google Cloud Source Repositories* service. -This documentation was generated from *Cloud Source Repositories* crate version *1.0.11+20190611*, where *20190611* is the exact revision of the *sourcerepo:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Source Repositories* crate version *1.0.12+20190611*, where *20190611* is the exact revision of the *sourcerepo:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Source Repositories* *v1* API can be found at the [official documentation site](https://cloud.google.com/source-repositories/docs/apis). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/struct.CloudSourceRepositories.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/struct.CloudSourceRepositories.html) ... * projects - * [*get config*](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/struct.ProjectGetConfigCall.html), [*repos create*](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/struct.ProjectRepoCreateCall.html), [*repos delete*](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/struct.ProjectRepoDeleteCall.html), [*repos get*](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/struct.ProjectRepoGetCall.html), [*repos get iam policy*](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/struct.ProjectRepoGetIamPolicyCall.html), [*repos list*](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/struct.ProjectRepoListCall.html), [*repos patch*](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/struct.ProjectRepoPatchCall.html), [*repos set iam policy*](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/struct.ProjectRepoSetIamPolicyCall.html), [*repos sync*](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/struct.ProjectRepoSyncCall.html), [*repos test iam permissions*](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/struct.ProjectRepoTestIamPermissionCall.html) and [*update config*](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/struct.ProjectUpdateConfigCall.html) + * [*get config*](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/struct.ProjectGetConfigCall.html), [*repos create*](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/struct.ProjectRepoCreateCall.html), [*repos delete*](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/struct.ProjectRepoDeleteCall.html), [*repos get*](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/struct.ProjectRepoGetCall.html), [*repos get iam policy*](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/struct.ProjectRepoGetIamPolicyCall.html), [*repos list*](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/struct.ProjectRepoListCall.html), [*repos patch*](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/struct.ProjectRepoPatchCall.html), [*repos set iam policy*](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/struct.ProjectRepoSetIamPolicyCall.html), [*repos sync*](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/struct.ProjectRepoSyncCall.html), [*repos test iam permissions*](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/struct.ProjectRepoTestIamPermissionCall.html) and [*update config*](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/struct.ProjectUpdateConfigCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/struct.CloudSourceRepositories.html)** +* **[Hub](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/struct.CloudSourceRepositories.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.Part.html)** + * **[Parts](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-sourcerepo1/1.0.11+20190611/google_sourcerepo1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-sourcerepo1/1.0.12+20190611/google_sourcerepo1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/sourcerepo1/src/lib.rs b/gen/sourcerepo1/src/lib.rs index 54b875c6e7..91677989f0 100644 --- a/gen/sourcerepo1/src/lib.rs +++ b/gen/sourcerepo1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Source Repositories* crate version *1.0.11+20190611*, where *20190611* is the exact revision of the *sourcerepo:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Source Repositories* crate version *1.0.12+20190611*, where *20190611* is the exact revision of the *sourcerepo:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Source Repositories* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/source-repositories/docs/apis). @@ -343,7 +343,7 @@ impl<'a, C, A> CloudSourceRepositories CloudSourceRepositories { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://sourcerepo.googleapis.com/".to_string(), _root_url: "https://sourcerepo.googleapis.com/".to_string(), } @@ -354,7 +354,7 @@ impl<'a, C, A> CloudSourceRepositories } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/spanner1-cli/Cargo.toml b/gen/spanner1-cli/Cargo.toml index e128e9450b..9d069730ba 100644 --- a/gen/spanner1-cli/Cargo.toml +++ b/gen/spanner1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-spanner1-cli" -version = "1.0.11+20190613" +version = "1.0.12+20190613" authors = ["Sebastian Thiel "] description = "A complete library to interact with Spanner (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/spanner1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-spanner1] path = "../spanner1" -version = "1.0.11+20190613" +version = "1.0.12+20190613" diff --git a/gen/spanner1-cli/LICENSE.md b/gen/spanner1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/spanner1-cli/LICENSE.md +++ b/gen/spanner1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/spanner1-cli/README.md b/gen/spanner1-cli/README.md index 2ff43e34c0..92d44d05ad 100644 --- a/gen/spanner1-cli/README.md +++ b/gen/spanner1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Spanner* API at revision *20190613*. The CLI is at version *1.0.11*. +This documentation was generated from the *Spanner* API at revision *20190613*. The CLI is at version *1.0.12*. ```bash spanner1 [options] diff --git a/gen/spanner1-cli/mkdocs.yml b/gen/spanner1-cli/mkdocs.yml index 4ffd2628e0..6f29852e72 100644 --- a/gen/spanner1-cli/mkdocs.yml +++ b/gen/spanner1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Spanner v1.0.11+20190613 +site_name: Spanner v1.0.12+20190613 site_url: http://byron.github.io/google-apis-rs/google-spanner1-cli site_description: A complete library to interact with Spanner (protocol v1) @@ -53,5 +53,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/spanner1-cli/src/cmn.rs b/gen/spanner1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/spanner1-cli/src/cmn.rs +++ b/gen/spanner1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/spanner1-cli/src/main.rs b/gen/spanner1-cli/src/main.rs index 1e9f5bb5ef..40bb49a9da 100644 --- a/gen/spanner1-cli/src/main.rs +++ b/gen/spanner1-cli/src/main.rs @@ -4619,7 +4619,7 @@ fn main() { let mut app = App::new("spanner1") .author("Sebastian Thiel ") - .version("1.0.11+20190613") + .version("1.0.12+20190613") .about("Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_spanner1_cli") .arg(Arg::with_name("url") diff --git a/gen/spanner1/Cargo.toml b/gen/spanner1/Cargo.toml index 82904d47df..58c643c52c 100644 --- a/gen/spanner1/Cargo.toml +++ b/gen/spanner1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-spanner1" -version = "1.0.11+20190613" +version = "1.0.12+20190613" authors = ["Sebastian Thiel "] description = "A complete library to interact with Spanner (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/spanner1" homepage = "https://cloud.google.com/spanner/" -documentation = "https://docs.rs/google-spanner1/1.0.11+20190613" +documentation = "https://docs.rs/google-spanner1/1.0.12+20190613" license = "MIT" keywords = ["spanner", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/spanner1/LICENSE.md b/gen/spanner1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/spanner1/LICENSE.md +++ b/gen/spanner1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/spanner1/README.md b/gen/spanner1/README.md index ba64058886..77b5cf9cbf 100644 --- a/gen/spanner1/README.md +++ b/gen/spanner1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-spanner1` library allows access to all features of the *Google Spanner* service. -This documentation was generated from *Spanner* crate version *1.0.11+20190613*, where *20190613* is the exact revision of the *spanner:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Spanner* crate version *1.0.12+20190613*, where *20190613* is the exact revision of the *spanner:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Spanner* *v1* API can be found at the [official documentation site](https://cloud.google.com/spanner/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.Spanner.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.Spanner.html) ... * projects - * [*instance configs get*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceConfigGetCall.html), [*instance configs list*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceConfigListCall.html), [*instances create*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceCreateCall.html), [*instances databases create*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseCreateCall.html), [*instances databases drop database*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseDropDatabaseCall.html), [*instances databases get*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseGetCall.html), [*instances databases get ddl*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseGetDdlCall.html), [*instances databases get iam policy*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseGetIamPolicyCall.html), [*instances databases list*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseListCall.html), [*instances databases operations cancel*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseOperationCancelCall.html), [*instances databases operations delete*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseOperationDeleteCall.html), [*instances databases operations get*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseOperationGetCall.html), [*instances databases operations list*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseOperationListCall.html), [*instances databases sessions begin transaction*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionBeginTransactionCall.html), [*instances databases sessions commit*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionCommitCall.html), [*instances databases sessions create*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionCreateCall.html), [*instances databases sessions delete*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionDeleteCall.html), [*instances databases sessions execute batch dml*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionExecuteBatchDmlCall.html), [*instances databases sessions execute sql*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionExecuteSqlCall.html), [*instances databases sessions execute streaming sql*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionExecuteStreamingSqlCall.html), [*instances databases sessions get*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionGetCall.html), [*instances databases sessions list*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionListCall.html), [*instances databases sessions partition query*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionPartitionQueryCall.html), [*instances databases sessions partition read*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionPartitionReadCall.html), [*instances databases sessions read*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionReadCall.html), [*instances databases sessions rollback*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionRollbackCall.html), [*instances databases sessions streaming read*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionStreamingReadCall.html), [*instances databases set iam policy*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseSetIamPolicyCall.html), [*instances databases test iam permissions*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseTestIamPermissionCall.html), [*instances databases update ddl*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDatabaseUpdateDdlCall.html), [*instances delete*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceDeleteCall.html), [*instances get*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceGetCall.html), [*instances get iam policy*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceGetIamPolicyCall.html), [*instances list*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceListCall.html), [*instances operations cancel*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceOperationCancelCall.html), [*instances operations delete*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceOperationDeleteCall.html), [*instances operations get*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceOperationGetCall.html), [*instances operations list*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceOperationListCall.html), [*instances patch*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstancePatchCall.html), [*instances set iam policy*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceSetIamPolicyCall.html) and [*instances test iam permissions*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.ProjectInstanceTestIamPermissionCall.html) + * [*instance configs get*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceConfigGetCall.html), [*instance configs list*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceConfigListCall.html), [*instances create*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceCreateCall.html), [*instances databases create*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseCreateCall.html), [*instances databases drop database*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseDropDatabaseCall.html), [*instances databases get*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseGetCall.html), [*instances databases get ddl*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseGetDdlCall.html), [*instances databases get iam policy*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseGetIamPolicyCall.html), [*instances databases list*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseListCall.html), [*instances databases operations cancel*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseOperationCancelCall.html), [*instances databases operations delete*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseOperationDeleteCall.html), [*instances databases operations get*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseOperationGetCall.html), [*instances databases operations list*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseOperationListCall.html), [*instances databases sessions begin transaction*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionBeginTransactionCall.html), [*instances databases sessions commit*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionCommitCall.html), [*instances databases sessions create*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionCreateCall.html), [*instances databases sessions delete*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionDeleteCall.html), [*instances databases sessions execute batch dml*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionExecuteBatchDmlCall.html), [*instances databases sessions execute sql*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionExecuteSqlCall.html), [*instances databases sessions execute streaming sql*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionExecuteStreamingSqlCall.html), [*instances databases sessions get*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionGetCall.html), [*instances databases sessions list*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionListCall.html), [*instances databases sessions partition query*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionPartitionQueryCall.html), [*instances databases sessions partition read*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionPartitionReadCall.html), [*instances databases sessions read*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionReadCall.html), [*instances databases sessions rollback*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionRollbackCall.html), [*instances databases sessions streaming read*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSessionStreamingReadCall.html), [*instances databases set iam policy*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseSetIamPolicyCall.html), [*instances databases test iam permissions*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseTestIamPermissionCall.html), [*instances databases update ddl*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDatabaseUpdateDdlCall.html), [*instances delete*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceDeleteCall.html), [*instances get*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceGetCall.html), [*instances get iam policy*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceGetIamPolicyCall.html), [*instances list*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceListCall.html), [*instances operations cancel*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceOperationCancelCall.html), [*instances operations delete*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceOperationDeleteCall.html), [*instances operations get*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceOperationGetCall.html), [*instances operations list*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceOperationListCall.html), [*instances patch*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstancePatchCall.html), [*instances set iam policy*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceSetIamPolicyCall.html) and [*instances test iam permissions*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.ProjectInstanceTestIamPermissionCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/struct.Spanner.html)** +* **[Hub](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/struct.Spanner.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.Part.html)** + * **[Parts](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -137,17 +137,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -157,29 +157,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-spanner1/1.0.11+20190613/google_spanner1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-spanner1/1.0.12+20190613/google_spanner1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/spanner1/src/lib.rs b/gen/spanner1/src/lib.rs index 2be7fc5bb4..3c04ec0e98 100644 --- a/gen/spanner1/src/lib.rs +++ b/gen/spanner1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Spanner* crate version *1.0.11+20190613*, where *20190613* is the exact revision of the *spanner:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Spanner* crate version *1.0.12+20190613*, where *20190613* is the exact revision of the *spanner:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Spanner* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/spanner/). @@ -344,7 +344,7 @@ impl<'a, C, A> Spanner Spanner { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://spanner.googleapis.com/".to_string(), _root_url: "https://spanner.googleapis.com/".to_string(), } @@ -355,7 +355,7 @@ impl<'a, C, A> Spanner } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/spectrum1_explorer-cli/Cargo.toml b/gen/spectrum1_explorer-cli/Cargo.toml index 467cc8abc9..ca52677c00 100644 --- a/gen/spectrum1_explorer-cli/Cargo.toml +++ b/gen/spectrum1_explorer-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-spectrum1_explorer-cli" -version = "1.0.11+20170306" +version = "1.0.12+20170306" authors = ["Sebastian Thiel "] description = "A complete library to interact with spectrum (protocol v1explorer)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/spectrum1_explorer-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-spectrum1_explorer] path = "../spectrum1_explorer" -version = "1.0.11+20170306" +version = "1.0.12+20170306" diff --git a/gen/spectrum1_explorer-cli/LICENSE.md b/gen/spectrum1_explorer-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/spectrum1_explorer-cli/LICENSE.md +++ b/gen/spectrum1_explorer-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/spectrum1_explorer-cli/README.md b/gen/spectrum1_explorer-cli/README.md index 9180650dad..2c4deb662a 100644 --- a/gen/spectrum1_explorer-cli/README.md +++ b/gen/spectrum1_explorer-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *spectrum* API at revision *20170306*. The CLI is at version *1.0.11*. +This documentation was generated from the *spectrum* API at revision *20170306*. The CLI is at version *1.0.12*. ```bash spectrum1-explorer [options] diff --git a/gen/spectrum1_explorer-cli/mkdocs.yml b/gen/spectrum1_explorer-cli/mkdocs.yml index 1a04e72fc2..d0060d7ae9 100644 --- a/gen/spectrum1_explorer-cli/mkdocs.yml +++ b/gen/spectrum1_explorer-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: spectrum v1.0.11+20170306 +site_name: spectrum v1.0.12+20170306 site_url: http://byron.github.io/google-apis-rs/google-spectrum1_explorer-cli site_description: A complete library to interact with spectrum (protocol v1explorer) @@ -18,5 +18,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/spectrum1_explorer-cli/src/cmn.rs b/gen/spectrum1_explorer-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/spectrum1_explorer-cli/src/cmn.rs +++ b/gen/spectrum1_explorer-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/spectrum1_explorer-cli/src/main.rs b/gen/spectrum1_explorer-cli/src/main.rs index 7e497edd9d..bc8a6b7643 100644 --- a/gen/spectrum1_explorer-cli/src/main.rs +++ b/gen/spectrum1_explorer-cli/src/main.rs @@ -961,7 +961,7 @@ fn main() { let mut app = App::new("spectrum1-explorer") .author("Sebastian Thiel ") - .version("1.0.11+20170306") + .version("1.0.12+20170306") .about("API for spectrum-management functions.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_spectrum1_explorer_cli") .arg(Arg::with_name("folder") diff --git a/gen/spectrum1_explorer/Cargo.toml b/gen/spectrum1_explorer/Cargo.toml index f733501aba..3e83c25b3c 100644 --- a/gen/spectrum1_explorer/Cargo.toml +++ b/gen/spectrum1_explorer/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-spectrum1_explorer" -version = "1.0.11+20170306" +version = "1.0.12+20170306" authors = ["Sebastian Thiel "] description = "A complete library to interact with spectrum (protocol v1explorer)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/spectrum1_explorer" homepage = "http://developers.google.com/spectrum" -documentation = "https://docs.rs/google-spectrum1_explorer/1.0.11+20170306" +documentation = "https://docs.rs/google-spectrum1_explorer/1.0.12+20170306" license = "MIT" keywords = ["spectrum", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/spectrum1_explorer/LICENSE.md b/gen/spectrum1_explorer/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/spectrum1_explorer/LICENSE.md +++ b/gen/spectrum1_explorer/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/spectrum1_explorer/README.md b/gen/spectrum1_explorer/README.md index baef323265..52831c8a29 100644 --- a/gen/spectrum1_explorer/README.md +++ b/gen/spectrum1_explorer/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-spectrum1_explorer` library allows access to all features of the *Google spectrum* service. -This documentation was generated from *spectrum* crate version *1.0.11+20170306*, where *20170306* is the exact revision of the *spectrum:v1explorer* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *spectrum* crate version *1.0.12+20170306*, where *20170306* is the exact revision of the *spectrum:v1explorer* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *spectrum* *v1_explorer* API can be found at the [official documentation site](http://developers.google.com/spectrum). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/struct.Spectrum.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/struct.Spectrum.html) ... * paws - * [*get spectrum*](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/struct.PawGetSpectrumCall.html), [*get spectrum batch*](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/struct.PawGetSpectrumBatchCall.html), [*init*](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/struct.PawInitCall.html), [*notify spectrum use*](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/struct.PawNotifySpectrumUseCall.html), [*register*](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/struct.PawRegisterCall.html) and [*verify device*](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/struct.PawVerifyDeviceCall.html) + * [*get spectrum*](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/struct.PawGetSpectrumCall.html), [*get spectrum batch*](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/struct.PawGetSpectrumBatchCall.html), [*init*](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/struct.PawInitCall.html), [*notify spectrum use*](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/struct.PawNotifySpectrumUseCall.html), [*register*](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/struct.PawRegisterCall.html) and [*verify device*](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/struct.PawVerifyDeviceCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/struct.Spectrum.html)** +* **[Hub](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/struct.Spectrum.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.Part.html)** + * **[Parts](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -130,17 +130,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.RequestValue.html) and -[decodable](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.RequestValue.html) and +[decodable](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-spectrum1_explorer/1.0.11+20170306/google_spectrum1_explorer/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-spectrum1_explorer/1.0.12+20170306/google_spectrum1_explorer/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/spectrum1_explorer/src/lib.rs b/gen/spectrum1_explorer/src/lib.rs index a4d863f00a..d5f2b470db 100644 --- a/gen/spectrum1_explorer/src/lib.rs +++ b/gen/spectrum1_explorer/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *spectrum* crate version *1.0.11+20170306*, where *20170306* is the exact revision of the *spectrum:v1explorer* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *spectrum* crate version *1.0.12+20170306*, where *20170306* is the exact revision of the *spectrum:v1explorer* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *spectrum* *v1_explorer* API can be found at the //! [official documentation site](http://developers.google.com/spectrum). @@ -307,7 +307,7 @@ impl<'a, C, A> Spectrum Spectrum { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/spectrum/v1explorer/paws/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -318,7 +318,7 @@ impl<'a, C, A> Spectrum } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/speech1-cli/Cargo.toml b/gen/speech1-cli/Cargo.toml index f0fc4e5f5e..fc8c530622 100644 --- a/gen/speech1-cli/Cargo.toml +++ b/gen/speech1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-speech1-cli" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Speech (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/speech1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-speech1] path = "../speech1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" diff --git a/gen/speech1-cli/LICENSE.md b/gen/speech1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/speech1-cli/LICENSE.md +++ b/gen/speech1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/speech1-cli/README.md b/gen/speech1-cli/README.md index a0cf0ae1b7..ac660c2cd6 100644 --- a/gen/speech1-cli/README.md +++ b/gen/speech1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Speech* API at revision *20190627*. The CLI is at version *1.0.11*. +This documentation was generated from the *Speech* API at revision *20190627*. The CLI is at version *1.0.12*. ```bash speech1 [options] diff --git a/gen/speech1-cli/mkdocs.yml b/gen/speech1-cli/mkdocs.yml index 788cea7007..1acac23a23 100644 --- a/gen/speech1-cli/mkdocs.yml +++ b/gen/speech1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Speech v1.0.11+20190627 +site_name: Speech v1.0.12+20190627 site_url: http://byron.github.io/google-apis-rs/google-speech1-cli site_description: A complete library to interact with Speech (protocol v1) @@ -18,5 +18,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/speech1-cli/src/cmn.rs b/gen/speech1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/speech1-cli/src/cmn.rs +++ b/gen/speech1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/speech1-cli/src/main.rs b/gen/speech1-cli/src/main.rs index 34e5b84647..0e5cb2f0d5 100644 --- a/gen/speech1-cli/src/main.rs +++ b/gen/speech1-cli/src/main.rs @@ -788,7 +788,7 @@ fn main() { let mut app = App::new("speech1") .author("Sebastian Thiel ") - .version("1.0.11+20190627") + .version("1.0.12+20190627") .about("Converts audio to text by applying powerful neural network models.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_speech1_cli") .arg(Arg::with_name("url") diff --git a/gen/speech1/Cargo.toml b/gen/speech1/Cargo.toml index 37c61ebc72..947b269743 100644 --- a/gen/speech1/Cargo.toml +++ b/gen/speech1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-speech1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with Speech (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/speech1" homepage = "https://cloud.google.com/speech-to-text/docs/quickstart-protocol" -documentation = "https://docs.rs/google-speech1/1.0.11+20190627" +documentation = "https://docs.rs/google-speech1/1.0.12+20190627" license = "MIT" keywords = ["speech", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/speech1/LICENSE.md b/gen/speech1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/speech1/LICENSE.md +++ b/gen/speech1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/speech1/README.md b/gen/speech1/README.md index 64bb316fd5..b0e70840c6 100644 --- a/gen/speech1/README.md +++ b/gen/speech1/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-speech1` library allows access to all features of the *Google Speech* service. -This documentation was generated from *Speech* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *speech:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Speech* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *speech:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Speech* *v1* API can be found at the [official documentation site](https://cloud.google.com/speech-to-text/docs/quickstart-protocol). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/struct.Speech.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/struct.Speech.html) ... -* [operations](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/struct.Operation.html) - * [*get*](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/struct.OperationListCall.html) +* [operations](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/struct.Operation.html) + * [*get*](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/struct.OperationListCall.html) * projects - * [*locations operations get*](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/struct.ProjectLocationOperationGetCall.html) and [*locations operations list*](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/struct.ProjectLocationOperationListCall.html) + * [*locations operations get*](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/struct.ProjectLocationOperationGetCall.html) and [*locations operations list*](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/struct.ProjectLocationOperationListCall.html) * speech - * [*longrunningrecognize*](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/struct.SpeechLongrunningrecognizeCall.html) and [*recognize*](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/struct.SpeechRecognizeCall.html) + * [*longrunningrecognize*](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/struct.SpeechLongrunningrecognizeCall.html) and [*recognize*](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/struct.SpeechRecognizeCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/struct.Speech.html)** +* **[Hub](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/struct.Speech.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.Part.html)** + * **[Parts](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -135,17 +135,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -155,29 +155,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-speech1/1.0.11+20190627/google_speech1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-speech1/1.0.12+20190627/google_speech1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/speech1/src/lib.rs b/gen/speech1/src/lib.rs index 02152fcfbb..1957a2a6ed 100644 --- a/gen/speech1/src/lib.rs +++ b/gen/speech1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Speech* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *speech:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Speech* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *speech:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Speech* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/speech-to-text/docs/quickstart-protocol). @@ -332,7 +332,7 @@ impl<'a, C, A> Speech Speech { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://speech.googleapis.com/".to_string(), _root_url: "https://speech.googleapis.com/".to_string(), } @@ -349,7 +349,7 @@ impl<'a, C, A> Speech } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/speech1_beta1-cli/Cargo.toml b/gen/speech1_beta1-cli/Cargo.toml index f2b3f30a9d..ae8a27c799 100644 --- a/gen/speech1_beta1-cli/Cargo.toml +++ b/gen/speech1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-speech1_beta1-cli" -version = "1.0.11+20181005" +version = "1.0.12+20181005" authors = ["Sebastian Thiel "] description = "A complete library to interact with Speech (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/speech1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-speech1_beta1] path = "../speech1_beta1" -version = "1.0.11+20181005" +version = "1.0.12+20181005" diff --git a/gen/speech1_beta1-cli/LICENSE.md b/gen/speech1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/speech1_beta1-cli/LICENSE.md +++ b/gen/speech1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/speech1_beta1-cli/README.md b/gen/speech1_beta1-cli/README.md index 8f97a65315..029d4c8c15 100644 --- a/gen/speech1_beta1-cli/README.md +++ b/gen/speech1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Speech* API at revision *20181005*. The CLI is at version *1.0.11*. +This documentation was generated from the *Speech* API at revision *20181005*. The CLI is at version *1.0.12*. ```bash speech1-beta1 [options] diff --git a/gen/speech1_beta1-cli/mkdocs.yml b/gen/speech1_beta1-cli/mkdocs.yml index e9e7959026..eabe90dd71 100644 --- a/gen/speech1_beta1-cli/mkdocs.yml +++ b/gen/speech1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Speech v1.0.11+20181005 +site_name: Speech v1.0.12+20181005 site_url: http://byron.github.io/google-apis-rs/google-speech1_beta1-cli site_description: A complete library to interact with Speech (protocol v1beta1) @@ -16,5 +16,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/speech1_beta1-cli/src/cmn.rs b/gen/speech1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/speech1_beta1-cli/src/cmn.rs +++ b/gen/speech1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/speech1_beta1-cli/src/main.rs b/gen/speech1_beta1-cli/src/main.rs index 26b0ebe7a3..d0669f1f5c 100644 --- a/gen/speech1_beta1-cli/src/main.rs +++ b/gen/speech1_beta1-cli/src/main.rs @@ -574,7 +574,7 @@ fn main() { let mut app = App::new("speech1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20181005") + .version("1.0.12+20181005") .about("Converts audio to text by applying powerful neural network models.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_speech1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/speech1_beta1/Cargo.toml b/gen/speech1_beta1/Cargo.toml index 33dffa43b6..92befaf2e2 100644 --- a/gen/speech1_beta1/Cargo.toml +++ b/gen/speech1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-speech1_beta1" -version = "1.0.11+20181005" +version = "1.0.12+20181005" authors = ["Sebastian Thiel "] description = "A complete library to interact with Speech (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/speech1_beta1" homepage = "https://cloud.google.com/speech-to-text/docs/quickstart-protocol" -documentation = "https://docs.rs/google-speech1_beta1/1.0.11+20181005" +documentation = "https://docs.rs/google-speech1_beta1/1.0.12+20181005" license = "MIT" keywords = ["speech", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/speech1_beta1/LICENSE.md b/gen/speech1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/speech1_beta1/LICENSE.md +++ b/gen/speech1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/speech1_beta1/README.md b/gen/speech1_beta1/README.md index d674083360..67439976c0 100644 --- a/gen/speech1_beta1/README.md +++ b/gen/speech1_beta1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-speech1_beta1` library allows access to all features of the *Google Speech* service. -This documentation was generated from *Speech* crate version *1.0.11+20181005*, where *20181005* is the exact revision of the *speech:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Speech* crate version *1.0.12+20181005*, where *20181005* is the exact revision of the *speech:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Speech* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/speech-to-text/docs/quickstart-protocol). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/struct.Speech.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/struct.Speech.html) ... -* [operations](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/struct.Operation.html) - * [*get*](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/struct.OperationListCall.html) +* [operations](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/struct.Operation.html) + * [*get*](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/struct.OperationListCall.html) * speech - * [*asyncrecognize*](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/struct.SpeechAsyncrecognizeCall.html) and [*syncrecognize*](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/struct.SpeechSyncrecognizeCall.html) + * [*asyncrecognize*](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/struct.SpeechAsyncrecognizeCall.html) and [*syncrecognize*](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/struct.SpeechSyncrecognizeCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/struct.Speech.html)** +* **[Hub](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/struct.Speech.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -132,17 +132,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -152,29 +152,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-speech1_beta1/1.0.11+20181005/google_speech1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-speech1_beta1/1.0.12+20181005/google_speech1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/speech1_beta1/src/lib.rs b/gen/speech1_beta1/src/lib.rs index ed199b21b0..fc587f2ea5 100644 --- a/gen/speech1_beta1/src/lib.rs +++ b/gen/speech1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Speech* crate version *1.0.11+20181005*, where *20181005* is the exact revision of the *speech:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Speech* crate version *1.0.12+20181005*, where *20181005* is the exact revision of the *speech:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Speech* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/speech-to-text/docs/quickstart-protocol). @@ -329,7 +329,7 @@ impl<'a, C, A> Speech Speech { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://speech.googleapis.com/".to_string(), _root_url: "https://speech.googleapis.com/".to_string(), } @@ -343,7 +343,7 @@ impl<'a, C, A> Speech } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/sqladmin1_beta4-cli/Cargo.toml b/gen/sqladmin1_beta4-cli/Cargo.toml index 9a5804563e..7000cb20db 100644 --- a/gen/sqladmin1_beta4-cli/Cargo.toml +++ b/gen/sqladmin1_beta4-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-sqladmin1_beta4-cli" -version = "1.0.11+20190607" +version = "1.0.12+20190607" authors = ["Sebastian Thiel "] description = "A complete library to interact with SQL Admin (protocol v1beta4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/sqladmin1_beta4-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-sqladmin1_beta4] path = "../sqladmin1_beta4" -version = "1.0.11+20190607" +version = "1.0.12+20190607" diff --git a/gen/sqladmin1_beta4-cli/LICENSE.md b/gen/sqladmin1_beta4-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/sqladmin1_beta4-cli/LICENSE.md +++ b/gen/sqladmin1_beta4-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/sqladmin1_beta4-cli/README.md b/gen/sqladmin1_beta4-cli/README.md index 2655be9a8f..ed061039de 100644 --- a/gen/sqladmin1_beta4-cli/README.md +++ b/gen/sqladmin1_beta4-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *SQL Admin* API at revision *20190607*. The CLI is at version *1.0.11*. +This documentation was generated from the *SQL Admin* API at revision *20190607*. The CLI is at version *1.0.12*. ```bash sqladmin1-beta4 [options] diff --git a/gen/sqladmin1_beta4-cli/mkdocs.yml b/gen/sqladmin1_beta4-cli/mkdocs.yml index 4f67a05184..a07f8d75b6 100644 --- a/gen/sqladmin1_beta4-cli/mkdocs.yml +++ b/gen/sqladmin1_beta4-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: SQL Admin v1.0.11+20190607 +site_name: SQL Admin v1.0.12+20190607 site_url: http://byron.github.io/google-apis-rs/google-sqladmin1_beta4-cli site_description: A complete library to interact with SQL Admin (protocol v1beta4) @@ -56,5 +56,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/sqladmin1_beta4-cli/src/cmn.rs b/gen/sqladmin1_beta4-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/sqladmin1_beta4-cli/src/cmn.rs +++ b/gen/sqladmin1_beta4-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/sqladmin1_beta4-cli/src/main.rs b/gen/sqladmin1_beta4-cli/src/main.rs index a217165a0b..17fe420023 100644 --- a/gen/sqladmin1_beta4-cli/src/main.rs +++ b/gen/sqladmin1_beta4-cli/src/main.rs @@ -5006,7 +5006,7 @@ fn main() { let mut app = App::new("sqladmin1-beta4") .author("Sebastian Thiel ") - .version("1.0.11+20190607") + .version("1.0.12+20190607") .about("Creates and manages Cloud SQL instances, which provide fully managed MySQL or PostgreSQL databases.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_sqladmin1_beta4_cli") .arg(Arg::with_name("url") diff --git a/gen/sqladmin1_beta4/Cargo.toml b/gen/sqladmin1_beta4/Cargo.toml index 68c593198e..04535eb2ec 100644 --- a/gen/sqladmin1_beta4/Cargo.toml +++ b/gen/sqladmin1_beta4/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-sqladmin1_beta4" -version = "1.0.11+20190607" +version = "1.0.12+20190607" authors = ["Sebastian Thiel "] description = "A complete library to interact with SQL Admin (protocol v1beta4)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/sqladmin1_beta4" homepage = "https://cloud.google.com/sql/docs/reference/latest" -documentation = "https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607" +documentation = "https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607" license = "MIT" keywords = ["sqladmin", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/sqladmin1_beta4/LICENSE.md b/gen/sqladmin1_beta4/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/sqladmin1_beta4/LICENSE.md +++ b/gen/sqladmin1_beta4/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/sqladmin1_beta4/README.md b/gen/sqladmin1_beta4/README.md index 821b33b4ee..7b75a43878 100644 --- a/gen/sqladmin1_beta4/README.md +++ b/gen/sqladmin1_beta4/README.md @@ -5,30 +5,30 @@ DO NOT EDIT ! --> The `google-sqladmin1_beta4` library allows access to all features of the *Google SQL Admin* service. -This documentation was generated from *SQL Admin* crate version *1.0.11+20190607*, where *20190607* is the exact revision of the *sqladmin:v1beta4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *SQL Admin* crate version *1.0.12+20190607*, where *20190607* is the exact revision of the *sqladmin:v1beta4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *SQL Admin* *v1_beta4* API can be found at the [official documentation site](https://cloud.google.com/sql/docs/reference/latest). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.SQLAdmin.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.SQLAdmin.html) ... -* [backup runs](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.BackupRun.html) - * [*delete*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.BackupRunDeleteCall.html), [*get*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.BackupRunGetCall.html), [*insert*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.BackupRunInsertCall.html) and [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.BackupRunListCall.html) -* [databases](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.Database.html) - * [*delete*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.DatabaseDeleteCall.html), [*get*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.DatabaseGetCall.html), [*insert*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.DatabaseInsertCall.html), [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.DatabaseListCall.html), [*patch*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.DatabasePatchCall.html) and [*update*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.DatabaseUpdateCall.html) -* [flags](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.Flag.html) - * [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.FlagListCall.html) +* [backup runs](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.BackupRun.html) + * [*delete*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.BackupRunDeleteCall.html), [*get*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.BackupRunGetCall.html), [*insert*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.BackupRunInsertCall.html) and [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.BackupRunListCall.html) +* [databases](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.Database.html) + * [*delete*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.DatabaseDeleteCall.html), [*get*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.DatabaseGetCall.html), [*insert*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.DatabaseInsertCall.html), [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.DatabaseListCall.html), [*patch*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.DatabasePatchCall.html) and [*update*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.DatabaseUpdateCall.html) +* [flags](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.Flag.html) + * [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.FlagListCall.html) * instances - * [*add server ca*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceAddServerCaCall.html), [*clone*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceCloneCall.html), [*delete*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceDeleteCall.html), [*demote master*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceDemoteMasterCall.html), [*export*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceExportCall.html), [*failover*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceFailoverCall.html), [*get*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceGetCall.html), [*import*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceImportCall.html), [*insert*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceInsertCall.html), [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceListCall.html), [*list server cas*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceListServerCaCall.html), [*patch*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstancePatchCall.html), [*promote replica*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstancePromoteReplicaCall.html), [*reset ssl config*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceResetSslConfigCall.html), [*restart*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceRestartCall.html), [*restore backup*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceRestoreBackupCall.html), [*rotate server ca*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceRotateServerCaCall.html), [*start replica*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceStartReplicaCall.html), [*stop replica*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceStopReplicaCall.html), [*truncate log*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceTruncateLogCall.html) and [*update*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.InstanceUpdateCall.html) -* [operations](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.Operation.html) - * [*get*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.OperationListCall.html) -* [ssl certs](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.SslCert.html) - * [*create ephemeral*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.SslCertCreateEphemeralCall.html), [*delete*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.SslCertDeleteCall.html), [*get*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.SslCertGetCall.html), [*insert*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.SslCertInsertCall.html) and [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.SslCertListCall.html) -* [tiers](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.Tier.html) - * [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.TierListCall.html) -* [users](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.User.html) - * [*delete*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.UserDeleteCall.html), [*insert*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.UserInsertCall.html), [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.UserListCall.html) and [*update*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.UserUpdateCall.html) + * [*add server ca*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceAddServerCaCall.html), [*clone*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceCloneCall.html), [*delete*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceDeleteCall.html), [*demote master*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceDemoteMasterCall.html), [*export*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceExportCall.html), [*failover*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceFailoverCall.html), [*get*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceGetCall.html), [*import*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceImportCall.html), [*insert*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceInsertCall.html), [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceListCall.html), [*list server cas*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceListServerCaCall.html), [*patch*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstancePatchCall.html), [*promote replica*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstancePromoteReplicaCall.html), [*reset ssl config*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceResetSslConfigCall.html), [*restart*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceRestartCall.html), [*restore backup*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceRestoreBackupCall.html), [*rotate server ca*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceRotateServerCaCall.html), [*start replica*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceStartReplicaCall.html), [*stop replica*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceStopReplicaCall.html), [*truncate log*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceTruncateLogCall.html) and [*update*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.InstanceUpdateCall.html) +* [operations](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.Operation.html) + * [*get*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.OperationListCall.html) +* [ssl certs](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.SslCert.html) + * [*create ephemeral*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.SslCertCreateEphemeralCall.html), [*delete*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.SslCertDeleteCall.html), [*get*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.SslCertGetCall.html), [*insert*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.SslCertInsertCall.html) and [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.SslCertListCall.html) +* [tiers](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.Tier.html) + * [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.TierListCall.html) +* [users](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.User.html) + * [*delete*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.UserDeleteCall.html), [*insert*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.UserInsertCall.html), [*list*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.UserListCall.html) and [*update*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.UserUpdateCall.html) @@ -37,17 +37,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/struct.SQLAdmin.html)** +* **[Hub](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/struct.SQLAdmin.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.Part.html)** + * **[Parts](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -174,17 +174,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -194,29 +194,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.RequestValue.html) and -[decodable](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.RequestValue.html) and +[decodable](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-sqladmin1_beta4/1.0.11+20190607/google_sqladmin1_beta4/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-sqladmin1_beta4/1.0.12+20190607/google_sqladmin1_beta4/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/sqladmin1_beta4/src/lib.rs b/gen/sqladmin1_beta4/src/lib.rs index cba15ea12e..37f50371bf 100644 --- a/gen/sqladmin1_beta4/src/lib.rs +++ b/gen/sqladmin1_beta4/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *SQL Admin* crate version *1.0.11+20190607*, where *20190607* is the exact revision of the *sqladmin:v1beta4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *SQL Admin* crate version *1.0.12+20190607*, where *20190607* is the exact revision of the *sqladmin:v1beta4* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *SQL Admin* *v1_beta4* API can be found at the //! [official documentation site](https://cloud.google.com/sql/docs/reference/latest). @@ -378,7 +378,7 @@ impl<'a, C, A> SQLAdmin SQLAdmin { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/sql/v1beta4/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -410,7 +410,7 @@ impl<'a, C, A> SQLAdmin } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/storage1-cli/Cargo.toml b/gen/storage1-cli/Cargo.toml index d73d535b8a..b923661e5e 100644 --- a/gen/storage1-cli/Cargo.toml +++ b/gen/storage1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-storage1-cli" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with storage (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/storage1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-storage1] path = "../storage1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" diff --git a/gen/storage1-cli/LICENSE.md b/gen/storage1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/storage1-cli/LICENSE.md +++ b/gen/storage1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/storage1-cli/README.md b/gen/storage1-cli/README.md index 7fda158157..ad3c371942 100644 --- a/gen/storage1-cli/README.md +++ b/gen/storage1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *storage* API at revision *20190624*. The CLI is at version *1.0.11*. +This documentation was generated from the *storage* API at revision *20190624*. The CLI is at version *1.0.12*. ```bash storage1 [options] diff --git a/gen/storage1-cli/mkdocs.yml b/gen/storage1-cli/mkdocs.yml index d860fa5f29..ba7c6d5ccd 100644 --- a/gen/storage1-cli/mkdocs.yml +++ b/gen/storage1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: storage v1.0.11+20190624 +site_name: storage v1.0.12+20190624 site_url: http://byron.github.io/google-apis-rs/google-storage1-cli site_description: A complete library to interact with storage (protocol v1) @@ -64,5 +64,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/storage1-cli/src/cmn.rs b/gen/storage1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/storage1-cli/src/cmn.rs +++ b/gen/storage1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/storage1-cli/src/main.rs b/gen/storage1-cli/src/main.rs index a293157af2..8eecac11e5 100644 --- a/gen/storage1-cli/src/main.rs +++ b/gen/storage1-cli/src/main.rs @@ -6421,7 +6421,7 @@ fn main() { let mut app = App::new("storage1") .author("Sebastian Thiel ") - .version("1.0.11+20190624") + .version("1.0.12+20190624") .about("Stores and retrieves potentially large, immutable data objects.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_storage1_cli") .arg(Arg::with_name("url") diff --git a/gen/storage1/Cargo.toml b/gen/storage1/Cargo.toml index cd285660f3..2637a113eb 100644 --- a/gen/storage1/Cargo.toml +++ b/gen/storage1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-storage1" -version = "1.0.11+20190624" +version = "1.0.12+20190624" authors = ["Sebastian Thiel "] description = "A complete library to interact with storage (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/storage1" homepage = "https://developers.google.com/storage/docs/json_api/" -documentation = "https://docs.rs/google-storage1/1.0.11+20190624" +documentation = "https://docs.rs/google-storage1/1.0.12+20190624" license = "MIT" keywords = ["storage", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/storage1/LICENSE.md b/gen/storage1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/storage1/LICENSE.md +++ b/gen/storage1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/storage1/README.md b/gen/storage1/README.md index 6e297267f4..7bf927418e 100644 --- a/gen/storage1/README.md +++ b/gen/storage1/README.md @@ -5,44 +5,44 @@ DO NOT EDIT ! --> The `google-storage1` library allows access to all features of the *Google storage* service. -This documentation was generated from *storage* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *storage:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *storage* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *storage:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *storage* *v1* API can be found at the [official documentation site](https://developers.google.com/storage/docs/json_api/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.Storage.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.Storage.html) ... -* [bucket access controls](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketAccessControl.html) - * [*delete*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketAccessControlDeleteCall.html), [*get*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketAccessControlGetCall.html), [*insert*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketAccessControlInsertCall.html), [*list*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketAccessControlListCall.html), [*patch*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketAccessControlPatchCall.html) and [*update*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketAccessControlUpdateCall.html) -* [buckets](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.Bucket.html) - * [*delete*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketDeleteCall.html), [*get*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketGetCall.html), [*get iam policy*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketGetIamPolicyCall.html), [*insert*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketInsertCall.html), [*list*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketListCall.html), [*lock retention policy*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketLockRetentionPolicyCall.html), [*patch*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketPatchCall.html), [*set iam policy*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketTestIamPermissionCall.html) and [*update*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.BucketUpdateCall.html) -* [channels](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.Channel.html) - * [*stop*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ChannelStopCall.html) +* [bucket access controls](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketAccessControl.html) + * [*delete*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketAccessControlDeleteCall.html), [*get*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketAccessControlGetCall.html), [*insert*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketAccessControlInsertCall.html), [*list*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketAccessControlListCall.html), [*patch*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketAccessControlPatchCall.html) and [*update*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketAccessControlUpdateCall.html) +* [buckets](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.Bucket.html) + * [*delete*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketDeleteCall.html), [*get*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketGetCall.html), [*get iam policy*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketGetIamPolicyCall.html), [*insert*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketInsertCall.html), [*list*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketListCall.html), [*lock retention policy*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketLockRetentionPolicyCall.html), [*patch*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketPatchCall.html), [*set iam policy*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketTestIamPermissionCall.html) and [*update*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.BucketUpdateCall.html) +* [channels](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.Channel.html) + * [*stop*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ChannelStopCall.html) * default object access controls - * [*delete*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.DefaultObjectAccessControlDeleteCall.html), [*get*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.DefaultObjectAccessControlGetCall.html), [*insert*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.DefaultObjectAccessControlInsertCall.html), [*list*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.DefaultObjectAccessControlListCall.html), [*patch*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.DefaultObjectAccessControlPatchCall.html) and [*update*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.DefaultObjectAccessControlUpdateCall.html) -* [notifications](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.Notification.html) - * [*delete*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.NotificationDeleteCall.html), [*get*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.NotificationGetCall.html), [*insert*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.NotificationInsertCall.html) and [*list*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.NotificationListCall.html) -* [object access controls](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectAccessControl.html) - * [*delete*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectAccessControlDeleteCall.html), [*get*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectAccessControlGetCall.html), [*insert*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectAccessControlInsertCall.html), [*list*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectAccessControlListCall.html), [*patch*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectAccessControlPatchCall.html) and [*update*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectAccessControlUpdateCall.html) -* [objects](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.Object.html) - * [*compose*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectComposeCall.html), [*copy*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectCopyCall.html), [*delete*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectDeleteCall.html), [*get*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectGetCall.html), [*get iam policy*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectGetIamPolicyCall.html), [*insert*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectInsertCall.html), [*list*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectListCall.html), [*patch*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectPatchCall.html), [*rewrite*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectRewriteCall.html), [*set iam policy*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectTestIamPermissionCall.html), [*update*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectUpdateCall.html) and [*watch all*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectWatchAllCall.html) + * [*delete*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.DefaultObjectAccessControlDeleteCall.html), [*get*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.DefaultObjectAccessControlGetCall.html), [*insert*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.DefaultObjectAccessControlInsertCall.html), [*list*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.DefaultObjectAccessControlListCall.html), [*patch*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.DefaultObjectAccessControlPatchCall.html) and [*update*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.DefaultObjectAccessControlUpdateCall.html) +* [notifications](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.Notification.html) + * [*delete*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.NotificationDeleteCall.html), [*get*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.NotificationGetCall.html), [*insert*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.NotificationInsertCall.html) and [*list*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.NotificationListCall.html) +* [object access controls](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectAccessControl.html) + * [*delete*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectAccessControlDeleteCall.html), [*get*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectAccessControlGetCall.html), [*insert*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectAccessControlInsertCall.html), [*list*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectAccessControlListCall.html), [*patch*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectAccessControlPatchCall.html) and [*update*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectAccessControlUpdateCall.html) +* [objects](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.Object.html) + * [*compose*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectComposeCall.html), [*copy*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectCopyCall.html), [*delete*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectDeleteCall.html), [*get*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectGetCall.html), [*get iam policy*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectGetIamPolicyCall.html), [*insert*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectInsertCall.html), [*list*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectListCall.html), [*patch*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectPatchCall.html), [*rewrite*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectRewriteCall.html), [*set iam policy*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectSetIamPolicyCall.html), [*test iam permissions*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectTestIamPermissionCall.html), [*update*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectUpdateCall.html) and [*watch all*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectWatchAllCall.html) * projects - * [*hmac keys create*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ProjectHmacKeyCreateCall.html), [*hmac keys delete*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ProjectHmacKeyDeleteCall.html), [*hmac keys get*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ProjectHmacKeyGetCall.html), [*hmac keys list*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ProjectHmacKeyListCall.html), [*hmac keys update*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ProjectHmacKeyUpdateCall.html) and [*service account get*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ProjectServiceAccountGetCall.html) + * [*hmac keys create*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ProjectHmacKeyCreateCall.html), [*hmac keys delete*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ProjectHmacKeyDeleteCall.html), [*hmac keys get*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ProjectHmacKeyGetCall.html), [*hmac keys list*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ProjectHmacKeyListCall.html), [*hmac keys update*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ProjectHmacKeyUpdateCall.html) and [*service account get*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ProjectServiceAccountGetCall.html) Upload supported by ... -* [*insert objects*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectInsertCall.html) +* [*insert objects*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectInsertCall.html) Download supported by ... -* [*get objects*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectGetCall.html) +* [*get objects*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectGetCall.html) Subscription supported by ... -* [*watch all objects*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectWatchAllCall.html) -* [*list objects*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.ObjectListCall.html) +* [*watch all objects*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectWatchAllCall.html) +* [*list objects*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.ObjectListCall.html) @@ -50,17 +50,17 @@ Subscription supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/struct.Storage.html)** +* **[Hub](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/struct.Storage.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.Part.html)** + * **[Parts](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -185,17 +185,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -205,29 +205,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-storage1/1.0.11+20190624/google_storage1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-storage1/1.0.12+20190624/google_storage1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/storage1/src/lib.rs b/gen/storage1/src/lib.rs index 6a816b6334..2a1b407e29 100644 --- a/gen/storage1/src/lib.rs +++ b/gen/storage1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *storage* crate version *1.0.11+20190624*, where *20190624* is the exact revision of the *storage:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *storage* crate version *1.0.12+20190624*, where *20190624* is the exact revision of the *storage:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *storage* *v1* API can be found at the //! [official documentation site](https://developers.google.com/storage/docs/json_api/). @@ -416,7 +416,7 @@ impl<'a, C, A> Storage Storage { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/storage/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -448,7 +448,7 @@ impl<'a, C, A> Storage } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/storagetransfer1-cli/Cargo.toml b/gen/storagetransfer1-cli/Cargo.toml index b16d69128c..292eb6c067 100644 --- a/gen/storagetransfer1-cli/Cargo.toml +++ b/gen/storagetransfer1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-storagetransfer1-cli" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with storagetransfer (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/storagetransfer1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-storagetransfer1] path = "../storagetransfer1" -version = "1.0.11+20190702" +version = "1.0.12+20190702" diff --git a/gen/storagetransfer1-cli/LICENSE.md b/gen/storagetransfer1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/storagetransfer1-cli/LICENSE.md +++ b/gen/storagetransfer1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/storagetransfer1-cli/README.md b/gen/storagetransfer1-cli/README.md index ef8281c773..3452a58363 100644 --- a/gen/storagetransfer1-cli/README.md +++ b/gen/storagetransfer1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *storagetransfer* API at revision *20190702*. The CLI is at version *1.0.11*. +This documentation was generated from the *storagetransfer* API at revision *20190702*. The CLI is at version *1.0.12*. ```bash storagetransfer1 [options] diff --git a/gen/storagetransfer1-cli/mkdocs.yml b/gen/storagetransfer1-cli/mkdocs.yml index 76f7afbf94..814a2bde28 100644 --- a/gen/storagetransfer1-cli/mkdocs.yml +++ b/gen/storagetransfer1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: storagetransfer v1.0.11+20190702 +site_name: storagetransfer v1.0.12+20190702 site_url: http://byron.github.io/google-apis-rs/google-storagetransfer1-cli site_description: A complete library to interact with storagetransfer (protocol v1) @@ -23,5 +23,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/storagetransfer1-cli/src/cmn.rs b/gen/storagetransfer1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/storagetransfer1-cli/src/cmn.rs +++ b/gen/storagetransfer1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/storagetransfer1-cli/src/main.rs b/gen/storagetransfer1-cli/src/main.rs index f2eafd78fc..852d958580 100644 --- a/gen/storagetransfer1-cli/src/main.rs +++ b/gen/storagetransfer1-cli/src/main.rs @@ -1267,7 +1267,7 @@ fn main() { let mut app = App::new("storagetransfer1") .author("Sebastian Thiel ") - .version("1.0.11+20190702") + .version("1.0.12+20190702") .about("Transfers data from external data sources to a Google Cloud Storage bucket or between Google Cloud Storage buckets.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_storagetransfer1_cli") .arg(Arg::with_name("url") diff --git a/gen/storagetransfer1/Cargo.toml b/gen/storagetransfer1/Cargo.toml index 9a4adefb91..ef5d239720 100644 --- a/gen/storagetransfer1/Cargo.toml +++ b/gen/storagetransfer1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-storagetransfer1" -version = "1.0.11+20190702" +version = "1.0.12+20190702" authors = ["Sebastian Thiel "] description = "A complete library to interact with storagetransfer (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/storagetransfer1" homepage = "https://cloud.google.com/storage-transfer/docs" -documentation = "https://docs.rs/google-storagetransfer1/1.0.11+20190702" +documentation = "https://docs.rs/google-storagetransfer1/1.0.12+20190702" license = "MIT" keywords = ["storagetransfer", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/storagetransfer1/LICENSE.md b/gen/storagetransfer1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/storagetransfer1/LICENSE.md +++ b/gen/storagetransfer1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/storagetransfer1/README.md b/gen/storagetransfer1/README.md index c376ed25d5..a86a0adf19 100644 --- a/gen/storagetransfer1/README.md +++ b/gen/storagetransfer1/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-storagetransfer1` library allows access to all features of the *Google storagetransfer* service. -This documentation was generated from *storagetransfer* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *storagetransfer:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *storagetransfer* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *storagetransfer:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *storagetransfer* *v1* API can be found at the [official documentation site](https://cloud.google.com/storage-transfer/docs). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.Storagetransfer.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.Storagetransfer.html) ... -* [google service accounts](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.GoogleServiceAccount.html) - * [*get*](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.GoogleServiceAccountGetCall.html) -* [transfer jobs](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.TransferJob.html) - * [*create*](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.TransferJobCreateCall.html), [*get*](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.TransferJobGetCall.html), [*list*](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.TransferJobListCall.html) and [*patch*](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.TransferJobPatchCall.html) -* [transfer operations](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.TransferOperation.html) - * [*cancel*](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.TransferOperationCancelCall.html), [*delete*](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.TransferOperationDeleteCall.html), [*get*](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.TransferOperationGetCall.html), [*list*](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.TransferOperationListCall.html), [*pause*](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.TransferOperationPauseCall.html) and [*resume*](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.TransferOperationResumeCall.html) +* [google service accounts](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.GoogleServiceAccount.html) + * [*get*](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.GoogleServiceAccountGetCall.html) +* [transfer jobs](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.TransferJob.html) + * [*create*](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.TransferJobCreateCall.html), [*get*](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.TransferJobGetCall.html), [*list*](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.TransferJobListCall.html) and [*patch*](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.TransferJobPatchCall.html) +* [transfer operations](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.TransferOperation.html) + * [*cancel*](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.TransferOperationCancelCall.html), [*delete*](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.TransferOperationDeleteCall.html), [*get*](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.TransferOperationGetCall.html), [*list*](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.TransferOperationListCall.html), [*pause*](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.TransferOperationPauseCall.html) and [*resume*](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.TransferOperationResumeCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/struct.Storagetransfer.html)** +* **[Hub](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/struct.Storagetransfer.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.Part.html)** + * **[Parts](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-storagetransfer1/1.0.11+20190702/google_storagetransfer1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-storagetransfer1/1.0.12+20190702/google_storagetransfer1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/storagetransfer1/src/lib.rs b/gen/storagetransfer1/src/lib.rs index 7b9ad3d3ba..e67ead65bb 100644 --- a/gen/storagetransfer1/src/lib.rs +++ b/gen/storagetransfer1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *storagetransfer* crate version *1.0.11+20190702*, where *20190702* is the exact revision of the *storagetransfer:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *storagetransfer* crate version *1.0.12+20190702*, where *20190702* is the exact revision of the *storagetransfer:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *storagetransfer* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/storage-transfer/docs). @@ -332,7 +332,7 @@ impl<'a, C, A> Storagetransfer Storagetransfer { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://storagetransfer.googleapis.com/".to_string(), _root_url: "https://storagetransfer.googleapis.com/".to_string(), } @@ -349,7 +349,7 @@ impl<'a, C, A> Storagetransfer } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/surveys2-cli/Cargo.toml b/gen/surveys2-cli/Cargo.toml index 09b6022aaa..e69e532ba0 100644 --- a/gen/surveys2-cli/Cargo.toml +++ b/gen/surveys2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-surveys2-cli" -version = "1.0.11+20180508" +version = "1.0.12+20180508" authors = ["Sebastian Thiel "] description = "A complete library to interact with Surveys (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/surveys2-cli" @@ -41,4 +41,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-surveys2] path = "../surveys2" -version = "1.0.11+20180508" +version = "1.0.12+20180508" diff --git a/gen/surveys2-cli/LICENSE.md b/gen/surveys2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/surveys2-cli/LICENSE.md +++ b/gen/surveys2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/surveys2-cli/README.md b/gen/surveys2-cli/README.md index ce97883d0d..463a84fd7b 100644 --- a/gen/surveys2-cli/README.md +++ b/gen/surveys2-cli/README.md @@ -22,7 +22,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Surveys* API at revision *20180508*. The CLI is at version *1.0.11*. +This documentation was generated from the *Surveys* API at revision *20180508*. The CLI is at version *1.0.12*. ```bash surveys2 [options] diff --git a/gen/surveys2-cli/mkdocs.yml b/gen/surveys2-cli/mkdocs.yml index a023b82ac9..64482b269e 100644 --- a/gen/surveys2-cli/mkdocs.yml +++ b/gen/surveys2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Surveys v1.0.11+20180508 +site_name: Surveys v1.0.12+20180508 site_url: http://byron.github.io/google-apis-rs/google-surveys2-cli site_description: A complete library to interact with Surveys (protocol v2) @@ -20,5 +20,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/surveys2-cli/src/cmn.rs b/gen/surveys2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/surveys2-cli/src/cmn.rs +++ b/gen/surveys2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/surveys2-cli/src/main.rs b/gen/surveys2-cli/src/main.rs index aaec0df66d..d677de16ac 100644 --- a/gen/surveys2-cli/src/main.rs +++ b/gen/surveys2-cli/src/main.rs @@ -974,7 +974,7 @@ fn main() { let mut app = App::new("surveys2") .author("Sebastian Thiel ") - .version("1.0.11+20180508") + .version("1.0.12+20180508") .about("Creates and conducts surveys, lists the surveys that an authenticated user owns, and retrieves survey results and information about specified surveys.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_surveys2_cli") .arg(Arg::with_name("url") diff --git a/gen/surveys2/Cargo.toml b/gen/surveys2/Cargo.toml index d4455aa345..c86b1f70d2 100644 --- a/gen/surveys2/Cargo.toml +++ b/gen/surveys2/Cargo.toml @@ -4,11 +4,11 @@ [package] name = "google-surveys2" -version = "1.0.11+20180508" +version = "1.0.12+20180508" authors = ["Sebastian Thiel "] description = "A complete library to interact with Surveys (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/surveys2" -documentation = "https://docs.rs/google-surveys2/1.0.11+20180508" +documentation = "https://docs.rs/google-surveys2/1.0.12+20180508" license = "MIT" keywords = ["surveys", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/surveys2/LICENSE.md b/gen/surveys2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/surveys2/LICENSE.md +++ b/gen/surveys2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/surveys2/README.md b/gen/surveys2/README.md index 4baceab76c..b221a9997f 100644 --- a/gen/surveys2/README.md +++ b/gen/surveys2/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-surveys2` library allows access to all features of the *Google Surveys* service. -This documentation was generated from *Surveys* crate version *1.0.11+20180508*, where *20180508* is the exact revision of the *surveys:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Surveys* crate version *1.0.12+20180508*, where *20180508* is the exact revision of the *surveys:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/struct.Surveys.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/struct.Surveys.html) ... * results - * [*get*](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/struct.ResultGetCall.html) -* [surveys](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/struct.Survey.html) - * [*delete*](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/struct.SurveyDeleteCall.html), [*get*](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/struct.SurveyGetCall.html), [*insert*](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/struct.SurveyInsertCall.html), [*list*](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/struct.SurveyListCall.html), [*start*](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/struct.SurveyStartCall.html), [*stop*](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/struct.SurveyStopCall.html) and [*update*](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/struct.SurveyUpdateCall.html) + * [*get*](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/struct.ResultGetCall.html) +* [surveys](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/struct.Survey.html) + * [*delete*](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/struct.SurveyDeleteCall.html), [*get*](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/struct.SurveyGetCall.html), [*insert*](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/struct.SurveyInsertCall.html), [*list*](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/struct.SurveyListCall.html), [*start*](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/struct.SurveyStartCall.html), [*stop*](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/struct.SurveyStopCall.html) and [*update*](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/struct.SurveyUpdateCall.html) Download supported by ... -* [*get results*](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/struct.ResultGetCall.html) +* [*get results*](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/struct.ResultGetCall.html) @@ -26,17 +26,17 @@ Download supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/struct.Surveys.html)** +* **[Hub](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/struct.Surveys.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.Part.html)** + * **[Parts](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-surveys2/1.0.11+20180508/google_surveys2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-surveys2/1.0.12+20180508/google_surveys2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/surveys2/src/lib.rs b/gen/surveys2/src/lib.rs index 7cb7878a54..3103ca275f 100644 --- a/gen/surveys2/src/lib.rs +++ b/gen/surveys2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Surveys* crate version *1.0.11+20180508*, where *20180508* is the exact revision of the *surveys:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Surveys* crate version *1.0.12+20180508*, where *20180508* is the exact revision of the *surveys:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! The original source code is [on github](https://github.com/Byron/google-apis-rs/tree/master/gen/surveys2). //! # Features //! @@ -340,7 +340,7 @@ impl<'a, C, A> Surveys Surveys { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/surveys/v2/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -354,7 +354,7 @@ impl<'a, C, A> Surveys } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/tagmanager1-cli/Cargo.toml b/gen/tagmanager1-cli/Cargo.toml index 0b273e6ee1..83418b9add 100644 --- a/gen/tagmanager1-cli/Cargo.toml +++ b/gen/tagmanager1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-tagmanager1-cli" -version = "1.0.11+20190516" +version = "1.0.12+20190516" authors = ["Sebastian Thiel "] description = "A complete library to interact with Tag Manager (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/tagmanager1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-tagmanager1] path = "../tagmanager1" -version = "1.0.11+20190516" +version = "1.0.12+20190516" diff --git a/gen/tagmanager1-cli/LICENSE.md b/gen/tagmanager1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/tagmanager1-cli/LICENSE.md +++ b/gen/tagmanager1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/tagmanager1-cli/README.md b/gen/tagmanager1-cli/README.md index fad52ee497..6af1b0e5bf 100644 --- a/gen/tagmanager1-cli/README.md +++ b/gen/tagmanager1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Tag Manager* API at revision *20190516*. The CLI is at version *1.0.11*. +This documentation was generated from the *Tag Manager* API at revision *20190516*. The CLI is at version *1.0.12*. ```bash tagmanager1 [options] diff --git a/gen/tagmanager1-cli/mkdocs.yml b/gen/tagmanager1-cli/mkdocs.yml index bc98d504e4..3d31af1e51 100644 --- a/gen/tagmanager1-cli/mkdocs.yml +++ b/gen/tagmanager1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Tag Manager v1.0.11+20190516 +site_name: Tag Manager v1.0.12+20190516 site_url: http://byron.github.io/google-apis-rs/google-tagmanager1-cli site_description: A complete library to interact with Tag Manager (protocol v1) @@ -61,5 +61,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/tagmanager1-cli/src/cmn.rs b/gen/tagmanager1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/tagmanager1-cli/src/cmn.rs +++ b/gen/tagmanager1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/tagmanager1-cli/src/main.rs b/gen/tagmanager1-cli/src/main.rs index dcf47b3fdd..675822937c 100644 --- a/gen/tagmanager1-cli/src/main.rs +++ b/gen/tagmanager1-cli/src/main.rs @@ -5246,7 +5246,7 @@ fn main() { let mut app = App::new("tagmanager1") .author("Sebastian Thiel ") - .version("1.0.11+20190516") + .version("1.0.12+20190516") .about("Accesses Tag Manager accounts and containers.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_tagmanager1_cli") .arg(Arg::with_name("url") diff --git a/gen/tagmanager1/Cargo.toml b/gen/tagmanager1/Cargo.toml index 60c5a913c1..4159a10d17 100644 --- a/gen/tagmanager1/Cargo.toml +++ b/gen/tagmanager1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-tagmanager1" -version = "1.0.11+20190516" +version = "1.0.12+20190516" authors = ["Sebastian Thiel "] description = "A complete library to interact with Tag Manager (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/tagmanager1" homepage = "https://developers.google.com/tag-manager/api/v1/" -documentation = "https://docs.rs/google-tagmanager1/1.0.11+20190516" +documentation = "https://docs.rs/google-tagmanager1/1.0.12+20190516" license = "MIT" keywords = ["tagmanager", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/tagmanager1/LICENSE.md b/gen/tagmanager1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/tagmanager1/LICENSE.md +++ b/gen/tagmanager1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/tagmanager1/README.md b/gen/tagmanager1/README.md index e0a37dcb3b..23c2728c5c 100644 --- a/gen/tagmanager1/README.md +++ b/gen/tagmanager1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-tagmanager1` library allows access to all features of the *Google Tag Manager* service. -This documentation was generated from *Tag Manager* crate version *1.0.11+20190516*, where *20190516* is the exact revision of the *tagmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Tag Manager* crate version *1.0.12+20190516*, where *20190516* is the exact revision of the *tagmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Tag Manager* *v1* API can be found at the [official documentation site](https://developers.google.com/tag-manager/api/v1/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.TagManager.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.TagManager.html) ... -* [accounts](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.Account.html) - * [*containers create*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerCreateCall.html), [*containers delete*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerDeleteCall.html), [*containers environments create*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerEnvironmentCreateCall.html), [*containers environments delete*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerEnvironmentDeleteCall.html), [*containers environments get*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerEnvironmentGetCall.html), [*containers environments list*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerEnvironmentListCall.html), [*containers environments update*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerEnvironmentUpdateCall.html), [*containers folders create*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerFolderCreateCall.html), [*containers folders delete*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerFolderDeleteCall.html), [*containers folders entities list*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerFolderEntityListCall.html), [*containers folders get*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerFolderGetCall.html), [*containers folders list*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerFolderListCall.html), [*containers folders update*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerFolderUpdateCall.html), [*containers get*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerGetCall.html), [*containers list*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerListCall.html), [*containers move_folders update*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerMoveFolderUpdateCall.html), [*containers reauthorize_environments update*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerReauthorizeEnvironmentUpdateCall.html), [*containers tags create*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerTagCreateCall.html), [*containers tags delete*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerTagDeleteCall.html), [*containers tags get*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerTagGetCall.html), [*containers tags list*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerTagListCall.html), [*containers tags update*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerTagUpdateCall.html), [*containers triggers create*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerTriggerCreateCall.html), [*containers triggers delete*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerTriggerDeleteCall.html), [*containers triggers get*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerTriggerGetCall.html), [*containers triggers list*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerTriggerListCall.html), [*containers triggers update*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerTriggerUpdateCall.html), [*containers update*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerUpdateCall.html), [*containers variables create*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerVariableCreateCall.html), [*containers variables delete*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerVariableDeleteCall.html), [*containers variables get*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerVariableGetCall.html), [*containers variables list*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerVariableListCall.html), [*containers variables update*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerVariableUpdateCall.html), [*containers versions create*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerVersionCreateCall.html), [*containers versions delete*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerVersionDeleteCall.html), [*containers versions get*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerVersionGetCall.html), [*containers versions list*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerVersionListCall.html), [*containers versions publish*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerVersionPublishCall.html), [*containers versions restore*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerVersionRestoreCall.html), [*containers versions undelete*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerVersionUndeleteCall.html), [*containers versions update*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountContainerVersionUpdateCall.html), [*get*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountGetCall.html), [*list*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountListCall.html), [*permissions create*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountPermissionCreateCall.html), [*permissions delete*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountPermissionDeleteCall.html), [*permissions get*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountPermissionGetCall.html), [*permissions list*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountPermissionListCall.html), [*permissions update*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountPermissionUpdateCall.html) and [*update*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.AccountUpdateCall.html) +* [accounts](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.Account.html) + * [*containers create*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerCreateCall.html), [*containers delete*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerDeleteCall.html), [*containers environments create*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerEnvironmentCreateCall.html), [*containers environments delete*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerEnvironmentDeleteCall.html), [*containers environments get*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerEnvironmentGetCall.html), [*containers environments list*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerEnvironmentListCall.html), [*containers environments update*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerEnvironmentUpdateCall.html), [*containers folders create*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerFolderCreateCall.html), [*containers folders delete*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerFolderDeleteCall.html), [*containers folders entities list*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerFolderEntityListCall.html), [*containers folders get*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerFolderGetCall.html), [*containers folders list*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerFolderListCall.html), [*containers folders update*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerFolderUpdateCall.html), [*containers get*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerGetCall.html), [*containers list*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerListCall.html), [*containers move_folders update*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerMoveFolderUpdateCall.html), [*containers reauthorize_environments update*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerReauthorizeEnvironmentUpdateCall.html), [*containers tags create*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerTagCreateCall.html), [*containers tags delete*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerTagDeleteCall.html), [*containers tags get*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerTagGetCall.html), [*containers tags list*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerTagListCall.html), [*containers tags update*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerTagUpdateCall.html), [*containers triggers create*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerTriggerCreateCall.html), [*containers triggers delete*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerTriggerDeleteCall.html), [*containers triggers get*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerTriggerGetCall.html), [*containers triggers list*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerTriggerListCall.html), [*containers triggers update*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerTriggerUpdateCall.html), [*containers update*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerUpdateCall.html), [*containers variables create*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerVariableCreateCall.html), [*containers variables delete*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerVariableDeleteCall.html), [*containers variables get*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerVariableGetCall.html), [*containers variables list*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerVariableListCall.html), [*containers variables update*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerVariableUpdateCall.html), [*containers versions create*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerVersionCreateCall.html), [*containers versions delete*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerVersionDeleteCall.html), [*containers versions get*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerVersionGetCall.html), [*containers versions list*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerVersionListCall.html), [*containers versions publish*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerVersionPublishCall.html), [*containers versions restore*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerVersionRestoreCall.html), [*containers versions undelete*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerVersionUndeleteCall.html), [*containers versions update*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountContainerVersionUpdateCall.html), [*get*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountGetCall.html), [*list*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountListCall.html), [*permissions create*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountPermissionCreateCall.html), [*permissions delete*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountPermissionDeleteCall.html), [*permissions get*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountPermissionGetCall.html), [*permissions list*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountPermissionListCall.html), [*permissions update*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountPermissionUpdateCall.html) and [*update*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.AccountUpdateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/struct.TagManager.html)** +* **[Hub](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/struct.TagManager.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.Part.html)** + * **[Parts](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -181,17 +181,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -201,29 +201,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-tagmanager1/1.0.11+20190516/google_tagmanager1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-tagmanager1/1.0.12+20190516/google_tagmanager1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/tagmanager1/src/lib.rs b/gen/tagmanager1/src/lib.rs index 0e1148ff5b..8de906eba7 100644 --- a/gen/tagmanager1/src/lib.rs +++ b/gen/tagmanager1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Tag Manager* crate version *1.0.11+20190516*, where *20190516* is the exact revision of the *tagmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Tag Manager* crate version *1.0.12+20190516*, where *20190516* is the exact revision of the *tagmanager:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Tag Manager* *v1* API can be found at the //! [official documentation site](https://developers.google.com/tag-manager/api/v1/). @@ -407,7 +407,7 @@ impl<'a, C, A> TagManager TagManager { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/tagmanager/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -418,7 +418,7 @@ impl<'a, C, A> TagManager } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/tagmanager2-cli/Cargo.toml b/gen/tagmanager2-cli/Cargo.toml index c6a6184885..5f5d37dd40 100644 --- a/gen/tagmanager2-cli/Cargo.toml +++ b/gen/tagmanager2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-tagmanager2-cli" -version = "1.0.11+20190516" +version = "1.0.12+20190516" authors = ["Sebastian Thiel "] description = "A complete library to interact with Tag Manager (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/tagmanager2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-tagmanager2] path = "../tagmanager2" -version = "1.0.11+20190516" +version = "1.0.12+20190516" diff --git a/gen/tagmanager2-cli/LICENSE.md b/gen/tagmanager2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/tagmanager2-cli/LICENSE.md +++ b/gen/tagmanager2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/tagmanager2-cli/README.md b/gen/tagmanager2-cli/README.md index 3cd8cd89fd..d9a8acfa4d 100644 --- a/gen/tagmanager2-cli/README.md +++ b/gen/tagmanager2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Tag Manager* API at revision *20190516*. The CLI is at version *1.0.11*. +This documentation was generated from the *Tag Manager* API at revision *20190516*. The CLI is at version *1.0.12*. ```bash tagmanager2 [options] diff --git a/gen/tagmanager2-cli/mkdocs.yml b/gen/tagmanager2-cli/mkdocs.yml index 872ecc4af0..0122d56c55 100644 --- a/gen/tagmanager2-cli/mkdocs.yml +++ b/gen/tagmanager2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Tag Manager v1.0.11+20190516 +site_name: Tag Manager v1.0.12+20190516 site_url: http://byron.github.io/google-apis-rs/google-tagmanager2-cli site_description: A complete library to interact with Tag Manager (protocol v2) @@ -92,5 +92,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/tagmanager2-cli/src/cmn.rs b/gen/tagmanager2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/tagmanager2-cli/src/cmn.rs +++ b/gen/tagmanager2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/tagmanager2-cli/src/main.rs b/gen/tagmanager2-cli/src/main.rs index e151d99f0c..af83afca12 100644 --- a/gen/tagmanager2-cli/src/main.rs +++ b/gen/tagmanager2-cli/src/main.rs @@ -7792,7 +7792,7 @@ fn main() { let mut app = App::new("tagmanager2") .author("Sebastian Thiel ") - .version("1.0.11+20190516") + .version("1.0.12+20190516") .about("Accesses Tag Manager accounts and containers.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_tagmanager2_cli") .arg(Arg::with_name("url") diff --git a/gen/tagmanager2/Cargo.toml b/gen/tagmanager2/Cargo.toml index 746e3ac6ea..4ea93631c4 100644 --- a/gen/tagmanager2/Cargo.toml +++ b/gen/tagmanager2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-tagmanager2" -version = "1.0.11+20190516" +version = "1.0.12+20190516" authors = ["Sebastian Thiel "] description = "A complete library to interact with Tag Manager (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/tagmanager2" homepage = "https://developers.google.com/tag-manager/api/v2/" -documentation = "https://docs.rs/google-tagmanager2/1.0.11+20190516" +documentation = "https://docs.rs/google-tagmanager2/1.0.12+20190516" license = "MIT" keywords = ["tagmanager", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/tagmanager2/LICENSE.md b/gen/tagmanager2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/tagmanager2/LICENSE.md +++ b/gen/tagmanager2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/tagmanager2/README.md b/gen/tagmanager2/README.md index 565d642cfe..19a9130d0d 100644 --- a/gen/tagmanager2/README.md +++ b/gen/tagmanager2/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-tagmanager2` library allows access to all features of the *Google Tag Manager* service. -This documentation was generated from *Tag Manager* crate version *1.0.11+20190516*, where *20190516* is the exact revision of the *tagmanager:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Tag Manager* crate version *1.0.12+20190516*, where *20190516* is the exact revision of the *tagmanager:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Tag Manager* *v2* API can be found at the [official documentation site](https://developers.google.com/tag-manager/api/v2/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.TagManager.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.TagManager.html) ... -* [accounts](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.Account.html) - * [*containers create*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerCreateCall.html), [*containers delete*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerDeleteCall.html), [*containers environments create*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerEnvironmentCreateCall.html), [*containers environments delete*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerEnvironmentDeleteCall.html), [*containers environments get*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerEnvironmentGetCall.html), [*containers environments list*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerEnvironmentListCall.html), [*containers environments reauthorize*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerEnvironmentReauthorizeCall.html), [*containers environments update*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerEnvironmentUpdateCall.html), [*containers get*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerGetCall.html), [*containers list*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerListCall.html), [*containers update*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerUpdateCall.html), [*containers version_headers latest*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerVersionHeaderLatestCall.html), [*containers version_headers list*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerVersionHeaderListCall.html), [*containers versions delete*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerVersionDeleteCall.html), [*containers versions get*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerVersionGetCall.html), [*containers versions live*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerVersionLiveCall.html), [*containers versions publish*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerVersionPublishCall.html), [*containers versions set_latest*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerVersionSetLatestCall.html), [*containers versions undelete*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerVersionUndeleteCall.html), [*containers versions update*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerVersionUpdateCall.html), [*containers workspaces built_in_variables create*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceBuiltInVariableCreateCall.html), [*containers workspaces built_in_variables delete*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceBuiltInVariableDeleteCall.html), [*containers workspaces built_in_variables list*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceBuiltInVariableListCall.html), [*containers workspaces built_in_variables revert*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceBuiltInVariableRevertCall.html), [*containers workspaces create*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceCreateCall.html), [*containers workspaces create_version*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceCreateVersionCall.html), [*containers workspaces delete*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceDeleteCall.html), [*containers workspaces folders create*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderCreateCall.html), [*containers workspaces folders delete*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderDeleteCall.html), [*containers workspaces folders entities*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderEntityCall.html), [*containers workspaces folders get*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderGetCall.html), [*containers workspaces folders list*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderListCall.html), [*containers workspaces folders move_entities_to_folder*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderMoveEntitiesToFolderCall.html), [*containers workspaces folders revert*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderRevertCall.html), [*containers workspaces folders update*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderUpdateCall.html), [*containers workspaces get*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceGetCall.html), [*containers workspaces get status*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceGetStatuCall.html), [*containers workspaces list*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceListCall.html), [*containers workspaces quick_preview*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceQuickPreviewCall.html), [*containers workspaces resolve_conflict*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceResolveConflictCall.html), [*containers workspaces sync*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceSyncCall.html), [*containers workspaces tags create*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTagCreateCall.html), [*containers workspaces tags delete*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTagDeleteCall.html), [*containers workspaces tags get*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTagGetCall.html), [*containers workspaces tags list*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTagListCall.html), [*containers workspaces tags revert*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTagRevertCall.html), [*containers workspaces tags update*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTagUpdateCall.html), [*containers workspaces templates create*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTemplateCreateCall.html), [*containers workspaces templates delete*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTemplateDeleteCall.html), [*containers workspaces templates get*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTemplateGetCall.html), [*containers workspaces templates list*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTemplateListCall.html), [*containers workspaces templates revert*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTemplateRevertCall.html), [*containers workspaces templates update*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTemplateUpdateCall.html), [*containers workspaces triggers create*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTriggerCreateCall.html), [*containers workspaces triggers delete*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTriggerDeleteCall.html), [*containers workspaces triggers get*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTriggerGetCall.html), [*containers workspaces triggers list*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTriggerListCall.html), [*containers workspaces triggers revert*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTriggerRevertCall.html), [*containers workspaces triggers update*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTriggerUpdateCall.html), [*containers workspaces update*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceUpdateCall.html), [*containers workspaces variables create*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceVariableCreateCall.html), [*containers workspaces variables delete*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceVariableDeleteCall.html), [*containers workspaces variables get*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceVariableGetCall.html), [*containers workspaces variables list*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceVariableListCall.html), [*containers workspaces variables revert*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceVariableRevertCall.html), [*containers workspaces variables update*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceVariableUpdateCall.html), [*containers workspaces zones create*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceZoneCreateCall.html), [*containers workspaces zones delete*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceZoneDeleteCall.html), [*containers workspaces zones get*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceZoneGetCall.html), [*containers workspaces zones list*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceZoneListCall.html), [*containers workspaces zones revert*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceZoneRevertCall.html), [*containers workspaces zones update*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountContainerWorkspaceZoneUpdateCall.html), [*get*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountGetCall.html), [*list*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountListCall.html), [*update*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountUpdateCall.html), [*user_permissions create*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountUserPermissionCreateCall.html), [*user_permissions delete*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountUserPermissionDeleteCall.html), [*user_permissions get*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountUserPermissionGetCall.html), [*user_permissions list*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountUserPermissionListCall.html) and [*user_permissions update*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.AccountUserPermissionUpdateCall.html) +* [accounts](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.Account.html) + * [*containers create*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerCreateCall.html), [*containers delete*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerDeleteCall.html), [*containers environments create*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerEnvironmentCreateCall.html), [*containers environments delete*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerEnvironmentDeleteCall.html), [*containers environments get*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerEnvironmentGetCall.html), [*containers environments list*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerEnvironmentListCall.html), [*containers environments reauthorize*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerEnvironmentReauthorizeCall.html), [*containers environments update*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerEnvironmentUpdateCall.html), [*containers get*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerGetCall.html), [*containers list*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerListCall.html), [*containers update*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerUpdateCall.html), [*containers version_headers latest*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerVersionHeaderLatestCall.html), [*containers version_headers list*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerVersionHeaderListCall.html), [*containers versions delete*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerVersionDeleteCall.html), [*containers versions get*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerVersionGetCall.html), [*containers versions live*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerVersionLiveCall.html), [*containers versions publish*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerVersionPublishCall.html), [*containers versions set_latest*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerVersionSetLatestCall.html), [*containers versions undelete*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerVersionUndeleteCall.html), [*containers versions update*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerVersionUpdateCall.html), [*containers workspaces built_in_variables create*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceBuiltInVariableCreateCall.html), [*containers workspaces built_in_variables delete*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceBuiltInVariableDeleteCall.html), [*containers workspaces built_in_variables list*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceBuiltInVariableListCall.html), [*containers workspaces built_in_variables revert*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceBuiltInVariableRevertCall.html), [*containers workspaces create*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceCreateCall.html), [*containers workspaces create_version*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceCreateVersionCall.html), [*containers workspaces delete*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceDeleteCall.html), [*containers workspaces folders create*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderCreateCall.html), [*containers workspaces folders delete*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderDeleteCall.html), [*containers workspaces folders entities*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderEntityCall.html), [*containers workspaces folders get*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderGetCall.html), [*containers workspaces folders list*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderListCall.html), [*containers workspaces folders move_entities_to_folder*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderMoveEntitiesToFolderCall.html), [*containers workspaces folders revert*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderRevertCall.html), [*containers workspaces folders update*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceFolderUpdateCall.html), [*containers workspaces get*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceGetCall.html), [*containers workspaces get status*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceGetStatuCall.html), [*containers workspaces list*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceListCall.html), [*containers workspaces quick_preview*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceQuickPreviewCall.html), [*containers workspaces resolve_conflict*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceResolveConflictCall.html), [*containers workspaces sync*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceSyncCall.html), [*containers workspaces tags create*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTagCreateCall.html), [*containers workspaces tags delete*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTagDeleteCall.html), [*containers workspaces tags get*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTagGetCall.html), [*containers workspaces tags list*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTagListCall.html), [*containers workspaces tags revert*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTagRevertCall.html), [*containers workspaces tags update*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTagUpdateCall.html), [*containers workspaces templates create*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTemplateCreateCall.html), [*containers workspaces templates delete*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTemplateDeleteCall.html), [*containers workspaces templates get*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTemplateGetCall.html), [*containers workspaces templates list*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTemplateListCall.html), [*containers workspaces templates revert*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTemplateRevertCall.html), [*containers workspaces templates update*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTemplateUpdateCall.html), [*containers workspaces triggers create*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTriggerCreateCall.html), [*containers workspaces triggers delete*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTriggerDeleteCall.html), [*containers workspaces triggers get*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTriggerGetCall.html), [*containers workspaces triggers list*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTriggerListCall.html), [*containers workspaces triggers revert*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTriggerRevertCall.html), [*containers workspaces triggers update*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceTriggerUpdateCall.html), [*containers workspaces update*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceUpdateCall.html), [*containers workspaces variables create*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceVariableCreateCall.html), [*containers workspaces variables delete*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceVariableDeleteCall.html), [*containers workspaces variables get*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceVariableGetCall.html), [*containers workspaces variables list*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceVariableListCall.html), [*containers workspaces variables revert*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceVariableRevertCall.html), [*containers workspaces variables update*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceVariableUpdateCall.html), [*containers workspaces zones create*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceZoneCreateCall.html), [*containers workspaces zones delete*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceZoneDeleteCall.html), [*containers workspaces zones get*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceZoneGetCall.html), [*containers workspaces zones list*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceZoneListCall.html), [*containers workspaces zones revert*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceZoneRevertCall.html), [*containers workspaces zones update*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountContainerWorkspaceZoneUpdateCall.html), [*get*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountGetCall.html), [*list*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountListCall.html), [*update*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountUpdateCall.html), [*user_permissions create*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountUserPermissionCreateCall.html), [*user_permissions delete*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountUserPermissionDeleteCall.html), [*user_permissions get*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountUserPermissionGetCall.html), [*user_permissions list*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountUserPermissionListCall.html) and [*user_permissions update*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.AccountUserPermissionUpdateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/struct.TagManager.html)** +* **[Hub](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/struct.TagManager.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.Part.html)** + * **[Parts](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -212,17 +212,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -232,29 +232,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-tagmanager2/1.0.11+20190516/google_tagmanager2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-tagmanager2/1.0.12+20190516/google_tagmanager2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/tagmanager2/src/lib.rs b/gen/tagmanager2/src/lib.rs index 6f6716b8b0..4b1f833c1d 100644 --- a/gen/tagmanager2/src/lib.rs +++ b/gen/tagmanager2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Tag Manager* crate version *1.0.11+20190516*, where *20190516* is the exact revision of the *tagmanager:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Tag Manager* crate version *1.0.12+20190516*, where *20190516* is the exact revision of the *tagmanager:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Tag Manager* *v2* API can be found at the //! [official documentation site](https://developers.google.com/tag-manager/api/v2/). @@ -438,7 +438,7 @@ impl<'a, C, A> TagManager TagManager { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/tagmanager/v2/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -449,7 +449,7 @@ impl<'a, C, A> TagManager } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/taskqueue1_beta2-cli/Cargo.toml b/gen/taskqueue1_beta2-cli/Cargo.toml index 3ab1ec62f0..9a3cd292f3 100644 --- a/gen/taskqueue1_beta2-cli/Cargo.toml +++ b/gen/taskqueue1_beta2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-taskqueue1_beta2-cli" -version = "1.0.11+20160428" +version = "1.0.12+20160428" authors = ["Sebastian Thiel "] description = "A complete library to interact with taskqueue (protocol v1beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/taskqueue1_beta2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-taskqueue1_beta2] path = "../taskqueue1_beta2" -version = "1.0.11+20160428" +version = "1.0.12+20160428" diff --git a/gen/taskqueue1_beta2-cli/LICENSE.md b/gen/taskqueue1_beta2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/taskqueue1_beta2-cli/LICENSE.md +++ b/gen/taskqueue1_beta2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/taskqueue1_beta2-cli/README.md b/gen/taskqueue1_beta2-cli/README.md index 9ac0ccddce..bf0ba536ef 100644 --- a/gen/taskqueue1_beta2-cli/README.md +++ b/gen/taskqueue1_beta2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *taskqueue* API at revision *20160428*. The CLI is at version *1.0.11*. +This documentation was generated from the *taskqueue* API at revision *20160428*. The CLI is at version *1.0.12*. ```bash taskqueue1-beta2 [options] diff --git a/gen/taskqueue1_beta2-cli/mkdocs.yml b/gen/taskqueue1_beta2-cli/mkdocs.yml index 0eca2de364..dd979d7436 100644 --- a/gen/taskqueue1_beta2-cli/mkdocs.yml +++ b/gen/taskqueue1_beta2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: taskqueue v1.0.11+20160428 +site_name: taskqueue v1.0.12+20160428 site_url: http://byron.github.io/google-apis-rs/google-taskqueue1_beta2-cli site_description: A complete library to interact with taskqueue (protocol v1beta2) @@ -20,5 +20,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/taskqueue1_beta2-cli/src/cmn.rs b/gen/taskqueue1_beta2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/taskqueue1_beta2-cli/src/cmn.rs +++ b/gen/taskqueue1_beta2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/taskqueue1_beta2-cli/src/main.rs b/gen/taskqueue1_beta2-cli/src/main.rs index 31b2421267..e6f4c612c5 100644 --- a/gen/taskqueue1_beta2-cli/src/main.rs +++ b/gen/taskqueue1_beta2-cli/src/main.rs @@ -1010,7 +1010,7 @@ fn main() { let mut app = App::new("taskqueue1-beta2") .author("Sebastian Thiel ") - .version("1.0.11+20160428") + .version("1.0.12+20160428") .about("Accesses a Google App Engine Pull Task Queue over REST.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_taskqueue1_beta2_cli") .arg(Arg::with_name("url") diff --git a/gen/taskqueue1_beta2/Cargo.toml b/gen/taskqueue1_beta2/Cargo.toml index b028c4427c..2bcf33ee2b 100644 --- a/gen/taskqueue1_beta2/Cargo.toml +++ b/gen/taskqueue1_beta2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-taskqueue1_beta2" -version = "1.0.11+20160428" +version = "1.0.12+20160428" authors = ["Sebastian Thiel "] description = "A complete library to interact with taskqueue (protocol v1beta2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/taskqueue1_beta2" homepage = "https://developers.google.com/appengine/docs/python/taskqueue/rest" -documentation = "https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428" +documentation = "https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428" license = "MIT" keywords = ["taskqueue", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/taskqueue1_beta2/LICENSE.md b/gen/taskqueue1_beta2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/taskqueue1_beta2/LICENSE.md +++ b/gen/taskqueue1_beta2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/taskqueue1_beta2/README.md b/gen/taskqueue1_beta2/README.md index 536522a626..85471b5a67 100644 --- a/gen/taskqueue1_beta2/README.md +++ b/gen/taskqueue1_beta2/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-taskqueue1_beta2` library allows access to all features of the *Google taskqueue* service. -This documentation was generated from *taskqueue* crate version *1.0.11+20160428*, where *20160428* is the exact revision of the *taskqueue:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *taskqueue* crate version *1.0.12+20160428*, where *20160428* is the exact revision of the *taskqueue:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *taskqueue* *v1_beta2* API can be found at the [official documentation site](https://developers.google.com/appengine/docs/python/taskqueue/rest). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/struct.Taskqueue.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/struct.Taskqueue.html) ... * taskqueues - * [*get*](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/struct.TaskqueueGetCall.html) -* [tasks](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/struct.Task.html) - * [*delete*](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/struct.TaskDeleteCall.html), [*get*](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/struct.TaskGetCall.html), [*insert*](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/struct.TaskInsertCall.html), [*lease*](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/struct.TaskLeaseCall.html), [*list*](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/struct.TaskListCall.html), [*patch*](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/struct.TaskPatchCall.html) and [*update*](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/struct.TaskUpdateCall.html) + * [*get*](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/struct.TaskqueueGetCall.html) +* [tasks](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/struct.Task.html) + * [*delete*](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/struct.TaskDeleteCall.html), [*get*](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/struct.TaskGetCall.html), [*insert*](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/struct.TaskInsertCall.html), [*lease*](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/struct.TaskLeaseCall.html), [*list*](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/struct.TaskListCall.html), [*patch*](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/struct.TaskPatchCall.html) and [*update*](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/struct.TaskUpdateCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/struct.Taskqueue.html)** +* **[Hub](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/struct.Taskqueue.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.Part.html)** + * **[Parts](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -134,17 +134,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -154,29 +154,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-taskqueue1_beta2/1.0.11+20160428/google_taskqueue1_beta2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-taskqueue1_beta2/1.0.12+20160428/google_taskqueue1_beta2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/taskqueue1_beta2/src/lib.rs b/gen/taskqueue1_beta2/src/lib.rs index ae244d078e..ce4326ce6c 100644 --- a/gen/taskqueue1_beta2/src/lib.rs +++ b/gen/taskqueue1_beta2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *taskqueue* crate version *1.0.11+20160428*, where *20160428* is the exact revision of the *taskqueue:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *taskqueue* crate version *1.0.12+20160428*, where *20160428* is the exact revision of the *taskqueue:v1beta2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *taskqueue* *v1_beta2* API can be found at the //! [official documentation site](https://developers.google.com/appengine/docs/python/taskqueue/rest). @@ -333,7 +333,7 @@ impl<'a, C, A> Taskqueue Taskqueue { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/taskqueue/v1beta2/projects/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -347,7 +347,7 @@ impl<'a, C, A> Taskqueue } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/tasks1-cli/Cargo.toml b/gen/tasks1-cli/Cargo.toml index 1cb79a3b83..8937f24eaf 100644 --- a/gen/tasks1-cli/Cargo.toml +++ b/gen/tasks1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-tasks1-cli" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with tasks (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/tasks1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-tasks1] path = "../tasks1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" diff --git a/gen/tasks1-cli/LICENSE.md b/gen/tasks1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/tasks1-cli/LICENSE.md +++ b/gen/tasks1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/tasks1-cli/README.md b/gen/tasks1-cli/README.md index 04fdb90d92..ff4ea54716 100644 --- a/gen/tasks1-cli/README.md +++ b/gen/tasks1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *tasks* API at revision *20190628*. The CLI is at version *1.0.11*. +This documentation was generated from the *tasks* API at revision *20190628*. The CLI is at version *1.0.12*. ```bash tasks1 [options] diff --git a/gen/tasks1-cli/mkdocs.yml b/gen/tasks1-cli/mkdocs.yml index d4dbb91ea1..7d26638b2c 100644 --- a/gen/tasks1-cli/mkdocs.yml +++ b/gen/tasks1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: tasks v1.0.11+20190628 +site_name: tasks v1.0.12+20190628 site_url: http://byron.github.io/google-apis-rs/google-tasks1-cli site_description: A complete library to interact with tasks (protocol v1) @@ -26,5 +26,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/tasks1-cli/src/cmn.rs b/gen/tasks1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/tasks1-cli/src/cmn.rs +++ b/gen/tasks1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/tasks1-cli/src/main.rs b/gen/tasks1-cli/src/main.rs index 11b24854ea..77d6882d10 100644 --- a/gen/tasks1-cli/src/main.rs +++ b/gen/tasks1-cli/src/main.rs @@ -1553,7 +1553,7 @@ fn main() { let mut app = App::new("tasks1") .author("Sebastian Thiel ") - .version("1.0.11+20190628") + .version("1.0.12+20190628") .about("Manages your tasks and task lists.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_tasks1_cli") .arg(Arg::with_name("url") diff --git a/gen/tasks1/Cargo.toml b/gen/tasks1/Cargo.toml index 7673a25539..4ff93c8f93 100644 --- a/gen/tasks1/Cargo.toml +++ b/gen/tasks1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-tasks1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with tasks (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/tasks1" homepage = "https://developers.google.com/google-apps/tasks/firstapp" -documentation = "https://docs.rs/google-tasks1/1.0.11+20190628" +documentation = "https://docs.rs/google-tasks1/1.0.12+20190628" license = "MIT" keywords = ["tasks", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/tasks1/LICENSE.md b/gen/tasks1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/tasks1/LICENSE.md +++ b/gen/tasks1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/tasks1/README.md b/gen/tasks1/README.md index 515bf73f6e..e5d270c5ee 100644 --- a/gen/tasks1/README.md +++ b/gen/tasks1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-tasks1` library allows access to all features of the *Google tasks* service. -This documentation was generated from *tasks* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *tasks:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *tasks* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *tasks:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *tasks* *v1* API can be found at the [official documentation site](https://developers.google.com/google-apps/tasks/firstapp). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TasksHub.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TasksHub.html) ... * tasklists - * [*delete*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TasklistDeleteCall.html), [*get*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TasklistGetCall.html), [*insert*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TasklistInsertCall.html), [*list*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TasklistListCall.html), [*patch*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TasklistPatchCall.html) and [*update*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TasklistUpdateCall.html) -* [tasks](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.Task.html) - * [*clear*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TaskClearCall.html), [*delete*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TaskDeleteCall.html), [*get*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TaskGetCall.html), [*insert*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TaskInsertCall.html), [*list*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TaskListCall.html), [*move*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TaskMoveCall.html), [*patch*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TaskPatchCall.html) and [*update*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TaskUpdateCall.html) + * [*delete*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TasklistDeleteCall.html), [*get*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TasklistGetCall.html), [*insert*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TasklistInsertCall.html), [*list*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TasklistListCall.html), [*patch*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TasklistPatchCall.html) and [*update*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TasklistUpdateCall.html) +* [tasks](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.Task.html) + * [*clear*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TaskClearCall.html), [*delete*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TaskDeleteCall.html), [*get*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TaskGetCall.html), [*insert*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TaskInsertCall.html), [*list*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TaskListCall.html), [*move*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TaskMoveCall.html), [*patch*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TaskPatchCall.html) and [*update*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TaskUpdateCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/struct.TasksHub.html)** +* **[Hub](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/struct.TasksHub.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.Part.html)** + * **[Parts](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -143,17 +143,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -163,29 +163,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-tasks1/1.0.11+20190628/google_tasks1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-tasks1/1.0.12+20190628/google_tasks1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/tasks1/src/lib.rs b/gen/tasks1/src/lib.rs index 57bd837d86..b202e5f084 100644 --- a/gen/tasks1/src/lib.rs +++ b/gen/tasks1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *tasks* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *tasks:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *tasks* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *tasks:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *tasks* *v1* API can be found at the //! [official documentation site](https://developers.google.com/google-apps/tasks/firstapp). @@ -350,7 +350,7 @@ impl<'a, C, A> TasksHub TasksHub { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/tasks/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -364,7 +364,7 @@ impl<'a, C, A> TasksHub } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/testing1-cli/Cargo.toml b/gen/testing1-cli/Cargo.toml index 2768733fe6..3668caaefc 100644 --- a/gen/testing1-cli/Cargo.toml +++ b/gen/testing1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-testing1-cli" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with testing (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/testing1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-testing1] path = "../testing1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" diff --git a/gen/testing1-cli/LICENSE.md b/gen/testing1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/testing1-cli/LICENSE.md +++ b/gen/testing1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/testing1-cli/README.md b/gen/testing1-cli/README.md index b65cf2eb07..32c08f9b9d 100644 --- a/gen/testing1-cli/README.md +++ b/gen/testing1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *testing* API at revision *20190627*. The CLI is at version *1.0.11*. +This documentation was generated from the *testing* API at revision *20190627*. The CLI is at version *1.0.12*. ```bash testing1 [options] diff --git a/gen/testing1-cli/mkdocs.yml b/gen/testing1-cli/mkdocs.yml index ad261fcbf8..b3d32a8b0b 100644 --- a/gen/testing1-cli/mkdocs.yml +++ b/gen/testing1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: testing v1.0.11+20190627 +site_name: testing v1.0.12+20190627 site_url: http://byron.github.io/google-apis-rs/google-testing1-cli site_description: A complete library to interact with testing (protocol v1) @@ -17,5 +17,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/testing1-cli/src/cmn.rs b/gen/testing1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/testing1-cli/src/cmn.rs +++ b/gen/testing1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/testing1-cli/src/main.rs b/gen/testing1-cli/src/main.rs index 440bb0a750..f343cd738f 100644 --- a/gen/testing1-cli/src/main.rs +++ b/gen/testing1-cli/src/main.rs @@ -726,7 +726,7 @@ fn main() { let mut app = App::new("testing1") .author("Sebastian Thiel ") - .version("1.0.11+20190627") + .version("1.0.12+20190627") .about("Allows developers to run automated tests for their mobile applications on Google infrastructure.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_testing1_cli") .arg(Arg::with_name("url") diff --git a/gen/testing1/Cargo.toml b/gen/testing1/Cargo.toml index 8843d096c5..42977093be 100644 --- a/gen/testing1/Cargo.toml +++ b/gen/testing1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-testing1" -version = "1.0.11+20190627" +version = "1.0.12+20190627" authors = ["Sebastian Thiel "] description = "A complete library to interact with testing (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/testing1" homepage = "https://developers.google.com/cloud-test-lab/" -documentation = "https://docs.rs/google-testing1/1.0.11+20190627" +documentation = "https://docs.rs/google-testing1/1.0.12+20190627" license = "MIT" keywords = ["testing", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/testing1/LICENSE.md b/gen/testing1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/testing1/LICENSE.md +++ b/gen/testing1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/testing1/README.md b/gen/testing1/README.md index 8f46ad24d7..85aee11d8c 100644 --- a/gen/testing1/README.md +++ b/gen/testing1/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-testing1` library allows access to all features of the *Google testing* service. -This documentation was generated from *testing* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *testing:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *testing* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *testing:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *testing* *v1* API can be found at the [official documentation site](https://developers.google.com/cloud-test-lab/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/struct.Testing.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/struct.Testing.html) ... * application detail service - * [*get apk details*](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/struct.ApplicationDetailServiceGetApkDetailCall.html) + * [*get apk details*](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/struct.ApplicationDetailServiceGetApkDetailCall.html) * projects - * [*test matrices cancel*](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/struct.ProjectTestMatriceCancelCall.html), [*test matrices create*](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/struct.ProjectTestMatriceCreateCall.html) and [*test matrices get*](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/struct.ProjectTestMatriceGetCall.html) -* [test environment catalog](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/struct.TestEnvironmentCatalog.html) - * [*get*](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/struct.TestEnvironmentCatalogGetCall.html) + * [*test matrices cancel*](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/struct.ProjectTestMatriceCancelCall.html), [*test matrices create*](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/struct.ProjectTestMatriceCreateCall.html) and [*test matrices get*](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/struct.ProjectTestMatriceGetCall.html) +* [test environment catalog](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/struct.TestEnvironmentCatalog.html) + * [*get*](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/struct.TestEnvironmentCatalogGetCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/struct.Testing.html)** +* **[Hub](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/struct.Testing.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.Part.html)** + * **[Parts](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-testing1/1.0.11+20190627/google_testing1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-testing1/1.0.12+20190627/google_testing1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/testing1/src/lib.rs b/gen/testing1/src/lib.rs index 02472eb282..be9ed9544c 100644 --- a/gen/testing1/src/lib.rs +++ b/gen/testing1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *testing* crate version *1.0.11+20190627*, where *20190627* is the exact revision of the *testing:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *testing* crate version *1.0.12+20190627*, where *20190627* is the exact revision of the *testing:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *testing* *v1* API can be found at the //! [official documentation site](https://developers.google.com/cloud-test-lab/). @@ -340,7 +340,7 @@ impl<'a, C, A> Testing Testing { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://testing.googleapis.com/".to_string(), _root_url: "https://testing.googleapis.com/".to_string(), } @@ -357,7 +357,7 @@ impl<'a, C, A> Testing } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/texttospeech1-cli/Cargo.toml b/gen/texttospeech1-cli/Cargo.toml index 971a239d41..859a26d661 100644 --- a/gen/texttospeech1-cli/Cargo.toml +++ b/gen/texttospeech1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-texttospeech1-cli" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Texttospeech (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/texttospeech1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-texttospeech1] path = "../texttospeech1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" diff --git a/gen/texttospeech1-cli/LICENSE.md b/gen/texttospeech1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/texttospeech1-cli/LICENSE.md +++ b/gen/texttospeech1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/texttospeech1-cli/README.md b/gen/texttospeech1-cli/README.md index c490f319a4..9a52ac4623 100644 --- a/gen/texttospeech1-cli/README.md +++ b/gen/texttospeech1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Texttospeech* API at revision *20190628*. The CLI is at version *1.0.11*. +This documentation was generated from the *Texttospeech* API at revision *20190628*. The CLI is at version *1.0.12*. ```bash texttospeech1 [options] diff --git a/gen/texttospeech1-cli/mkdocs.yml b/gen/texttospeech1-cli/mkdocs.yml index 4709f7632d..250c9d79d9 100644 --- a/gen/texttospeech1-cli/mkdocs.yml +++ b/gen/texttospeech1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Texttospeech v1.0.11+20190628 +site_name: Texttospeech v1.0.12+20190628 site_url: http://byron.github.io/google-apis-rs/google-texttospeech1-cli site_description: A complete library to interact with Texttospeech (protocol v1) @@ -14,5 +14,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/texttospeech1-cli/src/cmn.rs b/gen/texttospeech1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/texttospeech1-cli/src/cmn.rs +++ b/gen/texttospeech1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/texttospeech1-cli/src/main.rs b/gen/texttospeech1-cli/src/main.rs index 10298728d6..0680a72374 100644 --- a/gen/texttospeech1-cli/src/main.rs +++ b/gen/texttospeech1-cli/src/main.rs @@ -358,7 +358,7 @@ fn main() { let mut app = App::new("texttospeech1") .author("Sebastian Thiel ") - .version("1.0.11+20190628") + .version("1.0.12+20190628") .about("Synthesizes natural-sounding speech by applying powerful neural network models.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_texttospeech1_cli") .arg(Arg::with_name("url") diff --git a/gen/texttospeech1/Cargo.toml b/gen/texttospeech1/Cargo.toml index 9b1cdadede..c3bf88162f 100644 --- a/gen/texttospeech1/Cargo.toml +++ b/gen/texttospeech1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-texttospeech1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Texttospeech (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/texttospeech1" homepage = "https://cloud.google.com/text-to-speech/" -documentation = "https://docs.rs/google-texttospeech1/1.0.11+20190628" +documentation = "https://docs.rs/google-texttospeech1/1.0.12+20190628" license = "MIT" keywords = ["texttospeech", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/texttospeech1/LICENSE.md b/gen/texttospeech1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/texttospeech1/LICENSE.md +++ b/gen/texttospeech1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/texttospeech1/README.md b/gen/texttospeech1/README.md index 8ea0ec040a..7db68ee95d 100644 --- a/gen/texttospeech1/README.md +++ b/gen/texttospeech1/README.md @@ -5,18 +5,18 @@ DO NOT EDIT ! --> The `google-texttospeech1` library allows access to all features of the *Google Texttospeech* service. -This documentation was generated from *Texttospeech* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *texttospeech:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Texttospeech* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *texttospeech:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Texttospeech* *v1* API can be found at the [official documentation site](https://cloud.google.com/text-to-speech/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/struct.Texttospeech.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/struct.Texttospeech.html) ... * text - * [*synthesize*](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/struct.TextSynthesizeCall.html) -* [voices](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/struct.Voice.html) - * [*list*](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/struct.VoiceListCall.html) + * [*synthesize*](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/struct.TextSynthesizeCall.html) +* [voices](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/struct.Voice.html) + * [*list*](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/struct.VoiceListCall.html) @@ -25,17 +25,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/struct.Texttospeech.html)** +* **[Hub](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/struct.Texttospeech.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.Part.html)** + * **[Parts](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -127,17 +127,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -147,29 +147,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-texttospeech1/1.0.11+20190628/google_texttospeech1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-texttospeech1/1.0.12+20190628/google_texttospeech1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/texttospeech1/src/lib.rs b/gen/texttospeech1/src/lib.rs index 873258ad10..b1950337b8 100644 --- a/gen/texttospeech1/src/lib.rs +++ b/gen/texttospeech1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Texttospeech* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *texttospeech:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Texttospeech* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *texttospeech:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Texttospeech* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/text-to-speech/). @@ -321,7 +321,7 @@ impl<'a, C, A> Texttospeech Texttospeech { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://texttospeech.googleapis.com/".to_string(), _root_url: "https://texttospeech.googleapis.com/".to_string(), } @@ -335,7 +335,7 @@ impl<'a, C, A> Texttospeech } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/tpu1-cli/Cargo.toml b/gen/tpu1-cli/Cargo.toml index 35538d0579..76263e449c 100644 --- a/gen/tpu1-cli/Cargo.toml +++ b/gen/tpu1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-tpu1-cli" -version = "1.0.11+20190619" +version = "1.0.12+20190619" authors = ["Sebastian Thiel "] description = "A complete library to interact with TPU (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/tpu1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-tpu1] path = "../tpu1" -version = "1.0.11+20190619" +version = "1.0.12+20190619" diff --git a/gen/tpu1-cli/LICENSE.md b/gen/tpu1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/tpu1-cli/LICENSE.md +++ b/gen/tpu1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/tpu1-cli/README.md b/gen/tpu1-cli/README.md index 402ee91601..6a316b0dcc 100644 --- a/gen/tpu1-cli/README.md +++ b/gen/tpu1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *TPU* API at revision *20190619*. The CLI is at version *1.0.11*. +This documentation was generated from the *TPU* API at revision *20190619*. The CLI is at version *1.0.12*. ```bash tpu1 [options] diff --git a/gen/tpu1-cli/mkdocs.yml b/gen/tpu1-cli/mkdocs.yml index bf8e98a8ee..24610f5867 100644 --- a/gen/tpu1-cli/mkdocs.yml +++ b/gen/tpu1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: TPU v1.0.11+20190619 +site_name: TPU v1.0.12+20190619 site_url: http://byron.github.io/google-apis-rs/google-tpu1-cli site_description: A complete library to interact with TPU (protocol v1) @@ -29,5 +29,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/tpu1-cli/src/cmn.rs b/gen/tpu1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/tpu1-cli/src/cmn.rs +++ b/gen/tpu1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/tpu1-cli/src/main.rs b/gen/tpu1-cli/src/main.rs index 7dbcc31ae1..f79d79b33b 100644 --- a/gen/tpu1-cli/src/main.rs +++ b/gen/tpu1-cli/src/main.rs @@ -1709,7 +1709,7 @@ fn main() { let mut app = App::new("tpu1") .author("Sebastian Thiel ") - .version("1.0.11+20190619") + .version("1.0.12+20190619") .about("TPU API provides customers with access to Google TPU technology.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_tpu1_cli") .arg(Arg::with_name("url") diff --git a/gen/tpu1/Cargo.toml b/gen/tpu1/Cargo.toml index b6bf272cee..15f5044644 100644 --- a/gen/tpu1/Cargo.toml +++ b/gen/tpu1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-tpu1" -version = "1.0.11+20190619" +version = "1.0.12+20190619" authors = ["Sebastian Thiel "] description = "A complete library to interact with TPU (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/tpu1" homepage = "https://cloud.google.com/tpu/" -documentation = "https://docs.rs/google-tpu1/1.0.11+20190619" +documentation = "https://docs.rs/google-tpu1/1.0.12+20190619" license = "MIT" keywords = ["tpu", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/tpu1/LICENSE.md b/gen/tpu1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/tpu1/LICENSE.md +++ b/gen/tpu1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/tpu1/README.md b/gen/tpu1/README.md index dae9d8b620..b7cb32fa8d 100644 --- a/gen/tpu1/README.md +++ b/gen/tpu1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-tpu1` library allows access to all features of the *Google TPU* service. -This documentation was generated from *TPU* crate version *1.0.11+20190619*, where *20190619* is the exact revision of the *tpu:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *TPU* crate version *1.0.12+20190619*, where *20190619* is the exact revision of the *tpu:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *TPU* *v1* API can be found at the [official documentation site](https://cloud.google.com/tpu/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.TPU.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.TPU.html) ... * projects - * [*locations accelerator types get*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationAcceleratorTypeGetCall.html), [*locations accelerator types list*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationAcceleratorTypeListCall.html), [*locations get*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationListCall.html), [*locations nodes create*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationNodeCreateCall.html), [*locations nodes delete*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationNodeDeleteCall.html), [*locations nodes get*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationNodeGetCall.html), [*locations nodes list*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationNodeListCall.html), [*locations nodes reimage*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationNodeReimageCall.html), [*locations nodes start*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationNodeStartCall.html), [*locations nodes stop*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationNodeStopCall.html), [*locations operations cancel*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationOperationCancelCall.html), [*locations operations delete*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationOperationGetCall.html), [*locations operations list*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationOperationListCall.html), [*locations tensorflow versions get*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationTensorflowVersionGetCall.html) and [*locations tensorflow versions list*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.ProjectLocationTensorflowVersionListCall.html) + * [*locations accelerator types get*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationAcceleratorTypeGetCall.html), [*locations accelerator types list*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationAcceleratorTypeListCall.html), [*locations get*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationListCall.html), [*locations nodes create*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationNodeCreateCall.html), [*locations nodes delete*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationNodeDeleteCall.html), [*locations nodes get*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationNodeGetCall.html), [*locations nodes list*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationNodeListCall.html), [*locations nodes reimage*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationNodeReimageCall.html), [*locations nodes start*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationNodeStartCall.html), [*locations nodes stop*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationNodeStopCall.html), [*locations operations cancel*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationOperationCancelCall.html), [*locations operations delete*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationOperationGetCall.html), [*locations operations list*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationOperationListCall.html), [*locations tensorflow versions get*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationTensorflowVersionGetCall.html) and [*locations tensorflow versions list*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.ProjectLocationTensorflowVersionListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/struct.TPU.html)** +* **[Hub](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/struct.TPU.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.Part.html)** + * **[Parts](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-tpu1/1.0.11+20190619/google_tpu1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-tpu1/1.0.12+20190619/google_tpu1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/tpu1/src/lib.rs b/gen/tpu1/src/lib.rs index 4c08b37a45..ba48d904ad 100644 --- a/gen/tpu1/src/lib.rs +++ b/gen/tpu1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *TPU* crate version *1.0.11+20190619*, where *20190619* is the exact revision of the *tpu:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *TPU* crate version *1.0.12+20190619*, where *20190619* is the exact revision of the *tpu:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *TPU* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/tpu/). @@ -336,7 +336,7 @@ impl<'a, C, A> TPU TPU { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://tpu.googleapis.com/".to_string(), _root_url: "https://tpu.googleapis.com/".to_string(), } @@ -347,7 +347,7 @@ impl<'a, C, A> TPU } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/tpu1_alpha1-cli/Cargo.toml b/gen/tpu1_alpha1-cli/Cargo.toml index 730c4d70d2..ba4f644727 100644 --- a/gen/tpu1_alpha1-cli/Cargo.toml +++ b/gen/tpu1_alpha1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-tpu1_alpha1-cli" -version = "1.0.11+20190619" +version = "1.0.12+20190619" authors = ["Sebastian Thiel "] description = "A complete library to interact with TPU (protocol v1alpha1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/tpu1_alpha1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-tpu1_alpha1] path = "../tpu1_alpha1" -version = "1.0.11+20190619" +version = "1.0.12+20190619" diff --git a/gen/tpu1_alpha1-cli/LICENSE.md b/gen/tpu1_alpha1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/tpu1_alpha1-cli/LICENSE.md +++ b/gen/tpu1_alpha1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/tpu1_alpha1-cli/README.md b/gen/tpu1_alpha1-cli/README.md index 5c3c186a5b..16234d6125 100644 --- a/gen/tpu1_alpha1-cli/README.md +++ b/gen/tpu1_alpha1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *TPU* API at revision *20190619*. The CLI is at version *1.0.11*. +This documentation was generated from the *TPU* API at revision *20190619*. The CLI is at version *1.0.12*. ```bash tpu1-alpha1 [options] diff --git a/gen/tpu1_alpha1-cli/mkdocs.yml b/gen/tpu1_alpha1-cli/mkdocs.yml index f4e9bb9fe5..0496f04f86 100644 --- a/gen/tpu1_alpha1-cli/mkdocs.yml +++ b/gen/tpu1_alpha1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: TPU v1.0.11+20190619 +site_name: TPU v1.0.12+20190619 site_url: http://byron.github.io/google-apis-rs/google-tpu1_alpha1-cli site_description: A complete library to interact with TPU (protocol v1alpha1) @@ -29,5 +29,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/tpu1_alpha1-cli/src/cmn.rs b/gen/tpu1_alpha1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/tpu1_alpha1-cli/src/cmn.rs +++ b/gen/tpu1_alpha1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/tpu1_alpha1-cli/src/main.rs b/gen/tpu1_alpha1-cli/src/main.rs index c4752f9960..4fc933deeb 100644 --- a/gen/tpu1_alpha1-cli/src/main.rs +++ b/gen/tpu1_alpha1-cli/src/main.rs @@ -1709,7 +1709,7 @@ fn main() { let mut app = App::new("tpu1-alpha1") .author("Sebastian Thiel ") - .version("1.0.11+20190619") + .version("1.0.12+20190619") .about("TPU API provides customers with access to Google TPU technology.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_tpu1_alpha1_cli") .arg(Arg::with_name("url") diff --git a/gen/tpu1_alpha1/Cargo.toml b/gen/tpu1_alpha1/Cargo.toml index 3049f00e6b..0d0ea1c91d 100644 --- a/gen/tpu1_alpha1/Cargo.toml +++ b/gen/tpu1_alpha1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-tpu1_alpha1" -version = "1.0.11+20190619" +version = "1.0.12+20190619" authors = ["Sebastian Thiel "] description = "A complete library to interact with TPU (protocol v1alpha1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/tpu1_alpha1" homepage = "https://cloud.google.com/tpu/" -documentation = "https://docs.rs/google-tpu1_alpha1/1.0.11+20190619" +documentation = "https://docs.rs/google-tpu1_alpha1/1.0.12+20190619" license = "MIT" keywords = ["tpu", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/tpu1_alpha1/LICENSE.md b/gen/tpu1_alpha1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/tpu1_alpha1/LICENSE.md +++ b/gen/tpu1_alpha1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/tpu1_alpha1/README.md b/gen/tpu1_alpha1/README.md index 20f6f53d3d..673cb95340 100644 --- a/gen/tpu1_alpha1/README.md +++ b/gen/tpu1_alpha1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-tpu1_alpha1` library allows access to all features of the *Google TPU* service. -This documentation was generated from *TPU* crate version *1.0.11+20190619*, where *20190619* is the exact revision of the *tpu:v1alpha1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *TPU* crate version *1.0.12+20190619*, where *20190619* is the exact revision of the *tpu:v1alpha1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *TPU* *v1_alpha1* API can be found at the [official documentation site](https://cloud.google.com/tpu/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.TPU.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.TPU.html) ... * projects - * [*locations accelerator types get*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationAcceleratorTypeGetCall.html), [*locations accelerator types list*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationAcceleratorTypeListCall.html), [*locations get*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationListCall.html), [*locations nodes create*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationNodeCreateCall.html), [*locations nodes delete*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationNodeDeleteCall.html), [*locations nodes get*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationNodeGetCall.html), [*locations nodes list*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationNodeListCall.html), [*locations nodes reimage*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationNodeReimageCall.html), [*locations nodes start*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationNodeStartCall.html), [*locations nodes stop*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationNodeStopCall.html), [*locations operations cancel*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationOperationCancelCall.html), [*locations operations delete*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationOperationGetCall.html), [*locations operations list*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationOperationListCall.html), [*locations tensorflow versions get*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationTensorflowVersionGetCall.html) and [*locations tensorflow versions list*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.ProjectLocationTensorflowVersionListCall.html) + * [*locations accelerator types get*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationAcceleratorTypeGetCall.html), [*locations accelerator types list*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationAcceleratorTypeListCall.html), [*locations get*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationGetCall.html), [*locations list*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationListCall.html), [*locations nodes create*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationNodeCreateCall.html), [*locations nodes delete*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationNodeDeleteCall.html), [*locations nodes get*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationNodeGetCall.html), [*locations nodes list*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationNodeListCall.html), [*locations nodes reimage*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationNodeReimageCall.html), [*locations nodes start*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationNodeStartCall.html), [*locations nodes stop*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationNodeStopCall.html), [*locations operations cancel*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationOperationCancelCall.html), [*locations operations delete*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationOperationGetCall.html), [*locations operations list*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationOperationListCall.html), [*locations tensorflow versions get*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationTensorflowVersionGetCall.html) and [*locations tensorflow versions list*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.ProjectLocationTensorflowVersionListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/struct.TPU.html)** +* **[Hub](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/struct.TPU.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.Part.html)** + * **[Parts](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -136,17 +136,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -156,29 +156,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-tpu1_alpha1/1.0.11+20190619/google_tpu1_alpha1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-tpu1_alpha1/1.0.12+20190619/google_tpu1_alpha1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/tpu1_alpha1/src/lib.rs b/gen/tpu1_alpha1/src/lib.rs index 03e7ca5bff..f901cc1f3d 100644 --- a/gen/tpu1_alpha1/src/lib.rs +++ b/gen/tpu1_alpha1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *TPU* crate version *1.0.11+20190619*, where *20190619* is the exact revision of the *tpu:v1alpha1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *TPU* crate version *1.0.12+20190619*, where *20190619* is the exact revision of the *tpu:v1alpha1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *TPU* *v1_alpha1* API can be found at the //! [official documentation site](https://cloud.google.com/tpu/). @@ -336,7 +336,7 @@ impl<'a, C, A> TPU TPU { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://tpu.googleapis.com/".to_string(), _root_url: "https://tpu.googleapis.com/".to_string(), } @@ -347,7 +347,7 @@ impl<'a, C, A> TPU } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/translate2-cli/Cargo.toml b/gen/translate2-cli/Cargo.toml index 8de825abd5..026ab64825 100644 --- a/gen/translate2-cli/Cargo.toml +++ b/gen/translate2-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-translate2-cli" -version = "1.0.11+20170525" +version = "1.0.12+20170525" authors = ["Sebastian Thiel "] description = "A complete library to interact with Translate (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/translate2-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-translate2] path = "../translate2" -version = "1.0.11+20170525" +version = "1.0.12+20170525" diff --git a/gen/translate2-cli/LICENSE.md b/gen/translate2-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/translate2-cli/LICENSE.md +++ b/gen/translate2-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/translate2-cli/README.md b/gen/translate2-cli/README.md index 347332071e..50fd66d720 100644 --- a/gen/translate2-cli/README.md +++ b/gen/translate2-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Translate* API at revision *20170525*. The CLI is at version *1.0.11*. +This documentation was generated from the *Translate* API at revision *20170525*. The CLI is at version *1.0.12*. ```bash translate2 [options] diff --git a/gen/translate2-cli/mkdocs.yml b/gen/translate2-cli/mkdocs.yml index 476901712b..0c3cf2da99 100644 --- a/gen/translate2-cli/mkdocs.yml +++ b/gen/translate2-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Translate v1.0.11+20170525 +site_name: Translate v1.0.12+20170525 site_url: http://byron.github.io/google-apis-rs/google-translate2-cli site_description: A complete library to interact with Translate (protocol v2) @@ -17,5 +17,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/translate2-cli/src/cmn.rs b/gen/translate2-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/translate2-cli/src/cmn.rs +++ b/gen/translate2-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/translate2-cli/src/main.rs b/gen/translate2-cli/src/main.rs index aa0b555078..6d77ca3508 100644 --- a/gen/translate2-cli/src/main.rs +++ b/gen/translate2-cli/src/main.rs @@ -652,7 +652,7 @@ fn main() { let mut app = App::new("translate2") .author("Sebastian Thiel ") - .version("1.0.11+20170525") + .version("1.0.12+20170525") .about("The Google Cloud Translation API lets websites and programs integrate with Google Translate programmatically.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_translate2_cli") diff --git a/gen/translate2/Cargo.toml b/gen/translate2/Cargo.toml index ae0a3b07be..b30a848fca 100644 --- a/gen/translate2/Cargo.toml +++ b/gen/translate2/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-translate2" -version = "1.0.11+20170525" +version = "1.0.12+20170525" authors = ["Sebastian Thiel "] description = "A complete library to interact with Translate (protocol v2)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/translate2" homepage = "https://code.google.com/apis/language/translate/v2/getting_started.html" -documentation = "https://docs.rs/google-translate2/1.0.11+20170525" +documentation = "https://docs.rs/google-translate2/1.0.12+20170525" license = "MIT" keywords = ["translate", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/translate2/LICENSE.md b/gen/translate2/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/translate2/LICENSE.md +++ b/gen/translate2/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/translate2/README.md b/gen/translate2/README.md index 326f117f7d..3aeabb83fd 100644 --- a/gen/translate2/README.md +++ b/gen/translate2/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-translate2` library allows access to all features of the *Google Translate* service. -This documentation was generated from *Translate* crate version *1.0.11+20170525*, where *20170525* is the exact revision of the *translate:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Translate* crate version *1.0.12+20170525*, where *20170525* is the exact revision of the *translate:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Translate* *v2* API can be found at the [official documentation site](https://code.google.com/apis/language/translate/v2/getting_started.html). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/struct.Translate.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/struct.Translate.html) ... * detections - * [*detect*](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/struct.DetectionDetectCall.html) and [*list*](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/struct.DetectionListCall.html) + * [*detect*](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/struct.DetectionDetectCall.html) and [*list*](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/struct.DetectionListCall.html) * languages - * [*list*](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/struct.LanguageListCall.html) + * [*list*](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/struct.LanguageListCall.html) * translations - * [*list*](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/struct.TranslationListCall.html) and [*translate*](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/struct.TranslationTranslateCall.html) + * [*list*](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/struct.TranslationListCall.html) and [*translate*](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/struct.TranslationTranslateCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/struct.Translate.html)** +* **[Hub](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/struct.Translate.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.Part.html)** + * **[Parts](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -135,17 +135,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -155,29 +155,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.RequestValue.html) and -[decodable](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.RequestValue.html) and +[decodable](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-translate2/1.0.11+20170525/google_translate2/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-translate2/1.0.12+20170525/google_translate2/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/translate2/src/lib.rs b/gen/translate2/src/lib.rs index 1c97b0dc01..9e6cbe92a2 100644 --- a/gen/translate2/src/lib.rs +++ b/gen/translate2/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Translate* crate version *1.0.11+20170525*, where *20170525* is the exact revision of the *translate:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Translate* crate version *1.0.12+20170525*, where *20170525* is the exact revision of the *translate:v2* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Translate* *v2* API can be found at the //! [official documentation site](https://code.google.com/apis/language/translate/v2/getting_started.html). @@ -338,7 +338,7 @@ impl<'a, C, A> Translate Translate { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://translation.googleapis.com/language/translate/".to_string(), _root_url: "https://translation.googleapis.com/".to_string(), } @@ -355,7 +355,7 @@ impl<'a, C, A> Translate } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/urlshortener1-cli/Cargo.toml b/gen/urlshortener1-cli/Cargo.toml index d5cf04398f..e9a6125308 100644 --- a/gen/urlshortener1-cli/Cargo.toml +++ b/gen/urlshortener1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-urlshortener1-cli" -version = "1.0.11+20150519" +version = "1.0.12+20150519" authors = ["Sebastian Thiel "] description = "A complete library to interact with urlshortener (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/urlshortener1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-urlshortener1] path = "../urlshortener1" -version = "1.0.11+20150519" +version = "1.0.12+20150519" diff --git a/gen/urlshortener1-cli/LICENSE.md b/gen/urlshortener1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/urlshortener1-cli/LICENSE.md +++ b/gen/urlshortener1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/urlshortener1-cli/README.md b/gen/urlshortener1-cli/README.md index 11623713da..eb78561fc0 100644 --- a/gen/urlshortener1-cli/README.md +++ b/gen/urlshortener1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *urlshortener* API at revision *20150519*. The CLI is at version *1.0.11*. +This documentation was generated from the *urlshortener* API at revision *20150519*. The CLI is at version *1.0.12*. ```bash urlshortener1 [options] diff --git a/gen/urlshortener1-cli/mkdocs.yml b/gen/urlshortener1-cli/mkdocs.yml index 5561b021f3..1ec9b0d561 100644 --- a/gen/urlshortener1-cli/mkdocs.yml +++ b/gen/urlshortener1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: urlshortener v1.0.11+20150519 +site_name: urlshortener v1.0.12+20150519 site_url: http://byron.github.io/google-apis-rs/google-urlshortener1-cli site_description: A complete library to interact with urlshortener (protocol v1) @@ -15,5 +15,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/urlshortener1-cli/src/cmn.rs b/gen/urlshortener1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/urlshortener1-cli/src/cmn.rs +++ b/gen/urlshortener1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/urlshortener1-cli/src/main.rs b/gen/urlshortener1-cli/src/main.rs index ecfc48ad05..318587bd9a 100644 --- a/gen/urlshortener1-cli/src/main.rs +++ b/gen/urlshortener1-cli/src/main.rs @@ -431,7 +431,7 @@ fn main() { let mut app = App::new("urlshortener1") .author("Sebastian Thiel ") - .version("1.0.11+20150519") + .version("1.0.12+20150519") .about("Lets you create, inspect, and manage goo.gl short URLs") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_urlshortener1_cli") .arg(Arg::with_name("url") diff --git a/gen/urlshortener1/Cargo.toml b/gen/urlshortener1/Cargo.toml index 354e6ca281..3a5916ff78 100644 --- a/gen/urlshortener1/Cargo.toml +++ b/gen/urlshortener1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-urlshortener1" -version = "1.0.11+20150519" +version = "1.0.12+20150519" authors = ["Sebastian Thiel "] description = "A complete library to interact with urlshortener (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/urlshortener1" homepage = "https://developers.google.com/url-shortener/v1/getting_started" -documentation = "https://docs.rs/google-urlshortener1/1.0.11+20150519" +documentation = "https://docs.rs/google-urlshortener1/1.0.12+20150519" license = "MIT" keywords = ["urlshortener", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/urlshortener1/LICENSE.md b/gen/urlshortener1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/urlshortener1/LICENSE.md +++ b/gen/urlshortener1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/urlshortener1/README.md b/gen/urlshortener1/README.md index dbcbffe3c1..8365efbef1 100644 --- a/gen/urlshortener1/README.md +++ b/gen/urlshortener1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-urlshortener1` library allows access to all features of the *Google urlshortener* service. -This documentation was generated from *urlshortener* crate version *1.0.11+20150519*, where *20150519* is the exact revision of the *urlshortener:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *urlshortener* crate version *1.0.12+20150519*, where *20150519* is the exact revision of the *urlshortener:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *urlshortener* *v1* API can be found at the [official documentation site](https://developers.google.com/url-shortener/v1/getting_started). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/struct.Urlshortener.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/struct.Urlshortener.html) ... -* [url](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/struct.Url.html) - * [*get*](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/struct.UrlGetCall.html), [*insert*](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/struct.UrlInsertCall.html) and [*list*](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/struct.UrlListCall.html) +* [url](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/struct.Url.html) + * [*get*](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/struct.UrlGetCall.html), [*insert*](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/struct.UrlInsertCall.html) and [*list*](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/struct.UrlListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/struct.Urlshortener.html)** +* **[Hub](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/struct.Urlshortener.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.Part.html)** + * **[Parts](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -126,17 +126,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -146,29 +146,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-urlshortener1/1.0.11+20150519/google_urlshortener1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-urlshortener1/1.0.12+20150519/google_urlshortener1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/urlshortener1/src/lib.rs b/gen/urlshortener1/src/lib.rs index 27370c9533..c85121ffb3 100644 --- a/gen/urlshortener1/src/lib.rs +++ b/gen/urlshortener1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *urlshortener* crate version *1.0.11+20150519*, where *20150519* is the exact revision of the *urlshortener:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *urlshortener* crate version *1.0.12+20150519*, where *20150519* is the exact revision of the *urlshortener:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *urlshortener* *v1* API can be found at the //! [official documentation site](https://developers.google.com/url-shortener/v1/getting_started). @@ -320,7 +320,7 @@ impl<'a, C, A> Urlshortener Urlshortener { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/urlshortener/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -331,7 +331,7 @@ impl<'a, C, A> Urlshortener } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/vault1-cli/Cargo.toml b/gen/vault1-cli/Cargo.toml index 9e0382876c..77534199d5 100644 --- a/gen/vault1-cli/Cargo.toml +++ b/gen/vault1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-vault1-cli" -version = "1.0.11+20190614" +version = "1.0.12+20190614" authors = ["Sebastian Thiel "] description = "A complete library to interact with Vault (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/vault1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-vault1] path = "../vault1" -version = "1.0.11+20190614" +version = "1.0.12+20190614" diff --git a/gen/vault1-cli/LICENSE.md b/gen/vault1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/vault1-cli/LICENSE.md +++ b/gen/vault1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/vault1-cli/README.md b/gen/vault1-cli/README.md index 7a9035ceb1..6a3f476171 100644 --- a/gen/vault1-cli/README.md +++ b/gen/vault1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Vault* API at revision *20190614*. The CLI is at version *1.0.11*. +This documentation was generated from the *Vault* API at revision *20190614*. The CLI is at version *1.0.12*. ```bash vault1 [options] diff --git a/gen/vault1-cli/mkdocs.yml b/gen/vault1-cli/mkdocs.yml index 69c501ff95..395df1d9e8 100644 --- a/gen/vault1-cli/mkdocs.yml +++ b/gen/vault1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Vault v1.0.11+20190614 +site_name: Vault v1.0.12+20190614 site_url: http://byron.github.io/google-apis-rs/google-vault1-cli site_description: A complete library to interact with Vault (protocol v1) @@ -40,5 +40,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/vault1-cli/src/cmn.rs b/gen/vault1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/vault1-cli/src/cmn.rs +++ b/gen/vault1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/vault1-cli/src/main.rs b/gen/vault1-cli/src/main.rs index d69fec2506..dfb57d92c4 100644 --- a/gen/vault1-cli/src/main.rs +++ b/gen/vault1-cli/src/main.rs @@ -3080,7 +3080,7 @@ fn main() { let mut app = App::new("vault1") .author("Sebastian Thiel ") - .version("1.0.11+20190614") + .version("1.0.12+20190614") .about("Archiving and eDiscovery for G Suite.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_vault1_cli") .arg(Arg::with_name("url") diff --git a/gen/vault1/Cargo.toml b/gen/vault1/Cargo.toml index 70691096c6..d4fadb30db 100644 --- a/gen/vault1/Cargo.toml +++ b/gen/vault1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-vault1" -version = "1.0.11+20190614" +version = "1.0.12+20190614" authors = ["Sebastian Thiel "] description = "A complete library to interact with Vault (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/vault1" homepage = "https://developers.google.com/vault" -documentation = "https://docs.rs/google-vault1/1.0.11+20190614" +documentation = "https://docs.rs/google-vault1/1.0.12+20190614" license = "MIT" keywords = ["vault", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/vault1/LICENSE.md b/gen/vault1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/vault1/LICENSE.md +++ b/gen/vault1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/vault1/README.md b/gen/vault1/README.md index dd88fbd037..611394a8d8 100644 --- a/gen/vault1/README.md +++ b/gen/vault1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-vault1` library allows access to all features of the *Google Vault* service. -This documentation was generated from *Vault* crate version *1.0.11+20190614*, where *20190614* is the exact revision of the *vault:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Vault* crate version *1.0.12+20190614*, where *20190614* is the exact revision of the *vault:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Vault* *v1* API can be found at the [official documentation site](https://developers.google.com/vault). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.Vault.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.Vault.html) ... -* [matters](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.Matter.html) - * [*add permissions*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterAddPermissionCall.html), [*close*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterCloseCall.html), [*create*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterCreateCall.html), [*delete*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterDeleteCall.html), [*exports create*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterExportCreateCall.html), [*exports delete*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterExportDeleteCall.html), [*exports get*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterExportGetCall.html), [*exports list*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterExportListCall.html), [*get*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterGetCall.html), [*holds accounts create*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterHoldAccountCreateCall.html), [*holds accounts delete*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterHoldAccountDeleteCall.html), [*holds accounts list*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterHoldAccountListCall.html), [*holds add held accounts*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterHoldAddHeldAccountCall.html), [*holds create*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterHoldCreateCall.html), [*holds delete*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterHoldDeleteCall.html), [*holds get*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterHoldGetCall.html), [*holds list*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterHoldListCall.html), [*holds remove held accounts*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterHoldRemoveHeldAccountCall.html), [*holds update*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterHoldUpdateCall.html), [*list*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterListCall.html), [*remove permissions*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterRemovePermissionCall.html), [*reopen*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterReopenCall.html), [*saved queries create*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterSavedQueryCreateCall.html), [*saved queries delete*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterSavedQueryDeleteCall.html), [*saved queries get*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterSavedQueryGetCall.html), [*saved queries list*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterSavedQueryListCall.html), [*undelete*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterUndeleteCall.html) and [*update*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.MatterUpdateCall.html) +* [matters](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.Matter.html) + * [*add permissions*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterAddPermissionCall.html), [*close*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterCloseCall.html), [*create*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterCreateCall.html), [*delete*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterDeleteCall.html), [*exports create*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterExportCreateCall.html), [*exports delete*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterExportDeleteCall.html), [*exports get*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterExportGetCall.html), [*exports list*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterExportListCall.html), [*get*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterGetCall.html), [*holds accounts create*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterHoldAccountCreateCall.html), [*holds accounts delete*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterHoldAccountDeleteCall.html), [*holds accounts list*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterHoldAccountListCall.html), [*holds add held accounts*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterHoldAddHeldAccountCall.html), [*holds create*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterHoldCreateCall.html), [*holds delete*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterHoldDeleteCall.html), [*holds get*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterHoldGetCall.html), [*holds list*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterHoldListCall.html), [*holds remove held accounts*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterHoldRemoveHeldAccountCall.html), [*holds update*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterHoldUpdateCall.html), [*list*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterListCall.html), [*remove permissions*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterRemovePermissionCall.html), [*reopen*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterReopenCall.html), [*saved queries create*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterSavedQueryCreateCall.html), [*saved queries delete*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterSavedQueryDeleteCall.html), [*saved queries get*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterSavedQueryGetCall.html), [*saved queries list*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterSavedQueryListCall.html), [*undelete*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterUndeleteCall.html) and [*update*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.MatterUpdateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/struct.Vault.html)** +* **[Hub](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/struct.Vault.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.Part.html)** + * **[Parts](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -154,17 +154,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -174,29 +174,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-vault1/1.0.11+20190614/google_vault1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-vault1/1.0.12+20190614/google_vault1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/vault1/src/lib.rs b/gen/vault1/src/lib.rs index 8388fb93ad..4e18f4ec7a 100644 --- a/gen/vault1/src/lib.rs +++ b/gen/vault1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Vault* crate version *1.0.11+20190614*, where *20190614* is the exact revision of the *vault:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Vault* crate version *1.0.12+20190614*, where *20190614* is the exact revision of the *vault:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Vault* *v1* API can be found at the //! [official documentation site](https://developers.google.com/vault). @@ -354,7 +354,7 @@ impl<'a, C, A> Vault Vault { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://vault.googleapis.com/".to_string(), _root_url: "https://vault.googleapis.com/".to_string(), } @@ -365,7 +365,7 @@ impl<'a, C, A> Vault } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/videointelligence1-cli/Cargo.toml b/gen/videointelligence1-cli/Cargo.toml index 64358103fe..5c6856dc25 100644 --- a/gen/videointelligence1-cli/Cargo.toml +++ b/gen/videointelligence1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-videointelligence1-cli" -version = "1.0.11+20190626" +version = "1.0.12+20190626" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Video Intelligence (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/videointelligence1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-videointelligence1] path = "../videointelligence1" -version = "1.0.11+20190626" +version = "1.0.12+20190626" diff --git a/gen/videointelligence1-cli/LICENSE.md b/gen/videointelligence1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/videointelligence1-cli/LICENSE.md +++ b/gen/videointelligence1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/videointelligence1-cli/README.md b/gen/videointelligence1-cli/README.md index ef9cb5454f..30435554f1 100644 --- a/gen/videointelligence1-cli/README.md +++ b/gen/videointelligence1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Video Intelligence* API at revision *20190626*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Video Intelligence* API at revision *20190626*. The CLI is at version *1.0.12*. ```bash videointelligence1 [options] diff --git a/gen/videointelligence1-cli/mkdocs.yml b/gen/videointelligence1-cli/mkdocs.yml index d2d9e17b31..765063a510 100644 --- a/gen/videointelligence1-cli/mkdocs.yml +++ b/gen/videointelligence1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Video Intelligence v1.0.11+20190626 +site_name: Cloud Video Intelligence v1.0.12+20190626 site_url: http://byron.github.io/google-apis-rs/google-videointelligence1-cli site_description: A complete library to interact with Cloud Video Intelligence (protocol v1) @@ -23,5 +23,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/videointelligence1-cli/src/cmn.rs b/gen/videointelligence1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/videointelligence1-cli/src/cmn.rs +++ b/gen/videointelligence1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/videointelligence1-cli/src/main.rs b/gen/videointelligence1-cli/src/main.rs index f7ea092089..b953c15644 100644 --- a/gen/videointelligence1-cli/src/main.rs +++ b/gen/videointelligence1-cli/src/main.rs @@ -1177,7 +1177,7 @@ fn main() { let mut app = App::new("videointelligence1") .author("Sebastian Thiel ") - .version("1.0.11+20190626") + .version("1.0.12+20190626") .about("Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_videointelligence1_cli") .arg(Arg::with_name("url") diff --git a/gen/videointelligence1/Cargo.toml b/gen/videointelligence1/Cargo.toml index b36251d46a..1509f3c6dd 100644 --- a/gen/videointelligence1/Cargo.toml +++ b/gen/videointelligence1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-videointelligence1" -version = "1.0.11+20190626" +version = "1.0.12+20190626" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Video Intelligence (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/videointelligence1" homepage = "https://cloud.google.com/video-intelligence/docs/" -documentation = "https://docs.rs/google-videointelligence1/1.0.11+20190626" +documentation = "https://docs.rs/google-videointelligence1/1.0.12+20190626" license = "MIT" keywords = ["videointelligence", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/videointelligence1/LICENSE.md b/gen/videointelligence1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/videointelligence1/LICENSE.md +++ b/gen/videointelligence1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/videointelligence1/README.md b/gen/videointelligence1/README.md index 5100962c7b..1eda1a8ffb 100644 --- a/gen/videointelligence1/README.md +++ b/gen/videointelligence1/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-videointelligence1` library allows access to all features of the *Google Cloud Video Intelligence* service. -This documentation was generated from *Cloud Video Intelligence* crate version *1.0.11+20190626*, where *20190626* is the exact revision of the *videointelligence:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Video Intelligence* crate version *1.0.12+20190626*, where *20190626* is the exact revision of the *videointelligence:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Video Intelligence* *v1* API can be found at the [official documentation site](https://cloud.google.com/video-intelligence/docs/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/struct.CloudVideoIntelligence.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/struct.CloudVideoIntelligence.html) ... * operations - * [*cancel*](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/struct.OperationDeleteCall.html), [*get*](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/struct.OperationGetCall.html), [*projects locations operations cancel*](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/struct.OperationProjectLocationOperationCancelCall.html), [*projects locations operations delete*](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/struct.OperationProjectLocationOperationDeleteCall.html) and [*projects locations operations get*](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/struct.OperationProjectLocationOperationGetCall.html) + * [*cancel*](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/struct.OperationDeleteCall.html), [*get*](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/struct.OperationGetCall.html), [*projects locations operations cancel*](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/struct.OperationProjectLocationOperationCancelCall.html), [*projects locations operations delete*](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/struct.OperationProjectLocationOperationDeleteCall.html) and [*projects locations operations get*](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/struct.OperationProjectLocationOperationGetCall.html) * projects - * [*locations operations cancel*](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/struct.ProjectLocationOperationCancelCall.html), [*locations operations delete*](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/struct.ProjectLocationOperationGetCall.html) and [*locations operations list*](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/struct.ProjectLocationOperationListCall.html) + * [*locations operations cancel*](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/struct.ProjectLocationOperationCancelCall.html), [*locations operations delete*](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/struct.ProjectLocationOperationDeleteCall.html), [*locations operations get*](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/struct.ProjectLocationOperationGetCall.html) and [*locations operations list*](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/struct.ProjectLocationOperationListCall.html) * videos - * [*annotate*](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/struct.VideoAnnotateCall.html) + * [*annotate*](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/struct.VideoAnnotateCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/struct.CloudVideoIntelligence.html)** +* **[Hub](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/struct.CloudVideoIntelligence.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.Part.html)** + * **[Parts](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -139,17 +139,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -159,29 +159,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-videointelligence1/1.0.11+20190626/google_videointelligence1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-videointelligence1/1.0.12+20190626/google_videointelligence1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/videointelligence1/src/lib.rs b/gen/videointelligence1/src/lib.rs index 6c04b64a17..1423aae180 100644 --- a/gen/videointelligence1/src/lib.rs +++ b/gen/videointelligence1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Video Intelligence* crate version *1.0.11+20190626*, where *20190626* is the exact revision of the *videointelligence:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Video Intelligence* crate version *1.0.12+20190626*, where *20190626* is the exact revision of the *videointelligence:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Video Intelligence* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/video-intelligence/docs/). @@ -338,7 +338,7 @@ impl<'a, C, A> CloudVideoIntelligence CloudVideoIntelligence { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://videointelligence.googleapis.com/".to_string(), _root_url: "https://videointelligence.googleapis.com/".to_string(), } @@ -355,7 +355,7 @@ impl<'a, C, A> CloudVideoIntelligence } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/videointelligence1_beta1-cli/Cargo.toml b/gen/videointelligence1_beta1-cli/Cargo.toml index 027f4938a7..197ae91f3f 100644 --- a/gen/videointelligence1_beta1-cli/Cargo.toml +++ b/gen/videointelligence1_beta1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-videointelligence1_beta1-cli" -version = "1.0.11+20171122" +version = "1.0.12+20171122" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Video Intelligence (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/videointelligence1_beta1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-videointelligence1_beta1] path = "../videointelligence1_beta1" -version = "1.0.11+20171122" +version = "1.0.12+20171122" diff --git a/gen/videointelligence1_beta1-cli/LICENSE.md b/gen/videointelligence1_beta1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/videointelligence1_beta1-cli/LICENSE.md +++ b/gen/videointelligence1_beta1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/videointelligence1_beta1-cli/README.md b/gen/videointelligence1_beta1-cli/README.md index c99f7c5e94..bfe4f3aa33 100644 --- a/gen/videointelligence1_beta1-cli/README.md +++ b/gen/videointelligence1_beta1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Cloud Video Intelligence* API at revision *20171122*. The CLI is at version *1.0.11*. +This documentation was generated from the *Cloud Video Intelligence* API at revision *20171122*. The CLI is at version *1.0.12*. ```bash videointelligence1-beta1 [options] diff --git a/gen/videointelligence1_beta1-cli/mkdocs.yml b/gen/videointelligence1_beta1-cli/mkdocs.yml index c5f9c3fb1a..266fefe60a 100644 --- a/gen/videointelligence1_beta1-cli/mkdocs.yml +++ b/gen/videointelligence1_beta1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Cloud Video Intelligence v1.0.11+20171122 +site_name: Cloud Video Intelligence v1.0.12+20171122 site_url: http://byron.github.io/google-apis-rs/google-videointelligence1_beta1-cli site_description: A complete library to interact with Cloud Video Intelligence (protocol v1beta1) @@ -13,5 +13,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/videointelligence1_beta1-cli/src/cmn.rs b/gen/videointelligence1_beta1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/videointelligence1_beta1-cli/src/cmn.rs +++ b/gen/videointelligence1_beta1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/videointelligence1_beta1-cli/src/main.rs b/gen/videointelligence1_beta1-cli/src/main.rs index c08d3d52a7..ee4a397442 100644 --- a/gen/videointelligence1_beta1-cli/src/main.rs +++ b/gen/videointelligence1_beta1-cli/src/main.rs @@ -274,7 +274,7 @@ fn main() { let mut app = App::new("videointelligence1-beta1") .author("Sebastian Thiel ") - .version("1.0.11+20171122") + .version("1.0.12+20171122") .about("Cloud Video Intelligence API.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_videointelligence1_beta1_cli") .arg(Arg::with_name("url") diff --git a/gen/videointelligence1_beta1/Cargo.toml b/gen/videointelligence1_beta1/Cargo.toml index 1367530335..0944bf35a9 100644 --- a/gen/videointelligence1_beta1/Cargo.toml +++ b/gen/videointelligence1_beta1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-videointelligence1_beta1" -version = "1.0.11+20171122" +version = "1.0.12+20171122" authors = ["Sebastian Thiel "] description = "A complete library to interact with Cloud Video Intelligence (protocol v1beta1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/videointelligence1_beta1" homepage = "https://cloud.google.com/video-intelligence/docs/" -documentation = "https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122" +documentation = "https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122" license = "MIT" keywords = ["videointelligence", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/videointelligence1_beta1/LICENSE.md b/gen/videointelligence1_beta1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/videointelligence1_beta1/LICENSE.md +++ b/gen/videointelligence1_beta1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/videointelligence1_beta1/README.md b/gen/videointelligence1_beta1/README.md index 4d7abdd96f..d190442f12 100644 --- a/gen/videointelligence1_beta1/README.md +++ b/gen/videointelligence1_beta1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-videointelligence1_beta1` library allows access to all features of the *Google Cloud Video Intelligence* service. -This documentation was generated from *Cloud Video Intelligence* crate version *1.0.11+20171122*, where *20171122* is the exact revision of the *videointelligence:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Cloud Video Intelligence* crate version *1.0.12+20171122*, where *20171122* is the exact revision of the *videointelligence:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Cloud Video Intelligence* *v1_beta1* API can be found at the [official documentation site](https://cloud.google.com/video-intelligence/docs/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/struct.CloudVideoIntelligence.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/struct.CloudVideoIntelligence.html) ... * videos - * [*annotate*](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/struct.VideoAnnotateCall.html) + * [*annotate*](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/struct.VideoAnnotateCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/struct.CloudVideoIntelligence.html)** +* **[Hub](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/struct.CloudVideoIntelligence.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.Part.html)** + * **[Parts](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -130,17 +130,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -150,29 +150,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-videointelligence1_beta1/1.0.11+20171122/google_videointelligence1_beta1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-videointelligence1_beta1/1.0.12+20171122/google_videointelligence1_beta1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/videointelligence1_beta1/src/lib.rs b/gen/videointelligence1_beta1/src/lib.rs index 0872c95441..8f5956590e 100644 --- a/gen/videointelligence1_beta1/src/lib.rs +++ b/gen/videointelligence1_beta1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Cloud Video Intelligence* crate version *1.0.11+20171122*, where *20171122* is the exact revision of the *videointelligence:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Cloud Video Intelligence* crate version *1.0.12+20171122*, where *20171122* is the exact revision of the *videointelligence:v1beta1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Cloud Video Intelligence* *v1_beta1* API can be found at the //! [official documentation site](https://cloud.google.com/video-intelligence/docs/). @@ -329,7 +329,7 @@ impl<'a, C, A> CloudVideoIntelligence CloudVideoIntelligence { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://videointelligence.googleapis.com/".to_string(), _root_url: "https://videointelligence.googleapis.com/".to_string(), } @@ -340,7 +340,7 @@ impl<'a, C, A> CloudVideoIntelligence } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/vision1-cli/Cargo.toml b/gen/vision1-cli/Cargo.toml index a6623f7f67..5d9b7df3d8 100644 --- a/gen/vision1-cli/Cargo.toml +++ b/gen/vision1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-vision1-cli" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Vision (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/vision1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-vision1] path = "../vision1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" diff --git a/gen/vision1-cli/LICENSE.md b/gen/vision1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/vision1-cli/LICENSE.md +++ b/gen/vision1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/vision1-cli/README.md b/gen/vision1-cli/README.md index 5e580c97fe..e1ad5b2a2a 100644 --- a/gen/vision1-cli/README.md +++ b/gen/vision1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *Vision* API at revision *20190628*. The CLI is at version *1.0.11*. +This documentation was generated from the *Vision* API at revision *20190628*. The CLI is at version *1.0.12*. ```bash vision1 [options] diff --git a/gen/vision1-cli/mkdocs.yml b/gen/vision1-cli/mkdocs.yml index 383f82ced8..89c5e1c722 100644 --- a/gen/vision1-cli/mkdocs.yml +++ b/gen/vision1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Vision v1.0.11+20190628 +site_name: Vision v1.0.12+20190628 site_url: http://byron.github.io/google-apis-rs/google-vision1-cli site_description: A complete library to interact with Vision (protocol v1) @@ -41,5 +41,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/vision1-cli/src/cmn.rs b/gen/vision1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/vision1-cli/src/cmn.rs +++ b/gen/vision1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/vision1-cli/src/main.rs b/gen/vision1-cli/src/main.rs index a7f19ccb66..53f909fa80 100644 --- a/gen/vision1-cli/src/main.rs +++ b/gen/vision1-cli/src/main.rs @@ -3200,7 +3200,7 @@ fn main() { let mut app = App::new("vision1") .author("Sebastian Thiel ") - .version("1.0.11+20190628") + .version("1.0.12+20190628") .about("Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_vision1_cli") .arg(Arg::with_name("url") diff --git a/gen/vision1/Cargo.toml b/gen/vision1/Cargo.toml index a04862a0c0..2737f649a9 100644 --- a/gen/vision1/Cargo.toml +++ b/gen/vision1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-vision1" -version = "1.0.11+20190628" +version = "1.0.12+20190628" authors = ["Sebastian Thiel "] description = "A complete library to interact with Vision (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/vision1" homepage = "https://cloud.google.com/vision/" -documentation = "https://docs.rs/google-vision1/1.0.11+20190628" +documentation = "https://docs.rs/google-vision1/1.0.12+20190628" license = "MIT" keywords = ["vision", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/vision1/LICENSE.md b/gen/vision1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/vision1/LICENSE.md +++ b/gen/vision1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/vision1/README.md b/gen/vision1/README.md index 8dbe6025fb..5b1dc3660b 100644 --- a/gen/vision1/README.md +++ b/gen/vision1/README.md @@ -5,24 +5,24 @@ DO NOT EDIT ! --> The `google-vision1` library allows access to all features of the *Google Vision* service. -This documentation was generated from *Vision* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *vision:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *Vision* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *vision:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *Vision* *v1* API can be found at the [official documentation site](https://cloud.google.com/vision/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.Vision.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.Vision.html) ... * files - * [*annotate*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.FileAnnotateCall.html) and [*async batch annotate*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.FileAsyncBatchAnnotateCall.html) -* [images](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.Image.html) - * [*annotate*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ImageAnnotateCall.html) and [*async batch annotate*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ImageAsyncBatchAnnotateCall.html) + * [*annotate*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.FileAnnotateCall.html) and [*async batch annotate*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.FileAsyncBatchAnnotateCall.html) +* [images](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.Image.html) + * [*annotate*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ImageAnnotateCall.html) and [*async batch annotate*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ImageAsyncBatchAnnotateCall.html) * locations - * [*operations get*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.LocationOperationGetCall.html) -* [operations](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.Operation.html) - * [*cancel*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.OperationDeleteCall.html), [*get*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.OperationListCall.html) + * [*operations get*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.LocationOperationGetCall.html) +* [operations](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.Operation.html) + * [*cancel*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.OperationCancelCall.html), [*delete*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.OperationDeleteCall.html), [*get*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.OperationGetCall.html) and [*list*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.OperationListCall.html) * projects - * [*locations operations get*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationOperationGetCall.html), [*locations product sets add product*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductSetAddProductCall.html), [*locations product sets create*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductSetCreateCall.html), [*locations product sets delete*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductSetDeleteCall.html), [*locations product sets get*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductSetGetCall.html), [*locations product sets import*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductSetImportCall.html), [*locations product sets list*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductSetListCall.html), [*locations product sets patch*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductSetPatchCall.html), [*locations product sets products list*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductSetProductListCall.html), [*locations product sets remove product*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductSetRemoveProductCall.html), [*locations products create*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductCreateCall.html), [*locations products delete*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductDeleteCall.html), [*locations products get*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductGetCall.html), [*locations products list*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductListCall.html), [*locations products patch*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductPatchCall.html), [*locations products reference images create*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductReferenceImageCreateCall.html), [*locations products reference images delete*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductReferenceImageDeleteCall.html), [*locations products reference images get*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductReferenceImageGetCall.html), [*locations products reference images list*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectLocationProductReferenceImageListCall.html) and [*operations get*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.ProjectOperationGetCall.html) + * [*locations operations get*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationOperationGetCall.html), [*locations product sets add product*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductSetAddProductCall.html), [*locations product sets create*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductSetCreateCall.html), [*locations product sets delete*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductSetDeleteCall.html), [*locations product sets get*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductSetGetCall.html), [*locations product sets import*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductSetImportCall.html), [*locations product sets list*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductSetListCall.html), [*locations product sets patch*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductSetPatchCall.html), [*locations product sets products list*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductSetProductListCall.html), [*locations product sets remove product*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductSetRemoveProductCall.html), [*locations products create*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductCreateCall.html), [*locations products delete*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductDeleteCall.html), [*locations products get*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductGetCall.html), [*locations products list*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductListCall.html), [*locations products patch*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductPatchCall.html), [*locations products reference images create*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductReferenceImageCreateCall.html), [*locations products reference images delete*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductReferenceImageDeleteCall.html), [*locations products reference images get*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductReferenceImageGetCall.html), [*locations products reference images list*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectLocationProductReferenceImageListCall.html) and [*operations get*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.ProjectOperationGetCall.html) @@ -31,17 +31,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/struct.Vision.html)** +* **[Hub](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/struct.Vision.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.Part.html)** + * **[Parts](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -144,17 +144,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -164,29 +164,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-vision1/1.0.11+20190628/google_vision1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-vision1/1.0.12+20190628/google_vision1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/vision1/src/lib.rs b/gen/vision1/src/lib.rs index 19dde4bdaa..067238abc5 100644 --- a/gen/vision1/src/lib.rs +++ b/gen/vision1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *Vision* crate version *1.0.11+20190628*, where *20190628* is the exact revision of the *vision:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *Vision* crate version *1.0.12+20190628*, where *20190628* is the exact revision of the *vision:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *Vision* *v1* API can be found at the //! [official documentation site](https://cloud.google.com/vision/). @@ -344,7 +344,7 @@ impl<'a, C, A> Vision Vision { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://vision.googleapis.com/".to_string(), _root_url: "https://vision.googleapis.com/".to_string(), } @@ -367,7 +367,7 @@ impl<'a, C, A> Vision } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/webfonts1-cli/Cargo.toml b/gen/webfonts1-cli/Cargo.toml index bbaecc4601..08123c3c05 100644 --- a/gen/webfonts1-cli/Cargo.toml +++ b/gen/webfonts1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-webfonts1-cli" -version = "1.0.11+20160302" +version = "1.0.12+20160302" authors = ["Sebastian Thiel "] description = "A complete library to interact with webfonts (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/webfonts1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-webfonts1] path = "../webfonts1" -version = "1.0.11+20160302" +version = "1.0.12+20160302" diff --git a/gen/webfonts1-cli/LICENSE.md b/gen/webfonts1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/webfonts1-cli/LICENSE.md +++ b/gen/webfonts1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/webfonts1-cli/README.md b/gen/webfonts1-cli/README.md index 87f55a07a4..8b31b4136a 100644 --- a/gen/webfonts1-cli/README.md +++ b/gen/webfonts1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *webfonts* API at revision *20160302*. The CLI is at version *1.0.11*. +This documentation was generated from the *webfonts* API at revision *20160302*. The CLI is at version *1.0.12*. ```bash webfonts1 [options] diff --git a/gen/webfonts1-cli/mkdocs.yml b/gen/webfonts1-cli/mkdocs.yml index 8e548161f9..f34dad7fa1 100644 --- a/gen/webfonts1-cli/mkdocs.yml +++ b/gen/webfonts1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: webfonts v1.0.11+20160302 +site_name: webfonts v1.0.12+20160302 site_url: http://byron.github.io/google-apis-rs/google-webfonts1-cli site_description: A complete library to interact with webfonts (protocol v1) @@ -13,5 +13,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/webfonts1-cli/src/cmn.rs b/gen/webfonts1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/webfonts1-cli/src/cmn.rs +++ b/gen/webfonts1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/webfonts1-cli/src/main.rs b/gen/webfonts1-cli/src/main.rs index 999e598128..938cbb25ec 100644 --- a/gen/webfonts1-cli/src/main.rs +++ b/gen/webfonts1-cli/src/main.rs @@ -220,7 +220,7 @@ fn main() { let mut app = App::new("webfonts1") .author("Sebastian Thiel ") - .version("1.0.11+20160302") + .version("1.0.12+20160302") .about("Accesses the metadata for all families served by Google Fonts, providing a list of families currently available (including available styles and a list of supported script subsets).") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_webfonts1_cli") .arg(Arg::with_name("folder") diff --git a/gen/webfonts1/Cargo.toml b/gen/webfonts1/Cargo.toml index 73c6590caf..fa61cecae5 100644 --- a/gen/webfonts1/Cargo.toml +++ b/gen/webfonts1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-webfonts1" -version = "1.0.11+20160302" +version = "1.0.12+20160302" authors = ["Sebastian Thiel "] description = "A complete library to interact with webfonts (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/webfonts1" homepage = "https://developers.google.com/fonts/docs/developer_api" -documentation = "https://docs.rs/google-webfonts1/1.0.11+20160302" +documentation = "https://docs.rs/google-webfonts1/1.0.12+20160302" license = "MIT" keywords = ["webfonts", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/webfonts1/LICENSE.md b/gen/webfonts1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/webfonts1/LICENSE.md +++ b/gen/webfonts1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/webfonts1/README.md b/gen/webfonts1/README.md index eacf67356f..f35c6322d9 100644 --- a/gen/webfonts1/README.md +++ b/gen/webfonts1/README.md @@ -5,16 +5,16 @@ DO NOT EDIT ! --> The `google-webfonts1` library allows access to all features of the *Google webfonts* service. -This documentation was generated from *webfonts* crate version *1.0.11+20160302*, where *20160302* is the exact revision of the *webfonts:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *webfonts* crate version *1.0.12+20160302*, where *20160302* is the exact revision of the *webfonts:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *webfonts* *v1* API can be found at the [official documentation site](https://developers.google.com/fonts/docs/developer_api). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/struct.Webfonts.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/struct.Webfonts.html) ... -* [webfonts](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/struct.Webfont.html) - * [*list*](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/struct.WebfontListCall.html) +* [webfonts](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/struct.Webfont.html) + * [*list*](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/struct.WebfontListCall.html) @@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/struct.Webfonts.html)** +* **[Hub](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/struct.Webfonts.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.Part.html)** + * **[Parts](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -125,17 +125,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -145,29 +145,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-webfonts1/1.0.11+20160302/google_webfonts1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-webfonts1/1.0.12+20160302/google_webfonts1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/webfonts1/src/lib.rs b/gen/webfonts1/src/lib.rs index 4c6f71a658..581fd568fc 100644 --- a/gen/webfonts1/src/lib.rs +++ b/gen/webfonts1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *webfonts* crate version *1.0.11+20160302*, where *20160302* is the exact revision of the *webfonts:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *webfonts* crate version *1.0.12+20160302*, where *20160302* is the exact revision of the *webfonts:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *webfonts* *v1* API can be found at the //! [official documentation site](https://developers.google.com/fonts/docs/developer_api). @@ -297,7 +297,7 @@ impl<'a, C, A> Webfonts Webfonts { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/webfonts/v1/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -308,7 +308,7 @@ impl<'a, C, A> Webfonts } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/webmasters3-cli/Cargo.toml b/gen/webmasters3-cli/Cargo.toml index 15275d4643..431bf283ec 100644 --- a/gen/webmasters3-cli/Cargo.toml +++ b/gen/webmasters3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-webmasters3-cli" -version = "1.0.11+20190428" +version = "1.0.12+20190428" authors = ["Sebastian Thiel "] description = "A complete library to interact with webmasters (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/webmasters3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-webmasters3] path = "../webmasters3" -version = "1.0.11+20190428" +version = "1.0.12+20190428" diff --git a/gen/webmasters3-cli/LICENSE.md b/gen/webmasters3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/webmasters3-cli/LICENSE.md +++ b/gen/webmasters3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/webmasters3-cli/README.md b/gen/webmasters3-cli/README.md index 27c99f3f85..24f7dc1a41 100644 --- a/gen/webmasters3-cli/README.md +++ b/gen/webmasters3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *webmasters* API at revision *20190428*. The CLI is at version *1.0.11*. +This documentation was generated from the *webmasters* API at revision *20190428*. The CLI is at version *1.0.12*. ```bash webmasters3 [options] diff --git a/gen/webmasters3-cli/mkdocs.yml b/gen/webmasters3-cli/mkdocs.yml index 927141ae2a..6b1597de23 100644 --- a/gen/webmasters3-cli/mkdocs.yml +++ b/gen/webmasters3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: webmasters v1.0.11+20190428 +site_name: webmasters v1.0.12+20190428 site_url: http://byron.github.io/google-apis-rs/google-webmasters3-cli site_description: A complete library to interact with webmasters (protocol v3) @@ -21,5 +21,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/webmasters3-cli/src/cmn.rs b/gen/webmasters3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/webmasters3-cli/src/cmn.rs +++ b/gen/webmasters3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/webmasters3-cli/src/main.rs b/gen/webmasters3-cli/src/main.rs index b0892c67e4..6fb15c7d24 100644 --- a/gen/webmasters3-cli/src/main.rs +++ b/gen/webmasters3-cli/src/main.rs @@ -870,7 +870,7 @@ fn main() { let mut app = App::new("webmasters3") .author("Sebastian Thiel ") - .version("1.0.11+20190428") + .version("1.0.12+20190428") .about("View Google Search Console data for your verified sites.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_webmasters3_cli") .arg(Arg::with_name("url") diff --git a/gen/webmasters3/Cargo.toml b/gen/webmasters3/Cargo.toml index b3d19aa91f..3b2c1a036e 100644 --- a/gen/webmasters3/Cargo.toml +++ b/gen/webmasters3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-webmasters3" -version = "1.0.11+20190428" +version = "1.0.12+20190428" authors = ["Sebastian Thiel "] description = "A complete library to interact with webmasters (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/webmasters3" homepage = "https://developers.google.com/webmaster-tools/" -documentation = "https://docs.rs/google-webmasters3/1.0.11+20190428" +documentation = "https://docs.rs/google-webmasters3/1.0.12+20190428" license = "MIT" keywords = ["webmasters", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/webmasters3/LICENSE.md b/gen/webmasters3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/webmasters3/LICENSE.md +++ b/gen/webmasters3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/webmasters3/README.md b/gen/webmasters3/README.md index 8f0e2a809f..a46b649674 100644 --- a/gen/webmasters3/README.md +++ b/gen/webmasters3/README.md @@ -5,20 +5,20 @@ DO NOT EDIT ! --> The `google-webmasters3` library allows access to all features of the *Google webmasters* service. -This documentation was generated from *webmasters* crate version *1.0.11+20190428*, where *20190428* is the exact revision of the *webmasters:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *webmasters* crate version *1.0.12+20190428*, where *20190428* is the exact revision of the *webmasters:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *webmasters* *v3* API can be found at the [official documentation site](https://developers.google.com/webmaster-tools/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/struct.Webmasters.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/struct.Webmasters.html) ... * searchanalytics - * [*query*](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/struct.SearchanalyticQueryCall.html) + * [*query*](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/struct.SearchanalyticQueryCall.html) * sitemaps - * [*delete*](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/struct.SitemapDeleteCall.html), [*get*](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/struct.SitemapGetCall.html), [*list*](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/struct.SitemapListCall.html) and [*submit*](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/struct.SitemapSubmitCall.html) + * [*delete*](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/struct.SitemapDeleteCall.html), [*get*](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/struct.SitemapGetCall.html), [*list*](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/struct.SitemapListCall.html) and [*submit*](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/struct.SitemapSubmitCall.html) * sites - * [*add*](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/struct.SiteAddCall.html), [*delete*](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/struct.SiteDeleteCall.html), [*get*](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/struct.SiteGetCall.html) and [*list*](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/struct.SiteListCall.html) + * [*add*](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/struct.SiteAddCall.html), [*delete*](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/struct.SiteDeleteCall.html), [*get*](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/struct.SiteGetCall.html) and [*list*](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/struct.SiteListCall.html) @@ -27,17 +27,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/struct.Webmasters.html)** +* **[Hub](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/struct.Webmasters.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.Part.html)** + * **[Parts](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -128,17 +128,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -148,29 +148,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-webmasters3/1.0.11+20190428/google_webmasters3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-webmasters3/1.0.12+20190428/google_webmasters3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/webmasters3/src/lib.rs b/gen/webmasters3/src/lib.rs index 99631b6774..cc85735ac9 100644 --- a/gen/webmasters3/src/lib.rs +++ b/gen/webmasters3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *webmasters* crate version *1.0.11+20190428*, where *20190428* is the exact revision of the *webmasters:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *webmasters* crate version *1.0.12+20190428*, where *20190428* is the exact revision of the *webmasters:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *webmasters* *v3* API can be found at the //! [official documentation site](https://developers.google.com/webmaster-tools/). @@ -325,7 +325,7 @@ impl<'a, C, A> Webmasters Webmasters { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/webmasters/v3/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -342,7 +342,7 @@ impl<'a, C, A> Webmasters } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/youtube3-cli/Cargo.toml b/gen/youtube3-cli/Cargo.toml index 5ce86635d1..712b569888 100644 --- a/gen/youtube3-cli/Cargo.toml +++ b/gen/youtube3-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-youtube3-cli" -version = "1.0.11+20190513" +version = "1.0.12+20190513" authors = ["Sebastian Thiel "] description = "A complete library to interact with YouTube (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/youtube3-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-youtube3] path = "../youtube3" -version = "1.0.11+20190513" +version = "1.0.12+20190513" diff --git a/gen/youtube3-cli/LICENSE.md b/gen/youtube3-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/youtube3-cli/LICENSE.md +++ b/gen/youtube3-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/youtube3-cli/README.md b/gen/youtube3-cli/README.md index 24c209dbb3..485162e2f4 100644 --- a/gen/youtube3-cli/README.md +++ b/gen/youtube3-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *YouTube* API at revision *20190513*. The CLI is at version *1.0.11*. +This documentation was generated from the *YouTube* API at revision *20190513*. The CLI is at version *1.0.12*. ```bash youtube3 [options] diff --git a/gen/youtube3-cli/mkdocs.yml b/gen/youtube3-cli/mkdocs.yml index d8cc7a9087..bce59352c3 100644 --- a/gen/youtube3-cli/mkdocs.yml +++ b/gen/youtube3-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: YouTube v1.0.11+20190513 +site_name: YouTube v1.0.12+20190513 site_url: http://byron.github.io/google-apis-rs/google-youtube3-cli site_description: A complete library to interact with YouTube (protocol v3) @@ -83,5 +83,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/youtube3-cli/src/cmn.rs b/gen/youtube3-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/youtube3-cli/src/cmn.rs +++ b/gen/youtube3-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/youtube3-cli/src/main.rs b/gen/youtube3-cli/src/main.rs index 7c9f3c5a29..0e0cd46d72 100644 --- a/gen/youtube3-cli/src/main.rs +++ b/gen/youtube3-cli/src/main.rs @@ -8395,7 +8395,7 @@ fn main() { let mut app = App::new("youtube3") .author("Sebastian Thiel ") - .version("1.0.11+20190513") + .version("1.0.12+20190513") .about("Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_youtube3_cli") .arg(Arg::with_name("url") diff --git a/gen/youtube3/Cargo.toml b/gen/youtube3/Cargo.toml index b61cf39770..3c741f58af 100644 --- a/gen/youtube3/Cargo.toml +++ b/gen/youtube3/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-youtube3" -version = "1.0.11+20190513" +version = "1.0.12+20190513" authors = ["Sebastian Thiel "] description = "A complete library to interact with YouTube (protocol v3)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/youtube3" homepage = "https://developers.google.com/youtube/v3" -documentation = "https://docs.rs/google-youtube3/1.0.11+20190513" +documentation = "https://docs.rs/google-youtube3/1.0.12+20190513" license = "MIT" keywords = ["youtube", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/youtube3/LICENSE.md b/gen/youtube3/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/youtube3/LICENSE.md +++ b/gen/youtube3/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/youtube3/README.md b/gen/youtube3/README.md index e5aeb592c4..aa42f88232 100644 --- a/gen/youtube3/README.md +++ b/gen/youtube3/README.md @@ -5,84 +5,84 @@ DO NOT EDIT ! --> The `google-youtube3` library allows access to all features of the *Google YouTube* service. -This documentation was generated from *YouTube* crate version *1.0.11+20190513*, where *20190513* is the exact revision of the *youtube:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *YouTube* crate version *1.0.12+20190513*, where *20190513* is the exact revision of the *youtube:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *YouTube* *v3* API can be found at the [official documentation site](https://developers.google.com/youtube/v3). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.YouTube.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.YouTube.html) ... -* [activities](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.Activity.html) - * [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.ActivityInsertCall.html) and [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.ActivityListCall.html) -* [captions](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.Caption.html) - * [*delete*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CaptionDeleteCall.html), [*download*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CaptionDownloadCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CaptionInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CaptionListCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CaptionUpdateCall.html) +* [activities](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.Activity.html) + * [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.ActivityInsertCall.html) and [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.ActivityListCall.html) +* [captions](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.Caption.html) + * [*delete*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CaptionDeleteCall.html), [*download*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CaptionDownloadCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CaptionInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CaptionListCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CaptionUpdateCall.html) * channel banners - * [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.ChannelBannerInsertCall.html) -* [channel sections](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.ChannelSection.html) - * [*delete*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.ChannelSectionDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.ChannelSectionInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.ChannelSectionListCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.ChannelSectionUpdateCall.html) -* [channels](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.Channel.html) - * [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.ChannelListCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.ChannelUpdateCall.html) -* [comment threads](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CommentThread.html) - * [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CommentThreadInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CommentThreadListCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CommentThreadUpdateCall.html) -* [comments](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.Comment.html) - * [*delete*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CommentDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CommentInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CommentListCall.html), [*mark as spam*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CommentMarkAsSpamCall.html), [*set moderation status*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CommentSetModerationStatuCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CommentUpdateCall.html) -* [guide categories](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.GuideCategory.html) - * [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.GuideCategoryListCall.html) -* [i18n languages](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.I18nLanguage.html) - * [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.I18nLanguageListCall.html) -* [i18n regions](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.I18nRegion.html) - * [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.I18nRegionListCall.html) -* [live broadcasts](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveBroadcast.html) - * [*bind*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveBroadcastBindCall.html), [*control*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveBroadcastControlCall.html), [*delete*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveBroadcastDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveBroadcastInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveBroadcastListCall.html), [*transition*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveBroadcastTransitionCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveBroadcastUpdateCall.html) -* [live chat bans](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveChatBan.html) - * [*delete*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveChatBanDeleteCall.html) and [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveChatBanInsertCall.html) -* [live chat messages](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveChatMessage.html) - * [*delete*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveChatMessageDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveChatMessageInsertCall.html) and [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveChatMessageListCall.html) -* [live chat moderators](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveChatModerator.html) - * [*delete*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveChatModeratorDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveChatModeratorInsertCall.html) and [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveChatModeratorListCall.html) -* [live streams](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveStream.html) - * [*delete*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveStreamDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveStreamInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveStreamListCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.LiveStreamUpdateCall.html) -* [playlist items](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.PlaylistItem.html) - * [*delete*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.PlaylistItemDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.PlaylistItemInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.PlaylistItemListCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.PlaylistItemUpdateCall.html) -* [playlists](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.Playlist.html) - * [*delete*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.PlaylistDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.PlaylistInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.PlaylistListCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.PlaylistUpdateCall.html) + * [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.ChannelBannerInsertCall.html) +* [channel sections](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.ChannelSection.html) + * [*delete*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.ChannelSectionDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.ChannelSectionInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.ChannelSectionListCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.ChannelSectionUpdateCall.html) +* [channels](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.Channel.html) + * [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.ChannelListCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.ChannelUpdateCall.html) +* [comment threads](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CommentThread.html) + * [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CommentThreadInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CommentThreadListCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CommentThreadUpdateCall.html) +* [comments](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.Comment.html) + * [*delete*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CommentDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CommentInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CommentListCall.html), [*mark as spam*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CommentMarkAsSpamCall.html), [*set moderation status*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CommentSetModerationStatuCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CommentUpdateCall.html) +* [guide categories](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.GuideCategory.html) + * [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.GuideCategoryListCall.html) +* [i18n languages](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.I18nLanguage.html) + * [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.I18nLanguageListCall.html) +* [i18n regions](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.I18nRegion.html) + * [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.I18nRegionListCall.html) +* [live broadcasts](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveBroadcast.html) + * [*bind*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveBroadcastBindCall.html), [*control*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveBroadcastControlCall.html), [*delete*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveBroadcastDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveBroadcastInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveBroadcastListCall.html), [*transition*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveBroadcastTransitionCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveBroadcastUpdateCall.html) +* [live chat bans](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveChatBan.html) + * [*delete*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveChatBanDeleteCall.html) and [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveChatBanInsertCall.html) +* [live chat messages](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveChatMessage.html) + * [*delete*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveChatMessageDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveChatMessageInsertCall.html) and [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveChatMessageListCall.html) +* [live chat moderators](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveChatModerator.html) + * [*delete*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveChatModeratorDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveChatModeratorInsertCall.html) and [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveChatModeratorListCall.html) +* [live streams](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveStream.html) + * [*delete*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveStreamDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveStreamInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveStreamListCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.LiveStreamUpdateCall.html) +* [playlist items](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.PlaylistItem.html) + * [*delete*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.PlaylistItemDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.PlaylistItemInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.PlaylistItemListCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.PlaylistItemUpdateCall.html) +* [playlists](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.Playlist.html) + * [*delete*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.PlaylistDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.PlaylistInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.PlaylistListCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.PlaylistUpdateCall.html) * search - * [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.SearchListCall.html) -* [sponsors](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.Sponsor.html) - * [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.SponsorListCall.html) -* [subscriptions](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.Subscription.html) - * [*delete*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.SubscriptionDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.SubscriptionInsertCall.html) and [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.SubscriptionListCall.html) -* [super chat events](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.SuperChatEvent.html) - * [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.SuperChatEventListCall.html) -* [thumbnails](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.Thumbnail.html) - * [*set*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.ThumbnailSetCall.html) -* [video abuse report reasons](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.VideoAbuseReportReason.html) - * [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.VideoAbuseReportReasonListCall.html) -* [video categories](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.VideoCategory.html) - * [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.VideoCategoryListCall.html) -* [videos](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.Video.html) - * [*delete*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.VideoDeleteCall.html), [*get rating*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.VideoGetRatingCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.VideoInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.VideoListCall.html), [*rate*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.VideoRateCall.html), [*report abuse*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.VideoReportAbuseCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.VideoUpdateCall.html) + * [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.SearchListCall.html) +* [sponsors](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.Sponsor.html) + * [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.SponsorListCall.html) +* [subscriptions](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.Subscription.html) + * [*delete*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.SubscriptionDeleteCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.SubscriptionInsertCall.html) and [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.SubscriptionListCall.html) +* [super chat events](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.SuperChatEvent.html) + * [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.SuperChatEventListCall.html) +* [thumbnails](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.Thumbnail.html) + * [*set*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.ThumbnailSetCall.html) +* [video abuse report reasons](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.VideoAbuseReportReason.html) + * [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.VideoAbuseReportReasonListCall.html) +* [video categories](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.VideoCategory.html) + * [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.VideoCategoryListCall.html) +* [videos](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.Video.html) + * [*delete*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.VideoDeleteCall.html), [*get rating*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.VideoGetRatingCall.html), [*insert*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.VideoInsertCall.html), [*list*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.VideoListCall.html), [*rate*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.VideoRateCall.html), [*report abuse*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.VideoReportAbuseCall.html) and [*update*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.VideoUpdateCall.html) * watermarks - * [*set*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.WatermarkSetCall.html) and [*unset*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.WatermarkUnsetCall.html) + * [*set*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.WatermarkSetCall.html) and [*unset*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.WatermarkUnsetCall.html) Upload supported by ... -* [*set thumbnails*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.ThumbnailSetCall.html) -* [*insert captions*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CaptionInsertCall.html) -* [*insert videos*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.VideoInsertCall.html) -* [*set watermarks*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.WatermarkSetCall.html) -* [*insert channel banners*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.ChannelBannerInsertCall.html) -* [*update captions*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CaptionUpdateCall.html) +* [*set thumbnails*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.ThumbnailSetCall.html) +* [*insert captions*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CaptionInsertCall.html) +* [*insert videos*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.VideoInsertCall.html) +* [*set watermarks*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.WatermarkSetCall.html) +* [*insert channel banners*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.ChannelBannerInsertCall.html) +* [*update captions*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CaptionUpdateCall.html) Download supported by ... -* [*download captions*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.CaptionDownloadCall.html) +* [*download captions*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.CaptionDownloadCall.html) Subscription supported by ... -* [*list playlist items*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.PlaylistItemListCall.html) +* [*list playlist items*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.PlaylistItemListCall.html) @@ -90,17 +90,17 @@ Subscription supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/struct.YouTube.html)** +* **[Hub](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/struct.YouTube.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.Part.html)** + * **[Parts](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -209,17 +209,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -229,29 +229,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.RequestValue.html) and -[decodable](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.RequestValue.html) and +[decodable](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-youtube3/1.0.11+20190513/google_youtube3/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-youtube3/1.0.12+20190513/google_youtube3/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/youtube3/src/lib.rs b/gen/youtube3/src/lib.rs index f48491fe96..b44ca3891b 100644 --- a/gen/youtube3/src/lib.rs +++ b/gen/youtube3/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *YouTube* crate version *1.0.11+20190513*, where *20190513* is the exact revision of the *youtube:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *YouTube* crate version *1.0.12+20190513*, where *20190513* is the exact revision of the *youtube:v3* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *YouTube* *v3* API can be found at the //! [official documentation site](https://developers.google.com/youtube/v3). @@ -434,7 +434,7 @@ impl<'a, C, A> YouTube YouTube { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://www.googleapis.com/youtube/v3/".to_string(), _root_url: "https://www.googleapis.com/".to_string(), } @@ -520,7 +520,7 @@ impl<'a, C, A> YouTube } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String { diff --git a/gen/youtubereporting1-cli/Cargo.toml b/gen/youtubereporting1-cli/Cargo.toml index 14e869808a..109246ab11 100644 --- a/gen/youtubereporting1-cli/Cargo.toml +++ b/gen/youtubereporting1-cli/Cargo.toml @@ -4,7 +4,7 @@ [package] name = "google-youtubereporting1-cli" -version = "1.0.11+20190703" +version = "1.0.12+20190703" authors = ["Sebastian Thiel "] description = "A complete library to interact with YouTube Reporting (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/youtubereporting1-cli" @@ -42,4 +42,4 @@ rustls = ["yup-oauth2/no-openssl"] [dependencies.google-youtubereporting1] path = "../youtubereporting1" -version = "1.0.11+20190703" +version = "1.0.12+20190703" diff --git a/gen/youtubereporting1-cli/LICENSE.md b/gen/youtubereporting1-cli/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/youtubereporting1-cli/LICENSE.md +++ b/gen/youtubereporting1-cli/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/youtubereporting1-cli/README.md b/gen/youtubereporting1-cli/README.md index 325b6b8a10..17e190bb49 100644 --- a/gen/youtubereporting1-cli/README.md +++ b/gen/youtubereporting1-cli/README.md @@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma # Usage -This documentation was generated from the *YouTube Reporting* API at revision *20190703*. The CLI is at version *1.0.11*. +This documentation was generated from the *YouTube Reporting* API at revision *20190703*. The CLI is at version *1.0.12*. ```bash youtubereporting1 [options] diff --git a/gen/youtubereporting1-cli/mkdocs.yml b/gen/youtubereporting1-cli/mkdocs.yml index d5910c0b15..d6572d48cd 100644 --- a/gen/youtubereporting1-cli/mkdocs.yml +++ b/gen/youtubereporting1-cli/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: YouTube Reporting v1.0.11+20190703 +site_name: YouTube Reporting v1.0.12+20190703 site_url: http://byron.github.io/google-apis-rs/google-youtubereporting1-cli site_description: A complete library to interact with YouTube Reporting (protocol v1) @@ -20,5 +20,5 @@ pages: theme: readthedocs -copyright: Copyright © 2015-2019, `Sebastian Thiel` +copyright: Copyright © 2015-2020, `Sebastian Thiel` diff --git a/gen/youtubereporting1-cli/src/cmn.rs b/gen/youtubereporting1-cli/src/cmn.rs index b3090d1ad3..63ff33b38b 100644 --- a/gen/youtubereporting1-cli/src/cmn.rs +++ b/gen/youtubereporting1-cli/src/cmn.rs @@ -406,7 +406,7 @@ pub fn writer_from_opts(arg: Option<&str>) -> Result, io::Error> { let f = arg.unwrap_or("-"); match f { "-" => Ok(Box::new(stdout())), - _ => match fs::OpenOptions::new().create(true).write(true).open(f) { + _ => match fs::OpenOptions::new().create(true).truncate(true).write(true).open(f) { Ok(f) => Ok(Box::new(f)), Err(io_err) => Err(io_err), }, @@ -488,7 +488,7 @@ impl TokenStorage for JsonTokenStorage { } } Some(token) => { - match fs::OpenOptions::new().create(true).write(true).open(&self.path(scope_hash)) { + match fs::OpenOptions::new().create(true).write(true).truncate(true).open(&self.path(scope_hash)) { Ok(mut f) => { match json::to_writer_pretty(&mut f, &token) { Ok(_) => Ok(()), @@ -769,6 +769,7 @@ pub fn application_secret_from_directory(dir: &str, err = match fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(&secret_path) { Err(cfe) => cfe, Ok(mut f) => { diff --git a/gen/youtubereporting1-cli/src/main.rs b/gen/youtubereporting1-cli/src/main.rs index 3897619cbd..5af5595b93 100644 --- a/gen/youtubereporting1-cli/src/main.rs +++ b/gen/youtubereporting1-cli/src/main.rs @@ -893,7 +893,7 @@ fn main() { let mut app = App::new("youtubereporting1") .author("Sebastian Thiel ") - .version("1.0.11+20190703") + .version("1.0.12+20190703") .about("Schedules reporting jobs containing your YouTube Analytics data and downloads the resulting bulk data reports in the form of CSV files.") .after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_youtubereporting1_cli") .arg(Arg::with_name("url") diff --git a/gen/youtubereporting1/Cargo.toml b/gen/youtubereporting1/Cargo.toml index 8c203cc0dc..04b7a9d67d 100644 --- a/gen/youtubereporting1/Cargo.toml +++ b/gen/youtubereporting1/Cargo.toml @@ -4,12 +4,12 @@ [package] name = "google-youtubereporting1" -version = "1.0.11+20190703" +version = "1.0.12+20190703" authors = ["Sebastian Thiel "] description = "A complete library to interact with YouTube Reporting (protocol v1)" repository = "https://github.com/Byron/google-apis-rs/tree/master/gen/youtubereporting1" homepage = "https://developers.google.com/youtube/reporting/v1/reports/" -documentation = "https://docs.rs/google-youtubereporting1/1.0.11+20190703" +documentation = "https://docs.rs/google-youtubereporting1/1.0.12+20190703" license = "MIT" keywords = ["youtubereporting", "google", "protocol", "web", "api"] autobins = false diff --git a/gen/youtubereporting1/LICENSE.md b/gen/youtubereporting1/LICENSE.md index dd8e521f82..d2306e20eb 100644 --- a/gen/youtubereporting1/LICENSE.md +++ b/gen/youtubereporting1/LICENSE.md @@ -6,7 +6,7 @@ DO NOT EDIT ! The MIT License (MIT) ===================== -Copyright © `2015-2019` `Sebastian Thiel` +Copyright © `2015-2020` `Sebastian Thiel` Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/gen/youtubereporting1/README.md b/gen/youtubereporting1/README.md index 7514c49c0b..2ab6162dc8 100644 --- a/gen/youtubereporting1/README.md +++ b/gen/youtubereporting1/README.md @@ -5,25 +5,25 @@ DO NOT EDIT ! --> The `google-youtubereporting1` library allows access to all features of the *Google YouTube Reporting* service. -This documentation was generated from *YouTube Reporting* crate version *1.0.11+20190703*, where *20190703* is the exact revision of the *youtubereporting:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +This documentation was generated from *YouTube Reporting* crate version *1.0.12+20190703*, where *20190703* is the exact revision of the *youtubereporting:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. Everything else about the *YouTube Reporting* *v1* API can be found at the [official documentation site](https://developers.google.com/youtube/reporting/v1/reports/). # Features -Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/struct.YouTubeReporting.html) ... +Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/struct.YouTubeReporting.html) ... -* [jobs](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/struct.Job.html) - * [*create*](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/struct.JobCreateCall.html), [*delete*](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/struct.JobDeleteCall.html), [*get*](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/struct.JobGetCall.html), [*list*](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/struct.JobListCall.html), [*reports get*](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/struct.JobReportGetCall.html) and [*reports list*](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/struct.JobReportListCall.html) +* [jobs](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/struct.Job.html) + * [*create*](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/struct.JobCreateCall.html), [*delete*](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/struct.JobDeleteCall.html), [*get*](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/struct.JobGetCall.html), [*list*](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/struct.JobListCall.html), [*reports get*](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/struct.JobReportGetCall.html) and [*reports list*](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/struct.JobReportListCall.html) * media - * [*download*](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/struct.MediaDownloadCall.html) -* [report types](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/struct.ReportType.html) - * [*list*](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/struct.ReportTypeListCall.html) + * [*download*](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/struct.MediaDownloadCall.html) +* [report types](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/struct.ReportType.html) + * [*list*](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/struct.ReportTypeListCall.html) Download supported by ... -* [*download media*](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/struct.MediaDownloadCall.html) +* [*download media*](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/struct.MediaDownloadCall.html) @@ -31,17 +31,17 @@ Download supported by ... The API is structured into the following primary items: -* **[Hub](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/struct.YouTubeReporting.html)** +* **[Hub](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/struct.YouTubeReporting.html)** * a central object to maintain state and allow accessing all *Activities* - * creates [*Method Builders*](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.MethodsBuilder.html) which in turn - allow access to individual [*Call Builders*](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.CallBuilder.html) -* **[Resources](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.Resource.html)** + * creates [*Method Builders*](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.MethodsBuilder.html) which in turn + allow access to individual [*Call Builders*](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.CallBuilder.html) +* **[Resources](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.Resource.html)** * primary types that you can apply *Activities* to * a collection of properties and *Parts* - * **[Parts](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.Part.html)** + * **[Parts](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.Part.html)** * a collection of properties * never directly used in *Activities* -* **[Activities](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.CallBuilder.html)** +* **[Activities](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.CallBuilder.html)** * operations to apply to *Resources* All *structures* are marked with applicable traits to further categorize them and ease browsing. @@ -143,17 +143,17 @@ match result { ``` ## Handling Errors -All errors produced by the system are provided either as [Result](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/enum.Result.html) enumeration as return value of +All errors produced by the system are provided either as [Result](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/enum.Result.html) enumeration as return value of the doit() methods, or handed as possibly intermediate results to either the -[Hub Delegate](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). +[Hub Delegate](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.Delegate.html), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html). When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This makes the system potentially resilient to all kinds of errors. ## Uploads and Downloads -If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/enum.Result.html), should be +If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/enum.Result.html), should be read by you to obtain the media. -If such a method also supports a [Response Result](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.ResponseResult.html), it will return that by default. +If such a method also supports a [Response Result](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.ResponseResult.html), it will return that by default. You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making this call: `.param("alt", "media")`. @@ -163,29 +163,29 @@ Methods supporting uploads can do so using up to 2 different protocols: ## Customization and Callbacks -You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.Delegate.html) to the -[Method Builder](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.CallBuilder.html) before making the final `doit()` call. +You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.Delegate.html) to the +[Method Builder](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.CallBuilder.html) before making the final `doit()` call. Respective methods will be called to provide progress information, as well as determine whether the system should retry on failure. -The [delegate trait](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. +The [delegate trait](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.Delegate.html) is default-implemented, allowing you to customize it with minimal effort. ## Optional Parts in Server-Requests -All structures provided by this library are made to be [enocodable](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.RequestValue.html) and -[decodable](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses +All structures provided by this library are made to be [enocodable](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.RequestValue.html) and +[decodable](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.ResponseResult.html) via *json*. Optionals are used to indicate that partial requests are responses are valid. -Most optionals are are considered [Parts](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.Part.html) which are identifiable by name, which will be sent to +Most optionals are are considered [Parts](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.Part.html) which are identifiable by name, which will be sent to the server to indicate either the set parts of the request or the desired parts in the response. ## Builder Arguments -Using [method builders](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. +Using [method builders](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.CallBuilder.html), you are able to prepare an action call by repeatedly calling it's methods. These will always take a single argument, for which the following statements are true. * [PODs][wiki-pod] are handed by copy * strings are passed as `&str` -* [request values](https://docs.rs/google-youtubereporting1/1.0.11+20190703/google_youtubereporting1/trait.RequestValue.html) are moved +* [request values](https://docs.rs/google-youtubereporting1/1.0.12+20190703/google_youtubereporting1/trait.RequestValue.html) are moved Arguments will always be copied or cloned into the builder, to make them independent of their original life times. diff --git a/gen/youtubereporting1/src/lib.rs b/gen/youtubereporting1/src/lib.rs index 375428d020..819d292188 100644 --- a/gen/youtubereporting1/src/lib.rs +++ b/gen/youtubereporting1/src/lib.rs @@ -2,7 +2,7 @@ // This file was generated automatically from 'src/mako/api/lib.rs.mako' // DO NOT EDIT ! -//! This documentation was generated from *YouTube Reporting* crate version *1.0.11+20190703*, where *20190703* is the exact revision of the *youtubereporting:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.11*. +//! This documentation was generated from *YouTube Reporting* crate version *1.0.12+20190703*, where *20190703* is the exact revision of the *youtubereporting:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v1.0.12*. //! //! Everything else about the *YouTube Reporting* *v1* API can be found at the //! [official documentation site](https://developers.google.com/youtube/reporting/v1/reports/). @@ -346,7 +346,7 @@ impl<'a, C, A> YouTubeReporting YouTubeReporting { client: RefCell::new(client), auth: RefCell::new(authenticator), - _user_agent: "google-api-rust-client/1.0.11".to_string(), + _user_agent: "google-api-rust-client/1.0.12".to_string(), _base_url: "https://youtubereporting.googleapis.com/".to_string(), _root_url: "https://youtubereporting.googleapis.com/".to_string(), } @@ -363,7 +363,7 @@ impl<'a, C, A> YouTubeReporting } /// Set the user-agent header field to use in all requests to the server. - /// It defaults to `google-api-rust-client/1.0.11`. + /// It defaults to `google-api-rust-client/1.0.12`. /// /// Returns the previously set user-agent. pub fn user_agent(&mut self, agent_name: String) -> String {