From 82920f4731eb16140f8bb7fabc9e06a3777a1d65 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 15 May 2018 19:01:45 -0700 Subject: [PATCH] chore: generate per-package index (#1172) --- src/apis/abusiveexperiencereport/index.ts | 32 ++++++++++ src/apis/abusiveexperiencereport/v1.ts | 4 +- src/apis/acceleratedmobilepageurl/index.ts | 32 ++++++++++ src/apis/acceleratedmobilepageurl/v1.ts | 4 +- src/apis/adexchangebuyer/index.ts | 47 +++++++++++++++ src/apis/adexchangebuyer/v1.2.ts | 4 +- src/apis/adexchangebuyer/v1.3.ts | 4 +- src/apis/adexchangebuyer/v1.4.ts | 4 +- src/apis/adexchangebuyer2/index.ts | 30 ++++++++++ src/apis/adexchangebuyer2/v2beta1.ts | 4 +- src/apis/adexchangeseller/index.ts | 48 +++++++++++++++ src/apis/adexchangeseller/v1.1.ts | 4 +- src/apis/adexchangeseller/v1.ts | 4 +- src/apis/adexchangeseller/v2.0.ts | 4 +- src/apis/adexperiencereport/index.ts | 31 ++++++++++ src/apis/adexperiencereport/v1.ts | 4 +- src/apis/admin/datatransfer_v1.ts | 4 +- src/apis/admin/directory_v1.ts | 4 +- src/apis/admin/index.ts | 43 ++++++++++++++ src/apis/admin/reports_v1.ts | 4 +- src/apis/adsense/index.ts | 28 +++++++++ src/apis/adsense/v1.4.ts | 4 +- src/apis/adsensehost/index.ts | 29 ++++++++++ src/apis/adsensehost/v4.1.ts | 4 +- src/apis/analytics/index.ts | 35 +++++++++++ src/apis/analytics/v2.4.ts | 4 +- src/apis/analytics/v3.ts | 4 +- src/apis/analyticsreporting/index.ts | 31 ++++++++++ src/apis/analyticsreporting/v4.ts | 4 +- src/apis/androiddeviceprovisioning/index.ts | 32 ++++++++++ src/apis/androiddeviceprovisioning/v1.ts | 4 +- src/apis/androidenterprise/index.ts | 30 ++++++++++ src/apis/androidenterprise/v1.ts | 4 +- src/apis/androidmanagement/index.ts | 30 ++++++++++ src/apis/androidmanagement/v1.ts | 4 +- src/apis/androidpublisher/index.ts | 56 ++++++++++++++++++ src/apis/androidpublisher/v1.1.ts | 4 +- src/apis/androidpublisher/v1.ts | 4 +- src/apis/androidpublisher/v2.ts | 4 +- src/apis/androidpublisher/v3.ts | 4 +- src/apis/appengine/index.ts | 55 ++++++++++++++++++ src/apis/appengine/v1.ts | 4 +- src/apis/appengine/v1alpha.ts | 4 +- src/apis/appengine/v1beta.ts | 4 +- src/apis/appengine/v1beta4.ts | 4 +- src/apis/appengine/v1beta5.ts | 4 +- src/apis/appsactivity/index.ts | 29 ++++++++++ src/apis/appsactivity/v1.ts | 4 +- src/apis/appstate/index.ts | 28 +++++++++ src/apis/appstate/v1.ts | 4 +- src/apis/bigquery/index.ts | 28 +++++++++ src/apis/bigquery/v2.ts | 4 +- src/apis/bigquerydatatransfer/index.ts | 31 ++++++++++ src/apis/bigquerydatatransfer/v1.ts | 4 +- src/apis/blogger/index.ts | 32 ++++++++++ src/apis/blogger/v2.ts | 4 +- src/apis/blogger/v3.ts | 4 +- src/apis/books/index.ts | 28 +++++++++ src/apis/books/v1.ts | 4 +- src/apis/calendar/index.ts | 28 +++++++++ src/apis/calendar/v3.ts | 4 +- src/apis/chat/index.ts | 27 +++++++++ src/apis/chat/v1.ts | 4 +- src/apis/civicinfo/index.ts | 29 ++++++++++ src/apis/civicinfo/v2.ts | 4 +- src/apis/classroom/index.ts | 29 ++++++++++ src/apis/classroom/v1.ts | 4 +- src/apis/cloudbilling/index.ts | 29 ++++++++++ src/apis/cloudbilling/v1.ts | 4 +- src/apis/cloudbuild/index.ts | 29 ++++++++++ src/apis/cloudbuild/v1.ts | 4 +- src/apis/clouddebugger/index.ts | 29 ++++++++++ src/apis/clouddebugger/v2.ts | 4 +- src/apis/clouderrorreporting/index.ts | 32 ++++++++++ src/apis/clouderrorreporting/v1beta1.ts | 4 +- src/apis/cloudfunctions/index.ts | 38 ++++++++++++ src/apis/cloudfunctions/v1.ts | 4 +- src/apis/cloudfunctions/v1beta2.ts | 4 +- src/apis/cloudiot/index.ts | 28 +++++++++ src/apis/cloudiot/v1.ts | 4 +- src/apis/cloudkms/index.ts | 28 +++++++++ src/apis/cloudkms/v1.ts | 4 +- src/apis/cloudresourcemanager/index.ts | 58 +++++++++++++++++++ src/apis/cloudresourcemanager/v1.ts | 4 +- src/apis/cloudresourcemanager/v1beta1.ts | 4 +- src/apis/cloudresourcemanager/v2.ts | 4 +- src/apis/cloudresourcemanager/v2beta1.ts | 4 +- src/apis/cloudshell/index.ts | 36 ++++++++++++ src/apis/cloudshell/v1.ts | 4 +- src/apis/cloudshell/v1alpha1.ts | 4 +- src/apis/cloudtasks/index.ts | 29 ++++++++++ src/apis/cloudtasks/v2beta2.ts | 4 +- src/apis/cloudtrace/index.ts | 35 +++++++++++ src/apis/cloudtrace/v1.ts | 4 +- src/apis/cloudtrace/v2.ts | 4 +- src/apis/composer/index.ts | 29 ++++++++++ src/apis/composer/v1beta1.ts | 4 +- src/apis/compute/alpha.ts | 4 +- src/apis/compute/beta.ts | 4 +- src/apis/compute/index.ts | 38 ++++++++++++ src/apis/compute/v1.ts | 4 +- src/apis/container/index.ts | 36 ++++++++++++ src/apis/container/v1.ts | 4 +- src/apis/container/v1beta1.ts | 4 +- src/apis/content/index.ts | 34 +++++++++++ src/apis/content/v2.ts | 4 +- src/apis/content/v2sandbox.ts | 4 +- src/apis/customsearch/index.ts | 29 ++++++++++ src/apis/customsearch/v1.ts | 4 +- src/apis/dataflow/index.ts | 29 ++++++++++ src/apis/dataflow/v1b3.ts | 4 +- src/apis/dataproc/index.ts | 34 +++++++++++ src/apis/dataproc/v1.ts | 4 +- src/apis/dataproc/v1beta2.ts | 4 +- src/apis/datastore/index.ts | 42 ++++++++++++++ src/apis/datastore/v1.ts | 4 +- src/apis/datastore/v1beta1.ts | 4 +- src/apis/datastore/v1beta3.ts | 4 +- src/apis/deploymentmanager/alpha.ts | 4 +- src/apis/deploymentmanager/index.ts | 47 +++++++++++++++ src/apis/deploymentmanager/v2.ts | 4 +- src/apis/deploymentmanager/v2beta.ts | 4 +- src/apis/dfareporting/index.ts | 36 ++++++++++++ src/apis/dfareporting/v2.8.ts | 4 +- src/apis/dfareporting/v3.0.ts | 4 +- src/apis/dialogflow/index.ts | 36 ++++++++++++ src/apis/dialogflow/v2.ts | 4 +- src/apis/dialogflow/v2beta1.ts | 4 +- src/apis/digitalassetlinks/index.ts | 30 ++++++++++ src/apis/digitalassetlinks/v1.ts | 4 +- src/apis/discovery/index.ts | 29 ++++++++++ src/apis/discovery/v1.ts | 4 +- src/apis/dlp/index.ts | 27 +++++++++ src/apis/dlp/v2.ts | 4 +- src/apis/dns/index.ts | 37 ++++++++++++ src/apis/dns/v1.ts | 4 +- src/apis/dns/v1beta2.ts | 4 +- src/apis/dns/v2beta1.ts | 4 +- src/apis/doubleclickbidmanager/index.ts | 32 ++++++++++ src/apis/doubleclickbidmanager/v1.ts | 4 +- src/apis/doubleclicksearch/index.ts | 30 ++++++++++ src/apis/doubleclicksearch/v2.ts | 4 +- src/apis/drive/index.ts | 32 ++++++++++ src/apis/drive/v2.ts | 4 +- src/apis/drive/v3.ts | 4 +- src/apis/firebasedynamiclinks/index.ts | 31 ++++++++++ src/apis/firebasedynamiclinks/v1.ts | 4 +- src/apis/firebaserules/index.ts | 29 ++++++++++ src/apis/firebaserules/v1.ts | 4 +- src/apis/firestore/index.ts | 29 ++++++++++ src/apis/firestore/v1beta1.ts | 4 +- src/apis/fitness/index.ts | 28 +++++++++ src/apis/fitness/v1.ts | 4 +- src/apis/fusiontables/index.ts | 36 ++++++++++++ src/apis/fusiontables/v1.ts | 4 +- src/apis/fusiontables/v2.ts | 4 +- src/apis/games/index.ts | 28 +++++++++ src/apis/games/v1.ts | 4 +- src/apis/gamesConfiguration/index.ts | 33 +++++++++++ .../gamesConfiguration/v1configuration.ts | 4 +- src/apis/gamesManagement/index.ts | 31 ++++++++++ src/apis/gamesManagement/v1management.ts | 4 +- src/apis/genomics/index.ts | 41 +++++++++++++ src/apis/genomics/v1.ts | 4 +- src/apis/genomics/v1alpha2.ts | 4 +- src/apis/genomics/v2alpha1.ts | 4 +- src/apis/gmail/index.ts | 28 +++++++++ src/apis/gmail/v1.ts | 4 +- src/apis/groupsmigration/index.ts | 30 ++++++++++ src/apis/groupsmigration/v1.ts | 4 +- src/apis/groupssettings/index.ts | 29 ++++++++++ src/apis/groupssettings/v1.ts | 4 +- src/apis/iam/index.ts | 27 +++++++++ src/apis/iam/v1.ts | 4 +- src/apis/identitytoolkit/index.ts | 30 ++++++++++ src/apis/identitytoolkit/v3.ts | 4 +- src/apis/jobs/index.ts | 27 +++++++++ src/apis/jobs/v2.ts | 4 +- src/apis/kgsearch/index.ts | 28 +++++++++ src/apis/kgsearch/v1.ts | 4 +- src/apis/language/index.ts | 41 +++++++++++++ src/apis/language/v1.ts | 4 +- src/apis/language/v1beta1.ts | 4 +- src/apis/language/v1beta2.ts | 4 +- src/apis/licensing/index.ts | 29 ++++++++++ src/apis/licensing/v1.ts | 4 +- src/apis/logging/index.ts | 34 +++++++++++ src/apis/logging/v2.ts | 4 +- src/apis/logging/v2beta1.ts | 4 +- src/apis/manufacturers/index.ts | 29 ++++++++++ src/apis/manufacturers/v1.ts | 4 +- src/apis/mirror/index.ts | 28 +++++++++ src/apis/mirror/v1.ts | 4 +- src/apis/ml/index.ts | 27 +++++++++ src/apis/ml/v1.ts | 4 +- src/apis/monitoring/index.ts | 29 ++++++++++ src/apis/monitoring/v3.ts | 4 +- src/apis/oauth2/index.ts | 32 ++++++++++ src/apis/oauth2/v1.ts | 4 +- src/apis/oauth2/v2.ts | 4 +- src/apis/oslogin/index.ts | 40 +++++++++++++ src/apis/oslogin/v1.ts | 4 +- src/apis/oslogin/v1alpha.ts | 4 +- src/apis/oslogin/v1beta.ts | 4 +- src/apis/pagespeedonline/index.ts | 46 +++++++++++++++ src/apis/pagespeedonline/v1.ts | 4 +- src/apis/pagespeedonline/v2.ts | 4 +- src/apis/pagespeedonline/v4.ts | 4 +- src/apis/partners/index.ts | 28 +++++++++ src/apis/partners/v2.ts | 4 +- src/apis/people/index.ts | 28 +++++++++ src/apis/people/v1.ts | 4 +- src/apis/photoslibrary/index.ts | 29 ++++++++++ src/apis/photoslibrary/v1.ts | 4 +- src/apis/playcustomapp/index.ts | 29 ++++++++++ src/apis/playcustomapp/v1.ts | 4 +- src/apis/plus/index.ts | 27 +++++++++ src/apis/plus/v1.ts | 4 +- src/apis/plusDomains/index.ts | 29 ++++++++++ src/apis/plusDomains/v1.ts | 4 +- src/apis/poly/index.ts | 27 +++++++++ src/apis/poly/v1.ts | 4 +- src/apis/proximitybeacon/index.ts | 30 ++++++++++ src/apis/proximitybeacon/v1beta1.ts | 4 +- src/apis/pubsub/index.ts | 39 +++++++++++++ src/apis/pubsub/v1.ts | 4 +- src/apis/pubsub/v1beta1a.ts | 4 +- src/apis/pubsub/v1beta2.ts | 4 +- src/apis/redis/index.ts | 28 +++++++++ src/apis/redis/v1beta1.ts | 4 +- src/apis/replicapool/index.ts | 38 ++++++++++++ src/apis/replicapool/v1beta1.ts | 4 +- src/apis/replicapool/v1beta2.ts | 4 +- src/apis/replicapoolupdater/index.ts | 31 ++++++++++ src/apis/replicapoolupdater/v1beta1.ts | 4 +- src/apis/reseller/index.ts | 28 +++++++++ src/apis/reseller/v1.ts | 4 +- src/apis/resourceviews/index.ts | 39 +++++++++++++ src/apis/resourceviews/v1beta1.ts | 4 +- src/apis/resourceviews/v1beta2.ts | 4 +- src/apis/runtimeconfig/index.ts | 37 ++++++++++++ src/apis/runtimeconfig/v1.ts | 4 +- src/apis/runtimeconfig/v1beta1.ts | 4 +- src/apis/safebrowsing/index.ts | 29 ++++++++++ src/apis/safebrowsing/v4.ts | 4 +- src/apis/script/index.ts | 28 +++++++++ src/apis/script/v1.ts | 4 +- src/apis/searchconsole/index.ts | 29 ++++++++++ src/apis/searchconsole/v1.ts | 4 +- src/apis/servicebroker/index.ts | 45 ++++++++++++++ src/apis/servicebroker/v1.ts | 4 +- src/apis/servicebroker/v1alpha1.ts | 4 +- src/apis/servicebroker/v1beta1.ts | 4 +- src/apis/serviceconsumermanagement/index.ts | 32 ++++++++++ src/apis/serviceconsumermanagement/v1.ts | 4 +- src/apis/servicecontrol/index.ts | 29 ++++++++++ src/apis/servicecontrol/v1.ts | 4 +- src/apis/servicemanagement/index.ts | 30 ++++++++++ src/apis/servicemanagement/v1.ts | 4 +- src/apis/serviceusage/index.ts | 30 ++++++++++ src/apis/serviceusage/v1beta1.ts | 4 +- src/apis/serviceuser/index.ts | 29 ++++++++++ src/apis/serviceuser/v1.ts | 4 +- src/apis/sheets/index.ts | 28 +++++++++ src/apis/sheets/v4.ts | 4 +- src/apis/siteVerification/index.ts | 30 ++++++++++ src/apis/siteVerification/v1.ts | 4 +- src/apis/slides/index.ts | 28 +++++++++ src/apis/slides/v1.ts | 4 +- src/apis/sourcerepo/index.ts | 29 ++++++++++ src/apis/sourcerepo/v1.ts | 4 +- src/apis/spanner/index.ts | 28 +++++++++ src/apis/spanner/v1.ts | 4 +- src/apis/spectrum/index.ts | 29 ++++++++++ src/apis/spectrum/v1explorer.ts | 4 +- src/apis/speech/index.ts | 32 ++++++++++ src/apis/speech/v1.ts | 4 +- src/apis/speech/v1beta1.ts | 4 +- src/apis/sqladmin/index.ts | 36 ++++++++++++ src/apis/sqladmin/v1beta3.ts | 4 +- src/apis/sqladmin/v1beta4.ts | 4 +- src/apis/storage/index.ts | 40 +++++++++++++ src/apis/storage/v1.ts | 4 +- src/apis/storage/v1beta1.ts | 4 +- src/apis/storage/v1beta2.ts | 4 +- src/apis/storagetransfer/index.ts | 30 ++++++++++ src/apis/storagetransfer/v1.ts | 4 +- src/apis/streetviewpublish/index.ts | 30 ++++++++++ src/apis/streetviewpublish/v1.ts | 4 +- src/apis/surveys/index.ts | 28 +++++++++ src/apis/surveys/v2.ts | 4 +- src/apis/tagmanager/index.ts | 35 +++++++++++ src/apis/tagmanager/v1.ts | 4 +- src/apis/tagmanager/v2.ts | 4 +- src/apis/tasks/index.ts | 28 +++++++++ src/apis/tasks/v1.ts | 4 +- src/apis/testing/index.ts | 28 +++++++++ src/apis/testing/v1.ts | 4 +- src/apis/texttospeech/index.ts | 30 ++++++++++ src/apis/texttospeech/v1beta1.ts | 4 +- src/apis/toolresults/index.ts | 30 ++++++++++ src/apis/toolresults/v1beta3.ts | 4 +- src/apis/tpu/index.ts | 28 +++++++++ src/apis/tpu/v1alpha1.ts | 4 +- src/apis/translate/index.ts | 29 ++++++++++ src/apis/translate/v2.ts | 4 +- src/apis/urlshortener/index.ts | 29 ++++++++++ src/apis/urlshortener/v1.ts | 4 +- src/apis/vault/index.ts | 28 +++++++++ src/apis/vault/v1.ts | 4 +- src/apis/videointelligence/index.ts | 48 +++++++++++++++ src/apis/videointelligence/v1.ts | 4 +- src/apis/videointelligence/v1beta1.ts | 4 +- src/apis/videointelligence/v1beta2.ts | 4 +- src/apis/vision/index.ts | 40 +++++++++++++ src/apis/vision/v1.ts | 4 +- src/apis/vision/v1p1beta1.ts | 4 +- src/apis/vision/v1p2beta1.ts | 4 +- src/apis/webfonts/index.ts | 28 +++++++++ src/apis/webfonts/v1.ts | 4 +- src/apis/webmasters/index.ts | 29 ++++++++++ src/apis/webmasters/v3.ts | 4 +- src/apis/websecurityscanner/index.ts | 31 ++++++++++ src/apis/websecurityscanner/v1alpha.ts | 4 +- src/apis/youtube/index.ts | 28 +++++++++ src/apis/youtube/v3.ts | 4 +- src/apis/youtubeAnalytics/index.ts | 47 +++++++++++++++ src/apis/youtubeAnalytics/v1.ts | 4 +- src/apis/youtubeAnalytics/v1beta1.ts | 4 +- src/apis/youtubeAnalytics/v2.ts | 4 +- src/apis/youtubereporting/index.ts | 30 ++++++++++ src/apis/youtubereporting/v1.ts | 4 +- src/generator/generator.ts | 4 ++ src/generator/templates/api-endpoint.njk | 4 +- src/generator/templates/api-index.njk | 34 +++++++++++ src/shared/src/api.ts | 2 +- src/shared/src/apiIndex.ts | 38 ++++++++++++ src/shared/src/apirequest.ts | 18 +++--- src/shared/src/index.ts | 1 + 339 files changed, 4825 insertions(+), 406 deletions(-) create mode 100644 src/apis/abusiveexperiencereport/index.ts create mode 100644 src/apis/acceleratedmobilepageurl/index.ts create mode 100644 src/apis/adexchangebuyer/index.ts create mode 100644 src/apis/adexchangebuyer2/index.ts create mode 100644 src/apis/adexchangeseller/index.ts create mode 100644 src/apis/adexperiencereport/index.ts create mode 100644 src/apis/admin/index.ts create mode 100644 src/apis/adsense/index.ts create mode 100644 src/apis/adsensehost/index.ts create mode 100644 src/apis/analytics/index.ts create mode 100644 src/apis/analyticsreporting/index.ts create mode 100644 src/apis/androiddeviceprovisioning/index.ts create mode 100644 src/apis/androidenterprise/index.ts create mode 100644 src/apis/androidmanagement/index.ts create mode 100644 src/apis/androidpublisher/index.ts create mode 100644 src/apis/appengine/index.ts create mode 100644 src/apis/appsactivity/index.ts create mode 100644 src/apis/appstate/index.ts create mode 100644 src/apis/bigquery/index.ts create mode 100644 src/apis/bigquerydatatransfer/index.ts create mode 100644 src/apis/blogger/index.ts create mode 100644 src/apis/books/index.ts create mode 100644 src/apis/calendar/index.ts create mode 100644 src/apis/chat/index.ts create mode 100644 src/apis/civicinfo/index.ts create mode 100644 src/apis/classroom/index.ts create mode 100644 src/apis/cloudbilling/index.ts create mode 100644 src/apis/cloudbuild/index.ts create mode 100644 src/apis/clouddebugger/index.ts create mode 100644 src/apis/clouderrorreporting/index.ts create mode 100644 src/apis/cloudfunctions/index.ts create mode 100644 src/apis/cloudiot/index.ts create mode 100644 src/apis/cloudkms/index.ts create mode 100644 src/apis/cloudresourcemanager/index.ts create mode 100644 src/apis/cloudshell/index.ts create mode 100644 src/apis/cloudtasks/index.ts create mode 100644 src/apis/cloudtrace/index.ts create mode 100644 src/apis/composer/index.ts create mode 100644 src/apis/compute/index.ts create mode 100644 src/apis/container/index.ts create mode 100644 src/apis/content/index.ts create mode 100644 src/apis/customsearch/index.ts create mode 100644 src/apis/dataflow/index.ts create mode 100644 src/apis/dataproc/index.ts create mode 100644 src/apis/datastore/index.ts create mode 100644 src/apis/deploymentmanager/index.ts create mode 100644 src/apis/dfareporting/index.ts create mode 100644 src/apis/dialogflow/index.ts create mode 100644 src/apis/digitalassetlinks/index.ts create mode 100644 src/apis/discovery/index.ts create mode 100644 src/apis/dlp/index.ts create mode 100644 src/apis/dns/index.ts create mode 100644 src/apis/doubleclickbidmanager/index.ts create mode 100644 src/apis/doubleclicksearch/index.ts create mode 100644 src/apis/drive/index.ts create mode 100644 src/apis/firebasedynamiclinks/index.ts create mode 100644 src/apis/firebaserules/index.ts create mode 100644 src/apis/firestore/index.ts create mode 100644 src/apis/fitness/index.ts create mode 100644 src/apis/fusiontables/index.ts create mode 100644 src/apis/games/index.ts create mode 100644 src/apis/gamesConfiguration/index.ts create mode 100644 src/apis/gamesManagement/index.ts create mode 100644 src/apis/genomics/index.ts create mode 100644 src/apis/gmail/index.ts create mode 100644 src/apis/groupsmigration/index.ts create mode 100644 src/apis/groupssettings/index.ts create mode 100644 src/apis/iam/index.ts create mode 100644 src/apis/identitytoolkit/index.ts create mode 100644 src/apis/jobs/index.ts create mode 100644 src/apis/kgsearch/index.ts create mode 100644 src/apis/language/index.ts create mode 100644 src/apis/licensing/index.ts create mode 100644 src/apis/logging/index.ts create mode 100644 src/apis/manufacturers/index.ts create mode 100644 src/apis/mirror/index.ts create mode 100644 src/apis/ml/index.ts create mode 100644 src/apis/monitoring/index.ts create mode 100644 src/apis/oauth2/index.ts create mode 100644 src/apis/oslogin/index.ts create mode 100644 src/apis/pagespeedonline/index.ts create mode 100644 src/apis/partners/index.ts create mode 100644 src/apis/people/index.ts create mode 100644 src/apis/photoslibrary/index.ts create mode 100644 src/apis/playcustomapp/index.ts create mode 100644 src/apis/plus/index.ts create mode 100644 src/apis/plusDomains/index.ts create mode 100644 src/apis/poly/index.ts create mode 100644 src/apis/proximitybeacon/index.ts create mode 100644 src/apis/pubsub/index.ts create mode 100644 src/apis/redis/index.ts create mode 100644 src/apis/replicapool/index.ts create mode 100644 src/apis/replicapoolupdater/index.ts create mode 100644 src/apis/reseller/index.ts create mode 100644 src/apis/resourceviews/index.ts create mode 100644 src/apis/runtimeconfig/index.ts create mode 100644 src/apis/safebrowsing/index.ts create mode 100644 src/apis/script/index.ts create mode 100644 src/apis/searchconsole/index.ts create mode 100644 src/apis/servicebroker/index.ts create mode 100644 src/apis/serviceconsumermanagement/index.ts create mode 100644 src/apis/servicecontrol/index.ts create mode 100644 src/apis/servicemanagement/index.ts create mode 100644 src/apis/serviceusage/index.ts create mode 100644 src/apis/serviceuser/index.ts create mode 100644 src/apis/sheets/index.ts create mode 100644 src/apis/siteVerification/index.ts create mode 100644 src/apis/slides/index.ts create mode 100644 src/apis/sourcerepo/index.ts create mode 100644 src/apis/spanner/index.ts create mode 100644 src/apis/spectrum/index.ts create mode 100644 src/apis/speech/index.ts create mode 100644 src/apis/sqladmin/index.ts create mode 100644 src/apis/storage/index.ts create mode 100644 src/apis/storagetransfer/index.ts create mode 100644 src/apis/streetviewpublish/index.ts create mode 100644 src/apis/surveys/index.ts create mode 100644 src/apis/tagmanager/index.ts create mode 100644 src/apis/tasks/index.ts create mode 100644 src/apis/testing/index.ts create mode 100644 src/apis/texttospeech/index.ts create mode 100644 src/apis/toolresults/index.ts create mode 100644 src/apis/tpu/index.ts create mode 100644 src/apis/translate/index.ts create mode 100644 src/apis/urlshortener/index.ts create mode 100644 src/apis/vault/index.ts create mode 100644 src/apis/videointelligence/index.ts create mode 100644 src/apis/vision/index.ts create mode 100644 src/apis/webfonts/index.ts create mode 100644 src/apis/webmasters/index.ts create mode 100644 src/apis/websecurityscanner/index.ts create mode 100644 src/apis/youtube/index.ts create mode 100644 src/apis/youtubeAnalytics/index.ts create mode 100644 src/apis/youtubereporting/index.ts create mode 100644 src/generator/templates/api-index.njk create mode 100644 src/shared/src/apiIndex.ts diff --git a/src/apis/abusiveexperiencereport/index.ts b/src/apis/abusiveexperiencereport/index.ts new file mode 100644 index 00000000000..b1522946a75 --- /dev/null +++ b/src/apis/abusiveexperiencereport/index.ts @@ -0,0 +1,32 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {abusiveexperiencereport_v1} from './v1'; + +export const VERSIONS = { + 'v1': abusiveexperiencereport_v1.Abusiveexperiencereport, +}; + +export function abusiveexperiencereport(version: 'v1'): + abusiveexperiencereport_v1.Abusiveexperiencereport; +export function abusiveexperiencereport( + options: abusiveexperiencereport_v1.Options): + abusiveexperiencereport_v1.Abusiveexperiencereport; +export function +abusiveexperiencereport( + versionOrOptions: 'v1'|abusiveexperiencereport_v1.Options) { + return getAPI('abusiveexperiencereport', versionOrOptions, VERSIONS); +} diff --git a/src/apis/abusiveexperiencereport/v1.ts b/src/apis/abusiveexperiencereport/v1.ts index 2a59bbd0693..17edc1ccd49 100644 --- a/src/apis/abusiveexperiencereport/v1.ts +++ b/src/apis/abusiveexperiencereport/v1.ts @@ -48,13 +48,13 @@ export namespace abusiveexperiencereport_v1 { */ export class Abusiveexperiencereport { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; sites: Resource$Sites; violatingSites: Resource$Violatingsites; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/acceleratedmobilepageurl/index.ts b/src/apis/acceleratedmobilepageurl/index.ts new file mode 100644 index 00000000000..efb6de20157 --- /dev/null +++ b/src/apis/acceleratedmobilepageurl/index.ts @@ -0,0 +1,32 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {acceleratedmobilepageurl_v1} from './v1'; + +export const VERSIONS = { + 'v1': acceleratedmobilepageurl_v1.Acceleratedmobilepageurl, +}; + +export function acceleratedmobilepageurl(version: 'v1'): + acceleratedmobilepageurl_v1.Acceleratedmobilepageurl; +export function acceleratedmobilepageurl( + options: acceleratedmobilepageurl_v1.Options): + acceleratedmobilepageurl_v1.Acceleratedmobilepageurl; +export function acceleratedmobilepageurl< + T = acceleratedmobilepageurl_v1.Acceleratedmobilepageurl>( + versionOrOptions: 'v1'|acceleratedmobilepageurl_v1.Options) { + return getAPI('acceleratedmobilepageurl', versionOrOptions, VERSIONS); +} diff --git a/src/apis/acceleratedmobilepageurl/v1.ts b/src/apis/acceleratedmobilepageurl/v1.ts index fcf19a63c11..cfbfaadd1c0 100644 --- a/src/apis/acceleratedmobilepageurl/v1.ts +++ b/src/apis/acceleratedmobilepageurl/v1.ts @@ -48,12 +48,12 @@ export namespace acceleratedmobilepageurl_v1 { */ export class Acceleratedmobilepageurl { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; ampUrls: Resource$Ampurls; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexchangebuyer/index.ts b/src/apis/adexchangebuyer/index.ts new file mode 100644 index 00000000000..ad28b9906fa --- /dev/null +++ b/src/apis/adexchangebuyer/index.ts @@ -0,0 +1,47 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {adexchangebuyer_v1_2} from './v1.2'; +import {adexchangebuyer_v1_3} from './v1.3'; +import {adexchangebuyer_v1_4} from './v1.4'; + +export const VERSIONS = { + 'v1.2': adexchangebuyer_v1_2.Adexchangebuyer, + 'v1.3': adexchangebuyer_v1_3.Adexchangebuyer, + 'v1.4': adexchangebuyer_v1_4.Adexchangebuyer, +}; + +export function adexchangebuyer(version: 'v1_2'): + adexchangebuyer_v1_2.Adexchangebuyer; +export function adexchangebuyer(options: adexchangebuyer_v1_2.Options): + adexchangebuyer_v1_2.Adexchangebuyer; +export function adexchangebuyer(version: 'v1_3'): + adexchangebuyer_v1_3.Adexchangebuyer; +export function adexchangebuyer(options: adexchangebuyer_v1_3.Options): + adexchangebuyer_v1_3.Adexchangebuyer; +export function adexchangebuyer(version: 'v1_4'): + adexchangebuyer_v1_4.Adexchangebuyer; +export function adexchangebuyer(options: adexchangebuyer_v1_4.Options): + adexchangebuyer_v1_4.Adexchangebuyer; +export function adexchangebuyer< + T = adexchangebuyer_v1_2.Adexchangebuyer | + adexchangebuyer_v1_3.Adexchangebuyer | + adexchangebuyer_v1_4.Adexchangebuyer>( + versionOrOptions: 'v1_2'| + adexchangebuyer_v1_2.Options|'v1_3'| + adexchangebuyer_v1_3.Options|'v1_4'|adexchangebuyer_v1_4.Options) { + return getAPI('adexchangebuyer', versionOrOptions, VERSIONS); +} diff --git a/src/apis/adexchangebuyer/v1.2.ts b/src/apis/adexchangebuyer/v1.2.ts index 82cef36eab2..022c4b3ac39 100644 --- a/src/apis/adexchangebuyer/v1.2.ts +++ b/src/apis/adexchangebuyer/v1.2.ts @@ -49,13 +49,13 @@ export namespace adexchangebuyer_v1_2 { */ export class Adexchangebuyer { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accounts: Resource$Accounts; creatives: Resource$Creatives; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexchangebuyer/v1.3.ts b/src/apis/adexchangebuyer/v1.3.ts index 85d9e048161..ae9bc926589 100644 --- a/src/apis/adexchangebuyer/v1.3.ts +++ b/src/apis/adexchangebuyer/v1.3.ts @@ -49,7 +49,7 @@ export namespace adexchangebuyer_v1_3 { */ export class Adexchangebuyer { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accounts: Resource$Accounts; @@ -60,7 +60,7 @@ export namespace adexchangebuyer_v1_3 { performanceReport: Resource$Performancereport; pretargetingConfig: Resource$Pretargetingconfig; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexchangebuyer/v1.4.ts b/src/apis/adexchangebuyer/v1.4.ts index 6500d20cdfb..3365e1129ef 100644 --- a/src/apis/adexchangebuyer/v1.4.ts +++ b/src/apis/adexchangebuyer/v1.4.ts @@ -49,7 +49,7 @@ export namespace adexchangebuyer_v1_4 { */ export class Adexchangebuyer { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accounts: Resource$Accounts; @@ -65,7 +65,7 @@ export namespace adexchangebuyer_v1_4 { proposals: Resource$Proposals; pubprofiles: Resource$Pubprofiles; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexchangebuyer2/index.ts b/src/apis/adexchangebuyer2/index.ts new file mode 100644 index 00000000000..dec8e783323 --- /dev/null +++ b/src/apis/adexchangebuyer2/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {adexchangebuyer2_v2beta1} from './v2beta1'; + +export const VERSIONS = { + 'v2beta1': adexchangebuyer2_v2beta1.Adexchangebuyer2, +}; + +export function adexchangebuyer2(version: 'v2beta1'): + adexchangebuyer2_v2beta1.Adexchangebuyer2; +export function adexchangebuyer2(options: adexchangebuyer2_v2beta1.Options): + adexchangebuyer2_v2beta1.Adexchangebuyer2; +export function adexchangebuyer2( + versionOrOptions: 'v2beta1'|adexchangebuyer2_v2beta1.Options) { + return getAPI('adexchangebuyer2', versionOrOptions, VERSIONS); +} diff --git a/src/apis/adexchangebuyer2/v2beta1.ts b/src/apis/adexchangebuyer2/v2beta1.ts index 116190534cd..e8a92d8bbb3 100644 --- a/src/apis/adexchangebuyer2/v2beta1.ts +++ b/src/apis/adexchangebuyer2/v2beta1.ts @@ -49,13 +49,13 @@ export namespace adexchangebuyer2_v2beta1 { */ export class Adexchangebuyer2 { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accounts: Resource$Accounts; bidders: Resource$Bidders; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexchangeseller/index.ts b/src/apis/adexchangeseller/index.ts new file mode 100644 index 00000000000..442743d13e8 --- /dev/null +++ b/src/apis/adexchangeseller/index.ts @@ -0,0 +1,48 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; + +import {adexchangeseller_v1} from './v1'; +import {adexchangeseller_v1_1} from './v1.1'; +import {adexchangeseller_v2_0} from './v2.0'; + +export const VERSIONS = { + 'v1.1': adexchangeseller_v1_1.Adexchangeseller, + 'v1': adexchangeseller_v1.Adexchangeseller, + 'v2.0': adexchangeseller_v2_0.Adexchangeseller, +}; + +export function adexchangeseller(version: 'v1_1'): + adexchangeseller_v1_1.Adexchangeseller; +export function adexchangeseller(options: adexchangeseller_v1_1.Options): + adexchangeseller_v1_1.Adexchangeseller; +export function adexchangeseller(version: 'v1'): + adexchangeseller_v1.Adexchangeseller; +export function adexchangeseller(options: adexchangeseller_v1.Options): + adexchangeseller_v1.Adexchangeseller; +export function adexchangeseller(version: 'v2_0'): + adexchangeseller_v2_0.Adexchangeseller; +export function adexchangeseller(options: adexchangeseller_v2_0.Options): + adexchangeseller_v2_0.Adexchangeseller; +export function adexchangeseller< + T = adexchangeseller_v1_1.Adexchangeseller | + adexchangeseller_v1.Adexchangeseller | + adexchangeseller_v2_0.Adexchangeseller>( + versionOrOptions: 'v1_1'| + adexchangeseller_v1_1.Options|'v1'| + adexchangeseller_v1.Options|'v2_0'|adexchangeseller_v2_0.Options) { + return getAPI('adexchangeseller', versionOrOptions, VERSIONS); +} diff --git a/src/apis/adexchangeseller/v1.1.ts b/src/apis/adexchangeseller/v1.1.ts index fe5565ff378..b673ef9aafc 100644 --- a/src/apis/adexchangeseller/v1.1.ts +++ b/src/apis/adexchangeseller/v1.1.ts @@ -47,7 +47,7 @@ export namespace adexchangeseller_v1_1 { */ export class Adexchangeseller { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accounts: Resource$Accounts; @@ -60,7 +60,7 @@ export namespace adexchangeseller_v1_1 { reports: Resource$Reports; urlchannels: Resource$Urlchannels; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexchangeseller/v1.ts b/src/apis/adexchangeseller/v1.ts index ecc17caa776..d61015fc71b 100644 --- a/src/apis/adexchangeseller/v1.ts +++ b/src/apis/adexchangeseller/v1.ts @@ -47,7 +47,7 @@ export namespace adexchangeseller_v1 { */ export class Adexchangeseller { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; adclients: Resource$Adclients; @@ -56,7 +56,7 @@ export namespace adexchangeseller_v1 { reports: Resource$Reports; urlchannels: Resource$Urlchannels; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexchangeseller/v2.0.ts b/src/apis/adexchangeseller/v2.0.ts index 31e2d7d6133..b2f51f089d5 100644 --- a/src/apis/adexchangeseller/v2.0.ts +++ b/src/apis/adexchangeseller/v2.0.ts @@ -47,12 +47,12 @@ export namespace adexchangeseller_v2_0 { */ export class Adexchangeseller { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accounts: Resource$Accounts; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adexperiencereport/index.ts b/src/apis/adexperiencereport/index.ts new file mode 100644 index 00000000000..5147764175a --- /dev/null +++ b/src/apis/adexperiencereport/index.ts @@ -0,0 +1,31 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {adexperiencereport_v1} from './v1'; + +export const VERSIONS = { + 'v1': adexperiencereport_v1.Adexperiencereport, +}; + +export function adexperiencereport(version: 'v1'): + adexperiencereport_v1.Adexperiencereport; +export function adexperiencereport(options: adexperiencereport_v1.Options): + adexperiencereport_v1.Adexperiencereport; +export function +adexperiencereport( + versionOrOptions: 'v1'|adexperiencereport_v1.Options) { + return getAPI('adexperiencereport', versionOrOptions, VERSIONS); +} diff --git a/src/apis/adexperiencereport/v1.ts b/src/apis/adexperiencereport/v1.ts index fdffa01702a..21c7b523b04 100644 --- a/src/apis/adexperiencereport/v1.ts +++ b/src/apis/adexperiencereport/v1.ts @@ -48,13 +48,13 @@ export namespace adexperiencereport_v1 { */ export class Adexperiencereport { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; sites: Resource$Sites; violatingSites: Resource$Violatingsites; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/admin/datatransfer_v1.ts b/src/apis/admin/datatransfer_v1.ts index 41f413f45c4..50adefb7006 100644 --- a/src/apis/admin/datatransfer_v1.ts +++ b/src/apis/admin/datatransfer_v1.ts @@ -47,13 +47,13 @@ export namespace admin_datatransfer_v1 { */ export class Admin { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; applications: Resource$Applications; transfers: Resource$Transfers; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/admin/directory_v1.ts b/src/apis/admin/directory_v1.ts index f18f2669631..2dc19b9d531 100644 --- a/src/apis/admin/directory_v1.ts +++ b/src/apis/admin/directory_v1.ts @@ -48,7 +48,7 @@ export namespace admin_directory_v1 { */ export class Admin { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; asps: Resource$Asps; @@ -72,7 +72,7 @@ export namespace admin_directory_v1 { users: Resource$Users; verificationCodes: Resource$Verificationcodes; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/admin/index.ts b/src/apis/admin/index.ts new file mode 100644 index 00000000000..ea514f42f14 --- /dev/null +++ b/src/apis/admin/index.ts @@ -0,0 +1,43 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {admin_datatransfer_v1} from './datatransfer_v1'; +import {admin_directory_v1} from './directory_v1'; +import {admin_reports_v1} from './reports_v1'; + +export const VERSIONS = { + 'datatransfer_v1': admin_datatransfer_v1.Admin, + 'directory_v1': admin_directory_v1.Admin, + 'reports_v1': admin_reports_v1.Admin, +}; + +export function admin(version: 'datatransfer_v1'): admin_datatransfer_v1.Admin; +export function admin(options: admin_datatransfer_v1.Options): + admin_datatransfer_v1.Admin; +export function admin(version: 'directory_v1'): admin_directory_v1.Admin; +export function admin(options: admin_directory_v1.Options): + admin_directory_v1.Admin; +export function admin(version: 'reports_v1'): admin_reports_v1.Admin; +export function admin(options: admin_reports_v1.Options): + admin_reports_v1.Admin; +export function admin< + T = admin_datatransfer_v1.Admin | admin_directory_v1.Admin | + admin_reports_v1.Admin>( + versionOrOptions: 'datatransfer_v1'| + admin_datatransfer_v1.Options|'directory_v1'| + admin_directory_v1.Options|'reports_v1'|admin_reports_v1.Options) { + return getAPI('admin', versionOrOptions, VERSIONS); +} diff --git a/src/apis/admin/reports_v1.ts b/src/apis/admin/reports_v1.ts index b1792c50f25..7bdc6535e6d 100644 --- a/src/apis/admin/reports_v1.ts +++ b/src/apis/admin/reports_v1.ts @@ -48,7 +48,7 @@ export namespace admin_reports_v1 { */ export class Admin { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; activities: Resource$Activities; @@ -57,7 +57,7 @@ export namespace admin_reports_v1 { entityUsageReports: Resource$Entityusagereports; userUsageReport: Resource$Userusagereport; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adsense/index.ts b/src/apis/adsense/index.ts new file mode 100644 index 00000000000..6c7345ba0e0 --- /dev/null +++ b/src/apis/adsense/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {adsense_v1_4} from './v1.4'; + +export const VERSIONS = { + 'v1.4': adsense_v1_4.Adsense, +}; + +export function adsense(version: 'v1_4'): adsense_v1_4.Adsense; +export function adsense(options: adsense_v1_4.Options): adsense_v1_4.Adsense; +export function adsense(versionOrOptions: 'v1_4'| + adsense_v1_4.Options) { + return getAPI('adsense', versionOrOptions, VERSIONS); +} diff --git a/src/apis/adsense/v1.4.ts b/src/apis/adsense/v1.4.ts index 83c26cfb6c3..8fb7db30ad6 100644 --- a/src/apis/adsense/v1.4.ts +++ b/src/apis/adsense/v1.4.ts @@ -48,7 +48,7 @@ export namespace adsense_v1_4 { */ export class Adsense { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accounts: Resource$Accounts; @@ -62,7 +62,7 @@ export namespace adsense_v1_4 { savedadstyles: Resource$Savedadstyles; urlchannels: Resource$Urlchannels; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/adsensehost/index.ts b/src/apis/adsensehost/index.ts new file mode 100644 index 00000000000..1373de29571 --- /dev/null +++ b/src/apis/adsensehost/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {adsensehost_v4_1} from './v4.1'; + +export const VERSIONS = { + 'v4.1': adsensehost_v4_1.Adsensehost, +}; + +export function adsensehost(version: 'v4_1'): adsensehost_v4_1.Adsensehost; +export function adsensehost(options: adsensehost_v4_1.Options): + adsensehost_v4_1.Adsensehost; +export function adsensehost( + versionOrOptions: 'v4_1'|adsensehost_v4_1.Options) { + return getAPI('adsensehost', versionOrOptions, VERSIONS); +} diff --git a/src/apis/adsensehost/v4.1.ts b/src/apis/adsensehost/v4.1.ts index ef30ecd06b1..87313e69e70 100644 --- a/src/apis/adsensehost/v4.1.ts +++ b/src/apis/adsensehost/v4.1.ts @@ -48,7 +48,7 @@ export namespace adsensehost_v4_1 { */ export class Adsensehost { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accounts: Resource$Accounts; @@ -58,7 +58,7 @@ export namespace adsensehost_v4_1 { reports: Resource$Reports; urlchannels: Resource$Urlchannels; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/analytics/index.ts b/src/apis/analytics/index.ts new file mode 100644 index 00000000000..f4d5fa9f9e1 --- /dev/null +++ b/src/apis/analytics/index.ts @@ -0,0 +1,35 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {analytics_v2_4} from './v2.4'; +import {analytics_v3} from './v3'; + +export const VERSIONS = { + 'v2.4': analytics_v2_4.Analytics, + 'v3': analytics_v3.Analytics, +}; + +export function analytics(version: 'v2_4'): analytics_v2_4.Analytics; +export function analytics(options: analytics_v2_4.Options): + analytics_v2_4.Analytics; +export function analytics(version: 'v3'): analytics_v3.Analytics; +export function analytics(options: analytics_v3.Options): + analytics_v3.Analytics; +export function +analytics( + versionOrOptions: 'v2_4'|analytics_v2_4.Options|'v3'|analytics_v3.Options) { + return getAPI('analytics', versionOrOptions, VERSIONS); +} diff --git a/src/apis/analytics/v2.4.ts b/src/apis/analytics/v2.4.ts index 78e854125eb..be6129456c5 100644 --- a/src/apis/analytics/v2.4.ts +++ b/src/apis/analytics/v2.4.ts @@ -47,13 +47,13 @@ export namespace analytics_v2_4 { */ export class Analytics { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; data: Resource$Data; management: Resource$Management; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/analytics/v3.ts b/src/apis/analytics/v3.ts index 50843d0ad6b..5f0b95133cf 100644 --- a/src/apis/analytics/v3.ts +++ b/src/apis/analytics/v3.ts @@ -47,7 +47,7 @@ export namespace analytics_v3 { */ export class Analytics { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; data: Resource$Data; @@ -55,7 +55,7 @@ export namespace analytics_v3 { metadata: Resource$Metadata; provisioning: Resource$Provisioning; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/analyticsreporting/index.ts b/src/apis/analyticsreporting/index.ts new file mode 100644 index 00000000000..dbf9efac5be --- /dev/null +++ b/src/apis/analyticsreporting/index.ts @@ -0,0 +1,31 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {analyticsreporting_v4} from './v4'; + +export const VERSIONS = { + 'v4': analyticsreporting_v4.Analyticsreporting, +}; + +export function analyticsreporting(version: 'v4'): + analyticsreporting_v4.Analyticsreporting; +export function analyticsreporting(options: analyticsreporting_v4.Options): + analyticsreporting_v4.Analyticsreporting; +export function +analyticsreporting( + versionOrOptions: 'v4'|analyticsreporting_v4.Options) { + return getAPI('analyticsreporting', versionOrOptions, VERSIONS); +} diff --git a/src/apis/analyticsreporting/v4.ts b/src/apis/analyticsreporting/v4.ts index 3f2426019d6..fff9eb66d64 100644 --- a/src/apis/analyticsreporting/v4.ts +++ b/src/apis/analyticsreporting/v4.ts @@ -47,12 +47,12 @@ export namespace analyticsreporting_v4 { */ export class Analyticsreporting { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; reports: Resource$Reports; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/androiddeviceprovisioning/index.ts b/src/apis/androiddeviceprovisioning/index.ts new file mode 100644 index 00000000000..3dd4a81ac43 --- /dev/null +++ b/src/apis/androiddeviceprovisioning/index.ts @@ -0,0 +1,32 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {androiddeviceprovisioning_v1} from './v1'; + +export const VERSIONS = { + 'v1': androiddeviceprovisioning_v1.Androiddeviceprovisioning, +}; + +export function androiddeviceprovisioning(version: 'v1'): + androiddeviceprovisioning_v1.Androiddeviceprovisioning; +export function androiddeviceprovisioning( + options: androiddeviceprovisioning_v1.Options): + androiddeviceprovisioning_v1.Androiddeviceprovisioning; +export function androiddeviceprovisioning< + T = androiddeviceprovisioning_v1.Androiddeviceprovisioning>( + versionOrOptions: 'v1'|androiddeviceprovisioning_v1.Options) { + return getAPI('androiddeviceprovisioning', versionOrOptions, VERSIONS); +} diff --git a/src/apis/androiddeviceprovisioning/v1.ts b/src/apis/androiddeviceprovisioning/v1.ts index 969b3dc83e9..d1835c049a3 100644 --- a/src/apis/androiddeviceprovisioning/v1.ts +++ b/src/apis/androiddeviceprovisioning/v1.ts @@ -48,14 +48,14 @@ export namespace androiddeviceprovisioning_v1 { */ export class Androiddeviceprovisioning { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; customers: Resource$Customers; operations: Resource$Operations; partners: Resource$Partners; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/androidenterprise/index.ts b/src/apis/androidenterprise/index.ts new file mode 100644 index 00000000000..0561a794ad0 --- /dev/null +++ b/src/apis/androidenterprise/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {androidenterprise_v1} from './v1'; + +export const VERSIONS = { + 'v1': androidenterprise_v1.Androidenterprise, +}; + +export function androidenterprise(version: 'v1'): + androidenterprise_v1.Androidenterprise; +export function androidenterprise(options: androidenterprise_v1.Options): + androidenterprise_v1.Androidenterprise; +export function androidenterprise( + versionOrOptions: 'v1'|androidenterprise_v1.Options) { + return getAPI('androidenterprise', versionOrOptions, VERSIONS); +} diff --git a/src/apis/androidenterprise/v1.ts b/src/apis/androidenterprise/v1.ts index ae262f48a58..0d496a2c6e6 100644 --- a/src/apis/androidenterprise/v1.ts +++ b/src/apis/androidenterprise/v1.ts @@ -47,7 +47,7 @@ export namespace androidenterprise_v1 { */ export class Androidenterprise { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; devices: Resource$Devices; @@ -66,7 +66,7 @@ export namespace androidenterprise_v1 { storelayoutpages: Resource$Storelayoutpages; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/androidmanagement/index.ts b/src/apis/androidmanagement/index.ts new file mode 100644 index 00000000000..bdf3342807d --- /dev/null +++ b/src/apis/androidmanagement/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {androidmanagement_v1} from './v1'; + +export const VERSIONS = { + 'v1': androidmanagement_v1.Androidmanagement, +}; + +export function androidmanagement(version: 'v1'): + androidmanagement_v1.Androidmanagement; +export function androidmanagement(options: androidmanagement_v1.Options): + androidmanagement_v1.Androidmanagement; +export function androidmanagement( + versionOrOptions: 'v1'|androidmanagement_v1.Options) { + return getAPI('androidmanagement', versionOrOptions, VERSIONS); +} diff --git a/src/apis/androidmanagement/v1.ts b/src/apis/androidmanagement/v1.ts index 2add7ceaea2..05262862d06 100644 --- a/src/apis/androidmanagement/v1.ts +++ b/src/apis/androidmanagement/v1.ts @@ -48,13 +48,13 @@ export namespace androidmanagement_v1 { */ export class Androidmanagement { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; enterprises: Resource$Enterprises; signupUrls: Resource$Signupurls; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/androidpublisher/index.ts b/src/apis/androidpublisher/index.ts new file mode 100644 index 00000000000..0b4a23ee259 --- /dev/null +++ b/src/apis/androidpublisher/index.ts @@ -0,0 +1,56 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; + +import {androidpublisher_v1} from './v1'; +import {androidpublisher_v1_1} from './v1.1'; +import {androidpublisher_v2} from './v2'; +import {androidpublisher_v3} from './v3'; + +export const VERSIONS = { + 'v1.1': androidpublisher_v1_1.Androidpublisher, + 'v1': androidpublisher_v1.Androidpublisher, + 'v2': androidpublisher_v2.Androidpublisher, + 'v3': androidpublisher_v3.Androidpublisher, +}; + +export function androidpublisher(version: 'v1_1'): + androidpublisher_v1_1.Androidpublisher; +export function androidpublisher(options: androidpublisher_v1_1.Options): + androidpublisher_v1_1.Androidpublisher; +export function androidpublisher(version: 'v1'): + androidpublisher_v1.Androidpublisher; +export function androidpublisher(options: androidpublisher_v1.Options): + androidpublisher_v1.Androidpublisher; +export function androidpublisher(version: 'v2'): + androidpublisher_v2.Androidpublisher; +export function androidpublisher(options: androidpublisher_v2.Options): + androidpublisher_v2.Androidpublisher; +export function androidpublisher(version: 'v3'): + androidpublisher_v3.Androidpublisher; +export function androidpublisher(options: androidpublisher_v3.Options): + androidpublisher_v3.Androidpublisher; +export function androidpublisher< + T = androidpublisher_v1_1.Androidpublisher | + androidpublisher_v1.Androidpublisher | + androidpublisher_v2.Androidpublisher | + androidpublisher_v3.Androidpublisher>( + versionOrOptions: 'v1_1'| + androidpublisher_v1_1.Options|'v1'| + androidpublisher_v1.Options|'v2'| + androidpublisher_v2.Options|'v3'|androidpublisher_v3.Options) { + return getAPI('androidpublisher', versionOrOptions, VERSIONS); +} diff --git a/src/apis/androidpublisher/v1.1.ts b/src/apis/androidpublisher/v1.1.ts index 42dba5a3ee8..d4c452ab002 100644 --- a/src/apis/androidpublisher/v1.1.ts +++ b/src/apis/androidpublisher/v1.1.ts @@ -47,13 +47,13 @@ export namespace androidpublisher_v1_1 { */ export class Androidpublisher { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; inapppurchases: Resource$Inapppurchases; purchases: Resource$Purchases; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/androidpublisher/v1.ts b/src/apis/androidpublisher/v1.ts index 07aacc3296b..bf75697bc3e 100644 --- a/src/apis/androidpublisher/v1.ts +++ b/src/apis/androidpublisher/v1.ts @@ -47,12 +47,12 @@ export namespace androidpublisher_v1 { */ export class Androidpublisher { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; purchases: Resource$Purchases; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/androidpublisher/v2.ts b/src/apis/androidpublisher/v2.ts index 4df00bb5877..d0727e967ec 100644 --- a/src/apis/androidpublisher/v2.ts +++ b/src/apis/androidpublisher/v2.ts @@ -47,7 +47,7 @@ export namespace androidpublisher_v2 { */ export class Androidpublisher { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; edits: Resource$Edits; @@ -55,7 +55,7 @@ export namespace androidpublisher_v2 { purchases: Resource$Purchases; reviews: Resource$Reviews; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/androidpublisher/v3.ts b/src/apis/androidpublisher/v3.ts index 486b48bcff6..d19df347192 100644 --- a/src/apis/androidpublisher/v3.ts +++ b/src/apis/androidpublisher/v3.ts @@ -47,7 +47,7 @@ export namespace androidpublisher_v3 { */ export class Androidpublisher { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; edits: Resource$Edits; @@ -55,7 +55,7 @@ export namespace androidpublisher_v3 { purchases: Resource$Purchases; reviews: Resource$Reviews; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/appengine/index.ts b/src/apis/appengine/index.ts new file mode 100644 index 00000000000..2fc6bee6348 --- /dev/null +++ b/src/apis/appengine/index.ts @@ -0,0 +1,55 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {appengine_v1} from './v1'; +import {appengine_v1alpha} from './v1alpha'; +import {appengine_v1beta} from './v1beta'; +import {appengine_v1beta4} from './v1beta4'; +import {appengine_v1beta5} from './v1beta5'; + +export const VERSIONS = { + 'v1': appengine_v1.Appengine, + 'v1alpha': appengine_v1alpha.Appengine, + 'v1beta': appengine_v1beta.Appengine, + 'v1beta4': appengine_v1beta4.Appengine, + 'v1beta5': appengine_v1beta5.Appengine, +}; + +export function appengine(version: 'v1'): appengine_v1.Appengine; +export function appengine(options: appengine_v1.Options): + appengine_v1.Appengine; +export function appengine(version: 'v1alpha'): appengine_v1alpha.Appengine; +export function appengine(options: appengine_v1alpha.Options): + appengine_v1alpha.Appengine; +export function appengine(version: 'v1beta'): appengine_v1beta.Appengine; +export function appengine(options: appengine_v1beta.Options): + appengine_v1beta.Appengine; +export function appengine(version: 'v1beta4'): appengine_v1beta4.Appengine; +export function appengine(options: appengine_v1beta4.Options): + appengine_v1beta4.Appengine; +export function appengine(version: 'v1beta5'): appengine_v1beta5.Appengine; +export function appengine(options: appengine_v1beta5.Options): + appengine_v1beta5.Appengine; +export function appengine< + T = appengine_v1.Appengine | appengine_v1alpha.Appengine | + appengine_v1beta.Appengine | appengine_v1beta4.Appengine | + appengine_v1beta5.Appengine>( + versionOrOptions: 'v1'|appengine_v1.Options|'v1alpha'| + appengine_v1alpha.Options|'v1beta'| + appengine_v1beta.Options|'v1beta4'| + appengine_v1beta4.Options|'v1beta5'|appengine_v1beta5.Options) { + return getAPI('appengine', versionOrOptions, VERSIONS); +} diff --git a/src/apis/appengine/v1.ts b/src/apis/appengine/v1.ts index b78e6c87a67..61de427a1d5 100644 --- a/src/apis/appengine/v1.ts +++ b/src/apis/appengine/v1.ts @@ -48,12 +48,12 @@ export namespace appengine_v1 { */ export class Appengine { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; apps: Resource$Apps; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/appengine/v1alpha.ts b/src/apis/appengine/v1alpha.ts index 07b8ad76427..32baa751cca 100644 --- a/src/apis/appengine/v1alpha.ts +++ b/src/apis/appengine/v1alpha.ts @@ -48,12 +48,12 @@ export namespace appengine_v1alpha { */ export class Appengine { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; apps: Resource$Apps; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/appengine/v1beta.ts b/src/apis/appengine/v1beta.ts index fc394781821..5bbd9fe976d 100644 --- a/src/apis/appengine/v1beta.ts +++ b/src/apis/appengine/v1beta.ts @@ -48,12 +48,12 @@ export namespace appengine_v1beta { */ export class Appengine { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; apps: Resource$Apps; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/appengine/v1beta4.ts b/src/apis/appengine/v1beta4.ts index 8c87888f2c0..449b948bf9b 100644 --- a/src/apis/appengine/v1beta4.ts +++ b/src/apis/appengine/v1beta4.ts @@ -48,12 +48,12 @@ export namespace appengine_v1beta4 { */ export class Appengine { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; apps: Resource$Apps; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/appengine/v1beta5.ts b/src/apis/appengine/v1beta5.ts index da8b12a071d..a4132df649f 100644 --- a/src/apis/appengine/v1beta5.ts +++ b/src/apis/appengine/v1beta5.ts @@ -48,12 +48,12 @@ export namespace appengine_v1beta5 { */ export class Appengine { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; apps: Resource$Apps; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/appsactivity/index.ts b/src/apis/appsactivity/index.ts new file mode 100644 index 00000000000..c038c0426f6 --- /dev/null +++ b/src/apis/appsactivity/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {appsactivity_v1} from './v1'; + +export const VERSIONS = { + 'v1': appsactivity_v1.Appsactivity, +}; + +export function appsactivity(version: 'v1'): appsactivity_v1.Appsactivity; +export function appsactivity(options: appsactivity_v1.Options): + appsactivity_v1.Appsactivity; +export function appsactivity( + versionOrOptions: 'v1'|appsactivity_v1.Options) { + return getAPI('appsactivity', versionOrOptions, VERSIONS); +} diff --git a/src/apis/appsactivity/v1.ts b/src/apis/appsactivity/v1.ts index b34f0034e7a..49208c1e186 100644 --- a/src/apis/appsactivity/v1.ts +++ b/src/apis/appsactivity/v1.ts @@ -47,12 +47,12 @@ export namespace appsactivity_v1 { */ export class Appsactivity { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; activities: Resource$Activities; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/appstate/index.ts b/src/apis/appstate/index.ts new file mode 100644 index 00000000000..3971a4c5c2d --- /dev/null +++ b/src/apis/appstate/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {appstate_v1} from './v1'; + +export const VERSIONS = { + 'v1': appstate_v1.Appstate, +}; + +export function appstate(version: 'v1'): appstate_v1.Appstate; +export function appstate(options: appstate_v1.Options): appstate_v1.Appstate; +export function appstate(versionOrOptions: 'v1'| + appstate_v1.Options) { + return getAPI('appstate', versionOrOptions, VERSIONS); +} diff --git a/src/apis/appstate/v1.ts b/src/apis/appstate/v1.ts index 6bb29060731..3712d96fa52 100644 --- a/src/apis/appstate/v1.ts +++ b/src/apis/appstate/v1.ts @@ -47,12 +47,12 @@ export namespace appstate_v1 { */ export class Appstate { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; states: Resource$States; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/bigquery/index.ts b/src/apis/bigquery/index.ts new file mode 100644 index 00000000000..fdd6b9d8e67 --- /dev/null +++ b/src/apis/bigquery/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {bigquery_v2} from './v2'; + +export const VERSIONS = { + 'v2': bigquery_v2.Bigquery, +}; + +export function bigquery(version: 'v2'): bigquery_v2.Bigquery; +export function bigquery(options: bigquery_v2.Options): bigquery_v2.Bigquery; +export function bigquery(versionOrOptions: 'v2'| + bigquery_v2.Options) { + return getAPI('bigquery', versionOrOptions, VERSIONS); +} diff --git a/src/apis/bigquery/v2.ts b/src/apis/bigquery/v2.ts index f78ca9a11e0..fe6949a0b65 100644 --- a/src/apis/bigquery/v2.ts +++ b/src/apis/bigquery/v2.ts @@ -47,7 +47,7 @@ export namespace bigquery_v2 { */ export class Bigquery { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; datasets: Resource$Datasets; @@ -56,7 +56,7 @@ export namespace bigquery_v2 { tabledata: Resource$Tabledata; tables: Resource$Tables; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/bigquerydatatransfer/index.ts b/src/apis/bigquerydatatransfer/index.ts new file mode 100644 index 00000000000..671aeed3067 --- /dev/null +++ b/src/apis/bigquerydatatransfer/index.ts @@ -0,0 +1,31 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {bigquerydatatransfer_v1} from './v1'; + +export const VERSIONS = { + 'v1': bigquerydatatransfer_v1.Bigquerydatatransfer, +}; + +export function bigquerydatatransfer(version: 'v1'): + bigquerydatatransfer_v1.Bigquerydatatransfer; +export function bigquerydatatransfer(options: bigquerydatatransfer_v1.Options): + bigquerydatatransfer_v1.Bigquerydatatransfer; +export function +bigquerydatatransfer( + versionOrOptions: 'v1'|bigquerydatatransfer_v1.Options) { + return getAPI('bigquerydatatransfer', versionOrOptions, VERSIONS); +} diff --git a/src/apis/bigquerydatatransfer/v1.ts b/src/apis/bigquerydatatransfer/v1.ts index ce062fe693c..deb21f9a973 100644 --- a/src/apis/bigquerydatatransfer/v1.ts +++ b/src/apis/bigquerydatatransfer/v1.ts @@ -48,12 +48,12 @@ export namespace bigquerydatatransfer_v1 { */ export class Bigquerydatatransfer { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/blogger/index.ts b/src/apis/blogger/index.ts new file mode 100644 index 00000000000..8b67f91836f --- /dev/null +++ b/src/apis/blogger/index.ts @@ -0,0 +1,32 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {blogger_v2} from './v2'; +import {blogger_v3} from './v3'; + +export const VERSIONS = { + 'v2': blogger_v2.Blogger, + 'v3': blogger_v3.Blogger, +}; + +export function blogger(version: 'v2'): blogger_v2.Blogger; +export function blogger(options: blogger_v2.Options): blogger_v2.Blogger; +export function blogger(version: 'v3'): blogger_v3.Blogger; +export function blogger(options: blogger_v3.Options): blogger_v3.Blogger; +export function blogger( + versionOrOptions: 'v2'|blogger_v2.Options|'v3'|blogger_v3.Options) { + return getAPI('blogger', versionOrOptions, VERSIONS); +} diff --git a/src/apis/blogger/v2.ts b/src/apis/blogger/v2.ts index 07f9c8498c7..c26369e4b9a 100644 --- a/src/apis/blogger/v2.ts +++ b/src/apis/blogger/v2.ts @@ -47,7 +47,7 @@ export namespace blogger_v2 { */ export class Blogger { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; blogs: Resource$Blogs; @@ -56,7 +56,7 @@ export namespace blogger_v2 { posts: Resource$Posts; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/blogger/v3.ts b/src/apis/blogger/v3.ts index 3e60c2d6f92..d78b9bf1d76 100644 --- a/src/apis/blogger/v3.ts +++ b/src/apis/blogger/v3.ts @@ -47,7 +47,7 @@ export namespace blogger_v3 { */ export class Blogger { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; blogs: Resource$Blogs; @@ -59,7 +59,7 @@ export namespace blogger_v3 { postUserInfos: Resource$Postuserinfos; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/books/index.ts b/src/apis/books/index.ts new file mode 100644 index 00000000000..92ca61bac8c --- /dev/null +++ b/src/apis/books/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {books_v1} from './v1'; + +export const VERSIONS = { + 'v1': books_v1.Books, +}; + +export function books(version: 'v1'): books_v1.Books; +export function books(options: books_v1.Options): books_v1.Books; +export function books(versionOrOptions: 'v1'| + books_v1.Options) { + return getAPI('books', versionOrOptions, VERSIONS); +} diff --git a/src/apis/books/v1.ts b/src/apis/books/v1.ts index 13f134d60ef..49c18fd5612 100644 --- a/src/apis/books/v1.ts +++ b/src/apis/books/v1.ts @@ -47,7 +47,7 @@ export namespace books_v1 { */ export class Books { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; bookshelves: Resource$Bookshelves; @@ -64,7 +64,7 @@ export namespace books_v1 { series: Resource$Series; volumes: Resource$Volumes; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/calendar/index.ts b/src/apis/calendar/index.ts new file mode 100644 index 00000000000..73a948ca502 --- /dev/null +++ b/src/apis/calendar/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {calendar_v3} from './v3'; + +export const VERSIONS = { + 'v3': calendar_v3.Calendar, +}; + +export function calendar(version: 'v3'): calendar_v3.Calendar; +export function calendar(options: calendar_v3.Options): calendar_v3.Calendar; +export function calendar(versionOrOptions: 'v3'| + calendar_v3.Options) { + return getAPI('calendar', versionOrOptions, VERSIONS); +} diff --git a/src/apis/calendar/v3.ts b/src/apis/calendar/v3.ts index 3eab7653561..ece25a98bcc 100644 --- a/src/apis/calendar/v3.ts +++ b/src/apis/calendar/v3.ts @@ -47,7 +47,7 @@ export namespace calendar_v3 { */ export class Calendar { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; acl: Resource$Acl; @@ -59,7 +59,7 @@ export namespace calendar_v3 { freebusy: Resource$Freebusy; settings: Resource$Settings; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/chat/index.ts b/src/apis/chat/index.ts new file mode 100644 index 00000000000..ea83412a015 --- /dev/null +++ b/src/apis/chat/index.ts @@ -0,0 +1,27 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {chat_v1} from './v1'; + +export const VERSIONS = { + 'v1': chat_v1.Chat, +}; + +export function chat(version: 'v1'): chat_v1.Chat; +export function chat(options: chat_v1.Options): chat_v1.Chat; +export function chat(versionOrOptions: 'v1'|chat_v1.Options) { + return getAPI('chat', versionOrOptions, VERSIONS); +} diff --git a/src/apis/chat/v1.ts b/src/apis/chat/v1.ts index 4ab2ddb861a..9479e7e720a 100644 --- a/src/apis/chat/v1.ts +++ b/src/apis/chat/v1.ts @@ -48,12 +48,12 @@ export namespace chat_v1 { */ export class Chat { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; spaces: Resource$Spaces; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/civicinfo/index.ts b/src/apis/civicinfo/index.ts new file mode 100644 index 00000000000..9d77495b904 --- /dev/null +++ b/src/apis/civicinfo/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {civicinfo_v2} from './v2'; + +export const VERSIONS = { + 'v2': civicinfo_v2.Civicinfo, +}; + +export function civicinfo(version: 'v2'): civicinfo_v2.Civicinfo; +export function civicinfo(options: civicinfo_v2.Options): + civicinfo_v2.Civicinfo; +export function civicinfo(versionOrOptions: 'v2'| + civicinfo_v2.Options) { + return getAPI('civicinfo', versionOrOptions, VERSIONS); +} diff --git a/src/apis/civicinfo/v2.ts b/src/apis/civicinfo/v2.ts index eefa4f216d8..c7331f764ff 100644 --- a/src/apis/civicinfo/v2.ts +++ b/src/apis/civicinfo/v2.ts @@ -48,14 +48,14 @@ export namespace civicinfo_v2 { */ export class Civicinfo { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; divisions: Resource$Divisions; elections: Resource$Elections; representatives: Resource$Representatives; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/classroom/index.ts b/src/apis/classroom/index.ts new file mode 100644 index 00000000000..d69efa21ac1 --- /dev/null +++ b/src/apis/classroom/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {classroom_v1} from './v1'; + +export const VERSIONS = { + 'v1': classroom_v1.Classroom, +}; + +export function classroom(version: 'v1'): classroom_v1.Classroom; +export function classroom(options: classroom_v1.Options): + classroom_v1.Classroom; +export function classroom(versionOrOptions: 'v1'| + classroom_v1.Options) { + return getAPI('classroom', versionOrOptions, VERSIONS); +} diff --git a/src/apis/classroom/v1.ts b/src/apis/classroom/v1.ts index 116b99a2f9f..d049ffdfdd4 100644 --- a/src/apis/classroom/v1.ts +++ b/src/apis/classroom/v1.ts @@ -47,7 +47,7 @@ export namespace classroom_v1 { */ export class Classroom { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; courses: Resource$Courses; @@ -55,7 +55,7 @@ export namespace classroom_v1 { registrations: Resource$Registrations; userProfiles: Resource$Userprofiles; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudbilling/index.ts b/src/apis/cloudbilling/index.ts new file mode 100644 index 00000000000..9630e969b6a --- /dev/null +++ b/src/apis/cloudbilling/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {cloudbilling_v1} from './v1'; + +export const VERSIONS = { + 'v1': cloudbilling_v1.Cloudbilling, +}; + +export function cloudbilling(version: 'v1'): cloudbilling_v1.Cloudbilling; +export function cloudbilling(options: cloudbilling_v1.Options): + cloudbilling_v1.Cloudbilling; +export function cloudbilling( + versionOrOptions: 'v1'|cloudbilling_v1.Options) { + return getAPI('cloudbilling', versionOrOptions, VERSIONS); +} diff --git a/src/apis/cloudbilling/v1.ts b/src/apis/cloudbilling/v1.ts index 74e6adca50b..13126815fb4 100644 --- a/src/apis/cloudbilling/v1.ts +++ b/src/apis/cloudbilling/v1.ts @@ -48,14 +48,14 @@ export namespace cloudbilling_v1 { */ export class Cloudbilling { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; billingAccounts: Resource$Billingaccounts; projects: Resource$Projects; services: Resource$Services; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudbuild/index.ts b/src/apis/cloudbuild/index.ts new file mode 100644 index 00000000000..592adec3fdd --- /dev/null +++ b/src/apis/cloudbuild/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {cloudbuild_v1} from './v1'; + +export const VERSIONS = { + 'v1': cloudbuild_v1.Cloudbuild, +}; + +export function cloudbuild(version: 'v1'): cloudbuild_v1.Cloudbuild; +export function cloudbuild(options: cloudbuild_v1.Options): + cloudbuild_v1.Cloudbuild; +export function cloudbuild( + versionOrOptions: 'v1'|cloudbuild_v1.Options) { + return getAPI('cloudbuild', versionOrOptions, VERSIONS); +} diff --git a/src/apis/cloudbuild/v1.ts b/src/apis/cloudbuild/v1.ts index e3f5e4bb323..c283f76692b 100644 --- a/src/apis/cloudbuild/v1.ts +++ b/src/apis/cloudbuild/v1.ts @@ -47,13 +47,13 @@ export namespace cloudbuild_v1 { */ export class Cloudbuild { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; operations: Resource$Operations; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/clouddebugger/index.ts b/src/apis/clouddebugger/index.ts new file mode 100644 index 00000000000..50246238651 --- /dev/null +++ b/src/apis/clouddebugger/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {clouddebugger_v2} from './v2'; + +export const VERSIONS = { + 'v2': clouddebugger_v2.Clouddebugger, +}; + +export function clouddebugger(version: 'v2'): clouddebugger_v2.Clouddebugger; +export function clouddebugger(options: clouddebugger_v2.Options): + clouddebugger_v2.Clouddebugger; +export function clouddebugger( + versionOrOptions: 'v2'|clouddebugger_v2.Options) { + return getAPI('clouddebugger', versionOrOptions, VERSIONS); +} diff --git a/src/apis/clouddebugger/v2.ts b/src/apis/clouddebugger/v2.ts index 39a036f45d1..48a7ff926ed 100644 --- a/src/apis/clouddebugger/v2.ts +++ b/src/apis/clouddebugger/v2.ts @@ -48,13 +48,13 @@ export namespace clouddebugger_v2 { */ export class Clouddebugger { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; controller: Resource$Controller; debugger: Resource$Debugger; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/clouderrorreporting/index.ts b/src/apis/clouderrorreporting/index.ts new file mode 100644 index 00000000000..01b25baaa98 --- /dev/null +++ b/src/apis/clouderrorreporting/index.ts @@ -0,0 +1,32 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {clouderrorreporting_v1beta1} from './v1beta1'; + +export const VERSIONS = { + 'v1beta1': clouderrorreporting_v1beta1.Clouderrorreporting, +}; + +export function clouderrorreporting(version: 'v1beta1'): + clouderrorreporting_v1beta1.Clouderrorreporting; +export function clouderrorreporting( + options: clouderrorreporting_v1beta1.Options): + clouderrorreporting_v1beta1.Clouderrorreporting; +export function +clouderrorreporting( + versionOrOptions: 'v1beta1'|clouderrorreporting_v1beta1.Options) { + return getAPI('clouderrorreporting', versionOrOptions, VERSIONS); +} diff --git a/src/apis/clouderrorreporting/v1beta1.ts b/src/apis/clouderrorreporting/v1beta1.ts index 306352bead5..fccd33b08f5 100644 --- a/src/apis/clouderrorreporting/v1beta1.ts +++ b/src/apis/clouderrorreporting/v1beta1.ts @@ -49,12 +49,12 @@ export namespace clouderrorreporting_v1beta1 { */ export class Clouderrorreporting { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudfunctions/index.ts b/src/apis/cloudfunctions/index.ts new file mode 100644 index 00000000000..5d1bdb9cb61 --- /dev/null +++ b/src/apis/cloudfunctions/index.ts @@ -0,0 +1,38 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {cloudfunctions_v1} from './v1'; +import {cloudfunctions_v1beta2} from './v1beta2'; + +export const VERSIONS = { + 'v1': cloudfunctions_v1.Cloudfunctions, + 'v1beta2': cloudfunctions_v1beta2.Cloudfunctions, +}; + +export function cloudfunctions(version: 'v1'): cloudfunctions_v1.Cloudfunctions; +export function cloudfunctions(options: cloudfunctions_v1.Options): + cloudfunctions_v1.Cloudfunctions; +export function cloudfunctions(version: 'v1beta2'): + cloudfunctions_v1beta2.Cloudfunctions; +export function cloudfunctions(options: cloudfunctions_v1beta2.Options): + cloudfunctions_v1beta2.Cloudfunctions; +export function cloudfunctions< + T = cloudfunctions_v1.Cloudfunctions | + cloudfunctions_v1beta2.Cloudfunctions>( + versionOrOptions: 'v1'| + cloudfunctions_v1.Options|'v1beta2'|cloudfunctions_v1beta2.Options) { + return getAPI('cloudfunctions', versionOrOptions, VERSIONS); +} diff --git a/src/apis/cloudfunctions/v1.ts b/src/apis/cloudfunctions/v1.ts index d9d689f6a9d..353c7bfa685 100644 --- a/src/apis/cloudfunctions/v1.ts +++ b/src/apis/cloudfunctions/v1.ts @@ -47,13 +47,13 @@ export namespace cloudfunctions_v1 { */ export class Cloudfunctions { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; operations: Resource$Operations; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudfunctions/v1beta2.ts b/src/apis/cloudfunctions/v1beta2.ts index 5d98014e4b3..ddffb022016 100644 --- a/src/apis/cloudfunctions/v1beta2.ts +++ b/src/apis/cloudfunctions/v1beta2.ts @@ -47,13 +47,13 @@ export namespace cloudfunctions_v1beta2 { */ export class Cloudfunctions { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; operations: Resource$Operations; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudiot/index.ts b/src/apis/cloudiot/index.ts new file mode 100644 index 00000000000..5bcab4c9003 --- /dev/null +++ b/src/apis/cloudiot/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {cloudiot_v1} from './v1'; + +export const VERSIONS = { + 'v1': cloudiot_v1.Cloudiot, +}; + +export function cloudiot(version: 'v1'): cloudiot_v1.Cloudiot; +export function cloudiot(options: cloudiot_v1.Options): cloudiot_v1.Cloudiot; +export function cloudiot(versionOrOptions: 'v1'| + cloudiot_v1.Options) { + return getAPI('cloudiot', versionOrOptions, VERSIONS); +} diff --git a/src/apis/cloudiot/v1.ts b/src/apis/cloudiot/v1.ts index a72038d8ae7..f817537be5d 100644 --- a/src/apis/cloudiot/v1.ts +++ b/src/apis/cloudiot/v1.ts @@ -48,12 +48,12 @@ export namespace cloudiot_v1 { */ export class Cloudiot { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudkms/index.ts b/src/apis/cloudkms/index.ts new file mode 100644 index 00000000000..e99bd0caad3 --- /dev/null +++ b/src/apis/cloudkms/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {cloudkms_v1} from './v1'; + +export const VERSIONS = { + 'v1': cloudkms_v1.Cloudkms, +}; + +export function cloudkms(version: 'v1'): cloudkms_v1.Cloudkms; +export function cloudkms(options: cloudkms_v1.Options): cloudkms_v1.Cloudkms; +export function cloudkms(versionOrOptions: 'v1'| + cloudkms_v1.Options) { + return getAPI('cloudkms', versionOrOptions, VERSIONS); +} diff --git a/src/apis/cloudkms/v1.ts b/src/apis/cloudkms/v1.ts index 46135f2ec18..7e4ee5bbb11 100644 --- a/src/apis/cloudkms/v1.ts +++ b/src/apis/cloudkms/v1.ts @@ -48,12 +48,12 @@ export namespace cloudkms_v1 { */ export class Cloudkms { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudresourcemanager/index.ts b/src/apis/cloudresourcemanager/index.ts new file mode 100644 index 00000000000..f7880f7b20d --- /dev/null +++ b/src/apis/cloudresourcemanager/index.ts @@ -0,0 +1,58 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {cloudresourcemanager_v1} from './v1'; +import {cloudresourcemanager_v1beta1} from './v1beta1'; +import {cloudresourcemanager_v2} from './v2'; +import {cloudresourcemanager_v2beta1} from './v2beta1'; + +export const VERSIONS = { + 'v1': cloudresourcemanager_v1.Cloudresourcemanager, + 'v1beta1': cloudresourcemanager_v1beta1.Cloudresourcemanager, + 'v2': cloudresourcemanager_v2.Cloudresourcemanager, + 'v2beta1': cloudresourcemanager_v2beta1.Cloudresourcemanager, +}; + +export function cloudresourcemanager(version: 'v1'): + cloudresourcemanager_v1.Cloudresourcemanager; +export function cloudresourcemanager(options: cloudresourcemanager_v1.Options): + cloudresourcemanager_v1.Cloudresourcemanager; +export function cloudresourcemanager(version: 'v1beta1'): + cloudresourcemanager_v1beta1.Cloudresourcemanager; +export function cloudresourcemanager( + options: cloudresourcemanager_v1beta1.Options): + cloudresourcemanager_v1beta1.Cloudresourcemanager; +export function cloudresourcemanager(version: 'v2'): + cloudresourcemanager_v2.Cloudresourcemanager; +export function cloudresourcemanager(options: cloudresourcemanager_v2.Options): + cloudresourcemanager_v2.Cloudresourcemanager; +export function cloudresourcemanager(version: 'v2beta1'): + cloudresourcemanager_v2beta1.Cloudresourcemanager; +export function cloudresourcemanager( + options: cloudresourcemanager_v2beta1.Options): + cloudresourcemanager_v2beta1.Cloudresourcemanager; +export function cloudresourcemanager< + T = cloudresourcemanager_v1.Cloudresourcemanager | + cloudresourcemanager_v1beta1.Cloudresourcemanager | + cloudresourcemanager_v2.Cloudresourcemanager | + cloudresourcemanager_v2beta1.Cloudresourcemanager>( + versionOrOptions: 'v1'| + cloudresourcemanager_v1.Options|'v1beta1'| + cloudresourcemanager_v1beta1.Options|'v2'| + cloudresourcemanager_v2.Options|'v2beta1'| + cloudresourcemanager_v2beta1.Options) { + return getAPI('cloudresourcemanager', versionOrOptions, VERSIONS); +} diff --git a/src/apis/cloudresourcemanager/v1.ts b/src/apis/cloudresourcemanager/v1.ts index f8079ea844c..07dc11f4477 100644 --- a/src/apis/cloudresourcemanager/v1.ts +++ b/src/apis/cloudresourcemanager/v1.ts @@ -48,7 +48,7 @@ export namespace cloudresourcemanager_v1 { */ export class Cloudresourcemanager { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; folders: Resource$Folders; @@ -57,7 +57,7 @@ export namespace cloudresourcemanager_v1 { organizations: Resource$Organizations; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudresourcemanager/v1beta1.ts b/src/apis/cloudresourcemanager/v1beta1.ts index 512b0290320..dec90667f2a 100644 --- a/src/apis/cloudresourcemanager/v1beta1.ts +++ b/src/apis/cloudresourcemanager/v1beta1.ts @@ -48,13 +48,13 @@ export namespace cloudresourcemanager_v1beta1 { */ export class Cloudresourcemanager { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; organizations: Resource$Organizations; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudresourcemanager/v2.ts b/src/apis/cloudresourcemanager/v2.ts index 2045ea459e6..6e64ad56429 100644 --- a/src/apis/cloudresourcemanager/v2.ts +++ b/src/apis/cloudresourcemanager/v2.ts @@ -48,12 +48,12 @@ export namespace cloudresourcemanager_v2 { */ export class Cloudresourcemanager { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; folders: Resource$Folders; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudresourcemanager/v2beta1.ts b/src/apis/cloudresourcemanager/v2beta1.ts index 88c7be733b7..ed6cba2e499 100644 --- a/src/apis/cloudresourcemanager/v2beta1.ts +++ b/src/apis/cloudresourcemanager/v2beta1.ts @@ -48,12 +48,12 @@ export namespace cloudresourcemanager_v2beta1 { */ export class Cloudresourcemanager { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; folders: Resource$Folders; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudshell/index.ts b/src/apis/cloudshell/index.ts new file mode 100644 index 00000000000..e2e554a627e --- /dev/null +++ b/src/apis/cloudshell/index.ts @@ -0,0 +1,36 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {cloudshell_v1} from './v1'; +import {cloudshell_v1alpha1} from './v1alpha1'; + +export const VERSIONS = { + 'v1': cloudshell_v1.Cloudshell, + 'v1alpha1': cloudshell_v1alpha1.Cloudshell, +}; + +export function cloudshell(version: 'v1'): cloudshell_v1.Cloudshell; +export function cloudshell(options: cloudshell_v1.Options): + cloudshell_v1.Cloudshell; +export function cloudshell(version: 'v1alpha1'): cloudshell_v1alpha1.Cloudshell; +export function cloudshell(options: cloudshell_v1alpha1.Options): + cloudshell_v1alpha1.Cloudshell; +export function +cloudshell( + versionOrOptions: 'v1'|cloudshell_v1.Options|'v1alpha1'| + cloudshell_v1alpha1.Options) { + return getAPI('cloudshell', versionOrOptions, VERSIONS); +} diff --git a/src/apis/cloudshell/v1.ts b/src/apis/cloudshell/v1.ts index 90d87dff149..eb3fe7fd70b 100644 --- a/src/apis/cloudshell/v1.ts +++ b/src/apis/cloudshell/v1.ts @@ -48,12 +48,12 @@ export namespace cloudshell_v1 { */ export class Cloudshell { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; operations: Resource$Operations; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudshell/v1alpha1.ts b/src/apis/cloudshell/v1alpha1.ts index fd4a2ee8a79..58474d7ab67 100644 --- a/src/apis/cloudshell/v1alpha1.ts +++ b/src/apis/cloudshell/v1alpha1.ts @@ -48,12 +48,12 @@ export namespace cloudshell_v1alpha1 { */ export class Cloudshell { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudtasks/index.ts b/src/apis/cloudtasks/index.ts new file mode 100644 index 00000000000..150c0af9e9e --- /dev/null +++ b/src/apis/cloudtasks/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {cloudtasks_v2beta2} from './v2beta2'; + +export const VERSIONS = { + 'v2beta2': cloudtasks_v2beta2.Cloudtasks, +}; + +export function cloudtasks(version: 'v2beta2'): cloudtasks_v2beta2.Cloudtasks; +export function cloudtasks(options: cloudtasks_v2beta2.Options): + cloudtasks_v2beta2.Cloudtasks; +export function cloudtasks( + versionOrOptions: 'v2beta2'|cloudtasks_v2beta2.Options) { + return getAPI('cloudtasks', versionOrOptions, VERSIONS); +} diff --git a/src/apis/cloudtasks/v2beta2.ts b/src/apis/cloudtasks/v2beta2.ts index 678f35d6e92..25e1312f3ed 100644 --- a/src/apis/cloudtasks/v2beta2.ts +++ b/src/apis/cloudtasks/v2beta2.ts @@ -48,12 +48,12 @@ export namespace cloudtasks_v2beta2 { */ export class Cloudtasks { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudtrace/index.ts b/src/apis/cloudtrace/index.ts new file mode 100644 index 00000000000..ad2e3e0a4e5 --- /dev/null +++ b/src/apis/cloudtrace/index.ts @@ -0,0 +1,35 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {cloudtrace_v1} from './v1'; +import {cloudtrace_v2} from './v2'; + +export const VERSIONS = { + 'v1': cloudtrace_v1.Cloudtrace, + 'v2': cloudtrace_v2.Cloudtrace, +}; + +export function cloudtrace(version: 'v1'): cloudtrace_v1.Cloudtrace; +export function cloudtrace(options: cloudtrace_v1.Options): + cloudtrace_v1.Cloudtrace; +export function cloudtrace(version: 'v2'): cloudtrace_v2.Cloudtrace; +export function cloudtrace(options: cloudtrace_v2.Options): + cloudtrace_v2.Cloudtrace; +export function +cloudtrace( + versionOrOptions: 'v1'|cloudtrace_v1.Options|'v2'|cloudtrace_v2.Options) { + return getAPI('cloudtrace', versionOrOptions, VERSIONS); +} diff --git a/src/apis/cloudtrace/v1.ts b/src/apis/cloudtrace/v1.ts index ff6b89a9fe6..651bb05932c 100644 --- a/src/apis/cloudtrace/v1.ts +++ b/src/apis/cloudtrace/v1.ts @@ -49,12 +49,12 @@ export namespace cloudtrace_v1 { */ export class Cloudtrace { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/cloudtrace/v2.ts b/src/apis/cloudtrace/v2.ts index e669dca3b8b..6a89d42eeaf 100644 --- a/src/apis/cloudtrace/v2.ts +++ b/src/apis/cloudtrace/v2.ts @@ -49,12 +49,12 @@ export namespace cloudtrace_v2 { */ export class Cloudtrace { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/composer/index.ts b/src/apis/composer/index.ts new file mode 100644 index 00000000000..27122da8086 --- /dev/null +++ b/src/apis/composer/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {composer_v1beta1} from './v1beta1'; + +export const VERSIONS = { + 'v1beta1': composer_v1beta1.Composer, +}; + +export function composer(version: 'v1beta1'): composer_v1beta1.Composer; +export function composer(options: composer_v1beta1.Options): + composer_v1beta1.Composer; +export function composer( + versionOrOptions: 'v1beta1'|composer_v1beta1.Options) { + return getAPI('composer', versionOrOptions, VERSIONS); +} diff --git a/src/apis/composer/v1beta1.ts b/src/apis/composer/v1beta1.ts index 1409a14e954..8466d1f1fd6 100644 --- a/src/apis/composer/v1beta1.ts +++ b/src/apis/composer/v1beta1.ts @@ -47,12 +47,12 @@ export namespace composer_v1beta1 { */ export class Composer { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/compute/alpha.ts b/src/apis/compute/alpha.ts index 882cd8cf43e..68f3e04b048 100644 --- a/src/apis/compute/alpha.ts +++ b/src/apis/compute/alpha.ts @@ -47,7 +47,7 @@ export namespace compute_alpha { */ export class Compute { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; acceleratorTypes: Resource$Acceleratortypes; @@ -117,7 +117,7 @@ export namespace compute_alpha { zoneOperations: Resource$Zoneoperations; zones: Resource$Zones; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/compute/beta.ts b/src/apis/compute/beta.ts index 9436e6f47e8..2b1527ef0b0 100644 --- a/src/apis/compute/beta.ts +++ b/src/apis/compute/beta.ts @@ -47,7 +47,7 @@ export namespace compute_beta { */ export class Compute { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; acceleratorTypes: Resource$Acceleratortypes; @@ -106,7 +106,7 @@ export namespace compute_beta { zoneOperations: Resource$Zoneoperations; zones: Resource$Zones; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/compute/index.ts b/src/apis/compute/index.ts new file mode 100644 index 00000000000..691a84fb7ee --- /dev/null +++ b/src/apis/compute/index.ts @@ -0,0 +1,38 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {compute_alpha} from './alpha'; +import {compute_beta} from './beta'; +import {compute_v1} from './v1'; + +export const VERSIONS = { + 'alpha': compute_alpha.Compute, + 'beta': compute_beta.Compute, + 'v1': compute_v1.Compute, +}; + +export function compute(version: 'alpha'): compute_alpha.Compute; +export function compute(options: compute_alpha.Options): compute_alpha.Compute; +export function compute(version: 'beta'): compute_beta.Compute; +export function compute(options: compute_beta.Options): compute_beta.Compute; +export function compute(version: 'v1'): compute_v1.Compute; +export function compute(options: compute_v1.Options): compute_v1.Compute; +export function +compute( + versionOrOptions: 'alpha'|compute_alpha.Options|'beta'| + compute_beta.Options|'v1'|compute_v1.Options) { + return getAPI('compute', versionOrOptions, VERSIONS); +} diff --git a/src/apis/compute/v1.ts b/src/apis/compute/v1.ts index e21e0f9e2dc..8a6acf50471 100644 --- a/src/apis/compute/v1.ts +++ b/src/apis/compute/v1.ts @@ -47,7 +47,7 @@ export namespace compute_v1 { */ export class Compute { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; acceleratorTypes: Resource$Acceleratortypes; @@ -105,7 +105,7 @@ export namespace compute_v1 { zoneOperations: Resource$Zoneoperations; zones: Resource$Zones; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/container/index.ts b/src/apis/container/index.ts new file mode 100644 index 00000000000..f34a057dd66 --- /dev/null +++ b/src/apis/container/index.ts @@ -0,0 +1,36 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {container_v1} from './v1'; +import {container_v1beta1} from './v1beta1'; + +export const VERSIONS = { + 'v1': container_v1.Container, + 'v1beta1': container_v1beta1.Container, +}; + +export function container(version: 'v1'): container_v1.Container; +export function container(options: container_v1.Options): + container_v1.Container; +export function container(version: 'v1beta1'): container_v1beta1.Container; +export function container(options: container_v1beta1.Options): + container_v1beta1.Container; +export function +container( + versionOrOptions: 'v1'|container_v1.Options|'v1beta1'| + container_v1beta1.Options) { + return getAPI('container', versionOrOptions, VERSIONS); +} diff --git a/src/apis/container/v1.ts b/src/apis/container/v1.ts index 814ceffefe8..8549972d3c4 100644 --- a/src/apis/container/v1.ts +++ b/src/apis/container/v1.ts @@ -49,12 +49,12 @@ export namespace container_v1 { */ export class Container { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/container/v1beta1.ts b/src/apis/container/v1beta1.ts index df70f4a25f8..e216f021415 100644 --- a/src/apis/container/v1beta1.ts +++ b/src/apis/container/v1beta1.ts @@ -49,12 +49,12 @@ export namespace container_v1beta1 { */ export class Container { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/content/index.ts b/src/apis/content/index.ts new file mode 100644 index 00000000000..ee7d5cce841 --- /dev/null +++ b/src/apis/content/index.ts @@ -0,0 +1,34 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {content_v2} from './v2'; +import {content_v2sandbox} from './v2sandbox'; + +export const VERSIONS = { + 'v2': content_v2.Content, + 'v2sandbox': content_v2sandbox.Content, +}; + +export function content(version: 'v2'): content_v2.Content; +export function content(options: content_v2.Options): content_v2.Content; +export function content(version: 'v2sandbox'): content_v2sandbox.Content; +export function content(options: content_v2sandbox.Options): + content_v2sandbox.Content; +export function content( + versionOrOptions: 'v2'|content_v2.Options|'v2sandbox'| + content_v2sandbox.Options) { + return getAPI('content', versionOrOptions, VERSIONS); +} diff --git a/src/apis/content/v2.ts b/src/apis/content/v2.ts index 090d5a7bac7..2bd0289725b 100644 --- a/src/apis/content/v2.ts +++ b/src/apis/content/v2.ts @@ -48,7 +48,7 @@ export namespace content_v2 { */ export class Content { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accounts: Resource$Accounts; @@ -64,7 +64,7 @@ export namespace content_v2 { productstatuses: Resource$Productstatuses; shippingsettings: Resource$Shippingsettings; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/content/v2sandbox.ts b/src/apis/content/v2sandbox.ts index ce03b48ec7a..fb0d43578a0 100644 --- a/src/apis/content/v2sandbox.ts +++ b/src/apis/content/v2sandbox.ts @@ -48,12 +48,12 @@ export namespace content_v2sandbox { */ export class Content { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; orders: Resource$Orders; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/customsearch/index.ts b/src/apis/customsearch/index.ts new file mode 100644 index 00000000000..722d210b16e --- /dev/null +++ b/src/apis/customsearch/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {customsearch_v1} from './v1'; + +export const VERSIONS = { + 'v1': customsearch_v1.Customsearch, +}; + +export function customsearch(version: 'v1'): customsearch_v1.Customsearch; +export function customsearch(options: customsearch_v1.Options): + customsearch_v1.Customsearch; +export function customsearch( + versionOrOptions: 'v1'|customsearch_v1.Options) { + return getAPI('customsearch', versionOrOptions, VERSIONS); +} diff --git a/src/apis/customsearch/v1.ts b/src/apis/customsearch/v1.ts index 7191ae3dba2..d0161ac9e8f 100644 --- a/src/apis/customsearch/v1.ts +++ b/src/apis/customsearch/v1.ts @@ -47,12 +47,12 @@ export namespace customsearch_v1 { */ export class Customsearch { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; cse: Resource$Cse; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/dataflow/index.ts b/src/apis/dataflow/index.ts new file mode 100644 index 00000000000..04530284cf3 --- /dev/null +++ b/src/apis/dataflow/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {dataflow_v1b3} from './v1b3'; + +export const VERSIONS = { + 'v1b3': dataflow_v1b3.Dataflow, +}; + +export function dataflow(version: 'v1b3'): dataflow_v1b3.Dataflow; +export function dataflow(options: dataflow_v1b3.Options): + dataflow_v1b3.Dataflow; +export function dataflow(versionOrOptions: 'v1b3'| + dataflow_v1b3.Options) { + return getAPI('dataflow', versionOrOptions, VERSIONS); +} diff --git a/src/apis/dataflow/v1b3.ts b/src/apis/dataflow/v1b3.ts index e905c601649..d28a62aa8f0 100644 --- a/src/apis/dataflow/v1b3.ts +++ b/src/apis/dataflow/v1b3.ts @@ -47,12 +47,12 @@ export namespace dataflow_v1b3 { */ export class Dataflow { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/dataproc/index.ts b/src/apis/dataproc/index.ts new file mode 100644 index 00000000000..45104b06562 --- /dev/null +++ b/src/apis/dataproc/index.ts @@ -0,0 +1,34 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {dataproc_v1} from './v1'; +import {dataproc_v1beta2} from './v1beta2'; + +export const VERSIONS = { + 'v1': dataproc_v1.Dataproc, + 'v1beta2': dataproc_v1beta2.Dataproc, +}; + +export function dataproc(version: 'v1'): dataproc_v1.Dataproc; +export function dataproc(options: dataproc_v1.Options): dataproc_v1.Dataproc; +export function dataproc(version: 'v1beta2'): dataproc_v1beta2.Dataproc; +export function dataproc(options: dataproc_v1beta2.Options): + dataproc_v1beta2.Dataproc; +export function dataproc( + versionOrOptions: 'v1'|dataproc_v1.Options|'v1beta2'| + dataproc_v1beta2.Options) { + return getAPI('dataproc', versionOrOptions, VERSIONS); +} diff --git a/src/apis/dataproc/v1.ts b/src/apis/dataproc/v1.ts index 1859e183865..5020689a145 100644 --- a/src/apis/dataproc/v1.ts +++ b/src/apis/dataproc/v1.ts @@ -47,12 +47,12 @@ export namespace dataproc_v1 { */ export class Dataproc { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/dataproc/v1beta2.ts b/src/apis/dataproc/v1beta2.ts index d328a5ca08d..ee60dfefcfe 100644 --- a/src/apis/dataproc/v1beta2.ts +++ b/src/apis/dataproc/v1beta2.ts @@ -47,12 +47,12 @@ export namespace dataproc_v1beta2 { */ export class Dataproc { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/datastore/index.ts b/src/apis/datastore/index.ts new file mode 100644 index 00000000000..79d232ac1ac --- /dev/null +++ b/src/apis/datastore/index.ts @@ -0,0 +1,42 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {datastore_v1} from './v1'; +import {datastore_v1beta1} from './v1beta1'; +import {datastore_v1beta3} from './v1beta3'; + +export const VERSIONS = { + 'v1': datastore_v1.Datastore, + 'v1beta1': datastore_v1beta1.Datastore, + 'v1beta3': datastore_v1beta3.Datastore, +}; + +export function datastore(version: 'v1'): datastore_v1.Datastore; +export function datastore(options: datastore_v1.Options): + datastore_v1.Datastore; +export function datastore(version: 'v1beta1'): datastore_v1beta1.Datastore; +export function datastore(options: datastore_v1beta1.Options): + datastore_v1beta1.Datastore; +export function datastore(version: 'v1beta3'): datastore_v1beta3.Datastore; +export function datastore(options: datastore_v1beta3.Options): + datastore_v1beta3.Datastore; +export function datastore< + T = datastore_v1.Datastore | datastore_v1beta1.Datastore | + datastore_v1beta3.Datastore>( + versionOrOptions: 'v1'|datastore_v1.Options|'v1beta1'| + datastore_v1beta1.Options|'v1beta3'|datastore_v1beta3.Options) { + return getAPI('datastore', versionOrOptions, VERSIONS); +} diff --git a/src/apis/datastore/v1.ts b/src/apis/datastore/v1.ts index 69a7513e6b3..4975306db5d 100644 --- a/src/apis/datastore/v1.ts +++ b/src/apis/datastore/v1.ts @@ -48,12 +48,12 @@ export namespace datastore_v1 { */ export class Datastore { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/datastore/v1beta1.ts b/src/apis/datastore/v1beta1.ts index 58d250b0414..376990c19e2 100644 --- a/src/apis/datastore/v1beta1.ts +++ b/src/apis/datastore/v1beta1.ts @@ -48,12 +48,12 @@ export namespace datastore_v1beta1 { */ export class Datastore { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/datastore/v1beta3.ts b/src/apis/datastore/v1beta3.ts index 61c16afdb07..aeeec339f9d 100644 --- a/src/apis/datastore/v1beta3.ts +++ b/src/apis/datastore/v1beta3.ts @@ -48,12 +48,12 @@ export namespace datastore_v1beta3 { */ export class Datastore { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/deploymentmanager/alpha.ts b/src/apis/deploymentmanager/alpha.ts index d8aa7338e2c..c4bcfbf0262 100644 --- a/src/apis/deploymentmanager/alpha.ts +++ b/src/apis/deploymentmanager/alpha.ts @@ -48,7 +48,7 @@ export namespace deploymentmanager_alpha { */ export class Deploymentmanager { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; compositeTypes: Resource$Compositetypes; @@ -59,7 +59,7 @@ export namespace deploymentmanager_alpha { typeProviders: Resource$Typeproviders; types: Resource$Types; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/deploymentmanager/index.ts b/src/apis/deploymentmanager/index.ts new file mode 100644 index 00000000000..a9765dbc306 --- /dev/null +++ b/src/apis/deploymentmanager/index.ts @@ -0,0 +1,47 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {deploymentmanager_alpha} from './alpha'; +import {deploymentmanager_v2} from './v2'; +import {deploymentmanager_v2beta} from './v2beta'; + +export const VERSIONS = { + 'alpha': deploymentmanager_alpha.Deploymentmanager, + 'v2': deploymentmanager_v2.Deploymentmanager, + 'v2beta': deploymentmanager_v2beta.Deploymentmanager, +}; + +export function deploymentmanager(version: 'alpha'): + deploymentmanager_alpha.Deploymentmanager; +export function deploymentmanager(options: deploymentmanager_alpha.Options): + deploymentmanager_alpha.Deploymentmanager; +export function deploymentmanager(version: 'v2'): + deploymentmanager_v2.Deploymentmanager; +export function deploymentmanager(options: deploymentmanager_v2.Options): + deploymentmanager_v2.Deploymentmanager; +export function deploymentmanager(version: 'v2beta'): + deploymentmanager_v2beta.Deploymentmanager; +export function deploymentmanager(options: deploymentmanager_v2beta.Options): + deploymentmanager_v2beta.Deploymentmanager; +export function deploymentmanager< + T = deploymentmanager_alpha.Deploymentmanager | + deploymentmanager_v2.Deploymentmanager | + deploymentmanager_v2beta.Deploymentmanager>( + versionOrOptions: 'alpha'| + deploymentmanager_alpha.Options|'v2'| + deploymentmanager_v2.Options|'v2beta'|deploymentmanager_v2beta.Options) { + return getAPI('deploymentmanager', versionOrOptions, VERSIONS); +} diff --git a/src/apis/deploymentmanager/v2.ts b/src/apis/deploymentmanager/v2.ts index 90ca94bba12..06803249933 100644 --- a/src/apis/deploymentmanager/v2.ts +++ b/src/apis/deploymentmanager/v2.ts @@ -48,7 +48,7 @@ export namespace deploymentmanager_v2 { */ export class Deploymentmanager { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; deployments: Resource$Deployments; @@ -57,7 +57,7 @@ export namespace deploymentmanager_v2 { resources: Resource$Resources; types: Resource$Types; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/deploymentmanager/v2beta.ts b/src/apis/deploymentmanager/v2beta.ts index c1bf33685f5..d72058cfc49 100644 --- a/src/apis/deploymentmanager/v2beta.ts +++ b/src/apis/deploymentmanager/v2beta.ts @@ -48,7 +48,7 @@ export namespace deploymentmanager_v2beta { */ export class Deploymentmanager { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; compositeTypes: Resource$Compositetypes; @@ -59,7 +59,7 @@ export namespace deploymentmanager_v2beta { typeProviders: Resource$Typeproviders; types: Resource$Types; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/dfareporting/index.ts b/src/apis/dfareporting/index.ts new file mode 100644 index 00000000000..098e35f7478 --- /dev/null +++ b/src/apis/dfareporting/index.ts @@ -0,0 +1,36 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {dfareporting_v2_8} from './v2.8'; +import {dfareporting_v3_0} from './v3.0'; + +export const VERSIONS = { + 'v2.8': dfareporting_v2_8.Dfareporting, + 'v3.0': dfareporting_v3_0.Dfareporting, +}; + +export function dfareporting(version: 'v2_8'): dfareporting_v2_8.Dfareporting; +export function dfareporting(options: dfareporting_v2_8.Options): + dfareporting_v2_8.Dfareporting; +export function dfareporting(version: 'v3_0'): dfareporting_v3_0.Dfareporting; +export function dfareporting(options: dfareporting_v3_0.Options): + dfareporting_v3_0.Dfareporting; +export function dfareporting< + T = dfareporting_v2_8.Dfareporting | dfareporting_v3_0.Dfareporting>( + versionOrOptions: 'v2_8'|dfareporting_v2_8.Options|'v3_0'| + dfareporting_v3_0.Options) { + return getAPI('dfareporting', versionOrOptions, VERSIONS); +} diff --git a/src/apis/dfareporting/v2.8.ts b/src/apis/dfareporting/v2.8.ts index 962a05058a1..94d4edabf10 100644 --- a/src/apis/dfareporting/v2.8.ts +++ b/src/apis/dfareporting/v2.8.ts @@ -47,7 +47,7 @@ export namespace dfareporting_v2_8 { */ export class Dfareporting { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accountActiveAdSummaries: Resource$Accountactiveadsummaries; @@ -111,7 +111,7 @@ export namespace dfareporting_v2_8 { userRoles: Resource$Userroles; videoFormats: Resource$Videoformats; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/dfareporting/v3.0.ts b/src/apis/dfareporting/v3.0.ts index e3e0cdf7d9d..ef951252801 100644 --- a/src/apis/dfareporting/v3.0.ts +++ b/src/apis/dfareporting/v3.0.ts @@ -47,7 +47,7 @@ export namespace dfareporting_v3_0 { */ export class Dfareporting { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accountActiveAdSummaries: Resource$Accountactiveadsummaries; @@ -111,7 +111,7 @@ export namespace dfareporting_v3_0 { userRoles: Resource$Userroles; videoFormats: Resource$Videoformats; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/dialogflow/index.ts b/src/apis/dialogflow/index.ts new file mode 100644 index 00000000000..a7d059521d6 --- /dev/null +++ b/src/apis/dialogflow/index.ts @@ -0,0 +1,36 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {dialogflow_v2} from './v2'; +import {dialogflow_v2beta1} from './v2beta1'; + +export const VERSIONS = { + 'v2': dialogflow_v2.Dialogflow, + 'v2beta1': dialogflow_v2beta1.Dialogflow, +}; + +export function dialogflow(version: 'v2'): dialogflow_v2.Dialogflow; +export function dialogflow(options: dialogflow_v2.Options): + dialogflow_v2.Dialogflow; +export function dialogflow(version: 'v2beta1'): dialogflow_v2beta1.Dialogflow; +export function dialogflow(options: dialogflow_v2beta1.Options): + dialogflow_v2beta1.Dialogflow; +export function +dialogflow( + versionOrOptions: 'v2'|dialogflow_v2.Options|'v2beta1'| + dialogflow_v2beta1.Options) { + return getAPI('dialogflow', versionOrOptions, VERSIONS); +} diff --git a/src/apis/dialogflow/v2.ts b/src/apis/dialogflow/v2.ts index 4e373291155..3527631a9f2 100644 --- a/src/apis/dialogflow/v2.ts +++ b/src/apis/dialogflow/v2.ts @@ -48,12 +48,12 @@ export namespace dialogflow_v2 { */ export class Dialogflow { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/dialogflow/v2beta1.ts b/src/apis/dialogflow/v2beta1.ts index 5bb7e11ca4f..e56e490a7ec 100644 --- a/src/apis/dialogflow/v2beta1.ts +++ b/src/apis/dialogflow/v2beta1.ts @@ -48,12 +48,12 @@ export namespace dialogflow_v2beta1 { */ export class Dialogflow { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/digitalassetlinks/index.ts b/src/apis/digitalassetlinks/index.ts new file mode 100644 index 00000000000..ca1cc4082c6 --- /dev/null +++ b/src/apis/digitalassetlinks/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {digitalassetlinks_v1} from './v1'; + +export const VERSIONS = { + 'v1': digitalassetlinks_v1.Digitalassetlinks, +}; + +export function digitalassetlinks(version: 'v1'): + digitalassetlinks_v1.Digitalassetlinks; +export function digitalassetlinks(options: digitalassetlinks_v1.Options): + digitalassetlinks_v1.Digitalassetlinks; +export function digitalassetlinks( + versionOrOptions: 'v1'|digitalassetlinks_v1.Options) { + return getAPI('digitalassetlinks', versionOrOptions, VERSIONS); +} diff --git a/src/apis/digitalassetlinks/v1.ts b/src/apis/digitalassetlinks/v1.ts index 1b7dc48c0fe..cdb32bc3113 100644 --- a/src/apis/digitalassetlinks/v1.ts +++ b/src/apis/digitalassetlinks/v1.ts @@ -48,13 +48,13 @@ export namespace digitalassetlinks_v1 { */ export class Digitalassetlinks { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; assetlinks: Resource$Assetlinks; statements: Resource$Statements; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/discovery/index.ts b/src/apis/discovery/index.ts new file mode 100644 index 00000000000..f10aa8e74de --- /dev/null +++ b/src/apis/discovery/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {discovery_v1} from './v1'; + +export const VERSIONS = { + 'v1': discovery_v1.Discovery, +}; + +export function discovery(version: 'v1'): discovery_v1.Discovery; +export function discovery(options: discovery_v1.Options): + discovery_v1.Discovery; +export function discovery(versionOrOptions: 'v1'| + discovery_v1.Options) { + return getAPI('discovery', versionOrOptions, VERSIONS); +} diff --git a/src/apis/discovery/v1.ts b/src/apis/discovery/v1.ts index 47b82e4bc0b..cb62d75f6b9 100644 --- a/src/apis/discovery/v1.ts +++ b/src/apis/discovery/v1.ts @@ -48,12 +48,12 @@ export namespace discovery_v1 { */ export class Discovery { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; apis: Resource$Apis; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/dlp/index.ts b/src/apis/dlp/index.ts new file mode 100644 index 00000000000..ae586fccec4 --- /dev/null +++ b/src/apis/dlp/index.ts @@ -0,0 +1,27 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {dlp_v2} from './v2'; + +export const VERSIONS = { + 'v2': dlp_v2.Dlp, +}; + +export function dlp(version: 'v2'): dlp_v2.Dlp; +export function dlp(options: dlp_v2.Options): dlp_v2.Dlp; +export function dlp(versionOrOptions: 'v2'|dlp_v2.Options) { + return getAPI('dlp', versionOrOptions, VERSIONS); +} diff --git a/src/apis/dlp/v2.ts b/src/apis/dlp/v2.ts index 4f6f4fc7894..7e1c0858f4b 100644 --- a/src/apis/dlp/v2.ts +++ b/src/apis/dlp/v2.ts @@ -49,14 +49,14 @@ export namespace dlp_v2 { */ export class Dlp { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; infoTypes: Resource$Infotypes; organizations: Resource$Organizations; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/dns/index.ts b/src/apis/dns/index.ts new file mode 100644 index 00000000000..55b87080e9f --- /dev/null +++ b/src/apis/dns/index.ts @@ -0,0 +1,37 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {dns_v1} from './v1'; +import {dns_v1beta2} from './v1beta2'; +import {dns_v2beta1} from './v2beta1'; + +export const VERSIONS = { + 'v1': dns_v1.Dns, + 'v1beta2': dns_v1beta2.Dns, + 'v2beta1': dns_v2beta1.Dns, +}; + +export function dns(version: 'v1'): dns_v1.Dns; +export function dns(options: dns_v1.Options): dns_v1.Dns; +export function dns(version: 'v1beta2'): dns_v1beta2.Dns; +export function dns(options: dns_v1beta2.Options): dns_v1beta2.Dns; +export function dns(version: 'v2beta1'): dns_v2beta1.Dns; +export function dns(options: dns_v2beta1.Options): dns_v2beta1.Dns; +export function dns( + versionOrOptions: 'v1'|dns_v1.Options|'v1beta2'| + dns_v1beta2.Options|'v2beta1'|dns_v2beta1.Options) { + return getAPI('dns', versionOrOptions, VERSIONS); +} diff --git a/src/apis/dns/v1.ts b/src/apis/dns/v1.ts index 28a6f73f0f5..dda467d856d 100644 --- a/src/apis/dns/v1.ts +++ b/src/apis/dns/v1.ts @@ -47,7 +47,7 @@ export namespace dns_v1 { */ export class Dns { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; changes: Resource$Changes; @@ -57,7 +57,7 @@ export namespace dns_v1 { projects: Resource$Projects; resourceRecordSets: Resource$Resourcerecordsets; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/dns/v1beta2.ts b/src/apis/dns/v1beta2.ts index 6b40cb9f1b0..8d00f29f85e 100644 --- a/src/apis/dns/v1beta2.ts +++ b/src/apis/dns/v1beta2.ts @@ -47,7 +47,7 @@ export namespace dns_v1beta2 { */ export class Dns { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; changes: Resource$Changes; @@ -57,7 +57,7 @@ export namespace dns_v1beta2 { projects: Resource$Projects; resourceRecordSets: Resource$Resourcerecordsets; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/dns/v2beta1.ts b/src/apis/dns/v2beta1.ts index 2c4cd5b9af6..fcf14f528b5 100644 --- a/src/apis/dns/v2beta1.ts +++ b/src/apis/dns/v2beta1.ts @@ -47,7 +47,7 @@ export namespace dns_v2beta1 { */ export class Dns { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; changes: Resource$Changes; @@ -57,7 +57,7 @@ export namespace dns_v2beta1 { projects: Resource$Projects; resourceRecordSets: Resource$Resourcerecordsets; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/doubleclickbidmanager/index.ts b/src/apis/doubleclickbidmanager/index.ts new file mode 100644 index 00000000000..0c4c0c2ace3 --- /dev/null +++ b/src/apis/doubleclickbidmanager/index.ts @@ -0,0 +1,32 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {doubleclickbidmanager_v1} from './v1'; + +export const VERSIONS = { + 'v1': doubleclickbidmanager_v1.Doubleclickbidmanager, +}; + +export function doubleclickbidmanager(version: 'v1'): + doubleclickbidmanager_v1.Doubleclickbidmanager; +export function doubleclickbidmanager( + options: doubleclickbidmanager_v1.Options): + doubleclickbidmanager_v1.Doubleclickbidmanager; +export function +doubleclickbidmanager( + versionOrOptions: 'v1'|doubleclickbidmanager_v1.Options) { + return getAPI('doubleclickbidmanager', versionOrOptions, VERSIONS); +} diff --git a/src/apis/doubleclickbidmanager/v1.ts b/src/apis/doubleclickbidmanager/v1.ts index 45d098bd273..cab520ca455 100644 --- a/src/apis/doubleclickbidmanager/v1.ts +++ b/src/apis/doubleclickbidmanager/v1.ts @@ -47,7 +47,7 @@ export namespace doubleclickbidmanager_v1 { */ export class Doubleclickbidmanager { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; lineitems: Resource$Lineitems; @@ -55,7 +55,7 @@ export namespace doubleclickbidmanager_v1 { reports: Resource$Reports; sdf: Resource$Sdf; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/doubleclicksearch/index.ts b/src/apis/doubleclicksearch/index.ts new file mode 100644 index 00000000000..7d4b03100ce --- /dev/null +++ b/src/apis/doubleclicksearch/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {doubleclicksearch_v2} from './v2'; + +export const VERSIONS = { + 'v2': doubleclicksearch_v2.Doubleclicksearch, +}; + +export function doubleclicksearch(version: 'v2'): + doubleclicksearch_v2.Doubleclicksearch; +export function doubleclicksearch(options: doubleclicksearch_v2.Options): + doubleclicksearch_v2.Doubleclicksearch; +export function doubleclicksearch( + versionOrOptions: 'v2'|doubleclicksearch_v2.Options) { + return getAPI('doubleclicksearch', versionOrOptions, VERSIONS); +} diff --git a/src/apis/doubleclicksearch/v2.ts b/src/apis/doubleclicksearch/v2.ts index f7c4f39c5fc..543069a8d59 100644 --- a/src/apis/doubleclicksearch/v2.ts +++ b/src/apis/doubleclicksearch/v2.ts @@ -48,14 +48,14 @@ export namespace doubleclicksearch_v2 { */ export class Doubleclicksearch { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; conversion: Resource$Conversion; reports: Resource$Reports; savedColumns: Resource$Savedcolumns; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/drive/index.ts b/src/apis/drive/index.ts new file mode 100644 index 00000000000..c62ed651a8d --- /dev/null +++ b/src/apis/drive/index.ts @@ -0,0 +1,32 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {drive_v2} from './v2'; +import {drive_v3} from './v3'; + +export const VERSIONS = { + 'v2': drive_v2.Drive, + 'v3': drive_v3.Drive, +}; + +export function drive(version: 'v2'): drive_v2.Drive; +export function drive(options: drive_v2.Options): drive_v2.Drive; +export function drive(version: 'v3'): drive_v3.Drive; +export function drive(options: drive_v3.Options): drive_v3.Drive; +export function drive( + versionOrOptions: 'v2'|drive_v2.Options|'v3'|drive_v3.Options) { + return getAPI('drive', versionOrOptions, VERSIONS); +} diff --git a/src/apis/drive/v2.ts b/src/apis/drive/v2.ts index 11f882043ec..777ca598fc5 100644 --- a/src/apis/drive/v2.ts +++ b/src/apis/drive/v2.ts @@ -48,7 +48,7 @@ export namespace drive_v2 { */ export class Drive { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; about: Resource$About; @@ -66,7 +66,7 @@ export namespace drive_v2 { revisions: Resource$Revisions; teamdrives: Resource$Teamdrives; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/drive/v3.ts b/src/apis/drive/v3.ts index 992f6f8f6d0..92725bc7b0f 100644 --- a/src/apis/drive/v3.ts +++ b/src/apis/drive/v3.ts @@ -48,7 +48,7 @@ export namespace drive_v3 { */ export class Drive { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; about: Resource$About; @@ -61,7 +61,7 @@ export namespace drive_v3 { revisions: Resource$Revisions; teamdrives: Resource$Teamdrives; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/firebasedynamiclinks/index.ts b/src/apis/firebasedynamiclinks/index.ts new file mode 100644 index 00000000000..266eeef6e29 --- /dev/null +++ b/src/apis/firebasedynamiclinks/index.ts @@ -0,0 +1,31 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {firebasedynamiclinks_v1} from './v1'; + +export const VERSIONS = { + 'v1': firebasedynamiclinks_v1.Firebasedynamiclinks, +}; + +export function firebasedynamiclinks(version: 'v1'): + firebasedynamiclinks_v1.Firebasedynamiclinks; +export function firebasedynamiclinks(options: firebasedynamiclinks_v1.Options): + firebasedynamiclinks_v1.Firebasedynamiclinks; +export function +firebasedynamiclinks( + versionOrOptions: 'v1'|firebasedynamiclinks_v1.Options) { + return getAPI('firebasedynamiclinks', versionOrOptions, VERSIONS); +} diff --git a/src/apis/firebasedynamiclinks/v1.ts b/src/apis/firebasedynamiclinks/v1.ts index fab049ef158..4a4ec5dcc16 100644 --- a/src/apis/firebasedynamiclinks/v1.ts +++ b/src/apis/firebasedynamiclinks/v1.ts @@ -47,14 +47,14 @@ export namespace firebasedynamiclinks_v1 { */ export class Firebasedynamiclinks { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; managedShortLinks: Resource$Managedshortlinks; shortLinks: Resource$Shortlinks; v1: Resource$V1; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/firebaserules/index.ts b/src/apis/firebaserules/index.ts new file mode 100644 index 00000000000..8de11be3b63 --- /dev/null +++ b/src/apis/firebaserules/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {firebaserules_v1} from './v1'; + +export const VERSIONS = { + 'v1': firebaserules_v1.Firebaserules, +}; + +export function firebaserules(version: 'v1'): firebaserules_v1.Firebaserules; +export function firebaserules(options: firebaserules_v1.Options): + firebaserules_v1.Firebaserules; +export function firebaserules( + versionOrOptions: 'v1'|firebaserules_v1.Options) { + return getAPI('firebaserules', versionOrOptions, VERSIONS); +} diff --git a/src/apis/firebaserules/v1.ts b/src/apis/firebaserules/v1.ts index d84a8903221..0dc9906b6bf 100644 --- a/src/apis/firebaserules/v1.ts +++ b/src/apis/firebaserules/v1.ts @@ -48,12 +48,12 @@ export namespace firebaserules_v1 { */ export class Firebaserules { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/firestore/index.ts b/src/apis/firestore/index.ts new file mode 100644 index 00000000000..0d277724551 --- /dev/null +++ b/src/apis/firestore/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {firestore_v1beta1} from './v1beta1'; + +export const VERSIONS = { + 'v1beta1': firestore_v1beta1.Firestore, +}; + +export function firestore(version: 'v1beta1'): firestore_v1beta1.Firestore; +export function firestore(options: firestore_v1beta1.Options): + firestore_v1beta1.Firestore; +export function firestore( + versionOrOptions: 'v1beta1'|firestore_v1beta1.Options) { + return getAPI('firestore', versionOrOptions, VERSIONS); +} diff --git a/src/apis/firestore/v1beta1.ts b/src/apis/firestore/v1beta1.ts index 650dd353653..f3b9bd5236d 100644 --- a/src/apis/firestore/v1beta1.ts +++ b/src/apis/firestore/v1beta1.ts @@ -47,12 +47,12 @@ export namespace firestore_v1beta1 { */ export class Firestore { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/fitness/index.ts b/src/apis/fitness/index.ts new file mode 100644 index 00000000000..162430bf78b --- /dev/null +++ b/src/apis/fitness/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {fitness_v1} from './v1'; + +export const VERSIONS = { + 'v1': fitness_v1.Fitness, +}; + +export function fitness(version: 'v1'): fitness_v1.Fitness; +export function fitness(options: fitness_v1.Options): fitness_v1.Fitness; +export function fitness(versionOrOptions: 'v1'| + fitness_v1.Options) { + return getAPI('fitness', versionOrOptions, VERSIONS); +} diff --git a/src/apis/fitness/v1.ts b/src/apis/fitness/v1.ts index 25688dbe88a..36e4cd23ef9 100644 --- a/src/apis/fitness/v1.ts +++ b/src/apis/fitness/v1.ts @@ -48,12 +48,12 @@ export namespace fitness_v1 { */ export class Fitness { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/fusiontables/index.ts b/src/apis/fusiontables/index.ts new file mode 100644 index 00000000000..d29fbccb461 --- /dev/null +++ b/src/apis/fusiontables/index.ts @@ -0,0 +1,36 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {fusiontables_v1} from './v1'; +import {fusiontables_v2} from './v2'; + +export const VERSIONS = { + 'v1': fusiontables_v1.Fusiontables, + 'v2': fusiontables_v2.Fusiontables, +}; + +export function fusiontables(version: 'v1'): fusiontables_v1.Fusiontables; +export function fusiontables(options: fusiontables_v1.Options): + fusiontables_v1.Fusiontables; +export function fusiontables(version: 'v2'): fusiontables_v2.Fusiontables; +export function fusiontables(options: fusiontables_v2.Options): + fusiontables_v2.Fusiontables; +export function +fusiontables( + versionOrOptions: 'v1'|fusiontables_v1.Options|'v2'| + fusiontables_v2.Options) { + return getAPI('fusiontables', versionOrOptions, VERSIONS); +} diff --git a/src/apis/fusiontables/v1.ts b/src/apis/fusiontables/v1.ts index 9c39f369dda..5dafaf482b3 100644 --- a/src/apis/fusiontables/v1.ts +++ b/src/apis/fusiontables/v1.ts @@ -47,7 +47,7 @@ export namespace fusiontables_v1 { */ export class Fusiontables { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; column: Resource$Column; @@ -57,7 +57,7 @@ export namespace fusiontables_v1 { task: Resource$Task; template: Resource$Template; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/fusiontables/v2.ts b/src/apis/fusiontables/v2.ts index faa3c868a59..35a863a7e69 100644 --- a/src/apis/fusiontables/v2.ts +++ b/src/apis/fusiontables/v2.ts @@ -47,7 +47,7 @@ export namespace fusiontables_v2 { */ export class Fusiontables { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; column: Resource$Column; @@ -57,7 +57,7 @@ export namespace fusiontables_v2 { task: Resource$Task; template: Resource$Template; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/games/index.ts b/src/apis/games/index.ts new file mode 100644 index 00000000000..2f5a5125dd1 --- /dev/null +++ b/src/apis/games/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {games_v1} from './v1'; + +export const VERSIONS = { + 'v1': games_v1.Games, +}; + +export function games(version: 'v1'): games_v1.Games; +export function games(options: games_v1.Options): games_v1.Games; +export function games(versionOrOptions: 'v1'| + games_v1.Options) { + return getAPI('games', versionOrOptions, VERSIONS); +} diff --git a/src/apis/games/v1.ts b/src/apis/games/v1.ts index 8ee84b6f6aa..5e8d97b5731 100644 --- a/src/apis/games/v1.ts +++ b/src/apis/games/v1.ts @@ -47,7 +47,7 @@ export namespace games_v1 { */ export class Games { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; achievementDefinitions: Resource$Achievementdefinitions; @@ -66,7 +66,7 @@ export namespace games_v1 { snapshots: Resource$Snapshots; turnBasedMatches: Resource$Turnbasedmatches; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/gamesConfiguration/index.ts b/src/apis/gamesConfiguration/index.ts new file mode 100644 index 00000000000..89f9e7b1192 --- /dev/null +++ b/src/apis/gamesConfiguration/index.ts @@ -0,0 +1,33 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {gamesConfiguration_v1configuration} from './v1configuration'; + +export const VERSIONS = { + 'v1configuration': gamesConfiguration_v1configuration.Gamesconfiguration, +}; + +export function gamesConfiguration(version: 'v1configuration'): + gamesConfiguration_v1configuration.Gamesconfiguration; +export function gamesConfiguration( + options: gamesConfiguration_v1configuration.Options): + gamesConfiguration_v1configuration.Gamesconfiguration; +export function +gamesConfiguration( + versionOrOptions: 'v1configuration'| + gamesConfiguration_v1configuration.Options) { + return getAPI('gamesConfiguration', versionOrOptions, VERSIONS); +} diff --git a/src/apis/gamesConfiguration/v1configuration.ts b/src/apis/gamesConfiguration/v1configuration.ts index 367e690d803..ee6e55dc958 100644 --- a/src/apis/gamesConfiguration/v1configuration.ts +++ b/src/apis/gamesConfiguration/v1configuration.ts @@ -47,14 +47,14 @@ export namespace gamesConfiguration_v1configuration { */ export class Gamesconfiguration { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; achievementConfigurations: Resource$Achievementconfigurations; imageConfigurations: Resource$Imageconfigurations; leaderboardConfigurations: Resource$Leaderboardconfigurations; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/gamesManagement/index.ts b/src/apis/gamesManagement/index.ts new file mode 100644 index 00000000000..86661ddff04 --- /dev/null +++ b/src/apis/gamesManagement/index.ts @@ -0,0 +1,31 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {gamesManagement_v1management} from './v1management'; + +export const VERSIONS = { + 'v1management': gamesManagement_v1management.Gamesmanagement, +}; + +export function gamesManagement(version: 'v1management'): + gamesManagement_v1management.Gamesmanagement; +export function gamesManagement(options: gamesManagement_v1management.Options): + gamesManagement_v1management.Gamesmanagement; +export function +gamesManagement( + versionOrOptions: 'v1management'|gamesManagement_v1management.Options) { + return getAPI('gamesManagement', versionOrOptions, VERSIONS); +} diff --git a/src/apis/gamesManagement/v1management.ts b/src/apis/gamesManagement/v1management.ts index 1e1496f1de4..47340bd42bb 100644 --- a/src/apis/gamesManagement/v1management.ts +++ b/src/apis/gamesManagement/v1management.ts @@ -47,7 +47,7 @@ export namespace gamesManagement_v1management { */ export class Gamesmanagement { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; achievements: Resource$Achievements; @@ -59,7 +59,7 @@ export namespace gamesManagement_v1management { scores: Resource$Scores; turnBasedMatches: Resource$Turnbasedmatches; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/genomics/index.ts b/src/apis/genomics/index.ts new file mode 100644 index 00000000000..8307020e098 --- /dev/null +++ b/src/apis/genomics/index.ts @@ -0,0 +1,41 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {genomics_v1} from './v1'; +import {genomics_v1alpha2} from './v1alpha2'; +import {genomics_v2alpha1} from './v2alpha1'; + +export const VERSIONS = { + 'v1': genomics_v1.Genomics, + 'v1alpha2': genomics_v1alpha2.Genomics, + 'v2alpha1': genomics_v2alpha1.Genomics, +}; + +export function genomics(version: 'v1'): genomics_v1.Genomics; +export function genomics(options: genomics_v1.Options): genomics_v1.Genomics; +export function genomics(version: 'v1alpha2'): genomics_v1alpha2.Genomics; +export function genomics(options: genomics_v1alpha2.Options): + genomics_v1alpha2.Genomics; +export function genomics(version: 'v2alpha1'): genomics_v2alpha1.Genomics; +export function genomics(options: genomics_v2alpha1.Options): + genomics_v2alpha1.Genomics; +export function genomics< + T = genomics_v1.Genomics | genomics_v1alpha2.Genomics | + genomics_v2alpha1.Genomics>( + versionOrOptions: 'v1'|genomics_v1.Options|'v1alpha2'| + genomics_v1alpha2.Options|'v2alpha1'|genomics_v2alpha1.Options) { + return getAPI('genomics', versionOrOptions, VERSIONS); +} diff --git a/src/apis/genomics/v1.ts b/src/apis/genomics/v1.ts index 068e3a80403..08fc1713584 100644 --- a/src/apis/genomics/v1.ts +++ b/src/apis/genomics/v1.ts @@ -47,7 +47,7 @@ export namespace genomics_v1 { */ export class Genomics { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; annotations: Resource$Annotations; @@ -62,7 +62,7 @@ export namespace genomics_v1 { variants: Resource$Variants; variantsets: Resource$Variantsets; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/genomics/v1alpha2.ts b/src/apis/genomics/v1alpha2.ts index 4be23a2835c..37759c674e1 100644 --- a/src/apis/genomics/v1alpha2.ts +++ b/src/apis/genomics/v1alpha2.ts @@ -47,13 +47,13 @@ export namespace genomics_v1alpha2 { */ export class Genomics { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; operations: Resource$Operations; pipelines: Resource$Pipelines; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/genomics/v2alpha1.ts b/src/apis/genomics/v2alpha1.ts index 793bfe75aa7..7a0acdadee2 100644 --- a/src/apis/genomics/v2alpha1.ts +++ b/src/apis/genomics/v2alpha1.ts @@ -47,14 +47,14 @@ export namespace genomics_v2alpha1 { */ export class Genomics { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; pipelines: Resource$Pipelines; projects: Resource$Projects; workers: Resource$Workers; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/gmail/index.ts b/src/apis/gmail/index.ts new file mode 100644 index 00000000000..78677902294 --- /dev/null +++ b/src/apis/gmail/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {gmail_v1} from './v1'; + +export const VERSIONS = { + 'v1': gmail_v1.Gmail, +}; + +export function gmail(version: 'v1'): gmail_v1.Gmail; +export function gmail(options: gmail_v1.Options): gmail_v1.Gmail; +export function gmail(versionOrOptions: 'v1'| + gmail_v1.Options) { + return getAPI('gmail', versionOrOptions, VERSIONS); +} diff --git a/src/apis/gmail/v1.ts b/src/apis/gmail/v1.ts index ea5eaad681b..6daedaea795 100644 --- a/src/apis/gmail/v1.ts +++ b/src/apis/gmail/v1.ts @@ -47,12 +47,12 @@ export namespace gmail_v1 { */ export class Gmail { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/groupsmigration/index.ts b/src/apis/groupsmigration/index.ts new file mode 100644 index 00000000000..fa74a2ab437 --- /dev/null +++ b/src/apis/groupsmigration/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {groupsmigration_v1} from './v1'; + +export const VERSIONS = { + 'v1': groupsmigration_v1.Groupsmigration, +}; + +export function groupsmigration(version: 'v1'): + groupsmigration_v1.Groupsmigration; +export function groupsmigration(options: groupsmigration_v1.Options): + groupsmigration_v1.Groupsmigration; +export function groupsmigration( + versionOrOptions: 'v1'|groupsmigration_v1.Options) { + return getAPI('groupsmigration', versionOrOptions, VERSIONS); +} diff --git a/src/apis/groupsmigration/v1.ts b/src/apis/groupsmigration/v1.ts index 83514ffd7f0..e7d71a53d6f 100644 --- a/src/apis/groupsmigration/v1.ts +++ b/src/apis/groupsmigration/v1.ts @@ -47,12 +47,12 @@ export namespace groupsmigration_v1 { */ export class Groupsmigration { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; archive: Resource$Archive; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/groupssettings/index.ts b/src/apis/groupssettings/index.ts new file mode 100644 index 00000000000..bad8c00512b --- /dev/null +++ b/src/apis/groupssettings/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {groupssettings_v1} from './v1'; + +export const VERSIONS = { + 'v1': groupssettings_v1.Groupssettings, +}; + +export function groupssettings(version: 'v1'): groupssettings_v1.Groupssettings; +export function groupssettings(options: groupssettings_v1.Options): + groupssettings_v1.Groupssettings; +export function groupssettings( + versionOrOptions: 'v1'|groupssettings_v1.Options) { + return getAPI('groupssettings', versionOrOptions, VERSIONS); +} diff --git a/src/apis/groupssettings/v1.ts b/src/apis/groupssettings/v1.ts index 5c1d057ba6c..9d3e3a045c2 100644 --- a/src/apis/groupssettings/v1.ts +++ b/src/apis/groupssettings/v1.ts @@ -47,12 +47,12 @@ export namespace groupssettings_v1 { */ export class Groupssettings { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; groups: Resource$Groups; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/iam/index.ts b/src/apis/iam/index.ts new file mode 100644 index 00000000000..9ed8ad21f00 --- /dev/null +++ b/src/apis/iam/index.ts @@ -0,0 +1,27 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {iam_v1} from './v1'; + +export const VERSIONS = { + 'v1': iam_v1.Iam, +}; + +export function iam(version: 'v1'): iam_v1.Iam; +export function iam(options: iam_v1.Options): iam_v1.Iam; +export function iam(versionOrOptions: 'v1'|iam_v1.Options) { + return getAPI('iam', versionOrOptions, VERSIONS); +} diff --git a/src/apis/iam/v1.ts b/src/apis/iam/v1.ts index 1df9ad0d34b..9d3fb33026c 100644 --- a/src/apis/iam/v1.ts +++ b/src/apis/iam/v1.ts @@ -49,7 +49,7 @@ export namespace iam_v1 { */ export class Iam { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; iamPolicies: Resource$Iampolicies; @@ -58,7 +58,7 @@ export namespace iam_v1 { projects: Resource$Projects; roles: Resource$Roles; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/identitytoolkit/index.ts b/src/apis/identitytoolkit/index.ts new file mode 100644 index 00000000000..fbb7231b479 --- /dev/null +++ b/src/apis/identitytoolkit/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {identitytoolkit_v3} from './v3'; + +export const VERSIONS = { + 'v3': identitytoolkit_v3.Identitytoolkit, +}; + +export function identitytoolkit(version: 'v3'): + identitytoolkit_v3.Identitytoolkit; +export function identitytoolkit(options: identitytoolkit_v3.Options): + identitytoolkit_v3.Identitytoolkit; +export function identitytoolkit( + versionOrOptions: 'v3'|identitytoolkit_v3.Options) { + return getAPI('identitytoolkit', versionOrOptions, VERSIONS); +} diff --git a/src/apis/identitytoolkit/v3.ts b/src/apis/identitytoolkit/v3.ts index b0134d25ff3..506daa58e82 100644 --- a/src/apis/identitytoolkit/v3.ts +++ b/src/apis/identitytoolkit/v3.ts @@ -47,12 +47,12 @@ export namespace identitytoolkit_v3 { */ export class Identitytoolkit { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; relyingparty: Resource$Relyingparty; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/jobs/index.ts b/src/apis/jobs/index.ts new file mode 100644 index 00000000000..ddd21830159 --- /dev/null +++ b/src/apis/jobs/index.ts @@ -0,0 +1,27 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {jobs_v2} from './v2'; + +export const VERSIONS = { + 'v2': jobs_v2.Jobs, +}; + +export function jobs(version: 'v2'): jobs_v2.Jobs; +export function jobs(options: jobs_v2.Options): jobs_v2.Jobs; +export function jobs(versionOrOptions: 'v2'|jobs_v2.Options) { + return getAPI('jobs', versionOrOptions, VERSIONS); +} diff --git a/src/apis/jobs/v2.ts b/src/apis/jobs/v2.ts index a0c37cf3a7d..b568fd1a883 100644 --- a/src/apis/jobs/v2.ts +++ b/src/apis/jobs/v2.ts @@ -48,14 +48,14 @@ export namespace jobs_v2 { */ export class Jobs { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; companies: Resource$Companies; jobs: Resource$Jobs; v2: Resource$V2; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/kgsearch/index.ts b/src/apis/kgsearch/index.ts new file mode 100644 index 00000000000..bf0f2a12574 --- /dev/null +++ b/src/apis/kgsearch/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {kgsearch_v1} from './v1'; + +export const VERSIONS = { + 'v1': kgsearch_v1.Kgsearch, +}; + +export function kgsearch(version: 'v1'): kgsearch_v1.Kgsearch; +export function kgsearch(options: kgsearch_v1.Options): kgsearch_v1.Kgsearch; +export function kgsearch(versionOrOptions: 'v1'| + kgsearch_v1.Options) { + return getAPI('kgsearch', versionOrOptions, VERSIONS); +} diff --git a/src/apis/kgsearch/v1.ts b/src/apis/kgsearch/v1.ts index 22aa1377980..2cda2025945 100644 --- a/src/apis/kgsearch/v1.ts +++ b/src/apis/kgsearch/v1.ts @@ -47,12 +47,12 @@ export namespace kgsearch_v1 { */ export class Kgsearch { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; entities: Resource$Entities; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/language/index.ts b/src/apis/language/index.ts new file mode 100644 index 00000000000..a1647e0432a --- /dev/null +++ b/src/apis/language/index.ts @@ -0,0 +1,41 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {language_v1} from './v1'; +import {language_v1beta1} from './v1beta1'; +import {language_v1beta2} from './v1beta2'; + +export const VERSIONS = { + 'v1': language_v1.Language, + 'v1beta1': language_v1beta1.Language, + 'v1beta2': language_v1beta2.Language, +}; + +export function language(version: 'v1'): language_v1.Language; +export function language(options: language_v1.Options): language_v1.Language; +export function language(version: 'v1beta1'): language_v1beta1.Language; +export function language(options: language_v1beta1.Options): + language_v1beta1.Language; +export function language(version: 'v1beta2'): language_v1beta2.Language; +export function language(options: language_v1beta2.Options): + language_v1beta2.Language; +export function language< + T = language_v1.Language | language_v1beta1.Language | + language_v1beta2.Language>( + versionOrOptions: 'v1'|language_v1.Options|'v1beta1'| + language_v1beta1.Options|'v1beta2'|language_v1beta2.Options) { + return getAPI('language', versionOrOptions, VERSIONS); +} diff --git a/src/apis/language/v1.ts b/src/apis/language/v1.ts index be0486ee967..25d3b4ec4c8 100644 --- a/src/apis/language/v1.ts +++ b/src/apis/language/v1.ts @@ -49,12 +49,12 @@ export namespace language_v1 { */ export class Language { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; documents: Resource$Documents; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/language/v1beta1.ts b/src/apis/language/v1beta1.ts index 9d5fcea830d..7bb71093f23 100644 --- a/src/apis/language/v1beta1.ts +++ b/src/apis/language/v1beta1.ts @@ -49,12 +49,12 @@ export namespace language_v1beta1 { */ export class Language { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; documents: Resource$Documents; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/language/v1beta2.ts b/src/apis/language/v1beta2.ts index f61a11e46c2..f8031284777 100644 --- a/src/apis/language/v1beta2.ts +++ b/src/apis/language/v1beta2.ts @@ -49,12 +49,12 @@ export namespace language_v1beta2 { */ export class Language { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; documents: Resource$Documents; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/licensing/index.ts b/src/apis/licensing/index.ts new file mode 100644 index 00000000000..cf6cc5d2b3c --- /dev/null +++ b/src/apis/licensing/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {licensing_v1} from './v1'; + +export const VERSIONS = { + 'v1': licensing_v1.Licensing, +}; + +export function licensing(version: 'v1'): licensing_v1.Licensing; +export function licensing(options: licensing_v1.Options): + licensing_v1.Licensing; +export function licensing(versionOrOptions: 'v1'| + licensing_v1.Options) { + return getAPI('licensing', versionOrOptions, VERSIONS); +} diff --git a/src/apis/licensing/v1.ts b/src/apis/licensing/v1.ts index 32caf5ec39c..b29c6c76554 100644 --- a/src/apis/licensing/v1.ts +++ b/src/apis/licensing/v1.ts @@ -47,12 +47,12 @@ export namespace licensing_v1 { */ export class Licensing { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; licenseAssignments: Resource$Licenseassignments; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/logging/index.ts b/src/apis/logging/index.ts new file mode 100644 index 00000000000..2da4fd8145e --- /dev/null +++ b/src/apis/logging/index.ts @@ -0,0 +1,34 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {logging_v2} from './v2'; +import {logging_v2beta1} from './v2beta1'; + +export const VERSIONS = { + 'v2': logging_v2.Logging, + 'v2beta1': logging_v2beta1.Logging, +}; + +export function logging(version: 'v2'): logging_v2.Logging; +export function logging(options: logging_v2.Options): logging_v2.Logging; +export function logging(version: 'v2beta1'): logging_v2beta1.Logging; +export function logging(options: logging_v2beta1.Options): + logging_v2beta1.Logging; +export function logging( + versionOrOptions: 'v2'|logging_v2.Options|'v2beta1'| + logging_v2beta1.Options) { + return getAPI('logging', versionOrOptions, VERSIONS); +} diff --git a/src/apis/logging/v2.ts b/src/apis/logging/v2.ts index 313369e2f22..0a83a29e58c 100644 --- a/src/apis/logging/v2.ts +++ b/src/apis/logging/v2.ts @@ -47,7 +47,7 @@ export namespace logging_v2 { */ export class Logging { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; billingAccounts: Resource$Billingaccounts; @@ -60,7 +60,7 @@ export namespace logging_v2 { projects: Resource$Projects; sinks: Resource$Sinks; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/logging/v2beta1.ts b/src/apis/logging/v2beta1.ts index cb666b4cdb3..436df7309a7 100644 --- a/src/apis/logging/v2beta1.ts +++ b/src/apis/logging/v2beta1.ts @@ -47,7 +47,7 @@ export namespace logging_v2beta1 { */ export class Logging { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; billingAccounts: Resource$Billingaccounts; @@ -56,7 +56,7 @@ export namespace logging_v2beta1 { organizations: Resource$Organizations; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/manufacturers/index.ts b/src/apis/manufacturers/index.ts new file mode 100644 index 00000000000..af5cdb82020 --- /dev/null +++ b/src/apis/manufacturers/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {manufacturers_v1} from './v1'; + +export const VERSIONS = { + 'v1': manufacturers_v1.Manufacturers, +}; + +export function manufacturers(version: 'v1'): manufacturers_v1.Manufacturers; +export function manufacturers(options: manufacturers_v1.Options): + manufacturers_v1.Manufacturers; +export function manufacturers( + versionOrOptions: 'v1'|manufacturers_v1.Options) { + return getAPI('manufacturers', versionOrOptions, VERSIONS); +} diff --git a/src/apis/manufacturers/v1.ts b/src/apis/manufacturers/v1.ts index 30d2382f81d..e51721134a4 100644 --- a/src/apis/manufacturers/v1.ts +++ b/src/apis/manufacturers/v1.ts @@ -47,12 +47,12 @@ export namespace manufacturers_v1 { */ export class Manufacturers { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accounts: Resource$Accounts; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/mirror/index.ts b/src/apis/mirror/index.ts new file mode 100644 index 00000000000..796d85a8ee4 --- /dev/null +++ b/src/apis/mirror/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {mirror_v1} from './v1'; + +export const VERSIONS = { + 'v1': mirror_v1.Mirror, +}; + +export function mirror(version: 'v1'): mirror_v1.Mirror; +export function mirror(options: mirror_v1.Options): mirror_v1.Mirror; +export function mirror(versionOrOptions: 'v1'| + mirror_v1.Options) { + return getAPI('mirror', versionOrOptions, VERSIONS); +} diff --git a/src/apis/mirror/v1.ts b/src/apis/mirror/v1.ts index a1a45b2d88a..b2b1d00c583 100644 --- a/src/apis/mirror/v1.ts +++ b/src/apis/mirror/v1.ts @@ -47,7 +47,7 @@ export namespace mirror_v1 { */ export class Mirror { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accounts: Resource$Accounts; @@ -57,7 +57,7 @@ export namespace mirror_v1 { subscriptions: Resource$Subscriptions; timeline: Resource$Timeline; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/ml/index.ts b/src/apis/ml/index.ts new file mode 100644 index 00000000000..5757b5ae849 --- /dev/null +++ b/src/apis/ml/index.ts @@ -0,0 +1,27 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {ml_v1} from './v1'; + +export const VERSIONS = { + 'v1': ml_v1.Ml, +}; + +export function ml(version: 'v1'): ml_v1.Ml; +export function ml(options: ml_v1.Options): ml_v1.Ml; +export function ml(versionOrOptions: 'v1'|ml_v1.Options) { + return getAPI('ml', versionOrOptions, VERSIONS); +} diff --git a/src/apis/ml/v1.ts b/src/apis/ml/v1.ts index a155f15dee1..856491639c6 100644 --- a/src/apis/ml/v1.ts +++ b/src/apis/ml/v1.ts @@ -47,12 +47,12 @@ export namespace ml_v1 { */ export class Ml { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/monitoring/index.ts b/src/apis/monitoring/index.ts new file mode 100644 index 00000000000..12ad6c8ede8 --- /dev/null +++ b/src/apis/monitoring/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {monitoring_v3} from './v3'; + +export const VERSIONS = { + 'v3': monitoring_v3.Monitoring, +}; + +export function monitoring(version: 'v3'): monitoring_v3.Monitoring; +export function monitoring(options: monitoring_v3.Options): + monitoring_v3.Monitoring; +export function monitoring( + versionOrOptions: 'v3'|monitoring_v3.Options) { + return getAPI('monitoring', versionOrOptions, VERSIONS); +} diff --git a/src/apis/monitoring/v3.ts b/src/apis/monitoring/v3.ts index e596b066c6b..78ab6c466fe 100644 --- a/src/apis/monitoring/v3.ts +++ b/src/apis/monitoring/v3.ts @@ -49,13 +49,13 @@ export namespace monitoring_v3 { */ export class Monitoring { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; uptimeCheckIps: Resource$Uptimecheckips; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/oauth2/index.ts b/src/apis/oauth2/index.ts new file mode 100644 index 00000000000..3eca7dc7950 --- /dev/null +++ b/src/apis/oauth2/index.ts @@ -0,0 +1,32 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {oauth2_v1} from './v1'; +import {oauth2_v2} from './v2'; + +export const VERSIONS = { + 'v1': oauth2_v1.Oauth2, + 'v2': oauth2_v2.Oauth2, +}; + +export function oauth2(version: 'v1'): oauth2_v1.Oauth2; +export function oauth2(options: oauth2_v1.Options): oauth2_v1.Oauth2; +export function oauth2(version: 'v2'): oauth2_v2.Oauth2; +export function oauth2(options: oauth2_v2.Options): oauth2_v2.Oauth2; +export function oauth2( + versionOrOptions: 'v1'|oauth2_v1.Options|'v2'|oauth2_v2.Options) { + return getAPI('oauth2', versionOrOptions, VERSIONS); +} diff --git a/src/apis/oauth2/v1.ts b/src/apis/oauth2/v1.ts index e2e00211b03..02972932826 100644 --- a/src/apis/oauth2/v1.ts +++ b/src/apis/oauth2/v1.ts @@ -47,12 +47,12 @@ export namespace oauth2_v1 { */ export class Oauth2 { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; userinfo: Resource$Userinfo; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/oauth2/v2.ts b/src/apis/oauth2/v2.ts index b79026ac682..2794ceac5f3 100644 --- a/src/apis/oauth2/v2.ts +++ b/src/apis/oauth2/v2.ts @@ -47,12 +47,12 @@ export namespace oauth2_v2 { */ export class Oauth2 { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; userinfo: Resource$Userinfo; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/oslogin/index.ts b/src/apis/oslogin/index.ts new file mode 100644 index 00000000000..ce5547d3e59 --- /dev/null +++ b/src/apis/oslogin/index.ts @@ -0,0 +1,40 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {oslogin_v1} from './v1'; +import {oslogin_v1alpha} from './v1alpha'; +import {oslogin_v1beta} from './v1beta'; + +export const VERSIONS = { + 'v1': oslogin_v1.Oslogin, + 'v1alpha': oslogin_v1alpha.Oslogin, + 'v1beta': oslogin_v1beta.Oslogin, +}; + +export function oslogin(version: 'v1'): oslogin_v1.Oslogin; +export function oslogin(options: oslogin_v1.Options): oslogin_v1.Oslogin; +export function oslogin(version: 'v1alpha'): oslogin_v1alpha.Oslogin; +export function oslogin(options: oslogin_v1alpha.Options): + oslogin_v1alpha.Oslogin; +export function oslogin(version: 'v1beta'): oslogin_v1beta.Oslogin; +export function oslogin(options: oslogin_v1beta.Options): + oslogin_v1beta.Oslogin; +export function oslogin< + T = oslogin_v1.Oslogin | oslogin_v1alpha.Oslogin | oslogin_v1beta.Oslogin>( + versionOrOptions: 'v1'|oslogin_v1.Options|'v1alpha'| + oslogin_v1alpha.Options|'v1beta'|oslogin_v1beta.Options) { + return getAPI('oslogin', versionOrOptions, VERSIONS); +} diff --git a/src/apis/oslogin/v1.ts b/src/apis/oslogin/v1.ts index 950979c7b41..d6bf9da3cb6 100644 --- a/src/apis/oslogin/v1.ts +++ b/src/apis/oslogin/v1.ts @@ -47,12 +47,12 @@ export namespace oslogin_v1 { */ export class Oslogin { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/oslogin/v1alpha.ts b/src/apis/oslogin/v1alpha.ts index d323d25a1ec..afddcc49a66 100644 --- a/src/apis/oslogin/v1alpha.ts +++ b/src/apis/oslogin/v1alpha.ts @@ -47,12 +47,12 @@ export namespace oslogin_v1alpha { */ export class Oslogin { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/oslogin/v1beta.ts b/src/apis/oslogin/v1beta.ts index 864a09df35e..87b39977aca 100644 --- a/src/apis/oslogin/v1beta.ts +++ b/src/apis/oslogin/v1beta.ts @@ -47,12 +47,12 @@ export namespace oslogin_v1beta { */ export class Oslogin { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/pagespeedonline/index.ts b/src/apis/pagespeedonline/index.ts new file mode 100644 index 00000000000..9a449b83efa --- /dev/null +++ b/src/apis/pagespeedonline/index.ts @@ -0,0 +1,46 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {pagespeedonline_v1} from './v1'; +import {pagespeedonline_v2} from './v2'; +import {pagespeedonline_v4} from './v4'; + +export const VERSIONS = { + 'v1': pagespeedonline_v1.Pagespeedonline, + 'v2': pagespeedonline_v2.Pagespeedonline, + 'v4': pagespeedonline_v4.Pagespeedonline, +}; + +export function pagespeedonline(version: 'v1'): + pagespeedonline_v1.Pagespeedonline; +export function pagespeedonline(options: pagespeedonline_v1.Options): + pagespeedonline_v1.Pagespeedonline; +export function pagespeedonline(version: 'v2'): + pagespeedonline_v2.Pagespeedonline; +export function pagespeedonline(options: pagespeedonline_v2.Options): + pagespeedonline_v2.Pagespeedonline; +export function pagespeedonline(version: 'v4'): + pagespeedonline_v4.Pagespeedonline; +export function pagespeedonline(options: pagespeedonline_v4.Options): + pagespeedonline_v4.Pagespeedonline; +export function pagespeedonline< + T = pagespeedonline_v1.Pagespeedonline | + pagespeedonline_v2.Pagespeedonline | + pagespeedonline_v4.Pagespeedonline>( + versionOrOptions: 'v1'|pagespeedonline_v1.Options|'v2'| + pagespeedonline_v2.Options|'v4'|pagespeedonline_v4.Options) { + return getAPI('pagespeedonline', versionOrOptions, VERSIONS); +} diff --git a/src/apis/pagespeedonline/v1.ts b/src/apis/pagespeedonline/v1.ts index 0fcf7f361af..93cb132dfaa 100644 --- a/src/apis/pagespeedonline/v1.ts +++ b/src/apis/pagespeedonline/v1.ts @@ -48,12 +48,12 @@ export namespace pagespeedonline_v1 { */ export class Pagespeedonline { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; pagespeedapi: Resource$Pagespeedapi; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/pagespeedonline/v2.ts b/src/apis/pagespeedonline/v2.ts index ba509acca14..6f0ab6142d7 100644 --- a/src/apis/pagespeedonline/v2.ts +++ b/src/apis/pagespeedonline/v2.ts @@ -48,12 +48,12 @@ export namespace pagespeedonline_v2 { */ export class Pagespeedonline { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; pagespeedapi: Resource$Pagespeedapi; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/pagespeedonline/v4.ts b/src/apis/pagespeedonline/v4.ts index 4d23d3a9d60..4fa898d3bec 100644 --- a/src/apis/pagespeedonline/v4.ts +++ b/src/apis/pagespeedonline/v4.ts @@ -48,12 +48,12 @@ export namespace pagespeedonline_v4 { */ export class Pagespeedonline { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; pagespeedapi: Resource$Pagespeedapi; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/partners/index.ts b/src/apis/partners/index.ts new file mode 100644 index 00000000000..5dd06fb4cb7 --- /dev/null +++ b/src/apis/partners/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {partners_v2} from './v2'; + +export const VERSIONS = { + 'v2': partners_v2.Partners, +}; + +export function partners(version: 'v2'): partners_v2.Partners; +export function partners(options: partners_v2.Options): partners_v2.Partners; +export function partners(versionOrOptions: 'v2'| + partners_v2.Options) { + return getAPI('partners', versionOrOptions, VERSIONS); +} diff --git a/src/apis/partners/v2.ts b/src/apis/partners/v2.ts index 938b4faf987..43c463fac47 100644 --- a/src/apis/partners/v2.ts +++ b/src/apis/partners/v2.ts @@ -48,7 +48,7 @@ export namespace partners_v2 { */ export class Partners { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; analytics: Resource$Analytics; @@ -61,7 +61,7 @@ export namespace partners_v2 { userStates: Resource$Userstates; v2: Resource$V2; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/people/index.ts b/src/apis/people/index.ts new file mode 100644 index 00000000000..60ac920d94b --- /dev/null +++ b/src/apis/people/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {people_v1} from './v1'; + +export const VERSIONS = { + 'v1': people_v1.People, +}; + +export function people(version: 'v1'): people_v1.People; +export function people(options: people_v1.Options): people_v1.People; +export function people(versionOrOptions: 'v1'| + people_v1.Options) { + return getAPI('people', versionOrOptions, VERSIONS); +} diff --git a/src/apis/people/v1.ts b/src/apis/people/v1.ts index a4fc680b999..d46634a4954 100644 --- a/src/apis/people/v1.ts +++ b/src/apis/people/v1.ts @@ -47,13 +47,13 @@ export namespace people_v1 { */ export class People { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; contactGroups: Resource$Contactgroups; people: Resource$People; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/photoslibrary/index.ts b/src/apis/photoslibrary/index.ts new file mode 100644 index 00000000000..6258b0f71e3 --- /dev/null +++ b/src/apis/photoslibrary/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {photoslibrary_v1} from './v1'; + +export const VERSIONS = { + 'v1': photoslibrary_v1.Photoslibrary, +}; + +export function photoslibrary(version: 'v1'): photoslibrary_v1.Photoslibrary; +export function photoslibrary(options: photoslibrary_v1.Options): + photoslibrary_v1.Photoslibrary; +export function photoslibrary( + versionOrOptions: 'v1'|photoslibrary_v1.Options) { + return getAPI('photoslibrary', versionOrOptions, VERSIONS); +} diff --git a/src/apis/photoslibrary/v1.ts b/src/apis/photoslibrary/v1.ts index 8630bbb7db4..efe15d2d8ed 100644 --- a/src/apis/photoslibrary/v1.ts +++ b/src/apis/photoslibrary/v1.ts @@ -47,14 +47,14 @@ export namespace photoslibrary_v1 { */ export class Photoslibrary { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; albums: Resource$Albums; mediaItems: Resource$Mediaitems; sharedAlbums: Resource$Sharedalbums; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/playcustomapp/index.ts b/src/apis/playcustomapp/index.ts new file mode 100644 index 00000000000..6fe0132fda7 --- /dev/null +++ b/src/apis/playcustomapp/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {playcustomapp_v1} from './v1'; + +export const VERSIONS = { + 'v1': playcustomapp_v1.Playcustomapp, +}; + +export function playcustomapp(version: 'v1'): playcustomapp_v1.Playcustomapp; +export function playcustomapp(options: playcustomapp_v1.Options): + playcustomapp_v1.Playcustomapp; +export function playcustomapp( + versionOrOptions: 'v1'|playcustomapp_v1.Options) { + return getAPI('playcustomapp', versionOrOptions, VERSIONS); +} diff --git a/src/apis/playcustomapp/v1.ts b/src/apis/playcustomapp/v1.ts index 62b62a86a16..d9098ee1091 100644 --- a/src/apis/playcustomapp/v1.ts +++ b/src/apis/playcustomapp/v1.ts @@ -47,12 +47,12 @@ export namespace playcustomapp_v1 { */ export class Playcustomapp { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accounts: Resource$Accounts; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/plus/index.ts b/src/apis/plus/index.ts new file mode 100644 index 00000000000..6c75157066a --- /dev/null +++ b/src/apis/plus/index.ts @@ -0,0 +1,27 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {plus_v1} from './v1'; + +export const VERSIONS = { + 'v1': plus_v1.Plus, +}; + +export function plus(version: 'v1'): plus_v1.Plus; +export function plus(options: plus_v1.Options): plus_v1.Plus; +export function plus(versionOrOptions: 'v1'|plus_v1.Options) { + return getAPI('plus', versionOrOptions, VERSIONS); +} diff --git a/src/apis/plus/v1.ts b/src/apis/plus/v1.ts index 3b6b421c2a7..4a4b3179fc5 100644 --- a/src/apis/plus/v1.ts +++ b/src/apis/plus/v1.ts @@ -47,14 +47,14 @@ export namespace plus_v1 { */ export class Plus { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; activities: Resource$Activities; comments: Resource$Comments; people: Resource$People; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/plusDomains/index.ts b/src/apis/plusDomains/index.ts new file mode 100644 index 00000000000..dad9c13e2dd --- /dev/null +++ b/src/apis/plusDomains/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {plusDomains_v1} from './v1'; + +export const VERSIONS = { + 'v1': plusDomains_v1.Plusdomains, +}; + +export function plusDomains(version: 'v1'): plusDomains_v1.Plusdomains; +export function plusDomains(options: plusDomains_v1.Options): + plusDomains_v1.Plusdomains; +export function plusDomains( + versionOrOptions: 'v1'|plusDomains_v1.Options) { + return getAPI('plusDomains', versionOrOptions, VERSIONS); +} diff --git a/src/apis/plusDomains/v1.ts b/src/apis/plusDomains/v1.ts index 5325507293c..8f8a696d33f 100644 --- a/src/apis/plusDomains/v1.ts +++ b/src/apis/plusDomains/v1.ts @@ -47,7 +47,7 @@ export namespace plusDomains_v1 { */ export class Plusdomains { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; activities: Resource$Activities; @@ -57,7 +57,7 @@ export namespace plusDomains_v1 { media: Resource$Media; people: Resource$People; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/poly/index.ts b/src/apis/poly/index.ts new file mode 100644 index 00000000000..eb67bc4c163 --- /dev/null +++ b/src/apis/poly/index.ts @@ -0,0 +1,27 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {poly_v1} from './v1'; + +export const VERSIONS = { + 'v1': poly_v1.Poly, +}; + +export function poly(version: 'v1'): poly_v1.Poly; +export function poly(options: poly_v1.Options): poly_v1.Poly; +export function poly(versionOrOptions: 'v1'|poly_v1.Options) { + return getAPI('poly', versionOrOptions, VERSIONS); +} diff --git a/src/apis/poly/v1.ts b/src/apis/poly/v1.ts index ff87d0fddf0..cdfb8cd8eff 100644 --- a/src/apis/poly/v1.ts +++ b/src/apis/poly/v1.ts @@ -48,13 +48,13 @@ export namespace poly_v1 { */ export class Poly { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; assets: Resource$Assets; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/proximitybeacon/index.ts b/src/apis/proximitybeacon/index.ts new file mode 100644 index 00000000000..5aebf4419ee --- /dev/null +++ b/src/apis/proximitybeacon/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {proximitybeacon_v1beta1} from './v1beta1'; + +export const VERSIONS = { + 'v1beta1': proximitybeacon_v1beta1.Proximitybeacon, +}; + +export function proximitybeacon(version: 'v1beta1'): + proximitybeacon_v1beta1.Proximitybeacon; +export function proximitybeacon(options: proximitybeacon_v1beta1.Options): + proximitybeacon_v1beta1.Proximitybeacon; +export function proximitybeacon( + versionOrOptions: 'v1beta1'|proximitybeacon_v1beta1.Options) { + return getAPI('proximitybeacon', versionOrOptions, VERSIONS); +} diff --git a/src/apis/proximitybeacon/v1beta1.ts b/src/apis/proximitybeacon/v1beta1.ts index 7971b1c5a05..1c9592733a2 100644 --- a/src/apis/proximitybeacon/v1beta1.ts +++ b/src/apis/proximitybeacon/v1beta1.ts @@ -47,7 +47,7 @@ export namespace proximitybeacon_v1beta1 { */ export class Proximitybeacon { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; beaconinfo: Resource$Beaconinfo; @@ -55,7 +55,7 @@ export namespace proximitybeacon_v1beta1 { namespaces: Resource$Namespaces; v1beta1: Resource$V1beta1; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/pubsub/index.ts b/src/apis/pubsub/index.ts new file mode 100644 index 00000000000..f1af5f40e35 --- /dev/null +++ b/src/apis/pubsub/index.ts @@ -0,0 +1,39 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {pubsub_v1} from './v1'; +import {pubsub_v1beta1a} from './v1beta1a'; +import {pubsub_v1beta2} from './v1beta2'; + +export const VERSIONS = { + 'v1': pubsub_v1.Pubsub, + 'v1beta1a': pubsub_v1beta1a.Pubsub, + 'v1beta2': pubsub_v1beta2.Pubsub, +}; + +export function pubsub(version: 'v1'): pubsub_v1.Pubsub; +export function pubsub(options: pubsub_v1.Options): pubsub_v1.Pubsub; +export function pubsub(version: 'v1beta1a'): pubsub_v1beta1a.Pubsub; +export function pubsub(options: pubsub_v1beta1a.Options): + pubsub_v1beta1a.Pubsub; +export function pubsub(version: 'v1beta2'): pubsub_v1beta2.Pubsub; +export function pubsub(options: pubsub_v1beta2.Options): pubsub_v1beta2.Pubsub; +export function +pubsub( + versionOrOptions: 'v1'|pubsub_v1.Options|'v1beta1a'| + pubsub_v1beta1a.Options|'v1beta2'|pubsub_v1beta2.Options) { + return getAPI('pubsub', versionOrOptions, VERSIONS); +} diff --git a/src/apis/pubsub/v1.ts b/src/apis/pubsub/v1.ts index 653c7c2b4e1..1cf261312f1 100644 --- a/src/apis/pubsub/v1.ts +++ b/src/apis/pubsub/v1.ts @@ -48,12 +48,12 @@ export namespace pubsub_v1 { */ export class Pubsub { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/pubsub/v1beta1a.ts b/src/apis/pubsub/v1beta1a.ts index ce45a8c0563..25e48affb14 100644 --- a/src/apis/pubsub/v1beta1a.ts +++ b/src/apis/pubsub/v1beta1a.ts @@ -48,13 +48,13 @@ export namespace pubsub_v1beta1a { */ export class Pubsub { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; subscriptions: Resource$Subscriptions; topics: Resource$Topics; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/pubsub/v1beta2.ts b/src/apis/pubsub/v1beta2.ts index ad4d8b4c65e..f9e4bbf80c6 100644 --- a/src/apis/pubsub/v1beta2.ts +++ b/src/apis/pubsub/v1beta2.ts @@ -48,12 +48,12 @@ export namespace pubsub_v1beta2 { */ export class Pubsub { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/redis/index.ts b/src/apis/redis/index.ts new file mode 100644 index 00000000000..b46715c42c4 --- /dev/null +++ b/src/apis/redis/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {redis_v1beta1} from './v1beta1'; + +export const VERSIONS = { + 'v1beta1': redis_v1beta1.Redis, +}; + +export function redis(version: 'v1beta1'): redis_v1beta1.Redis; +export function redis(options: redis_v1beta1.Options): redis_v1beta1.Redis; +export function redis(versionOrOptions: 'v1beta1'| + redis_v1beta1.Options) { + return getAPI('redis', versionOrOptions, VERSIONS); +} diff --git a/src/apis/redis/v1beta1.ts b/src/apis/redis/v1beta1.ts index 099563d640b..6da89b04466 100644 --- a/src/apis/redis/v1beta1.ts +++ b/src/apis/redis/v1beta1.ts @@ -48,12 +48,12 @@ export namespace redis_v1beta1 { */ export class Redis { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/replicapool/index.ts b/src/apis/replicapool/index.ts new file mode 100644 index 00000000000..aa964717deb --- /dev/null +++ b/src/apis/replicapool/index.ts @@ -0,0 +1,38 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {replicapool_v1beta1} from './v1beta1'; +import {replicapool_v1beta2} from './v1beta2'; + +export const VERSIONS = { + 'v1beta1': replicapool_v1beta1.Replicapool, + 'v1beta2': replicapool_v1beta2.Replicapool, +}; + +export function replicapool(version: 'v1beta1'): + replicapool_v1beta1.Replicapool; +export function replicapool(options: replicapool_v1beta1.Options): + replicapool_v1beta1.Replicapool; +export function replicapool(version: 'v1beta2'): + replicapool_v1beta2.Replicapool; +export function replicapool(options: replicapool_v1beta2.Options): + replicapool_v1beta2.Replicapool; +export function replicapool< + T = replicapool_v1beta1.Replicapool | replicapool_v1beta2.Replicapool>( + versionOrOptions: 'v1beta1'| + replicapool_v1beta1.Options|'v1beta2'|replicapool_v1beta2.Options) { + return getAPI('replicapool', versionOrOptions, VERSIONS); +} diff --git a/src/apis/replicapool/v1beta1.ts b/src/apis/replicapool/v1beta1.ts index aae95ae860c..37e0f979a2d 100644 --- a/src/apis/replicapool/v1beta1.ts +++ b/src/apis/replicapool/v1beta1.ts @@ -48,13 +48,13 @@ export namespace replicapool_v1beta1 { */ export class Replicapool { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; pools: Resource$Pools; replicas: Resource$Replicas; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/replicapool/v1beta2.ts b/src/apis/replicapool/v1beta2.ts index ad2683a0763..e4a0b360ef4 100644 --- a/src/apis/replicapool/v1beta2.ts +++ b/src/apis/replicapool/v1beta2.ts @@ -48,13 +48,13 @@ export namespace replicapool_v1beta2 { */ export class Replicapool { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; instanceGroupManagers: Resource$Instancegroupmanagers; zoneOperations: Resource$Zoneoperations; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/replicapoolupdater/index.ts b/src/apis/replicapoolupdater/index.ts new file mode 100644 index 00000000000..e6a263254b8 --- /dev/null +++ b/src/apis/replicapoolupdater/index.ts @@ -0,0 +1,31 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {replicapoolupdater_v1beta1} from './v1beta1'; + +export const VERSIONS = { + 'v1beta1': replicapoolupdater_v1beta1.Replicapoolupdater, +}; + +export function replicapoolupdater(version: 'v1beta1'): + replicapoolupdater_v1beta1.Replicapoolupdater; +export function replicapoolupdater(options: replicapoolupdater_v1beta1.Options): + replicapoolupdater_v1beta1.Replicapoolupdater; +export function +replicapoolupdater( + versionOrOptions: 'v1beta1'|replicapoolupdater_v1beta1.Options) { + return getAPI('replicapoolupdater', versionOrOptions, VERSIONS); +} diff --git a/src/apis/replicapoolupdater/v1beta1.ts b/src/apis/replicapoolupdater/v1beta1.ts index 81e1970a35c..0774e0b87e1 100644 --- a/src/apis/replicapoolupdater/v1beta1.ts +++ b/src/apis/replicapoolupdater/v1beta1.ts @@ -49,13 +49,13 @@ export namespace replicapoolupdater_v1beta1 { */ export class Replicapoolupdater { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; rollingUpdates: Resource$Rollingupdates; zoneOperations: Resource$Zoneoperations; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/reseller/index.ts b/src/apis/reseller/index.ts new file mode 100644 index 00000000000..d48a257c444 --- /dev/null +++ b/src/apis/reseller/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {reseller_v1} from './v1'; + +export const VERSIONS = { + 'v1': reseller_v1.Reseller, +}; + +export function reseller(version: 'v1'): reseller_v1.Reseller; +export function reseller(options: reseller_v1.Options): reseller_v1.Reseller; +export function reseller(versionOrOptions: 'v1'| + reseller_v1.Options) { + return getAPI('reseller', versionOrOptions, VERSIONS); +} diff --git a/src/apis/reseller/v1.ts b/src/apis/reseller/v1.ts index 939f90d4c33..0c98db66780 100644 --- a/src/apis/reseller/v1.ts +++ b/src/apis/reseller/v1.ts @@ -47,14 +47,14 @@ export namespace reseller_v1 { */ export class Reseller { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; customers: Resource$Customers; resellernotify: Resource$Resellernotify; subscriptions: Resource$Subscriptions; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/resourceviews/index.ts b/src/apis/resourceviews/index.ts new file mode 100644 index 00000000000..2b006eba300 --- /dev/null +++ b/src/apis/resourceviews/index.ts @@ -0,0 +1,39 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {resourceviews_v1beta1} from './v1beta1'; +import {resourceviews_v1beta2} from './v1beta2'; + +export const VERSIONS = { + 'v1beta1': resourceviews_v1beta1.Resourceviews, + 'v1beta2': resourceviews_v1beta2.Resourceviews, +}; + +export function resourceviews(version: 'v1beta1'): + resourceviews_v1beta1.Resourceviews; +export function resourceviews(options: resourceviews_v1beta1.Options): + resourceviews_v1beta1.Resourceviews; +export function resourceviews(version: 'v1beta2'): + resourceviews_v1beta2.Resourceviews; +export function resourceviews(options: resourceviews_v1beta2.Options): + resourceviews_v1beta2.Resourceviews; +export function resourceviews< + T = resourceviews_v1beta1.Resourceviews | + resourceviews_v1beta2.Resourceviews>( + versionOrOptions: 'v1beta1'| + resourceviews_v1beta1.Options|'v1beta2'|resourceviews_v1beta2.Options) { + return getAPI('resourceviews', versionOrOptions, VERSIONS); +} diff --git a/src/apis/resourceviews/v1beta1.ts b/src/apis/resourceviews/v1beta1.ts index 9f33beec5d0..553d0237e5b 100644 --- a/src/apis/resourceviews/v1beta1.ts +++ b/src/apis/resourceviews/v1beta1.ts @@ -48,13 +48,13 @@ export namespace resourceviews_v1beta1 { */ export class Resourceviews { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; regionViews: Resource$Regionviews; zoneViews: Resource$Zoneviews; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/resourceviews/v1beta2.ts b/src/apis/resourceviews/v1beta2.ts index e8947573a39..825293e7853 100644 --- a/src/apis/resourceviews/v1beta2.ts +++ b/src/apis/resourceviews/v1beta2.ts @@ -48,13 +48,13 @@ export namespace resourceviews_v1beta2 { */ export class Resourceviews { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; zoneOperations: Resource$Zoneoperations; zoneViews: Resource$Zoneviews; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/runtimeconfig/index.ts b/src/apis/runtimeconfig/index.ts new file mode 100644 index 00000000000..f83840ed7f9 --- /dev/null +++ b/src/apis/runtimeconfig/index.ts @@ -0,0 +1,37 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {runtimeconfig_v1} from './v1'; +import {runtimeconfig_v1beta1} from './v1beta1'; + +export const VERSIONS = { + 'v1': runtimeconfig_v1.Runtimeconfig, + 'v1beta1': runtimeconfig_v1beta1.Runtimeconfig, +}; + +export function runtimeconfig(version: 'v1'): runtimeconfig_v1.Runtimeconfig; +export function runtimeconfig(options: runtimeconfig_v1.Options): + runtimeconfig_v1.Runtimeconfig; +export function runtimeconfig(version: 'v1beta1'): + runtimeconfig_v1beta1.Runtimeconfig; +export function runtimeconfig(options: runtimeconfig_v1beta1.Options): + runtimeconfig_v1beta1.Runtimeconfig; +export function runtimeconfig< + T = runtimeconfig_v1.Runtimeconfig | runtimeconfig_v1beta1.Runtimeconfig>( + versionOrOptions: 'v1'| + runtimeconfig_v1.Options|'v1beta1'|runtimeconfig_v1beta1.Options) { + return getAPI('runtimeconfig', versionOrOptions, VERSIONS); +} diff --git a/src/apis/runtimeconfig/v1.ts b/src/apis/runtimeconfig/v1.ts index 7321e4a2aa2..cf3bd680d94 100644 --- a/src/apis/runtimeconfig/v1.ts +++ b/src/apis/runtimeconfig/v1.ts @@ -50,12 +50,12 @@ export namespace runtimeconfig_v1 { */ export class Runtimeconfig { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; operations: Resource$Operations; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/runtimeconfig/v1beta1.ts b/src/apis/runtimeconfig/v1beta1.ts index ab0e52e15ea..346bd239699 100644 --- a/src/apis/runtimeconfig/v1beta1.ts +++ b/src/apis/runtimeconfig/v1beta1.ts @@ -50,12 +50,12 @@ export namespace runtimeconfig_v1beta1 { */ export class Runtimeconfig { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/safebrowsing/index.ts b/src/apis/safebrowsing/index.ts new file mode 100644 index 00000000000..1027968a935 --- /dev/null +++ b/src/apis/safebrowsing/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {safebrowsing_v4} from './v4'; + +export const VERSIONS = { + 'v4': safebrowsing_v4.Safebrowsing, +}; + +export function safebrowsing(version: 'v4'): safebrowsing_v4.Safebrowsing; +export function safebrowsing(options: safebrowsing_v4.Options): + safebrowsing_v4.Safebrowsing; +export function safebrowsing( + versionOrOptions: 'v4'|safebrowsing_v4.Options) { + return getAPI('safebrowsing', versionOrOptions, VERSIONS); +} diff --git a/src/apis/safebrowsing/v4.ts b/src/apis/safebrowsing/v4.ts index 6d34dddb891..68b5b23af04 100644 --- a/src/apis/safebrowsing/v4.ts +++ b/src/apis/safebrowsing/v4.ts @@ -48,7 +48,7 @@ export namespace safebrowsing_v4 { */ export class Safebrowsing { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; encodedFullHashes: Resource$Encodedfullhashes; @@ -59,7 +59,7 @@ export namespace safebrowsing_v4 { threatListUpdates: Resource$Threatlistupdates; threatMatches: Resource$Threatmatches; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/script/index.ts b/src/apis/script/index.ts new file mode 100644 index 00000000000..567b3e521da --- /dev/null +++ b/src/apis/script/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {script_v1} from './v1'; + +export const VERSIONS = { + 'v1': script_v1.Script, +}; + +export function script(version: 'v1'): script_v1.Script; +export function script(options: script_v1.Options): script_v1.Script; +export function script(versionOrOptions: 'v1'| + script_v1.Options) { + return getAPI('script', versionOrOptions, VERSIONS); +} diff --git a/src/apis/script/v1.ts b/src/apis/script/v1.ts index 3c07a36c32e..fe114b0649b 100644 --- a/src/apis/script/v1.ts +++ b/src/apis/script/v1.ts @@ -54,14 +54,14 @@ export namespace script_v1 { */ export class Script { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; processes: Resource$Processes; projects: Resource$Projects; scripts: Resource$Scripts; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/searchconsole/index.ts b/src/apis/searchconsole/index.ts new file mode 100644 index 00000000000..60d4152a553 --- /dev/null +++ b/src/apis/searchconsole/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {searchconsole_v1} from './v1'; + +export const VERSIONS = { + 'v1': searchconsole_v1.Searchconsole, +}; + +export function searchconsole(version: 'v1'): searchconsole_v1.Searchconsole; +export function searchconsole(options: searchconsole_v1.Options): + searchconsole_v1.Searchconsole; +export function searchconsole( + versionOrOptions: 'v1'|searchconsole_v1.Options) { + return getAPI('searchconsole', versionOrOptions, VERSIONS); +} diff --git a/src/apis/searchconsole/v1.ts b/src/apis/searchconsole/v1.ts index d22a16e995f..752bf7393fb 100644 --- a/src/apis/searchconsole/v1.ts +++ b/src/apis/searchconsole/v1.ts @@ -47,12 +47,12 @@ export namespace searchconsole_v1 { */ export class Searchconsole { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; urlTestingTools: Resource$Urltestingtools; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/servicebroker/index.ts b/src/apis/servicebroker/index.ts new file mode 100644 index 00000000000..dc72d87b1f6 --- /dev/null +++ b/src/apis/servicebroker/index.ts @@ -0,0 +1,45 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {servicebroker_v1} from './v1'; +import {servicebroker_v1alpha1} from './v1alpha1'; +import {servicebroker_v1beta1} from './v1beta1'; + +export const VERSIONS = { + 'v1': servicebroker_v1.Servicebroker, + 'v1alpha1': servicebroker_v1alpha1.Servicebroker, + 'v1beta1': servicebroker_v1beta1.Servicebroker, +}; + +export function servicebroker(version: 'v1'): servicebroker_v1.Servicebroker; +export function servicebroker(options: servicebroker_v1.Options): + servicebroker_v1.Servicebroker; +export function servicebroker(version: 'v1alpha1'): + servicebroker_v1alpha1.Servicebroker; +export function servicebroker(options: servicebroker_v1alpha1.Options): + servicebroker_v1alpha1.Servicebroker; +export function servicebroker(version: 'v1beta1'): + servicebroker_v1beta1.Servicebroker; +export function servicebroker(options: servicebroker_v1beta1.Options): + servicebroker_v1beta1.Servicebroker; +export function servicebroker< + T = servicebroker_v1.Servicebroker | servicebroker_v1alpha1.Servicebroker | + servicebroker_v1beta1.Servicebroker>( + versionOrOptions: 'v1'| + servicebroker_v1.Options|'v1alpha1'| + servicebroker_v1alpha1.Options|'v1beta1'|servicebroker_v1beta1.Options) { + return getAPI('servicebroker', versionOrOptions, VERSIONS); +} diff --git a/src/apis/servicebroker/v1.ts b/src/apis/servicebroker/v1.ts index 28bb25ed093..93c9b9d6ca4 100644 --- a/src/apis/servicebroker/v1.ts +++ b/src/apis/servicebroker/v1.ts @@ -49,12 +49,12 @@ export namespace servicebroker_v1 { */ export class Servicebroker { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; v1: Resource$V1; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/servicebroker/v1alpha1.ts b/src/apis/servicebroker/v1alpha1.ts index ee2bc61d5f9..8c4189927d6 100644 --- a/src/apis/servicebroker/v1alpha1.ts +++ b/src/apis/servicebroker/v1alpha1.ts @@ -49,13 +49,13 @@ export namespace servicebroker_v1alpha1 { */ export class Servicebroker { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; v1alpha1: Resource$V1alpha1; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/servicebroker/v1beta1.ts b/src/apis/servicebroker/v1beta1.ts index 694e35709c8..d2a22ef32b9 100644 --- a/src/apis/servicebroker/v1beta1.ts +++ b/src/apis/servicebroker/v1beta1.ts @@ -49,13 +49,13 @@ export namespace servicebroker_v1beta1 { */ export class Servicebroker { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; v1beta1: Resource$V1beta1; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/serviceconsumermanagement/index.ts b/src/apis/serviceconsumermanagement/index.ts new file mode 100644 index 00000000000..5c89effa1fa --- /dev/null +++ b/src/apis/serviceconsumermanagement/index.ts @@ -0,0 +1,32 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {serviceconsumermanagement_v1} from './v1'; + +export const VERSIONS = { + 'v1': serviceconsumermanagement_v1.Serviceconsumermanagement, +}; + +export function serviceconsumermanagement(version: 'v1'): + serviceconsumermanagement_v1.Serviceconsumermanagement; +export function serviceconsumermanagement( + options: serviceconsumermanagement_v1.Options): + serviceconsumermanagement_v1.Serviceconsumermanagement; +export function serviceconsumermanagement< + T = serviceconsumermanagement_v1.Serviceconsumermanagement>( + versionOrOptions: 'v1'|serviceconsumermanagement_v1.Options) { + return getAPI('serviceconsumermanagement', versionOrOptions, VERSIONS); +} diff --git a/src/apis/serviceconsumermanagement/v1.ts b/src/apis/serviceconsumermanagement/v1.ts index 52503ddccc8..addac3bb94e 100644 --- a/src/apis/serviceconsumermanagement/v1.ts +++ b/src/apis/serviceconsumermanagement/v1.ts @@ -48,13 +48,13 @@ export namespace serviceconsumermanagement_v1 { */ export class Serviceconsumermanagement { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; operations: Resource$Operations; services: Resource$Services; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/servicecontrol/index.ts b/src/apis/servicecontrol/index.ts new file mode 100644 index 00000000000..88e9316645e --- /dev/null +++ b/src/apis/servicecontrol/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {servicecontrol_v1} from './v1'; + +export const VERSIONS = { + 'v1': servicecontrol_v1.Servicecontrol, +}; + +export function servicecontrol(version: 'v1'): servicecontrol_v1.Servicecontrol; +export function servicecontrol(options: servicecontrol_v1.Options): + servicecontrol_v1.Servicecontrol; +export function servicecontrol( + versionOrOptions: 'v1'|servicecontrol_v1.Options) { + return getAPI('servicecontrol', versionOrOptions, VERSIONS); +} diff --git a/src/apis/servicecontrol/v1.ts b/src/apis/servicecontrol/v1.ts index 5c03b16f2c8..02447d8b738 100644 --- a/src/apis/servicecontrol/v1.ts +++ b/src/apis/servicecontrol/v1.ts @@ -48,12 +48,12 @@ export namespace servicecontrol_v1 { */ export class Servicecontrol { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; services: Resource$Services; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/servicemanagement/index.ts b/src/apis/servicemanagement/index.ts new file mode 100644 index 00000000000..648f7e0cd61 --- /dev/null +++ b/src/apis/servicemanagement/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {servicemanagement_v1} from './v1'; + +export const VERSIONS = { + 'v1': servicemanagement_v1.Servicemanagement, +}; + +export function servicemanagement(version: 'v1'): + servicemanagement_v1.Servicemanagement; +export function servicemanagement(options: servicemanagement_v1.Options): + servicemanagement_v1.Servicemanagement; +export function servicemanagement( + versionOrOptions: 'v1'|servicemanagement_v1.Options) { + return getAPI('servicemanagement', versionOrOptions, VERSIONS); +} diff --git a/src/apis/servicemanagement/v1.ts b/src/apis/servicemanagement/v1.ts index 7dbda6b6096..c635258c492 100644 --- a/src/apis/servicemanagement/v1.ts +++ b/src/apis/servicemanagement/v1.ts @@ -49,13 +49,13 @@ export namespace servicemanagement_v1 { */ export class Servicemanagement { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; operations: Resource$Operations; services: Resource$Services; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/serviceusage/index.ts b/src/apis/serviceusage/index.ts new file mode 100644 index 00000000000..51ca2b2dd33 --- /dev/null +++ b/src/apis/serviceusage/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {serviceusage_v1beta1} from './v1beta1'; + +export const VERSIONS = { + 'v1beta1': serviceusage_v1beta1.Serviceusage, +}; + +export function serviceusage(version: 'v1beta1'): + serviceusage_v1beta1.Serviceusage; +export function serviceusage(options: serviceusage_v1beta1.Options): + serviceusage_v1beta1.Serviceusage; +export function serviceusage( + versionOrOptions: 'v1beta1'|serviceusage_v1beta1.Options) { + return getAPI('serviceusage', versionOrOptions, VERSIONS); +} diff --git a/src/apis/serviceusage/v1beta1.ts b/src/apis/serviceusage/v1beta1.ts index badcb7e25b2..4844f4d99c8 100644 --- a/src/apis/serviceusage/v1beta1.ts +++ b/src/apis/serviceusage/v1beta1.ts @@ -49,13 +49,13 @@ export namespace serviceusage_v1beta1 { */ export class Serviceusage { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; operations: Resource$Operations; services: Resource$Services; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/serviceuser/index.ts b/src/apis/serviceuser/index.ts new file mode 100644 index 00000000000..1a20aee4513 --- /dev/null +++ b/src/apis/serviceuser/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {serviceuser_v1} from './v1'; + +export const VERSIONS = { + 'v1': serviceuser_v1.Serviceuser, +}; + +export function serviceuser(version: 'v1'): serviceuser_v1.Serviceuser; +export function serviceuser(options: serviceuser_v1.Options): + serviceuser_v1.Serviceuser; +export function serviceuser( + versionOrOptions: 'v1'|serviceuser_v1.Options) { + return getAPI('serviceuser', versionOrOptions, VERSIONS); +} diff --git a/src/apis/serviceuser/v1.ts b/src/apis/serviceuser/v1.ts index c8fbed580ef..5e391e60cef 100644 --- a/src/apis/serviceuser/v1.ts +++ b/src/apis/serviceuser/v1.ts @@ -49,13 +49,13 @@ export namespace serviceuser_v1 { */ export class Serviceuser { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; services: Resource$Services; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/sheets/index.ts b/src/apis/sheets/index.ts new file mode 100644 index 00000000000..1e16477a5f7 --- /dev/null +++ b/src/apis/sheets/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {sheets_v4} from './v4'; + +export const VERSIONS = { + 'v4': sheets_v4.Sheets, +}; + +export function sheets(version: 'v4'): sheets_v4.Sheets; +export function sheets(options: sheets_v4.Options): sheets_v4.Sheets; +export function sheets(versionOrOptions: 'v4'| + sheets_v4.Options) { + return getAPI('sheets', versionOrOptions, VERSIONS); +} diff --git a/src/apis/sheets/v4.ts b/src/apis/sheets/v4.ts index 6d81a48aea1..14bf5d2cedc 100644 --- a/src/apis/sheets/v4.ts +++ b/src/apis/sheets/v4.ts @@ -47,12 +47,12 @@ export namespace sheets_v4 { */ export class Sheets { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; spreadsheets: Resource$Spreadsheets; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/siteVerification/index.ts b/src/apis/siteVerification/index.ts new file mode 100644 index 00000000000..2c6d116d859 --- /dev/null +++ b/src/apis/siteVerification/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {siteVerification_v1} from './v1'; + +export const VERSIONS = { + 'v1': siteVerification_v1.Siteverification, +}; + +export function siteVerification(version: 'v1'): + siteVerification_v1.Siteverification; +export function siteVerification(options: siteVerification_v1.Options): + siteVerification_v1.Siteverification; +export function siteVerification( + versionOrOptions: 'v1'|siteVerification_v1.Options) { + return getAPI('siteVerification', versionOrOptions, VERSIONS); +} diff --git a/src/apis/siteVerification/v1.ts b/src/apis/siteVerification/v1.ts index c0d654905a3..d814da504d1 100644 --- a/src/apis/siteVerification/v1.ts +++ b/src/apis/siteVerification/v1.ts @@ -47,12 +47,12 @@ export namespace siteVerification_v1 { */ export class Siteverification { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; webResource: Resource$Webresource; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/slides/index.ts b/src/apis/slides/index.ts new file mode 100644 index 00000000000..e72f5d93dfb --- /dev/null +++ b/src/apis/slides/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {slides_v1} from './v1'; + +export const VERSIONS = { + 'v1': slides_v1.Slides, +}; + +export function slides(version: 'v1'): slides_v1.Slides; +export function slides(options: slides_v1.Options): slides_v1.Slides; +export function slides(versionOrOptions: 'v1'| + slides_v1.Options) { + return getAPI('slides', versionOrOptions, VERSIONS); +} diff --git a/src/apis/slides/v1.ts b/src/apis/slides/v1.ts index e5c90ff2aef..f7cecffbf28 100644 --- a/src/apis/slides/v1.ts +++ b/src/apis/slides/v1.ts @@ -47,12 +47,12 @@ export namespace slides_v1 { */ export class Slides { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; presentations: Resource$Presentations; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/sourcerepo/index.ts b/src/apis/sourcerepo/index.ts new file mode 100644 index 00000000000..e57334b9ee8 --- /dev/null +++ b/src/apis/sourcerepo/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {sourcerepo_v1} from './v1'; + +export const VERSIONS = { + 'v1': sourcerepo_v1.Sourcerepo, +}; + +export function sourcerepo(version: 'v1'): sourcerepo_v1.Sourcerepo; +export function sourcerepo(options: sourcerepo_v1.Options): + sourcerepo_v1.Sourcerepo; +export function sourcerepo( + versionOrOptions: 'v1'|sourcerepo_v1.Options) { + return getAPI('sourcerepo', versionOrOptions, VERSIONS); +} diff --git a/src/apis/sourcerepo/v1.ts b/src/apis/sourcerepo/v1.ts index b4b1a51c74b..692152a01ef 100644 --- a/src/apis/sourcerepo/v1.ts +++ b/src/apis/sourcerepo/v1.ts @@ -47,12 +47,12 @@ export namespace sourcerepo_v1 { */ export class Sourcerepo { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/spanner/index.ts b/src/apis/spanner/index.ts new file mode 100644 index 00000000000..b01f6bd69f7 --- /dev/null +++ b/src/apis/spanner/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {spanner_v1} from './v1'; + +export const VERSIONS = { + 'v1': spanner_v1.Spanner, +}; + +export function spanner(version: 'v1'): spanner_v1.Spanner; +export function spanner(options: spanner_v1.Options): spanner_v1.Spanner; +export function spanner(versionOrOptions: 'v1'| + spanner_v1.Options) { + return getAPI('spanner', versionOrOptions, VERSIONS); +} diff --git a/src/apis/spanner/v1.ts b/src/apis/spanner/v1.ts index 6a3e4a9baca..b74175f5b4d 100644 --- a/src/apis/spanner/v1.ts +++ b/src/apis/spanner/v1.ts @@ -48,12 +48,12 @@ export namespace spanner_v1 { */ export class Spanner { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/spectrum/index.ts b/src/apis/spectrum/index.ts new file mode 100644 index 00000000000..77186eb8f73 --- /dev/null +++ b/src/apis/spectrum/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {spectrum_v1explorer} from './v1explorer'; + +export const VERSIONS = { + 'v1explorer': spectrum_v1explorer.Spectrum, +}; + +export function spectrum(version: 'v1explorer'): spectrum_v1explorer.Spectrum; +export function spectrum(options: spectrum_v1explorer.Options): + spectrum_v1explorer.Spectrum; +export function spectrum( + versionOrOptions: 'v1explorer'|spectrum_v1explorer.Options) { + return getAPI('spectrum', versionOrOptions, VERSIONS); +} diff --git a/src/apis/spectrum/v1explorer.ts b/src/apis/spectrum/v1explorer.ts index 4033592e714..755166e91ee 100644 --- a/src/apis/spectrum/v1explorer.ts +++ b/src/apis/spectrum/v1explorer.ts @@ -47,12 +47,12 @@ export namespace spectrum_v1explorer { */ export class Spectrum { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; paws: Resource$Paws; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/speech/index.ts b/src/apis/speech/index.ts new file mode 100644 index 00000000000..0e4dd21fa2d --- /dev/null +++ b/src/apis/speech/index.ts @@ -0,0 +1,32 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {speech_v1} from './v1'; +import {speech_v1beta1} from './v1beta1'; + +export const VERSIONS = { + 'v1': speech_v1.Speech, + 'v1beta1': speech_v1beta1.Speech, +}; + +export function speech(version: 'v1'): speech_v1.Speech; +export function speech(options: speech_v1.Options): speech_v1.Speech; +export function speech(version: 'v1beta1'): speech_v1beta1.Speech; +export function speech(options: speech_v1beta1.Options): speech_v1beta1.Speech; +export function speech( + versionOrOptions: 'v1'|speech_v1.Options|'v1beta1'|speech_v1beta1.Options) { + return getAPI('speech', versionOrOptions, VERSIONS); +} diff --git a/src/apis/speech/v1.ts b/src/apis/speech/v1.ts index e6f8e3305b7..ddc269eab58 100644 --- a/src/apis/speech/v1.ts +++ b/src/apis/speech/v1.ts @@ -47,13 +47,13 @@ export namespace speech_v1 { */ export class Speech { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; operations: Resource$Operations; speech: Resource$Speech; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/speech/v1beta1.ts b/src/apis/speech/v1beta1.ts index c075042db7c..af126e58cd3 100644 --- a/src/apis/speech/v1beta1.ts +++ b/src/apis/speech/v1beta1.ts @@ -47,13 +47,13 @@ export namespace speech_v1beta1 { */ export class Speech { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; operations: Resource$Operations; speech: Resource$Speech; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/sqladmin/index.ts b/src/apis/sqladmin/index.ts new file mode 100644 index 00000000000..95029948c41 --- /dev/null +++ b/src/apis/sqladmin/index.ts @@ -0,0 +1,36 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {sqladmin_v1beta3} from './v1beta3'; +import {sqladmin_v1beta4} from './v1beta4'; + +export const VERSIONS = { + 'v1beta3': sqladmin_v1beta3.Sqladmin, + 'v1beta4': sqladmin_v1beta4.Sqladmin, +}; + +export function sqladmin(version: 'v1beta3'): sqladmin_v1beta3.Sqladmin; +export function sqladmin(options: sqladmin_v1beta3.Options): + sqladmin_v1beta3.Sqladmin; +export function sqladmin(version: 'v1beta4'): sqladmin_v1beta4.Sqladmin; +export function sqladmin(options: sqladmin_v1beta4.Options): + sqladmin_v1beta4.Sqladmin; +export function +sqladmin( + versionOrOptions: 'v1beta3'| + sqladmin_v1beta3.Options|'v1beta4'|sqladmin_v1beta4.Options) { + return getAPI('sqladmin', versionOrOptions, VERSIONS); +} diff --git a/src/apis/sqladmin/v1beta3.ts b/src/apis/sqladmin/v1beta3.ts index 026215654dd..ac0fbdc77c4 100644 --- a/src/apis/sqladmin/v1beta3.ts +++ b/src/apis/sqladmin/v1beta3.ts @@ -48,7 +48,7 @@ export namespace sqladmin_v1beta3 { */ export class Sqladmin { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; backupRuns: Resource$Backupruns; @@ -58,7 +58,7 @@ export namespace sqladmin_v1beta3 { sslCerts: Resource$Sslcerts; tiers: Resource$Tiers; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/sqladmin/v1beta4.ts b/src/apis/sqladmin/v1beta4.ts index 323e01d7b2a..ad6650cf02e 100644 --- a/src/apis/sqladmin/v1beta4.ts +++ b/src/apis/sqladmin/v1beta4.ts @@ -48,7 +48,7 @@ export namespace sqladmin_v1beta4 { */ export class Sqladmin { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; backupRuns: Resource$Backupruns; @@ -60,7 +60,7 @@ export namespace sqladmin_v1beta4 { tiers: Resource$Tiers; users: Resource$Users; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/storage/index.ts b/src/apis/storage/index.ts new file mode 100644 index 00000000000..e806fd3c2f7 --- /dev/null +++ b/src/apis/storage/index.ts @@ -0,0 +1,40 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {storage_v1} from './v1'; +import {storage_v1beta1} from './v1beta1'; +import {storage_v1beta2} from './v1beta2'; + +export const VERSIONS = { + 'v1': storage_v1.Storage, + 'v1beta1': storage_v1beta1.Storage, + 'v1beta2': storage_v1beta2.Storage, +}; + +export function storage(version: 'v1'): storage_v1.Storage; +export function storage(options: storage_v1.Options): storage_v1.Storage; +export function storage(version: 'v1beta1'): storage_v1beta1.Storage; +export function storage(options: storage_v1beta1.Options): + storage_v1beta1.Storage; +export function storage(version: 'v1beta2'): storage_v1beta2.Storage; +export function storage(options: storage_v1beta2.Options): + storage_v1beta2.Storage; +export function storage< + T = storage_v1.Storage | storage_v1beta1.Storage | storage_v1beta2.Storage>( + versionOrOptions: 'v1'|storage_v1.Options|'v1beta1'| + storage_v1beta1.Options|'v1beta2'|storage_v1beta2.Options) { + return getAPI('storage', versionOrOptions, VERSIONS); +} diff --git a/src/apis/storage/v1.ts b/src/apis/storage/v1.ts index df22ae19fe7..457bda0dea8 100644 --- a/src/apis/storage/v1.ts +++ b/src/apis/storage/v1.ts @@ -47,7 +47,7 @@ export namespace storage_v1 { */ export class Storage { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; bucketAccessControls: Resource$Bucketaccesscontrols; @@ -59,7 +59,7 @@ export namespace storage_v1 { objects: Resource$Objects; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/storage/v1beta1.ts b/src/apis/storage/v1beta1.ts index 24e426b0a13..5fd582b84b1 100644 --- a/src/apis/storage/v1beta1.ts +++ b/src/apis/storage/v1beta1.ts @@ -47,7 +47,7 @@ export namespace storage_v1beta1 { */ export class Storage { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; bucketAccessControls: Resource$Bucketaccesscontrols; @@ -55,7 +55,7 @@ export namespace storage_v1beta1 { objectAccessControls: Resource$Objectaccesscontrols; objects: Resource$Objects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/storage/v1beta2.ts b/src/apis/storage/v1beta2.ts index 758ca68ba6d..cb5f039a6bd 100644 --- a/src/apis/storage/v1beta2.ts +++ b/src/apis/storage/v1beta2.ts @@ -47,7 +47,7 @@ export namespace storage_v1beta2 { */ export class Storage { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; bucketAccessControls: Resource$Bucketaccesscontrols; @@ -57,7 +57,7 @@ export namespace storage_v1beta2 { objectAccessControls: Resource$Objectaccesscontrols; objects: Resource$Objects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/storagetransfer/index.ts b/src/apis/storagetransfer/index.ts new file mode 100644 index 00000000000..55a8584ac20 --- /dev/null +++ b/src/apis/storagetransfer/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {storagetransfer_v1} from './v1'; + +export const VERSIONS = { + 'v1': storagetransfer_v1.Storagetransfer, +}; + +export function storagetransfer(version: 'v1'): + storagetransfer_v1.Storagetransfer; +export function storagetransfer(options: storagetransfer_v1.Options): + storagetransfer_v1.Storagetransfer; +export function storagetransfer( + versionOrOptions: 'v1'|storagetransfer_v1.Options) { + return getAPI('storagetransfer', versionOrOptions, VERSIONS); +} diff --git a/src/apis/storagetransfer/v1.ts b/src/apis/storagetransfer/v1.ts index f158fcbc5ba..c786db45167 100644 --- a/src/apis/storagetransfer/v1.ts +++ b/src/apis/storagetransfer/v1.ts @@ -48,14 +48,14 @@ export namespace storagetransfer_v1 { */ export class Storagetransfer { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; googleServiceAccounts: Resource$Googleserviceaccounts; transferJobs: Resource$Transferjobs; transferOperations: Resource$Transferoperations; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/streetviewpublish/index.ts b/src/apis/streetviewpublish/index.ts new file mode 100644 index 00000000000..8e2ed6aadfe --- /dev/null +++ b/src/apis/streetviewpublish/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {streetviewpublish_v1} from './v1'; + +export const VERSIONS = { + 'v1': streetviewpublish_v1.Streetviewpublish, +}; + +export function streetviewpublish(version: 'v1'): + streetviewpublish_v1.Streetviewpublish; +export function streetviewpublish(options: streetviewpublish_v1.Options): + streetviewpublish_v1.Streetviewpublish; +export function streetviewpublish( + versionOrOptions: 'v1'|streetviewpublish_v1.Options) { + return getAPI('streetviewpublish', versionOrOptions, VERSIONS); +} diff --git a/src/apis/streetviewpublish/v1.ts b/src/apis/streetviewpublish/v1.ts index 9ff0f057d4f..c89cf650861 100644 --- a/src/apis/streetviewpublish/v1.ts +++ b/src/apis/streetviewpublish/v1.ts @@ -49,13 +49,13 @@ export namespace streetviewpublish_v1 { */ export class Streetviewpublish { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; photo: Resource$Photo; photos: Resource$Photos; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/surveys/index.ts b/src/apis/surveys/index.ts new file mode 100644 index 00000000000..e3e13d067e5 --- /dev/null +++ b/src/apis/surveys/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {surveys_v2} from './v2'; + +export const VERSIONS = { + 'v2': surveys_v2.Surveys, +}; + +export function surveys(version: 'v2'): surveys_v2.Surveys; +export function surveys(options: surveys_v2.Options): surveys_v2.Surveys; +export function surveys(versionOrOptions: 'v2'| + surveys_v2.Options) { + return getAPI('surveys', versionOrOptions, VERSIONS); +} diff --git a/src/apis/surveys/v2.ts b/src/apis/surveys/v2.ts index d21a09f25dc..2bf3c07ac5b 100644 --- a/src/apis/surveys/v2.ts +++ b/src/apis/surveys/v2.ts @@ -48,13 +48,13 @@ export namespace surveys_v2 { */ export class Surveys { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; results: Resource$Results; surveys: Resource$Surveys; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/tagmanager/index.ts b/src/apis/tagmanager/index.ts new file mode 100644 index 00000000000..d3512deb097 --- /dev/null +++ b/src/apis/tagmanager/index.ts @@ -0,0 +1,35 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {tagmanager_v1} from './v1'; +import {tagmanager_v2} from './v2'; + +export const VERSIONS = { + 'v1': tagmanager_v1.Tagmanager, + 'v2': tagmanager_v2.Tagmanager, +}; + +export function tagmanager(version: 'v1'): tagmanager_v1.Tagmanager; +export function tagmanager(options: tagmanager_v1.Options): + tagmanager_v1.Tagmanager; +export function tagmanager(version: 'v2'): tagmanager_v2.Tagmanager; +export function tagmanager(options: tagmanager_v2.Options): + tagmanager_v2.Tagmanager; +export function +tagmanager( + versionOrOptions: 'v1'|tagmanager_v1.Options|'v2'|tagmanager_v2.Options) { + return getAPI('tagmanager', versionOrOptions, VERSIONS); +} diff --git a/src/apis/tagmanager/v1.ts b/src/apis/tagmanager/v1.ts index 23ef29ecb12..d282ee473fc 100644 --- a/src/apis/tagmanager/v1.ts +++ b/src/apis/tagmanager/v1.ts @@ -47,12 +47,12 @@ export namespace tagmanager_v1 { */ export class Tagmanager { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accounts: Resource$Accounts; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/tagmanager/v2.ts b/src/apis/tagmanager/v2.ts index 04d270ab0f1..8f9ce19591a 100644 --- a/src/apis/tagmanager/v2.ts +++ b/src/apis/tagmanager/v2.ts @@ -47,12 +47,12 @@ export namespace tagmanager_v2 { */ export class Tagmanager { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; accounts: Resource$Accounts; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/tasks/index.ts b/src/apis/tasks/index.ts new file mode 100644 index 00000000000..6ace47e5815 --- /dev/null +++ b/src/apis/tasks/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {tasks_v1} from './v1'; + +export const VERSIONS = { + 'v1': tasks_v1.Tasks, +}; + +export function tasks(version: 'v1'): tasks_v1.Tasks; +export function tasks(options: tasks_v1.Options): tasks_v1.Tasks; +export function tasks(versionOrOptions: 'v1'| + tasks_v1.Options) { + return getAPI('tasks', versionOrOptions, VERSIONS); +} diff --git a/src/apis/tasks/v1.ts b/src/apis/tasks/v1.ts index 956644e1064..abf2f44a529 100644 --- a/src/apis/tasks/v1.ts +++ b/src/apis/tasks/v1.ts @@ -47,13 +47,13 @@ export namespace tasks_v1 { */ export class Tasks { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; tasklists: Resource$Tasklists; tasks: Resource$Tasks; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/testing/index.ts b/src/apis/testing/index.ts new file mode 100644 index 00000000000..4ca34dfdb68 --- /dev/null +++ b/src/apis/testing/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {testing_v1} from './v1'; + +export const VERSIONS = { + 'v1': testing_v1.Testing, +}; + +export function testing(version: 'v1'): testing_v1.Testing; +export function testing(options: testing_v1.Options): testing_v1.Testing; +export function testing(versionOrOptions: 'v1'| + testing_v1.Options) { + return getAPI('testing', versionOrOptions, VERSIONS); +} diff --git a/src/apis/testing/v1.ts b/src/apis/testing/v1.ts index 401c2d3987c..a1481a0b1b8 100644 --- a/src/apis/testing/v1.ts +++ b/src/apis/testing/v1.ts @@ -48,14 +48,14 @@ export namespace testing_v1 { */ export class Testing { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; applicationDetailService: Resource$Applicationdetailservice; projects: Resource$Projects; testEnvironmentCatalog: Resource$Testenvironmentcatalog; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/texttospeech/index.ts b/src/apis/texttospeech/index.ts new file mode 100644 index 00000000000..33268ca76b5 --- /dev/null +++ b/src/apis/texttospeech/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {texttospeech_v1beta1} from './v1beta1'; + +export const VERSIONS = { + 'v1beta1': texttospeech_v1beta1.Texttospeech, +}; + +export function texttospeech(version: 'v1beta1'): + texttospeech_v1beta1.Texttospeech; +export function texttospeech(options: texttospeech_v1beta1.Options): + texttospeech_v1beta1.Texttospeech; +export function texttospeech( + versionOrOptions: 'v1beta1'|texttospeech_v1beta1.Options) { + return getAPI('texttospeech', versionOrOptions, VERSIONS); +} diff --git a/src/apis/texttospeech/v1beta1.ts b/src/apis/texttospeech/v1beta1.ts index 41e686e3dab..fbb466138b3 100644 --- a/src/apis/texttospeech/v1beta1.ts +++ b/src/apis/texttospeech/v1beta1.ts @@ -48,13 +48,13 @@ export namespace texttospeech_v1beta1 { */ export class Texttospeech { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; text: Resource$Text; voices: Resource$Voices; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/toolresults/index.ts b/src/apis/toolresults/index.ts new file mode 100644 index 00000000000..d79a7859aaf --- /dev/null +++ b/src/apis/toolresults/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {toolresults_v1beta3} from './v1beta3'; + +export const VERSIONS = { + 'v1beta3': toolresults_v1beta3.Toolresults, +}; + +export function toolresults(version: 'v1beta3'): + toolresults_v1beta3.Toolresults; +export function toolresults(options: toolresults_v1beta3.Options): + toolresults_v1beta3.Toolresults; +export function toolresults( + versionOrOptions: 'v1beta3'|toolresults_v1beta3.Options) { + return getAPI('toolresults', versionOrOptions, VERSIONS); +} diff --git a/src/apis/toolresults/v1beta3.ts b/src/apis/toolresults/v1beta3.ts index 620dd5c0a54..b5d542a15ef 100644 --- a/src/apis/toolresults/v1beta3.ts +++ b/src/apis/toolresults/v1beta3.ts @@ -47,12 +47,12 @@ export namespace toolresults_v1beta3 { */ export class Toolresults { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/tpu/index.ts b/src/apis/tpu/index.ts new file mode 100644 index 00000000000..eacfc023e66 --- /dev/null +++ b/src/apis/tpu/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {tpu_v1alpha1} from './v1alpha1'; + +export const VERSIONS = { + 'v1alpha1': tpu_v1alpha1.Tpu, +}; + +export function tpu(version: 'v1alpha1'): tpu_v1alpha1.Tpu; +export function tpu(options: tpu_v1alpha1.Options): tpu_v1alpha1.Tpu; +export function tpu(versionOrOptions: 'v1alpha1'| + tpu_v1alpha1.Options) { + return getAPI('tpu', versionOrOptions, VERSIONS); +} diff --git a/src/apis/tpu/v1alpha1.ts b/src/apis/tpu/v1alpha1.ts index 6022ada98d3..760b5ecb56b 100644 --- a/src/apis/tpu/v1alpha1.ts +++ b/src/apis/tpu/v1alpha1.ts @@ -47,12 +47,12 @@ export namespace tpu_v1alpha1 { */ export class Tpu { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/translate/index.ts b/src/apis/translate/index.ts new file mode 100644 index 00000000000..226639b209f --- /dev/null +++ b/src/apis/translate/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {translate_v2} from './v2'; + +export const VERSIONS = { + 'v2': translate_v2.Translate, +}; + +export function translate(version: 'v2'): translate_v2.Translate; +export function translate(options: translate_v2.Options): + translate_v2.Translate; +export function translate(versionOrOptions: 'v2'| + translate_v2.Options) { + return getAPI('translate', versionOrOptions, VERSIONS); +} diff --git a/src/apis/translate/v2.ts b/src/apis/translate/v2.ts index 7e1be444e46..fb35ef7caf3 100644 --- a/src/apis/translate/v2.ts +++ b/src/apis/translate/v2.ts @@ -48,14 +48,14 @@ export namespace translate_v2 { */ export class Translate { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; detections: Resource$Detections; languages: Resource$Languages; translations: Resource$Translations; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/urlshortener/index.ts b/src/apis/urlshortener/index.ts new file mode 100644 index 00000000000..9898546bf87 --- /dev/null +++ b/src/apis/urlshortener/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {urlshortener_v1} from './v1'; + +export const VERSIONS = { + 'v1': urlshortener_v1.Urlshortener, +}; + +export function urlshortener(version: 'v1'): urlshortener_v1.Urlshortener; +export function urlshortener(options: urlshortener_v1.Options): + urlshortener_v1.Urlshortener; +export function urlshortener( + versionOrOptions: 'v1'|urlshortener_v1.Options) { + return getAPI('urlshortener', versionOrOptions, VERSIONS); +} diff --git a/src/apis/urlshortener/v1.ts b/src/apis/urlshortener/v1.ts index 2b7a25074e1..b688e6dc144 100644 --- a/src/apis/urlshortener/v1.ts +++ b/src/apis/urlshortener/v1.ts @@ -47,12 +47,12 @@ export namespace urlshortener_v1 { */ export class Urlshortener { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; url: Resource$Url; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/vault/index.ts b/src/apis/vault/index.ts new file mode 100644 index 00000000000..ab3c7a2f648 --- /dev/null +++ b/src/apis/vault/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {vault_v1} from './v1'; + +export const VERSIONS = { + 'v1': vault_v1.Vault, +}; + +export function vault(version: 'v1'): vault_v1.Vault; +export function vault(options: vault_v1.Options): vault_v1.Vault; +export function vault(versionOrOptions: 'v1'| + vault_v1.Options) { + return getAPI('vault', versionOrOptions, VERSIONS); +} diff --git a/src/apis/vault/v1.ts b/src/apis/vault/v1.ts index 9d3f2cad330..f4b8e706122 100644 --- a/src/apis/vault/v1.ts +++ b/src/apis/vault/v1.ts @@ -47,12 +47,12 @@ export namespace vault_v1 { */ export class Vault { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; matters: Resource$Matters; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/videointelligence/index.ts b/src/apis/videointelligence/index.ts new file mode 100644 index 00000000000..7c81d086987 --- /dev/null +++ b/src/apis/videointelligence/index.ts @@ -0,0 +1,48 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {videointelligence_v1} from './v1'; +import {videointelligence_v1beta1} from './v1beta1'; +import {videointelligence_v1beta2} from './v1beta2'; + +export const VERSIONS = { + 'v1': videointelligence_v1.Videointelligence, + 'v1beta1': videointelligence_v1beta1.Videointelligence, + 'v1beta2': videointelligence_v1beta2.Videointelligence, +}; + +export function videointelligence(version: 'v1'): + videointelligence_v1.Videointelligence; +export function videointelligence(options: videointelligence_v1.Options): + videointelligence_v1.Videointelligence; +export function videointelligence(version: 'v1beta1'): + videointelligence_v1beta1.Videointelligence; +export function videointelligence(options: videointelligence_v1beta1.Options): + videointelligence_v1beta1.Videointelligence; +export function videointelligence(version: 'v1beta2'): + videointelligence_v1beta2.Videointelligence; +export function videointelligence(options: videointelligence_v1beta2.Options): + videointelligence_v1beta2.Videointelligence; +export function videointelligence< + T = videointelligence_v1.Videointelligence | + videointelligence_v1beta1.Videointelligence | + videointelligence_v1beta2.Videointelligence>( + versionOrOptions: 'v1'| + videointelligence_v1.Options|'v1beta1'| + videointelligence_v1beta1.Options|'v1beta2'| + videointelligence_v1beta2.Options) { + return getAPI('videointelligence', versionOrOptions, VERSIONS); +} diff --git a/src/apis/videointelligence/v1.ts b/src/apis/videointelligence/v1.ts index 247e5ed42db..4e9ff9cdf7a 100644 --- a/src/apis/videointelligence/v1.ts +++ b/src/apis/videointelligence/v1.ts @@ -47,13 +47,13 @@ export namespace videointelligence_v1 { */ export class Videointelligence { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; operations: Resource$Operations; videos: Resource$Videos; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/videointelligence/v1beta1.ts b/src/apis/videointelligence/v1beta1.ts index 8afe9849089..78901fb706f 100644 --- a/src/apis/videointelligence/v1beta1.ts +++ b/src/apis/videointelligence/v1beta1.ts @@ -47,12 +47,12 @@ export namespace videointelligence_v1beta1 { */ export class Videointelligence { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; videos: Resource$Videos; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/videointelligence/v1beta2.ts b/src/apis/videointelligence/v1beta2.ts index 12593f00e8c..42271899024 100644 --- a/src/apis/videointelligence/v1beta2.ts +++ b/src/apis/videointelligence/v1beta2.ts @@ -47,12 +47,12 @@ export namespace videointelligence_v1beta2 { */ export class Videointelligence { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; videos: Resource$Videos; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/vision/index.ts b/src/apis/vision/index.ts new file mode 100644 index 00000000000..16183dc6647 --- /dev/null +++ b/src/apis/vision/index.ts @@ -0,0 +1,40 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {vision_v1} from './v1'; +import {vision_v1p1beta1} from './v1p1beta1'; +import {vision_v1p2beta1} from './v1p2beta1'; + +export const VERSIONS = { + 'v1': vision_v1.Vision, + 'v1p1beta1': vision_v1p1beta1.Vision, + 'v1p2beta1': vision_v1p2beta1.Vision, +}; + +export function vision(version: 'v1'): vision_v1.Vision; +export function vision(options: vision_v1.Options): vision_v1.Vision; +export function vision(version: 'v1p1beta1'): vision_v1p1beta1.Vision; +export function vision(options: vision_v1p1beta1.Options): + vision_v1p1beta1.Vision; +export function vision(version: 'v1p2beta1'): vision_v1p2beta1.Vision; +export function vision(options: vision_v1p2beta1.Options): + vision_v1p2beta1.Vision; +export function vision< + T = vision_v1.Vision | vision_v1p1beta1.Vision | vision_v1p2beta1.Vision>( + versionOrOptions: 'v1'|vision_v1.Options|'v1p1beta1'| + vision_v1p1beta1.Options|'v1p2beta1'|vision_v1p2beta1.Options) { + return getAPI('vision', versionOrOptions, VERSIONS); +} diff --git a/src/apis/vision/v1.ts b/src/apis/vision/v1.ts index 6ade473ee1d..424002ef9bc 100644 --- a/src/apis/vision/v1.ts +++ b/src/apis/vision/v1.ts @@ -49,14 +49,14 @@ export namespace vision_v1 { */ export class Vision { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; images: Resource$Images; locations: Resource$Locations; operations: Resource$Operations; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/vision/v1p1beta1.ts b/src/apis/vision/v1p1beta1.ts index aef9e66fa64..13b4caf57c3 100644 --- a/src/apis/vision/v1p1beta1.ts +++ b/src/apis/vision/v1p1beta1.ts @@ -49,12 +49,12 @@ export namespace vision_v1p1beta1 { */ export class Vision { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; images: Resource$Images; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/vision/v1p2beta1.ts b/src/apis/vision/v1p2beta1.ts index b947b01c661..0fbe40de445 100644 --- a/src/apis/vision/v1p2beta1.ts +++ b/src/apis/vision/v1p2beta1.ts @@ -49,13 +49,13 @@ export namespace vision_v1p2beta1 { */ export class Vision { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; files: Resource$Files; images: Resource$Images; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/webfonts/index.ts b/src/apis/webfonts/index.ts new file mode 100644 index 00000000000..bc779e70923 --- /dev/null +++ b/src/apis/webfonts/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {webfonts_v1} from './v1'; + +export const VERSIONS = { + 'v1': webfonts_v1.Webfonts, +}; + +export function webfonts(version: 'v1'): webfonts_v1.Webfonts; +export function webfonts(options: webfonts_v1.Options): webfonts_v1.Webfonts; +export function webfonts(versionOrOptions: 'v1'| + webfonts_v1.Options) { + return getAPI('webfonts', versionOrOptions, VERSIONS); +} diff --git a/src/apis/webfonts/v1.ts b/src/apis/webfonts/v1.ts index 0bb762f7dc5..b8f7b9a7443 100644 --- a/src/apis/webfonts/v1.ts +++ b/src/apis/webfonts/v1.ts @@ -49,12 +49,12 @@ export namespace webfonts_v1 { */ export class Webfonts { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; webfonts: Resource$Webfonts; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/webmasters/index.ts b/src/apis/webmasters/index.ts new file mode 100644 index 00000000000..688c14e8f8e --- /dev/null +++ b/src/apis/webmasters/index.ts @@ -0,0 +1,29 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {webmasters_v3} from './v3'; + +export const VERSIONS = { + 'v3': webmasters_v3.Webmasters, +}; + +export function webmasters(version: 'v3'): webmasters_v3.Webmasters; +export function webmasters(options: webmasters_v3.Options): + webmasters_v3.Webmasters; +export function webmasters( + versionOrOptions: 'v3'|webmasters_v3.Options) { + return getAPI('webmasters', versionOrOptions, VERSIONS); +} diff --git a/src/apis/webmasters/v3.ts b/src/apis/webmasters/v3.ts index 7176e21fbdf..5e990bceba9 100644 --- a/src/apis/webmasters/v3.ts +++ b/src/apis/webmasters/v3.ts @@ -47,7 +47,7 @@ export namespace webmasters_v3 { */ export class Webmasters { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; searchanalytics: Resource$Searchanalytics; @@ -56,7 +56,7 @@ export namespace webmasters_v3 { urlcrawlerrorscounts: Resource$Urlcrawlerrorscounts; urlcrawlerrorssamples: Resource$Urlcrawlerrorssamples; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/websecurityscanner/index.ts b/src/apis/websecurityscanner/index.ts new file mode 100644 index 00000000000..2a1936bf703 --- /dev/null +++ b/src/apis/websecurityscanner/index.ts @@ -0,0 +1,31 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {websecurityscanner_v1alpha} from './v1alpha'; + +export const VERSIONS = { + 'v1alpha': websecurityscanner_v1alpha.Websecurityscanner, +}; + +export function websecurityscanner(version: 'v1alpha'): + websecurityscanner_v1alpha.Websecurityscanner; +export function websecurityscanner(options: websecurityscanner_v1alpha.Options): + websecurityscanner_v1alpha.Websecurityscanner; +export function +websecurityscanner( + versionOrOptions: 'v1alpha'|websecurityscanner_v1alpha.Options) { + return getAPI('websecurityscanner', versionOrOptions, VERSIONS); +} diff --git a/src/apis/websecurityscanner/v1alpha.ts b/src/apis/websecurityscanner/v1alpha.ts index f6074ced971..9b2ba19e01b 100644 --- a/src/apis/websecurityscanner/v1alpha.ts +++ b/src/apis/websecurityscanner/v1alpha.ts @@ -47,12 +47,12 @@ export namespace websecurityscanner_v1alpha { */ export class Websecurityscanner { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; projects: Resource$Projects; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/youtube/index.ts b/src/apis/youtube/index.ts new file mode 100644 index 00000000000..150ed1a0232 --- /dev/null +++ b/src/apis/youtube/index.ts @@ -0,0 +1,28 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {youtube_v3} from './v3'; + +export const VERSIONS = { + 'v3': youtube_v3.Youtube, +}; + +export function youtube(version: 'v3'): youtube_v3.Youtube; +export function youtube(options: youtube_v3.Options): youtube_v3.Youtube; +export function youtube(versionOrOptions: 'v3'| + youtube_v3.Options) { + return getAPI('youtube', versionOrOptions, VERSIONS); +} diff --git a/src/apis/youtube/v3.ts b/src/apis/youtube/v3.ts index eece05c5421..7a1e46c47b2 100644 --- a/src/apis/youtube/v3.ts +++ b/src/apis/youtube/v3.ts @@ -48,7 +48,7 @@ export namespace youtube_v3 { */ export class Youtube { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; activities: Resource$Activities; @@ -78,7 +78,7 @@ export namespace youtube_v3 { videos: Resource$Videos; watermarks: Resource$Watermarks; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/youtubeAnalytics/index.ts b/src/apis/youtubeAnalytics/index.ts new file mode 100644 index 00000000000..65050dff1e5 --- /dev/null +++ b/src/apis/youtubeAnalytics/index.ts @@ -0,0 +1,47 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {youtubeAnalytics_v1} from './v1'; +import {youtubeAnalytics_v1beta1} from './v1beta1'; +import {youtubeAnalytics_v2} from './v2'; + +export const VERSIONS = { + 'v1': youtubeAnalytics_v1.Youtubeanalytics, + 'v1beta1': youtubeAnalytics_v1beta1.Youtubeanalytics, + 'v2': youtubeAnalytics_v2.Youtubeanalytics, +}; + +export function youtubeAnalytics(version: 'v1'): + youtubeAnalytics_v1.Youtubeanalytics; +export function youtubeAnalytics(options: youtubeAnalytics_v1.Options): + youtubeAnalytics_v1.Youtubeanalytics; +export function youtubeAnalytics(version: 'v1beta1'): + youtubeAnalytics_v1beta1.Youtubeanalytics; +export function youtubeAnalytics(options: youtubeAnalytics_v1beta1.Options): + youtubeAnalytics_v1beta1.Youtubeanalytics; +export function youtubeAnalytics(version: 'v2'): + youtubeAnalytics_v2.Youtubeanalytics; +export function youtubeAnalytics(options: youtubeAnalytics_v2.Options): + youtubeAnalytics_v2.Youtubeanalytics; +export function youtubeAnalytics< + T = youtubeAnalytics_v1.Youtubeanalytics | + youtubeAnalytics_v1beta1.Youtubeanalytics | + youtubeAnalytics_v2.Youtubeanalytics>( + versionOrOptions: 'v1'| + youtubeAnalytics_v1.Options|'v1beta1'| + youtubeAnalytics_v1beta1.Options|'v2'|youtubeAnalytics_v2.Options) { + return getAPI('youtubeAnalytics', versionOrOptions, VERSIONS); +} diff --git a/src/apis/youtubeAnalytics/v1.ts b/src/apis/youtubeAnalytics/v1.ts index 00e00f6cf84..f6386b98b93 100644 --- a/src/apis/youtubeAnalytics/v1.ts +++ b/src/apis/youtubeAnalytics/v1.ts @@ -47,14 +47,14 @@ export namespace youtubeAnalytics_v1 { */ export class Youtubeanalytics { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; groupItems: Resource$Groupitems; groups: Resource$Groups; reports: Resource$Reports; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/youtubeAnalytics/v1beta1.ts b/src/apis/youtubeAnalytics/v1beta1.ts index 192fddfcd16..658f426513a 100644 --- a/src/apis/youtubeAnalytics/v1beta1.ts +++ b/src/apis/youtubeAnalytics/v1beta1.ts @@ -47,14 +47,14 @@ export namespace youtubeAnalytics_v1beta1 { */ export class Youtubeanalytics { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; groupItems: Resource$Groupitems; groups: Resource$Groups; reports: Resource$Reports; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/youtubeAnalytics/v2.ts b/src/apis/youtubeAnalytics/v2.ts index 63fd21b304b..926b6ae6087 100644 --- a/src/apis/youtubeAnalytics/v2.ts +++ b/src/apis/youtubeAnalytics/v2.ts @@ -47,14 +47,14 @@ export namespace youtubeAnalytics_v2 { */ export class Youtubeanalytics { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; groupItems: Resource$Groupitems; groups: Resource$Groups; reports: Resource$Reports; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/apis/youtubereporting/index.ts b/src/apis/youtubereporting/index.ts new file mode 100644 index 00000000000..fbe49acfe33 --- /dev/null +++ b/src/apis/youtubereporting/index.ts @@ -0,0 +1,30 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +import {youtubereporting_v1} from './v1'; + +export const VERSIONS = { + 'v1': youtubereporting_v1.Youtubereporting, +}; + +export function youtubereporting(version: 'v1'): + youtubereporting_v1.Youtubereporting; +export function youtubereporting(options: youtubereporting_v1.Options): + youtubereporting_v1.Youtubereporting; +export function youtubereporting( + versionOrOptions: 'v1'|youtubereporting_v1.Options) { + return getAPI('youtubereporting', versionOrOptions, VERSIONS); +} diff --git a/src/apis/youtubereporting/v1.ts b/src/apis/youtubereporting/v1.ts index 9b730bbf6ec..3e3d6d3e194 100644 --- a/src/apis/youtubereporting/v1.ts +++ b/src/apis/youtubereporting/v1.ts @@ -48,14 +48,14 @@ export namespace youtubereporting_v1 { */ export class Youtubereporting { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; jobs: Resource$Jobs; media: Resource$Media; reportTypes: Resource$Reporttypes; - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/generator/generator.ts b/src/generator/generator.ts index 507ee94dcd1..80b38d4f164 100644 --- a/src/generator/generator.ts +++ b/src/generator/generator.ts @@ -233,6 +233,10 @@ export class Generator { const parts = path.parse(version); if (!version.endsWith('.d.ts') && parts.ext === '.ts') { apis[file][version] = parts.name; + const apiIdxPath = path.join(apisPath, file, 'index.ts'); + const result = + this.env.render('api-index.njk', {name: file, api: apis[file]}); + await writeFile(apiIdxPath, result); } } } diff --git a/src/generator/templates/api-endpoint.njk b/src/generator/templates/api-endpoint.njk index 3a9229481f9..3d535c27f49 100644 --- a/src/generator/templates/api-endpoint.njk +++ b/src/generator/templates/api-endpoint.njk @@ -58,7 +58,7 @@ export interface Options extends GlobalOptions { export class {{ Name }} { _options: GlobalOptions; - google: GoogleConfigurable; + google?: GoogleConfigurable; root = this; {% if api.resources %} @@ -67,7 +67,7 @@ export class {{ Name }} { {% endfor %} {% endif %} - constructor(options: GlobalOptions, google: GoogleConfigurable) { + constructor(options: GlobalOptions, google?: GoogleConfigurable) { this._options = options || {}; this.google = google; this.getRoot.bind(this); diff --git a/src/generator/templates/api-index.njk b/src/generator/templates/api-index.njk new file mode 100644 index 00000000000..c665f5fe659 --- /dev/null +++ b/src/generator/templates/api-index.njk @@ -0,0 +1,34 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {getAPI} from '../../shared/src'; +{% for versionName, version in api %} + import { {{ name }}_{{ version|replace('.','_') }} } from './{{ version }}'; +{% endfor %} + +export const VERSIONS = { + {% for versionName, version in api %} + '{{ version }}': {{ name }}_{{ version|replace('.','_') }}.{{name|capitalize}}, + {% endfor %} +}; + +{% for versionName, version in api %} + {% set Version = version|replace('.','_') %} + export function {{ name }}(version: '{{ Version }}'): {{ name }}_{{ Version }}.{{ name|capitalize }}; + export function {{ name }}(options: {{ name }}_{{ Version }}.Options): {{ name }}_{{ Version }}.{{ name|capitalize }}; +{% endfor %} +export function {{ name }}(versionOrOptions: {% for versionName, version in api %}'{{ version|replace('.','_') }}'|{{ name }}_{{ version|replace('.','_') }}.Options{% if not loop.last %}|{% endif %}{% endfor %}) { + return getAPI('{{ name }}', versionOrOptions, VERSIONS); +} diff --git a/src/shared/src/api.ts b/src/shared/src/api.ts index d226f26aaa1..d6292044628 100644 --- a/src/shared/src/api.ts +++ b/src/shared/src/api.ts @@ -30,7 +30,7 @@ export interface GoogleConfigurable { } export interface APIRequestContext { - google: GoogleConfigurable; + google?: GoogleConfigurable; _options: GlobalOptions; } diff --git a/src/shared/src/apiIndex.ts b/src/shared/src/apiIndex.ts new file mode 100644 index 00000000000..8f2c3b69288 --- /dev/null +++ b/src/shared/src/apiIndex.ts @@ -0,0 +1,38 @@ +// Copyright 2018, Google, LLC. +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import {GlobalOptions, GoogleConfigurable, ServiceOptions} from '.'; + +export function getAPI( + api: string, options: ServiceOptions|string, + // tslint:disable-next-line no-any + versions: {[index: string]: any}) { + let version: string; + if (typeof options === 'string') { + version = options; + options = {}; + } else if (typeof options === 'object') { + version = options.version!; + delete options.version; + } else { + throw new Error('Argument error: Accepts only string or object'); + } + try { + const ctr = versions[version]; + const ep = new ctr(options); + return Object.freeze(ep) as T; + } catch (e) { + throw new Error( + `Unable to load endpoint ${api}("${version}"): ${e.message}`); + } +} diff --git a/src/shared/src/apirequest.ts b/src/shared/src/apirequest.ts index a5187daa4af..6479f5bb5df 100644 --- a/src/shared/src/apirequest.ts +++ b/src/shared/src/apirequest.ts @@ -72,11 +72,14 @@ async function createAPIRequestAsync(parameters: APIRequestParams) { // Create a new params object so it can no longer be modified from outside // code Also support global and per-client params, but allow them to be // overriden per-request + const topOptions = parameters.context.google ? + parameters.context.google._options.params : + {}; params = Object.assign( - {}, // New base object - parameters.context.google._options.params, // Global params - parameters.context._options.params, // Per-client params - params // API call params + {}, // New base object + topOptions, // Global params + parameters.context._options.params, // Per-client params + params // API call params ); const media = params.media || {}; @@ -102,7 +105,8 @@ async function createAPIRequestAsync(parameters: APIRequestParams) { delete params.requestBody; let authClient = params.auth || parameters.context._options.auth || - parameters.context.google._options.auth; + (parameters.context.google ? parameters.context.google._options.auth : + null); const defaultMime = typeof media.body === 'string' ? 'text/plain' : @@ -239,8 +243,8 @@ async function createAPIRequestAsync(parameters: APIRequestParams) { // API call witht the global options configured at the API Context // level, or at the global level. const mergedOptions = Object.assign( - {}, parameters.context.google._options, parameters.context._options, - options); + {}, (parameters.context.google ? parameters.context.google._options : {}), + parameters.context._options, options); delete mergedOptions.auth; // is overridden by our auth code // Perform the HTTP request. NOTE: this function used to return a diff --git a/src/shared/src/index.ts b/src/shared/src/index.ts index a2658c8e1d5..421a51da07a 100644 --- a/src/shared/src/index.ts +++ b/src/shared/src/index.ts @@ -12,6 +12,7 @@ // limitations under the License. export {APIEndpoint, APIRequestContext, APIRequestParams, BodyResponseCallback, GlobalOptions, GoogleConfigurable, MethodOptions, ServiceOptions} from './api'; +export {getAPI} from './apiIndex'; export {createAPIRequest} from './apirequest'; export {Discovery, DiscoveryOptions, EndpointCreator} from './discovery'; export {Endpoint, Target} from './endpoint';