google-api-client 0.32.1 → 0.36.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.kokoro/continuous/linux.cfg +2 -2
- data/.kokoro/continuous/post.cfg +30 -0
- data/.kokoro/presubmit/linux.cfg +1 -1
- data/.kokoro/release.cfg +94 -0
- data/.repo-metadata.json +5 -0
- data/.rubocop.yml +5 -0
- data/.yardopts +16 -3
- data/CHANGELOG.md +327 -0
- data/Gemfile +1 -0
- data/OVERVIEW.md +36 -0
- data/README.md +50 -2
- data/Rakefile +71 -2
- data/docs/api-keys.md +20 -0
- data/docs/auth.md +53 -0
- data/docs/client-secrets.md +69 -0
- data/docs/getting-started.md +340 -0
- data/docs/installation.md +0 -0
- data/docs/logging.md +34 -0
- data/docs/media-upload.md +25 -0
- data/docs/oauth-installed.md +191 -0
- data/docs/oauth-server.md +135 -0
- data/docs/oauth-web.md +280 -0
- data/docs/oauth.md +268 -0
- data/docs/pagination.md +29 -0
- data/docs/performance.md +25 -0
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +35 -2
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +13 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +108 -6
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +1 -73
- data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +0 -32
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +24 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -3
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +5 -5
- data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +4 -3
- data/generated/google/apis/admin_directory_v1.rb +4 -1
- data/generated/google/apis/admin_reports_v1/classes.rb +87 -44
- data/generated/google/apis/admin_reports_v1/service.rb +310 -64
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +105 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +51 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/appengine_v1/service.rb +10 -6
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta/service.rb +10 -6
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +104 -23
- data/generated/google/apis/bigquery_v2/representations.rb +37 -0
- data/generated/google/apis/bigquery_v2/service.rb +1 -5
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -5
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +3 -2
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -4
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +0 -21
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +0 -13
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +116 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +35 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +71 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +61 -77
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +16 -17
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +116 -78
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +63 -30
- data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +392 -0
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +191 -0
- data/generated/google/apis/billingbudgets_v1beta1/service.rb +233 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1/classes.rb +6 -5
- data/generated/google/apis/binaryauthorization_v1/service.rb +2 -0
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +6 -5
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +2 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +20 -0
- data/generated/google/apis/books_v1/representations.rb +3 -0
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +18 -30
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +0 -156
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -60
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +89 -55
- data/generated/google/apis/cloudasset_v1/service.rb +1 -2
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +75 -40
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +82 -36
- data/generated/google/apis/cloudbilling_v1/representations.rb +0 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +5 -3
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +8 -2
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +18 -18
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/service.rb +14 -14
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +13 -5
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +10 -4
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +10 -4
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +11 -8
- data/generated/google/apis/cloudidentity_v1/service.rb +2 -1
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +13 -10
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +2 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +6 -5
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +6 -5
- data/generated/google/apis/cloudkms_v1/service.rb +3 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +75 -40
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +18 -17
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +10 -13
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +11 -13
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +10 -13
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +11 -13
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +10 -132
- data/generated/google/apis/cloudsearch_v1/representations.rb +0 -75
- data/generated/google/apis/cloudsearch_v1/service.rb +47 -9
- data/generated/google/apis/cloudsearch_v1.rb +8 -8
- data/generated/google/apis/cloudshell_v1/classes.rb +24 -1
- data/generated/google/apis/cloudshell_v1/representations.rb +3 -0
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +24 -1
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +3 -0
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +212 -5
- data/generated/google/apis/cloudtasks_v2/representations.rb +50 -0
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +6 -5
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +6 -5
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +14 -19
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +594 -164
- data/generated/google/apis/compute_alpha/representations.rb +110 -2
- data/generated/google/apis/compute_alpha/service.rb +1035 -640
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1070 -276
- data/generated/google/apis/compute_beta/representations.rb +284 -0
- data/generated/google/apis/compute_beta/service.rb +1242 -532
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +335 -133
- data/generated/google/apis/compute_v1/representations.rb +24 -0
- data/generated/google/apis/compute_v1/service.rb +759 -473
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +410 -83
- data/generated/google/apis/container_v1/representations.rb +134 -0
- data/generated/google/apis/container_v1/service.rb +119 -119
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +157 -3
- data/generated/google/apis/container_v1beta1/representations.rb +38 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +6 -5
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +6 -5
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +35 -223
- data/generated/google/apis/content_v2/representations.rb +0 -115
- data/generated/google/apis/content_v2/service.rb +0 -160
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +69 -21
- data/generated/google/apis/content_v2_1/representations.rb +3 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +1646 -0
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +700 -0
- data/generated/google/apis/datacatalog_v1beta1/service.rb +1982 -0
- data/generated/google/apis/{cloudbuild_v1alpha1.rb → datacatalog_v1beta1.rb} +10 -9
- data/generated/google/apis/dataflow_v1b3/classes.rb +6 -9
- data/generated/google/apis/dataflow_v1b3/representations.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +156 -46
- data/generated/google/apis/datafusion_v1beta1/representations.rb +33 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +10 -1
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +119 -11
- data/generated/google/apis/dataproc_v1/representations.rb +39 -0
- data/generated/google/apis/dataproc_v1/service.rb +14 -7
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +9 -11
- data/generated/google/apis/dataproc_v1beta2/service.rb +26 -19
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1/service.rb +85 -1
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +21 -1
- data/generated/google/apis/dfareporting_v3_3/service.rb +6 -6
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/classes.rb +1215 -797
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/representations.rb +593 -395
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/service.rb +966 -1074
- data/generated/google/apis/{dfareporting_v3_2.rb → dfareporting_v3_4.rb} +6 -6
- data/generated/google/apis/dialogflow_v2/classes.rb +509 -8
- data/generated/google/apis/dialogflow_v2/representations.rb +222 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +530 -8
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +224 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +109 -33
- data/generated/google/apis/dlp_v2/representations.rb +23 -3
- data/generated/google/apis/dlp_v2/service.rb +1996 -209
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +47 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +17 -0
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +175 -0
- data/generated/google/apis/docs_v1/representations.rb +77 -0
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +826 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +372 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +371 -0
- data/generated/google/apis/{urlshortener_v1.rb → doubleclickbidmanager_v1_1.rb} +11 -11
- data/generated/google/apis/drive_v2/classes.rb +2 -1
- data/generated/google/apis/drive_v2/service.rb +3 -3
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +12 -3
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/fcm_v1/classes.rb +15 -0
- data/generated/google/apis/fcm_v1/representations.rb +2 -0
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +18 -4
- data/generated/google/apis/firebase_v1beta1/representations.rb +2 -0
- data/generated/google/apis/firebase_v1beta1/service.rb +6 -6
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +62 -0
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +31 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +47 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +1 -1
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +6 -26
- data/generated/google/apis/games_management_v1management/representations.rb +1 -14
- data/generated/google/apis/games_management_v1management/service.rb +0 -158
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +6 -292
- data/generated/google/apis/games_v1/representations.rb +1 -98
- data/generated/google/apis/games_v1/service.rb +0 -123
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +32 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +213 -16
- data/generated/google/apis/healthcare_v1beta1/representations.rb +101 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +207 -116
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/homegraph_v1/classes.rb +15 -1
- data/generated/google/apis/homegraph_v1/representations.rb +2 -1
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +15 -7
- data/generated/google/apis/iam_v1/representations.rb +1 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +187 -2
- data/generated/google/apis/iap_v1/representations.rb +102 -0
- data/generated/google/apis/iap_v1/service.rb +72 -0
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +2 -2
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +167 -0
- data/generated/google/apis/jobs_v2/representations.rb +40 -0
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +179 -0
- data/generated/google/apis/jobs_v3/representations.rb +41 -0
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +179 -0
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +41 -0
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/licensing_v1/classes.rb +15 -7
- data/generated/google/apis/licensing_v1/service.rb +81 -37
- data/generated/google/apis/licensing_v1.rb +4 -4
- data/generated/google/apis/lifesciences_v2beta/classes.rb +1329 -0
- data/generated/google/apis/lifesciences_v2beta/representations.rb +533 -0
- data/generated/google/apis/lifesciences_v2beta/service.rb +303 -0
- data/generated/google/apis/lifesciences_v2beta.rb +35 -0
- data/generated/google/apis/logging_v2/classes.rb +30 -2
- data/generated/google/apis/logging_v2/representations.rb +4 -0
- data/generated/google/apis/logging_v2/service.rb +10 -5
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +308 -155
- data/generated/google/apis/ml_v1/representations.rb +59 -0
- data/generated/google/apis/ml_v1/service.rb +44 -3
- data/generated/google/apis/ml_v1.rb +2 -2
- data/generated/google/apis/monitoring_v1/classes.rb +1153 -0
- data/generated/google/apis/monitoring_v1/representations.rb +528 -0
- data/generated/google/apis/{cloudbuild_v1alpha1 → monitoring_v1}/service.rb +86 -63
- data/generated/google/apis/monitoring_v1.rb +48 -0
- data/generated/google/apis/monitoring_v3/classes.rb +836 -60
- data/generated/google/apis/monitoring_v3/representations.rb +348 -0
- data/generated/google/apis/monitoring_v3/service.rb +384 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +1 -1
- data/generated/google/apis/oslogin_v1/service.rb +10 -6
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/service.rb +9 -5
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5/classes.rb +8 -0
- data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +67 -63
- data/generated/google/apis/people_v1/service.rb +53 -44
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +168 -90
- data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -3
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +8 -6
- data/generated/google/apis/pubsub_v1/service.rb +9 -7
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +6 -5
- data/generated/google/apis/pubsub_v1beta2/service.rb +2 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/service.rb +10 -8
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +11 -11
- data/generated/google/apis/redis_v1/service.rb +5 -5
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +11 -11
- data/generated/google/apis/redis_v1beta1/service.rb +5 -5
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +113 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +50 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +113 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +50 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +113 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +50 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/reseller_v1/service.rb +1 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +8 -176
- data/generated/google/apis/run_v1/representations.rb +0 -71
- data/generated/google/apis/run_v1/service.rb +209 -1125
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +328 -9
- data/generated/google/apis/run_v1alpha1/representations.rb +126 -0
- data/generated/google/apis/run_v1alpha1/service.rb +408 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +75 -40
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +159 -66
- data/generated/google/apis/securitycenter_v1/representations.rb +19 -0
- data/generated/google/apis/securitycenter_v1/service.rb +14 -12
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +95 -57
- data/generated/google/apis/securitycenter_v1beta1/service.rb +14 -12
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +75 -40
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +75 -40
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +75 -40
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +95 -43
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +8 -12
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +142 -91
- data/generated/google/apis/servicemanagement_v1/representations.rb +24 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +32 -26
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +181 -54
- data/generated/google/apis/servicenetworking_v1/representations.rb +71 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +77 -3
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +32 -43
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +87 -43
- data/generated/google/apis/serviceusage_v1/representations.rb +29 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +87 -43
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +29 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +1371 -232
- data/generated/google/apis/sheets_v4/representations.rb +180 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +70 -30
- data/generated/google/apis/spanner_v1/service.rb +270 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +6 -0
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +6 -0
- data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/classes.rb +9 -8
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/representations.rb +6 -6
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/service.rb +13 -13
- data/generated/google/apis/{speech_v2beta.rb → speech_v2beta1.rb} +6 -6
- data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/classes.rb +499 -380
- data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/representations.rb +125 -104
- data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/service.rb +637 -590
- data/generated/google/apis/{sqladmin_v1beta4.rb → sql_v1beta4.rb} +7 -8
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +142 -1
- data/generated/google/apis/testing_v1/representations.rb +76 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +66 -0
- data/generated/google/apis/vision_v1/representations.rb +32 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +66 -0
- data/generated/google/apis/vision_v1p1beta1/representations.rb +32 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +66 -0
- data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +2 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/google-api-client.gemspec +6 -3
- data/lib/google/apis/core/api_command.rb +3 -0
- data/lib/google/apis/core/http_command.rb +10 -8
- data/lib/google/apis/core/upload.rb +4 -0
- data/lib/google/apis/version.rb +1 -1
- data/rakelib/devsite/devsite_builder.rb +126 -0
- data/rakelib/devsite/link_checker.rb +64 -0
- data/rakelib/devsite/repo_metadata.rb +56 -0
- metadata +64 -42
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +0 -1168
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +0 -434
- data/generated/google/apis/storage_v1beta1/classes.rb +0 -616
- data/generated/google/apis/storage_v1beta1/representations.rb +0 -249
- data/generated/google/apis/storage_v1beta1/service.rb +0 -1032
- data/generated/google/apis/storage_v1beta1.rb +0 -40
- data/generated/google/apis/urlshortener_v1/classes.rb +0 -246
- data/generated/google/apis/urlshortener_v1/representations.rb +0 -121
- data/generated/google/apis/urlshortener_v1/service.rb +0 -169
@@ -1,40 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'google/apis/storage_v1beta1/service.rb'
|
16
|
-
require 'google/apis/storage_v1beta1/classes.rb'
|
17
|
-
require 'google/apis/storage_v1beta1/representations.rb'
|
18
|
-
|
19
|
-
module Google
|
20
|
-
module Apis
|
21
|
-
# Cloud Storage JSON API
|
22
|
-
#
|
23
|
-
# Lets you store and retrieve potentially-large, immutable data objects.
|
24
|
-
#
|
25
|
-
# @see https://developers.google.com/storage/docs/json_api/
|
26
|
-
module StorageV1beta1
|
27
|
-
VERSION = 'V1beta1'
|
28
|
-
REVISION = '20190913'
|
29
|
-
|
30
|
-
# Manage your data and permissions in Google Cloud Storage
|
31
|
-
AUTH_DEVSTORAGE_FULL_CONTROL = 'https://www.googleapis.com/auth/devstorage.full_control'
|
32
|
-
|
33
|
-
# View your data in Google Cloud Storage
|
34
|
-
AUTH_DEVSTORAGE_READ_ONLY = 'https://www.googleapis.com/auth/devstorage.read_only'
|
35
|
-
|
36
|
-
# Manage your data in Google Cloud Storage
|
37
|
-
AUTH_DEVSTORAGE_READ_WRITE = 'https://www.googleapis.com/auth/devstorage.read_write'
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
@@ -1,246 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'date'
|
16
|
-
require 'google/apis/core/base_service'
|
17
|
-
require 'google/apis/core/json_representation'
|
18
|
-
require 'google/apis/core/hashable'
|
19
|
-
require 'google/apis/errors'
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Apis
|
23
|
-
module UrlshortenerV1
|
24
|
-
|
25
|
-
#
|
26
|
-
class AnalyticsSnapshot
|
27
|
-
include Google::Apis::Core::Hashable
|
28
|
-
|
29
|
-
# Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present
|
30
|
-
# if this data is available.
|
31
|
-
# Corresponds to the JSON property `browsers`
|
32
|
-
# @return [Array<Google::Apis::UrlshortenerV1::StringCount>]
|
33
|
-
attr_accessor :browsers
|
34
|
-
|
35
|
-
# Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (
|
36
|
-
# descending) click counts. Only present if this data is available.
|
37
|
-
# Corresponds to the JSON property `countries`
|
38
|
-
# @return [Array<Google::Apis::UrlshortenerV1::StringCount>]
|
39
|
-
attr_accessor :countries
|
40
|
-
|
41
|
-
# Number of clicks on all goo.gl short URLs pointing to this long URL.
|
42
|
-
# Corresponds to the JSON property `longUrlClicks`
|
43
|
-
# @return [Fixnum]
|
44
|
-
attr_accessor :long_url_clicks
|
45
|
-
|
46
|
-
# Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts.
|
47
|
-
# Only present if this data is available.
|
48
|
-
# Corresponds to the JSON property `platforms`
|
49
|
-
# @return [Array<Google::Apis::UrlshortenerV1::StringCount>]
|
50
|
-
attr_accessor :platforms
|
51
|
-
|
52
|
-
# Top referring hosts, e.g. "www.google.com"; sorted by (descending) click
|
53
|
-
# counts. Only present if this data is available.
|
54
|
-
# Corresponds to the JSON property `referrers`
|
55
|
-
# @return [Array<Google::Apis::UrlshortenerV1::StringCount>]
|
56
|
-
attr_accessor :referrers
|
57
|
-
|
58
|
-
# Number of clicks on this short URL.
|
59
|
-
# Corresponds to the JSON property `shortUrlClicks`
|
60
|
-
# @return [Fixnum]
|
61
|
-
attr_accessor :short_url_clicks
|
62
|
-
|
63
|
-
def initialize(**args)
|
64
|
-
update!(**args)
|
65
|
-
end
|
66
|
-
|
67
|
-
# Update properties of this object
|
68
|
-
def update!(**args)
|
69
|
-
@browsers = args[:browsers] if args.key?(:browsers)
|
70
|
-
@countries = args[:countries] if args.key?(:countries)
|
71
|
-
@long_url_clicks = args[:long_url_clicks] if args.key?(:long_url_clicks)
|
72
|
-
@platforms = args[:platforms] if args.key?(:platforms)
|
73
|
-
@referrers = args[:referrers] if args.key?(:referrers)
|
74
|
-
@short_url_clicks = args[:short_url_clicks] if args.key?(:short_url_clicks)
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
#
|
79
|
-
class AnalyticsSummary
|
80
|
-
include Google::Apis::Core::Hashable
|
81
|
-
|
82
|
-
# Click analytics over all time.
|
83
|
-
# Corresponds to the JSON property `allTime`
|
84
|
-
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
|
85
|
-
attr_accessor :all_time
|
86
|
-
|
87
|
-
# Click analytics over the last day.
|
88
|
-
# Corresponds to the JSON property `day`
|
89
|
-
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
|
90
|
-
attr_accessor :day
|
91
|
-
|
92
|
-
# Click analytics over the last month.
|
93
|
-
# Corresponds to the JSON property `month`
|
94
|
-
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
|
95
|
-
attr_accessor :month
|
96
|
-
|
97
|
-
# Click analytics over the last two hours.
|
98
|
-
# Corresponds to the JSON property `twoHours`
|
99
|
-
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
|
100
|
-
attr_accessor :two_hours
|
101
|
-
|
102
|
-
# Click analytics over the last week.
|
103
|
-
# Corresponds to the JSON property `week`
|
104
|
-
# @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]
|
105
|
-
attr_accessor :week
|
106
|
-
|
107
|
-
def initialize(**args)
|
108
|
-
update!(**args)
|
109
|
-
end
|
110
|
-
|
111
|
-
# Update properties of this object
|
112
|
-
def update!(**args)
|
113
|
-
@all_time = args[:all_time] if args.key?(:all_time)
|
114
|
-
@day = args[:day] if args.key?(:day)
|
115
|
-
@month = args[:month] if args.key?(:month)
|
116
|
-
@two_hours = args[:two_hours] if args.key?(:two_hours)
|
117
|
-
@week = args[:week] if args.key?(:week)
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
|
-
#
|
122
|
-
class StringCount
|
123
|
-
include Google::Apis::Core::Hashable
|
124
|
-
|
125
|
-
# Number of clicks for this top entry, e.g. for this particular country or
|
126
|
-
# browser.
|
127
|
-
# Corresponds to the JSON property `count`
|
128
|
-
# @return [Fixnum]
|
129
|
-
attr_accessor :count
|
130
|
-
|
131
|
-
# Label assigned to this top entry, e.g. "US" or "Chrome".
|
132
|
-
# Corresponds to the JSON property `id`
|
133
|
-
# @return [String]
|
134
|
-
attr_accessor :id
|
135
|
-
|
136
|
-
def initialize(**args)
|
137
|
-
update!(**args)
|
138
|
-
end
|
139
|
-
|
140
|
-
# Update properties of this object
|
141
|
-
def update!(**args)
|
142
|
-
@count = args[:count] if args.key?(:count)
|
143
|
-
@id = args[:id] if args.key?(:id)
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
#
|
148
|
-
class Url
|
149
|
-
include Google::Apis::Core::Hashable
|
150
|
-
|
151
|
-
# A summary of the click analytics for the short and long URL. Might not be
|
152
|
-
# present if not requested or currently unavailable.
|
153
|
-
# Corresponds to the JSON property `analytics`
|
154
|
-
# @return [Google::Apis::UrlshortenerV1::AnalyticsSummary]
|
155
|
-
attr_accessor :analytics
|
156
|
-
|
157
|
-
# Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T'
|
158
|
-
# HH:mm:ss.SSSZZ format, e.g. "2010-10-14T19:01:24.944+00:00".
|
159
|
-
# Corresponds to the JSON property `created`
|
160
|
-
# @return [String]
|
161
|
-
attr_accessor :created
|
162
|
-
|
163
|
-
# Short URL, e.g. "http://goo.gl/l6MS".
|
164
|
-
# Corresponds to the JSON property `id`
|
165
|
-
# @return [String]
|
166
|
-
attr_accessor :id
|
167
|
-
|
168
|
-
# The fixed string "urlshortener#url".
|
169
|
-
# Corresponds to the JSON property `kind`
|
170
|
-
# @return [String]
|
171
|
-
attr_accessor :kind
|
172
|
-
|
173
|
-
# Long URL, e.g. "http://www.google.com/". Might not be present if the status is
|
174
|
-
# "REMOVED".
|
175
|
-
# Corresponds to the JSON property `longUrl`
|
176
|
-
# @return [String]
|
177
|
-
attr_accessor :long_url
|
178
|
-
|
179
|
-
# Status of the target URL. Possible values: "OK", "MALWARE", "PHISHING", or "
|
180
|
-
# REMOVED". A URL might be marked "REMOVED" if it was flagged as spam, for
|
181
|
-
# example.
|
182
|
-
# Corresponds to the JSON property `status`
|
183
|
-
# @return [String]
|
184
|
-
attr_accessor :status
|
185
|
-
|
186
|
-
def initialize(**args)
|
187
|
-
update!(**args)
|
188
|
-
end
|
189
|
-
|
190
|
-
# Update properties of this object
|
191
|
-
def update!(**args)
|
192
|
-
@analytics = args[:analytics] if args.key?(:analytics)
|
193
|
-
@created = args[:created] if args.key?(:created)
|
194
|
-
@id = args[:id] if args.key?(:id)
|
195
|
-
@kind = args[:kind] if args.key?(:kind)
|
196
|
-
@long_url = args[:long_url] if args.key?(:long_url)
|
197
|
-
@status = args[:status] if args.key?(:status)
|
198
|
-
end
|
199
|
-
end
|
200
|
-
|
201
|
-
#
|
202
|
-
class UrlHistory
|
203
|
-
include Google::Apis::Core::Hashable
|
204
|
-
|
205
|
-
# A list of URL resources.
|
206
|
-
# Corresponds to the JSON property `items`
|
207
|
-
# @return [Array<Google::Apis::UrlshortenerV1::Url>]
|
208
|
-
attr_accessor :items
|
209
|
-
|
210
|
-
# Number of items returned with each full "page" of results. Note that the last
|
211
|
-
# page could have fewer items than the "itemsPerPage" value.
|
212
|
-
# Corresponds to the JSON property `itemsPerPage`
|
213
|
-
# @return [Fixnum]
|
214
|
-
attr_accessor :items_per_page
|
215
|
-
|
216
|
-
# The fixed string "urlshortener#urlHistory".
|
217
|
-
# Corresponds to the JSON property `kind`
|
218
|
-
# @return [String]
|
219
|
-
attr_accessor :kind
|
220
|
-
|
221
|
-
# A token to provide to get the next page of results.
|
222
|
-
# Corresponds to the JSON property `nextPageToken`
|
223
|
-
# @return [String]
|
224
|
-
attr_accessor :next_page_token
|
225
|
-
|
226
|
-
# Total number of short URLs associated with this user (may be approximate).
|
227
|
-
# Corresponds to the JSON property `totalItems`
|
228
|
-
# @return [Fixnum]
|
229
|
-
attr_accessor :total_items
|
230
|
-
|
231
|
-
def initialize(**args)
|
232
|
-
update!(**args)
|
233
|
-
end
|
234
|
-
|
235
|
-
# Update properties of this object
|
236
|
-
def update!(**args)
|
237
|
-
@items = args[:items] if args.key?(:items)
|
238
|
-
@items_per_page = args[:items_per_page] if args.key?(:items_per_page)
|
239
|
-
@kind = args[:kind] if args.key?(:kind)
|
240
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
241
|
-
@total_items = args[:total_items] if args.key?(:total_items)
|
242
|
-
end
|
243
|
-
end
|
244
|
-
end
|
245
|
-
end
|
246
|
-
end
|
@@ -1,121 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'date'
|
16
|
-
require 'google/apis/core/base_service'
|
17
|
-
require 'google/apis/core/json_representation'
|
18
|
-
require 'google/apis/core/hashable'
|
19
|
-
require 'google/apis/errors'
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Apis
|
23
|
-
module UrlshortenerV1
|
24
|
-
|
25
|
-
class AnalyticsSnapshot
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
29
|
-
end
|
30
|
-
|
31
|
-
class AnalyticsSummary
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
-
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
35
|
-
end
|
36
|
-
|
37
|
-
class StringCount
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
-
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
41
|
-
end
|
42
|
-
|
43
|
-
class Url
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
|
-
class UrlHistory
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
|
-
class AnalyticsSnapshot
|
56
|
-
# @private
|
57
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
58
|
-
collection :browsers, as: 'browsers', class: Google::Apis::UrlshortenerV1::StringCount, decorator: Google::Apis::UrlshortenerV1::StringCount::Representation
|
59
|
-
|
60
|
-
collection :countries, as: 'countries', class: Google::Apis::UrlshortenerV1::StringCount, decorator: Google::Apis::UrlshortenerV1::StringCount::Representation
|
61
|
-
|
62
|
-
property :long_url_clicks, :numeric_string => true, as: 'longUrlClicks'
|
63
|
-
collection :platforms, as: 'platforms', class: Google::Apis::UrlshortenerV1::StringCount, decorator: Google::Apis::UrlshortenerV1::StringCount::Representation
|
64
|
-
|
65
|
-
collection :referrers, as: 'referrers', class: Google::Apis::UrlshortenerV1::StringCount, decorator: Google::Apis::UrlshortenerV1::StringCount::Representation
|
66
|
-
|
67
|
-
property :short_url_clicks, :numeric_string => true, as: 'shortUrlClicks'
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
class AnalyticsSummary
|
72
|
-
# @private
|
73
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
74
|
-
property :all_time, as: 'allTime', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
|
75
|
-
|
76
|
-
property :day, as: 'day', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
|
77
|
-
|
78
|
-
property :month, as: 'month', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
|
79
|
-
|
80
|
-
property :two_hours, as: 'twoHours', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
|
81
|
-
|
82
|
-
property :week, as: 'week', class: Google::Apis::UrlshortenerV1::AnalyticsSnapshot, decorator: Google::Apis::UrlshortenerV1::AnalyticsSnapshot::Representation
|
83
|
-
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
class StringCount
|
88
|
-
# @private
|
89
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
90
|
-
property :count, :numeric_string => true, as: 'count'
|
91
|
-
property :id, as: 'id'
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
class Url
|
96
|
-
# @private
|
97
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
98
|
-
property :analytics, as: 'analytics', class: Google::Apis::UrlshortenerV1::AnalyticsSummary, decorator: Google::Apis::UrlshortenerV1::AnalyticsSummary::Representation
|
99
|
-
|
100
|
-
property :created, as: 'created'
|
101
|
-
property :id, as: 'id'
|
102
|
-
property :kind, as: 'kind'
|
103
|
-
property :long_url, as: 'longUrl'
|
104
|
-
property :status, as: 'status'
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
class UrlHistory
|
109
|
-
# @private
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
111
|
-
collection :items, as: 'items', class: Google::Apis::UrlshortenerV1::Url, decorator: Google::Apis::UrlshortenerV1::Url::Representation
|
112
|
-
|
113
|
-
property :items_per_page, as: 'itemsPerPage'
|
114
|
-
property :kind, as: 'kind'
|
115
|
-
property :next_page_token, as: 'nextPageToken'
|
116
|
-
property :total_items, as: 'totalItems'
|
117
|
-
end
|
118
|
-
end
|
119
|
-
end
|
120
|
-
end
|
121
|
-
end
|
@@ -1,169 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'google/apis/core/base_service'
|
16
|
-
require 'google/apis/core/json_representation'
|
17
|
-
require 'google/apis/core/hashable'
|
18
|
-
require 'google/apis/errors'
|
19
|
-
|
20
|
-
module Google
|
21
|
-
module Apis
|
22
|
-
module UrlshortenerV1
|
23
|
-
# URL Shortener API
|
24
|
-
#
|
25
|
-
# Lets you create, inspect, and manage goo.gl short URLs
|
26
|
-
#
|
27
|
-
# @example
|
28
|
-
# require 'google/apis/urlshortener_v1'
|
29
|
-
#
|
30
|
-
# Urlshortener = Google::Apis::UrlshortenerV1 # Alias the module
|
31
|
-
# service = Urlshortener::UrlshortenerService.new
|
32
|
-
#
|
33
|
-
# @see https://developers.google.com/url-shortener/v1/getting_started
|
34
|
-
class UrlshortenerService < Google::Apis::Core::BaseService
|
35
|
-
# @return [String]
|
36
|
-
# API key. Your API key identifies your project and provides you with API access,
|
37
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
-
attr_accessor :key
|
39
|
-
|
40
|
-
# @return [String]
|
41
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
42
|
-
# characters.
|
43
|
-
attr_accessor :quota_user
|
44
|
-
|
45
|
-
# @return [String]
|
46
|
-
# Deprecated. Please use quotaUser instead.
|
47
|
-
attr_accessor :user_ip
|
48
|
-
|
49
|
-
def initialize
|
50
|
-
super('https://www.googleapis.com/', 'urlshortener/v1/')
|
51
|
-
@batch_path = 'batch/urlshortener/v1'
|
52
|
-
end
|
53
|
-
|
54
|
-
# Expands a short URL or gets creation time and analytics.
|
55
|
-
# @param [String] short_url
|
56
|
-
# The short URL, including the protocol.
|
57
|
-
# @param [String] projection
|
58
|
-
# Additional information to return.
|
59
|
-
# @param [String] fields
|
60
|
-
# Selector specifying which fields to include in a partial response.
|
61
|
-
# @param [String] quota_user
|
62
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
63
|
-
# characters.
|
64
|
-
# @param [String] user_ip
|
65
|
-
# Deprecated. Please use quotaUser instead.
|
66
|
-
# @param [Google::Apis::RequestOptions] options
|
67
|
-
# Request-specific options
|
68
|
-
#
|
69
|
-
# @yield [result, err] Result & error if block supplied
|
70
|
-
# @yieldparam result [Google::Apis::UrlshortenerV1::Url] parsed result object
|
71
|
-
# @yieldparam err [StandardError] error object if request failed
|
72
|
-
#
|
73
|
-
# @return [Google::Apis::UrlshortenerV1::Url]
|
74
|
-
#
|
75
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
-
def get_url(short_url, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
79
|
-
command = make_simple_command(:get, 'url', options)
|
80
|
-
command.response_representation = Google::Apis::UrlshortenerV1::Url::Representation
|
81
|
-
command.response_class = Google::Apis::UrlshortenerV1::Url
|
82
|
-
command.query['projection'] = projection unless projection.nil?
|
83
|
-
command.query['shortUrl'] = short_url unless short_url.nil?
|
84
|
-
command.query['fields'] = fields unless fields.nil?
|
85
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
86
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
87
|
-
execute_or_queue_command(command, &block)
|
88
|
-
end
|
89
|
-
|
90
|
-
# Creates a new short URL.
|
91
|
-
# @param [Google::Apis::UrlshortenerV1::Url] url_object
|
92
|
-
# @param [String] fields
|
93
|
-
# Selector specifying which fields to include in a partial response.
|
94
|
-
# @param [String] quota_user
|
95
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
96
|
-
# characters.
|
97
|
-
# @param [String] user_ip
|
98
|
-
# Deprecated. Please use quotaUser instead.
|
99
|
-
# @param [Google::Apis::RequestOptions] options
|
100
|
-
# Request-specific options
|
101
|
-
#
|
102
|
-
# @yield [result, err] Result & error if block supplied
|
103
|
-
# @yieldparam result [Google::Apis::UrlshortenerV1::Url] parsed result object
|
104
|
-
# @yieldparam err [StandardError] error object if request failed
|
105
|
-
#
|
106
|
-
# @return [Google::Apis::UrlshortenerV1::Url]
|
107
|
-
#
|
108
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
109
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
110
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
111
|
-
def insert_url(url_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
112
|
-
command = make_simple_command(:post, 'url', options)
|
113
|
-
command.request_representation = Google::Apis::UrlshortenerV1::Url::Representation
|
114
|
-
command.request_object = url_object
|
115
|
-
command.response_representation = Google::Apis::UrlshortenerV1::Url::Representation
|
116
|
-
command.response_class = Google::Apis::UrlshortenerV1::Url
|
117
|
-
command.query['fields'] = fields unless fields.nil?
|
118
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
119
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
120
|
-
execute_or_queue_command(command, &block)
|
121
|
-
end
|
122
|
-
|
123
|
-
# Retrieves a list of URLs shortened by a user.
|
124
|
-
# @param [String] projection
|
125
|
-
# Additional information to return.
|
126
|
-
# @param [String] start_token
|
127
|
-
# Token for requesting successive pages of results.
|
128
|
-
# @param [String] fields
|
129
|
-
# Selector specifying which fields to include in a partial response.
|
130
|
-
# @param [String] quota_user
|
131
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
132
|
-
# characters.
|
133
|
-
# @param [String] user_ip
|
134
|
-
# Deprecated. Please use quotaUser instead.
|
135
|
-
# @param [Google::Apis::RequestOptions] options
|
136
|
-
# Request-specific options
|
137
|
-
#
|
138
|
-
# @yield [result, err] Result & error if block supplied
|
139
|
-
# @yieldparam result [Google::Apis::UrlshortenerV1::UrlHistory] parsed result object
|
140
|
-
# @yieldparam err [StandardError] error object if request failed
|
141
|
-
#
|
142
|
-
# @return [Google::Apis::UrlshortenerV1::UrlHistory]
|
143
|
-
#
|
144
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
145
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
146
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
147
|
-
def list_urls(projection: nil, start_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
148
|
-
command = make_simple_command(:get, 'url/history', options)
|
149
|
-
command.response_representation = Google::Apis::UrlshortenerV1::UrlHistory::Representation
|
150
|
-
command.response_class = Google::Apis::UrlshortenerV1::UrlHistory
|
151
|
-
command.query['projection'] = projection unless projection.nil?
|
152
|
-
command.query['start-token'] = start_token unless start_token.nil?
|
153
|
-
command.query['fields'] = fields unless fields.nil?
|
154
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
155
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
156
|
-
execute_or_queue_command(command, &block)
|
157
|
-
end
|
158
|
-
|
159
|
-
protected
|
160
|
-
|
161
|
-
def apply_command_defaults(command)
|
162
|
-
command.query['key'] = key unless key.nil?
|
163
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
164
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
165
|
-
end
|
166
|
-
end
|
167
|
-
end
|
168
|
-
end
|
169
|
-
end
|