google-api-client 0.29.0 → 0.29.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +122 -0
- data/README.md +1 -1
- data/bin/generate-api +4 -2
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +2 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -1
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +27 -0
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +15 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +18 -18
- 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/service.rb +19 -19
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/service.rb +16 -16
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +0 -69
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -32
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +62 -62
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +7 -7
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -21
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -38
- data/generated/google/apis/adexperiencereport_v1/service.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/service.rb +5 -5
- data/generated/google/apis/admin_directory_v1/service.rb +113 -113
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4/service.rb +39 -39
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -26
- data/generated/google/apis/alertcenter_v1beta1/service.rb +8 -8
- data/generated/google/apis/analytics_v2_4/service.rb +6 -6
- data/generated/google/apis/analytics_v3/service.rb +88 -88
- data/generated/google/apis/analyticsreporting_v4/service.rb +2 -2
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +26 -26
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +85 -85
- data/generated/google/apis/androidmanagement_v1/classes.rb +111 -2
- data/generated/google/apis/androidmanagement_v1/representations.rb +48 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +26 -26
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1/service.rb +2 -2
- data/generated/google/apis/androidpublisher_v1_1/service.rb +3 -3
- data/generated/google/apis/androidpublisher_v2/service.rb +58 -58
- data/generated/google/apis/androidpublisher_v3/classes.rb +81 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +42 -0
- data/generated/google/apis/androidpublisher_v3/service.rb +228 -52
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +2 -2
- data/generated/google/apis/appengine_v1/service.rb +38 -38
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1alpha/classes.rb +2 -2
- data/generated/google/apis/appengine_v1alpha/service.rb +15 -15
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +2 -2
- data/generated/google/apis/appengine_v1beta/service.rb +38 -38
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta4/service.rb +20 -20
- data/generated/google/apis/appengine_v1beta5/service.rb +20 -20
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appsmarket_v2/service.rb +3 -3
- data/generated/google/apis/appstate_v1/service.rb +5 -5
- data/generated/google/apis/bigquery_v2/classes.rb +53 -33
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/bigquery_v2/service.rb +26 -26
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -30
- data/generated/google/apis/bigtableadmin_v1/service.rb +2 -2
- data/generated/google/apis/bigtableadmin_v2/service.rb +34 -34
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +17 -13
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/blogger_v2/service.rb +9 -9
- data/generated/google/apis/blogger_v3/service.rb +33 -33
- data/generated/google/apis/books_v1/service.rb +51 -51
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +45 -45
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/chat_v1/service.rb +8 -8
- data/generated/google/apis/civicinfo_v2/service.rb +5 -5
- data/generated/google/apis/classroom_v1/service.rb +57 -56
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/service.rb +3 -3
- data/generated/google/apis/cloudasset_v1beta1/service.rb +8 -8
- data/generated/google/apis/cloudbilling_v1/service.rb +12 -12
- data/generated/google/apis/cloudbuild_v1/classes.rb +7 -1
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +14 -14
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +5 -5
- data/generated/google/apis/clouddebugger_v2/service.rb +8 -8
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +6 -6
- data/generated/google/apis/cloudfunctions_v1/classes.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +14 -14
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +11 -11
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/service.rb +12 -12
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +11 -11
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/service.rb +23 -330
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/service.rb +30 -30
- data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +10 -10
- data/generated/google/apis/cloudprivatecatalog_v1beta1.rb +2 -2
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +30 -30
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +2 -2
- data/generated/google/apis/cloudprofiler_v2/service.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +38 -38
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +16 -16
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +12 -12
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +12 -12
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/service.rb +10 -10
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +10 -10
- data/generated/google/apis/cloudsearch_v1/classes.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/service.rb +35 -35
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +1 -1
- data/generated/google/apis/cloudshell_v1/service.rb +4 -4
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/service.rb +6 -6
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +22 -18
- data/generated/google/apis/cloudtasks_v2/service.rb +24 -24
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +22 -14
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +28 -28
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +266 -18
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +65 -0
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +24 -24
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/service.rb +3 -3
- data/generated/google/apis/cloudtrace_v2/service.rb +2 -2
- data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +2 -2
- data/generated/google/apis/composer_v1/service.rb +9 -9
- data/generated/google/apis/composer_v1beta1/service.rb +9 -9
- data/generated/google/apis/compute_alpha/classes.rb +29 -0
- data/generated/google/apis/compute_alpha/representations.rb +15 -0
- data/generated/google/apis/compute_alpha/service.rb +625 -623
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_beta/service.rb +504 -503
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1/service.rb +411 -410
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +2 -1
- data/generated/google/apis/container_v1/service.rb +63 -63
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +52 -4
- data/generated/google/apis/container_v1beta1/representations.rb +20 -0
- data/generated/google/apis/container_v1beta1/service.rb +64 -64
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/service.rb +33 -33
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/service.rb +24 -24
- data/generated/google/apis/content_v2/classes.rb +9 -3
- data/generated/google/apis/content_v2/service.rb +101 -105
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +9 -3
- data/generated/google/apis/content_v2_1/service.rb +89 -93
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +2 -2
- data/generated/google/apis/dataflow_v1b3/classes.rb +22 -1
- data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +38 -38
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/service.rb +16 -16
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +2 -2
- data/generated/google/apis/dataproc_v1/service.rb +261 -45
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +2 -2
- data/generated/google/apis/dataproc_v1beta2/service.rb +62 -65
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1/service.rb +15 -15
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/service.rb +2 -2
- data/generated/google/apis/datastore_v1beta3/service.rb +7 -7
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/service.rb +37 -37
- data/generated/google/apis/deploymentmanager_v2/service.rb +18 -18
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +32 -32
- data/generated/google/apis/dfareporting_v3_1/service.rb +206 -206
- data/generated/google/apis/dfareporting_v3_2/service.rb +206 -206
- data/generated/google/apis/dfareporting_v3_3/service.rb +204 -204
- data/generated/google/apis/dialogflow_v2/classes.rb +8 -8
- data/generated/google/apis/dialogflow_v2/service.rb +36 -36
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +9 -9
- data/generated/google/apis/dialogflow_v2beta1/service.rb +114 -70
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/digitalassetlinks_v1/service.rb +7 -6
- data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
- data/generated/google/apis/discovery_v1/service.rb +2 -2
- data/generated/google/apis/dlp_v2/classes.rb +8 -2
- data/generated/google/apis/dlp_v2/service.rb +51 -46
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dns_v1/service.rb +15 -15
- data/generated/google/apis/dns_v1beta2/service.rb +21 -21
- data/generated/google/apis/dns_v2beta1/service.rb +16 -16
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +137 -0
- data/generated/google/apis/docs_v1/representations.rb +57 -0
- data/generated/google/apis/docs_v1/service.rb +3 -3
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +9 -9
- data/generated/google/apis/doubleclicksearch_v2/service.rb +10 -10
- data/generated/google/apis/drive_v2/classes.rb +10 -21
- data/generated/google/apis/drive_v2/service.rb +152 -100
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +9 -20
- data/generated/google/apis/drive_v3/service.rb +100 -64
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/driveactivity_v2/service.rb +1 -1
- data/generated/google/apis/factchecktools_v1alpha1/service.rb +6 -6
- data/generated/google/apis/fcm_v1/classes.rb +424 -0
- data/generated/google/apis/fcm_v1/representations.rb +167 -0
- data/generated/google/apis/fcm_v1/service.rb +97 -0
- data/generated/google/apis/fcm_v1.rb +35 -0
- data/generated/google/apis/file_v1/classes.rb +52 -1
- data/generated/google/apis/file_v1/representations.rb +16 -0
- data/generated/google/apis/file_v1/service.rb +11 -11
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +52 -1
- data/generated/google/apis/file_v1beta1/representations.rb +16 -0
- data/generated/google/apis/file_v1beta1/service.rb +11 -11
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -5
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +14 -14
- data/generated/google/apis/firebaserules_v1/service.rb +11 -11
- data/generated/google/apis/firestore_v1/service.rb +28 -28
- data/generated/google/apis/firestore_v1beta1/service.rb +19 -19
- data/generated/google/apis/firestore_v1beta2/service.rb +9 -9
- data/generated/google/apis/fitness_v1/service.rb +13 -13
- data/generated/google/apis/fusiontables_v1/service.rb +32 -32
- data/generated/google/apis/fusiontables_v2/service.rb +34 -34
- data/generated/google/apis/games_configuration_v1configuration/service.rb +13 -13
- data/generated/google/apis/games_management_v1management/service.rb +27 -27
- data/generated/google/apis/games_v1/service.rb +53 -53
- data/generated/google/apis/genomics_v1/service.rb +3 -3
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +2 -2
- data/generated/google/apis/genomics_v1alpha2/service.rb +10 -10
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +7 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -0
- data/generated/google/apis/genomics_v2alpha1/service.rb +5 -5
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +68 -68
- data/generated/google/apis/groupsmigration_v1/service.rb +1 -1
- data/generated/google/apis/groupssettings_v1/service.rb +3 -3
- data/generated/google/apis/healthcare_v1alpha2/classes.rb +2849 -0
- data/generated/google/apis/healthcare_v1alpha2/representations.rb +1260 -0
- data/generated/google/apis/healthcare_v1alpha2/service.rb +4011 -0
- data/generated/google/apis/healthcare_v1alpha2.rb +34 -0
- data/generated/google/apis/healthcare_v1beta1/classes.rb +4 -2
- data/generated/google/apis/healthcare_v1beta1/service.rb +97 -87
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +48 -0
- data/generated/google/apis/iam_v1/representations.rb +28 -0
- data/generated/google/apis/iam_v1/service.rb +59 -42
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/service.rb +5 -5
- data/generated/google/apis/iap_v1/service.rb +3 -3
- data/generated/google/apis/iap_v1beta1/service.rb +3 -3
- data/generated/google/apis/identitytoolkit_v3/service.rb +20 -20
- data/generated/google/apis/indexing_v3/service.rb +2 -2
- data/generated/google/apis/jobs_v2/service.rb +17 -17
- data/generated/google/apis/jobs_v3/service.rb +15 -15
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +2 -2
- data/generated/google/apis/jobs_v3p1beta1/service.rb +16 -16
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +1 -1
- data/generated/google/apis/language_v1/service.rb +6 -6
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1beta1/service.rb +4 -4
- data/generated/google/apis/language_v1beta2/service.rb +6 -6
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/libraryagent_v1/service.rb +6 -6
- data/generated/google/apis/licensing_v1/service.rb +7 -7
- data/generated/google/apis/logging_v2/classes.rb +6 -0
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2/service.rb +72 -72
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/manufacturers_v1/service.rb +4 -4
- data/generated/google/apis/mirror_v1/service.rb +24 -24
- data/generated/google/apis/ml_v1/classes.rb +73 -55
- data/generated/google/apis/ml_v1/service.rb +31 -31
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +14 -1
- data/generated/google/apis/monitoring_v3/representations.rb +2 -0
- data/generated/google/apis/monitoring_v3/service.rb +36 -36
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/oauth2_v1/service.rb +3 -3
- data/generated/google/apis/oauth2_v2/service.rb +4 -4
- data/generated/google/apis/oslogin_v1/service.rb +6 -6
- data/generated/google/apis/oslogin_v1alpha/service.rb +6 -6
- data/generated/google/apis/oslogin_v1beta/service.rb +6 -6
- data/generated/google/apis/pagespeedonline_v1/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v4/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5/classes.rb +43 -0
- data/generated/google/apis/pagespeedonline_v5/representations.rb +18 -0
- data/generated/google/apis/pagespeedonline_v5/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/people_v1/service.rb +13 -13
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/playcustomapp_v1/service.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +10 -10
- data/generated/google/apis/plus_v1/service.rb +9 -9
- data/generated/google/apis/poly_v1/service.rb +4 -4
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +17 -17
- data/generated/google/apis/pubsub_v1/service.rb +32 -32
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a/service.rb +15 -15
- data/generated/google/apis/pubsub_v1beta2/service.rb +20 -20
- data/generated/google/apis/redis_v1/service.rb +19 -19
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
- data/generated/google/apis/redis_v1beta1/service.rb +15 -15
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/service.rb +7 -7
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +10 -10
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/service.rb +9 -9
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/replicapool_v1beta1/service.rb +10 -10
- data/generated/google/apis/reseller_v1/service.rb +17 -17
- data/generated/google/apis/run_v1/service.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +427 -0
- data/generated/google/apis/run_v1alpha1/representations.rb +162 -0
- data/generated/google/apis/run_v1alpha1/service.rb +446 -38
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/service.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +22 -22
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/safebrowsing_v4/service.rb +7 -7
- data/generated/google/apis/script_v1/classes.rb +167 -0
- data/generated/google/apis/script_v1/representations.rb +79 -0
- data/generated/google/apis/script_v1/service.rb +16 -16
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/service.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +1 -1
- data/generated/google/apis/securitycenter_v1/service.rb +23 -23
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/service.rb +23 -23
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/service.rb +3 -3
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +16 -16
- data/generated/google/apis/servicebroker_v1beta1/service.rb +21 -21
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +14 -60
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +2 -29
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +14 -14
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +12 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +2 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +3 -3
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +40 -60
- data/generated/google/apis/servicemanagement_v1/representations.rb +13 -26
- data/generated/google/apis/servicemanagement_v1/service.rb +24 -24
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +14 -60
- data/generated/google/apis/servicenetworking_v1/representations.rb +2 -29
- data/generated/google/apis/servicenetworking_v1/service.rb +9 -9
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +14 -60
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +2 -29
- data/generated/google/apis/servicenetworking_v1beta/service.rb +6 -6
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +14 -60
- data/generated/google/apis/serviceusage_v1/representations.rb +2 -29
- data/generated/google/apis/serviceusage_v1/service.rb +17 -19
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +14 -60
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +2 -29
- data/generated/google/apis/serviceusage_v1beta1/service.rb +7 -7
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/sheets_v4/service.rb +17 -17
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +7 -7
- data/generated/google/apis/slides_v1/service.rb +5 -5
- data/generated/google/apis/sourcerepo_v1/service.rb +11 -11
- data/generated/google/apis/spanner_v1/classes.rb +51 -9
- data/generated/google/apis/spanner_v1/representations.rb +17 -0
- data/generated/google/apis/spanner_v1/service.rb +41 -41
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +2 -2
- data/generated/google/apis/speech_v1/service.rb +7 -7
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +2 -2
- data/generated/google/apis/speech_v1p1beta1/service.rb +7 -7
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +12 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +44 -44
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +2 -2
- data/generated/google/apis/storage_v1/representations.rb +2 -1
- data/generated/google/apis/storage_v1/service.rb +52 -52
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1beta1/service.rb +24 -24
- data/generated/google/apis/storage_v1beta2/service.rb +34 -34
- data/generated/google/apis/storagetransfer_v1/classes.rb +13 -20
- data/generated/google/apis/storagetransfer_v1/service.rb +31 -32
- 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/service.rb +9 -9
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/surveys_v2/service.rb +8 -8
- data/generated/google/apis/tagmanager_v1/service.rb +49 -49
- data/generated/google/apis/tagmanager_v2/service.rb +74 -74
- data/generated/google/apis/tasks_v1/service.rb +14 -14
- data/generated/google/apis/testing_v1/classes.rb +25 -12
- data/generated/google/apis/testing_v1/representations.rb +2 -0
- data/generated/google/apis/testing_v1/service.rb +5 -5
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1/service.rb +2 -2
- data/generated/google/apis/texttospeech_v1beta1/service.rb +2 -2
- data/generated/google/apis/toolresults_v1beta3/classes.rb +8 -17
- data/generated/google/apis/toolresults_v1beta3/service.rb +26 -26
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +1 -1
- data/generated/google/apis/tpu_v1/service.rb +17 -17
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/service.rb +17 -17
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/translate_v2/service.rb +5 -5
- data/generated/google/apis/urlshortener_v1/service.rb +3 -3
- data/generated/google/apis/vault_v1/service.rb +28 -28
- data/generated/google/apis/videointelligence_v1/service.rb +5 -5
- data/generated/google/apis/videointelligence_v1beta2/service.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/service.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/service.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/service.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +2372 -73
- data/generated/google/apis/vision_v1/representations.rb +1643 -651
- data/generated/google/apis/vision_v1/service.rb +98 -35
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +2371 -52
- data/generated/google/apis/vision_v1p1beta1/representations.rb +1733 -727
- data/generated/google/apis/vision_v1p1beta1/service.rb +73 -2
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +2371 -52
- data/generated/google/apis/vision_v1p2beta1/representations.rb +1733 -727
- data/generated/google/apis/vision_v1p2beta1/service.rb +73 -2
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/webfonts_v1/service.rb +1 -1
- data/generated/google/apis/webmasters_v3/service.rb +9 -9
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +13 -13
- data/generated/google/apis/websecurityscanner_v1beta/service.rb +13 -13
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +8 -8
- data/generated/google/apis/youtube_analytics_v2/service.rb +8 -8
- data/generated/google/apis/youtube_partner_v1/service.rb +74 -74
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3/service.rb +71 -71
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/service.rb +8 -8
- data/google-api-client.gemspec +1 -1
- data/lib/google/apis/core/json_representation.rb +4 -0
- data/lib/google/apis/core/upload.rb +3 -3
- data/lib/google/apis/generator/templates/_method.tmpl +3 -3
- data/lib/google/apis/version.rb +1 -1
- metadata +13 -6
- data/samples/web/.env +0 -2
@@ -90,7 +90,7 @@ module Google
|
|
90
90
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
91
91
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
92
92
|
def search_claims(language_code: nil, max_age_days: nil, offset: nil, page_size: nil, page_token: nil, query: nil, review_publisher_site_filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
93
|
-
command =
|
93
|
+
command = make_simple_command(:get, 'v1alpha1/claims:search', options)
|
94
94
|
command.response_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse::Representation
|
95
95
|
command.response_class = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse
|
96
96
|
command.query['languageCode'] = language_code unless language_code.nil?
|
@@ -125,7 +125,7 @@ module Google
|
|
125
125
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
126
126
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
127
127
|
def create_page(google_factchecking_factchecktools_v1alpha1_claim_review_markup_page_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
128
|
-
command =
|
128
|
+
command = make_simple_command(:post, 'v1alpha1/pages', options)
|
129
129
|
command.request_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::Representation
|
130
130
|
command.request_object = google_factchecking_factchecktools_v1alpha1_claim_review_markup_page_object
|
131
131
|
command.response_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::Representation
|
@@ -156,7 +156,7 @@ module Google
|
|
156
156
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
157
157
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
158
158
|
def delete_page(name, fields: nil, quota_user: nil, options: nil, &block)
|
159
|
-
command =
|
159
|
+
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
160
160
|
command.response_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleProtobufEmpty::Representation
|
161
161
|
command.response_class = Google::Apis::FactchecktoolsV1alpha1::GoogleProtobufEmpty
|
162
162
|
command.params['name'] = name unless name.nil?
|
@@ -186,7 +186,7 @@ module Google
|
|
186
186
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
187
187
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
188
188
|
def get_page(name, fields: nil, quota_user: nil, options: nil, &block)
|
189
|
-
command =
|
189
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
190
190
|
command.response_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::Representation
|
191
191
|
command.response_class = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage
|
192
192
|
command.params['name'] = name unless name.nil?
|
@@ -236,7 +236,7 @@ module Google
|
|
236
236
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
237
237
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
238
238
|
def list_pages(offset: nil, organization: nil, page_size: nil, page_token: nil, url: nil, fields: nil, quota_user: nil, options: nil, &block)
|
239
|
-
command =
|
239
|
+
command = make_simple_command(:get, 'v1alpha1/pages', options)
|
240
240
|
command.response_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse::Representation
|
241
241
|
command.response_class = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse
|
242
242
|
command.query['offset'] = offset unless offset.nil?
|
@@ -277,7 +277,7 @@ module Google
|
|
277
277
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
278
278
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
279
279
|
def update_page(name, google_factchecking_factchecktools_v1alpha1_claim_review_markup_page_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
280
|
-
command =
|
280
|
+
command = make_simple_command(:put, 'v1alpha1/{+name}', options)
|
281
281
|
command.request_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::Representation
|
282
282
|
command.request_object = google_factchecking_factchecktools_v1alpha1_claim_review_markup_page_object
|
283
283
|
command.response_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::Representation
|
@@ -0,0 +1,424 @@
|
|
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 FcmV1
|
24
|
+
|
25
|
+
# Android specific options for messages sent through
|
26
|
+
# [FCM connection server](https://goo.gl/4GLdUl).
|
27
|
+
class AndroidConfig
|
28
|
+
include Google::Apis::Core::Hashable
|
29
|
+
|
30
|
+
# An identifier of a group of messages that can be collapsed, so that only
|
31
|
+
# the last message gets sent when delivery can be resumed. A maximum of 4
|
32
|
+
# different collapse keys is allowed at any given time.
|
33
|
+
# Corresponds to the JSON property `collapseKey`
|
34
|
+
# @return [String]
|
35
|
+
attr_accessor :collapse_key
|
36
|
+
|
37
|
+
# Arbitrary key/value payload. If present, it will override
|
38
|
+
# google.firebase.fcm.v1.Message.data.
|
39
|
+
# Corresponds to the JSON property `data`
|
40
|
+
# @return [Hash<String,String>]
|
41
|
+
attr_accessor :data
|
42
|
+
|
43
|
+
# Notification to send to android devices.
|
44
|
+
# Corresponds to the JSON property `notification`
|
45
|
+
# @return [Google::Apis::FcmV1::AndroidNotification]
|
46
|
+
attr_accessor :notification
|
47
|
+
|
48
|
+
# Message priority. Can take "normal" and "high" values.
|
49
|
+
# For more information, see [Setting the priority of a
|
50
|
+
# message](https://goo.gl/GjONJv).
|
51
|
+
# Corresponds to the JSON property `priority`
|
52
|
+
# @return [String]
|
53
|
+
attr_accessor :priority
|
54
|
+
|
55
|
+
# Package name of the application where the registration token must match in
|
56
|
+
# order to receive the message.
|
57
|
+
# Corresponds to the JSON property `restrictedPackageName`
|
58
|
+
# @return [String]
|
59
|
+
attr_accessor :restricted_package_name
|
60
|
+
|
61
|
+
# How long (in seconds) the message should be kept in FCM storage if the
|
62
|
+
# device is offline. The maximum time to live supported is 4 weeks, and the
|
63
|
+
# default value is 4 weeks if not set. Set it to 0 if want to send the
|
64
|
+
# message immediately.
|
65
|
+
# In JSON format, the Duration type is encoded as a string rather than an
|
66
|
+
# object, where the string ends in the suffix "s" (indicating seconds) and
|
67
|
+
# is preceded by the number of seconds, with nanoseconds expressed as
|
68
|
+
# fractional seconds. For example, 3 seconds with 0 nanoseconds should be
|
69
|
+
# encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
|
70
|
+
# be expressed in JSON format as "3.000000001s". The ttl will be rounded down
|
71
|
+
# to the nearest second.
|
72
|
+
# Corresponds to the JSON property `ttl`
|
73
|
+
# @return [String]
|
74
|
+
attr_accessor :ttl
|
75
|
+
|
76
|
+
def initialize(**args)
|
77
|
+
update!(**args)
|
78
|
+
end
|
79
|
+
|
80
|
+
# Update properties of this object
|
81
|
+
def update!(**args)
|
82
|
+
@collapse_key = args[:collapse_key] if args.key?(:collapse_key)
|
83
|
+
@data = args[:data] if args.key?(:data)
|
84
|
+
@notification = args[:notification] if args.key?(:notification)
|
85
|
+
@priority = args[:priority] if args.key?(:priority)
|
86
|
+
@restricted_package_name = args[:restricted_package_name] if args.key?(:restricted_package_name)
|
87
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# Notification to send to android devices.
|
92
|
+
class AndroidNotification
|
93
|
+
include Google::Apis::Core::Hashable
|
94
|
+
|
95
|
+
# The notification's body text. If present, it will override
|
96
|
+
# google.firebase.fcm.v1.Notification.body.
|
97
|
+
# Corresponds to the JSON property `body`
|
98
|
+
# @return [String]
|
99
|
+
attr_accessor :body
|
100
|
+
|
101
|
+
# Variable string values to be used in place of the format specifiers in
|
102
|
+
# body_loc_key to use to localize the body text to the user's current
|
103
|
+
# localization.
|
104
|
+
# See [Formatting and Styling](https://goo.gl/MalYE3) for more information.
|
105
|
+
# Corresponds to the JSON property `bodyLocArgs`
|
106
|
+
# @return [Array<String>]
|
107
|
+
attr_accessor :body_loc_args
|
108
|
+
|
109
|
+
# The key to the body string in the app's string resources to use to localize
|
110
|
+
# the body text to the user's current localization.
|
111
|
+
# See [String Resources](https://goo.gl/NdFZGI) for more information.
|
112
|
+
# Corresponds to the JSON property `bodyLocKey`
|
113
|
+
# @return [String]
|
114
|
+
attr_accessor :body_loc_key
|
115
|
+
|
116
|
+
# The [notification's channel
|
117
|
+
# id](https://developer.android.com/guide/topics/ui/notifiers/notifications#
|
118
|
+
# ManageChannels)
|
119
|
+
# (new in Android O). The app must create a channel with this channel ID
|
120
|
+
# before any notification with this channel ID is received. If you don't send
|
121
|
+
# this channel ID in the request, or if the channel ID provided has not yet
|
122
|
+
# been created by the app, FCM uses the channel ID specified in the app
|
123
|
+
# manifest.
|
124
|
+
# Corresponds to the JSON property `channelId`
|
125
|
+
# @return [String]
|
126
|
+
attr_accessor :channel_id
|
127
|
+
|
128
|
+
# The action associated with a user click on the notification.
|
129
|
+
# If specified, an activity with a matching intent filter is launched when
|
130
|
+
# a user clicks on the notification.
|
131
|
+
# Corresponds to the JSON property `clickAction`
|
132
|
+
# @return [String]
|
133
|
+
attr_accessor :click_action
|
134
|
+
|
135
|
+
# The notification's icon color, expressed in #rrggbb format.
|
136
|
+
# Corresponds to the JSON property `color`
|
137
|
+
# @return [String]
|
138
|
+
attr_accessor :color
|
139
|
+
|
140
|
+
# The notification's icon.
|
141
|
+
# Sets the notification icon to myicon for drawable resource myicon.
|
142
|
+
# If you don't send this key in the request, FCM displays the launcher icon
|
143
|
+
# specified in your app manifest.
|
144
|
+
# Corresponds to the JSON property `icon`
|
145
|
+
# @return [String]
|
146
|
+
attr_accessor :icon
|
147
|
+
|
148
|
+
# The sound to play when the device receives the notification.
|
149
|
+
# Supports "default" or the filename of a sound resource bundled in the app.
|
150
|
+
# Sound files must reside in /res/raw/.
|
151
|
+
# Corresponds to the JSON property `sound`
|
152
|
+
# @return [String]
|
153
|
+
attr_accessor :sound
|
154
|
+
|
155
|
+
# Identifier used to replace existing notifications in the notification
|
156
|
+
# drawer.
|
157
|
+
# If not specified, each request creates a new notification.
|
158
|
+
# If specified and a notification with the same tag is already being shown,
|
159
|
+
# the new notification replaces the existing one in the notification drawer.
|
160
|
+
# Corresponds to the JSON property `tag`
|
161
|
+
# @return [String]
|
162
|
+
attr_accessor :tag
|
163
|
+
|
164
|
+
# The notification's title. If present, it will override
|
165
|
+
# google.firebase.fcm.v1.Notification.title.
|
166
|
+
# Corresponds to the JSON property `title`
|
167
|
+
# @return [String]
|
168
|
+
attr_accessor :title
|
169
|
+
|
170
|
+
# Variable string values to be used in place of the format specifiers in
|
171
|
+
# title_loc_key to use to localize the title text to the user's current
|
172
|
+
# localization.
|
173
|
+
# See [Formatting and Styling](https://goo.gl/MalYE3) for more information.
|
174
|
+
# Corresponds to the JSON property `titleLocArgs`
|
175
|
+
# @return [Array<String>]
|
176
|
+
attr_accessor :title_loc_args
|
177
|
+
|
178
|
+
# The key to the title string in the app's string resources to use to
|
179
|
+
# localize the title text to the user's current localization.
|
180
|
+
# See [String Resources](https://goo.gl/NdFZGI) for more information.
|
181
|
+
# Corresponds to the JSON property `titleLocKey`
|
182
|
+
# @return [String]
|
183
|
+
attr_accessor :title_loc_key
|
184
|
+
|
185
|
+
def initialize(**args)
|
186
|
+
update!(**args)
|
187
|
+
end
|
188
|
+
|
189
|
+
# Update properties of this object
|
190
|
+
def update!(**args)
|
191
|
+
@body = args[:body] if args.key?(:body)
|
192
|
+
@body_loc_args = args[:body_loc_args] if args.key?(:body_loc_args)
|
193
|
+
@body_loc_key = args[:body_loc_key] if args.key?(:body_loc_key)
|
194
|
+
@channel_id = args[:channel_id] if args.key?(:channel_id)
|
195
|
+
@click_action = args[:click_action] if args.key?(:click_action)
|
196
|
+
@color = args[:color] if args.key?(:color)
|
197
|
+
@icon = args[:icon] if args.key?(:icon)
|
198
|
+
@sound = args[:sound] if args.key?(:sound)
|
199
|
+
@tag = args[:tag] if args.key?(:tag)
|
200
|
+
@title = args[:title] if args.key?(:title)
|
201
|
+
@title_loc_args = args[:title_loc_args] if args.key?(:title_loc_args)
|
202
|
+
@title_loc_key = args[:title_loc_key] if args.key?(:title_loc_key)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
# [Apple Push Notification Service](https://goo.gl/MXRTPa) specific options.
|
207
|
+
class ApnsConfig
|
208
|
+
include Google::Apis::Core::Hashable
|
209
|
+
|
210
|
+
# HTTP request headers defined in Apple Push Notification Service. Refer to
|
211
|
+
# [APNs request headers](https://goo.gl/C6Yhia) for
|
212
|
+
# supported headers, e.g. "apns-priority": "10".
|
213
|
+
# Corresponds to the JSON property `headers`
|
214
|
+
# @return [Hash<String,String>]
|
215
|
+
attr_accessor :headers
|
216
|
+
|
217
|
+
# APNs payload as a JSON object, including both `aps` dictionary and custom
|
218
|
+
# payload. See [Payload Key Reference](https://goo.gl/32Pl5W).
|
219
|
+
# If present, it overrides google.firebase.fcm.v1.Notification.title
|
220
|
+
# and google.firebase.fcm.v1.Notification.body.
|
221
|
+
# Corresponds to the JSON property `payload`
|
222
|
+
# @return [Hash<String,Object>]
|
223
|
+
attr_accessor :payload
|
224
|
+
|
225
|
+
def initialize(**args)
|
226
|
+
update!(**args)
|
227
|
+
end
|
228
|
+
|
229
|
+
# Update properties of this object
|
230
|
+
def update!(**args)
|
231
|
+
@headers = args[:headers] if args.key?(:headers)
|
232
|
+
@payload = args[:payload] if args.key?(:payload)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# Message to send by Firebase Cloud Messaging Service.
|
237
|
+
class Message
|
238
|
+
include Google::Apis::Core::Hashable
|
239
|
+
|
240
|
+
# Android specific options for messages sent through
|
241
|
+
# [FCM connection server](https://goo.gl/4GLdUl).
|
242
|
+
# Corresponds to the JSON property `android`
|
243
|
+
# @return [Google::Apis::FcmV1::AndroidConfig]
|
244
|
+
attr_accessor :android
|
245
|
+
|
246
|
+
# [Apple Push Notification Service](https://goo.gl/MXRTPa) specific options.
|
247
|
+
# Corresponds to the JSON property `apns`
|
248
|
+
# @return [Google::Apis::FcmV1::ApnsConfig]
|
249
|
+
attr_accessor :apns
|
250
|
+
|
251
|
+
# Condition to send a message to,
|
252
|
+
# e.g. "'foo' in topics && 'bar' in topics".
|
253
|
+
# Corresponds to the JSON property `condition`
|
254
|
+
# @return [String]
|
255
|
+
attr_accessor :condition
|
256
|
+
|
257
|
+
# Input only. Arbitrary key/value payload.
|
258
|
+
# Corresponds to the JSON property `data`
|
259
|
+
# @return [Hash<String,String>]
|
260
|
+
attr_accessor :data
|
261
|
+
|
262
|
+
# Output Only. The identifier of the message sent, in the format of
|
263
|
+
# `projects/*/messages/`message_id``.
|
264
|
+
# Corresponds to the JSON property `name`
|
265
|
+
# @return [String]
|
266
|
+
attr_accessor :name
|
267
|
+
|
268
|
+
# Basic notification template to use across all platforms.
|
269
|
+
# Corresponds to the JSON property `notification`
|
270
|
+
# @return [Google::Apis::FcmV1::Notification]
|
271
|
+
attr_accessor :notification
|
272
|
+
|
273
|
+
# Registration token to send a message to.
|
274
|
+
# Corresponds to the JSON property `token`
|
275
|
+
# @return [String]
|
276
|
+
attr_accessor :token
|
277
|
+
|
278
|
+
# Topic name to send a message to, e.g. "weather".
|
279
|
+
# Note: "/topics/" prefix should not be provided.
|
280
|
+
# Corresponds to the JSON property `topic`
|
281
|
+
# @return [String]
|
282
|
+
attr_accessor :topic
|
283
|
+
|
284
|
+
# [Webpush protocol](https://tools.ietf.org/html/rfc8030) options.
|
285
|
+
# Corresponds to the JSON property `webpush`
|
286
|
+
# @return [Google::Apis::FcmV1::WebpushConfig]
|
287
|
+
attr_accessor :webpush
|
288
|
+
|
289
|
+
def initialize(**args)
|
290
|
+
update!(**args)
|
291
|
+
end
|
292
|
+
|
293
|
+
# Update properties of this object
|
294
|
+
def update!(**args)
|
295
|
+
@android = args[:android] if args.key?(:android)
|
296
|
+
@apns = args[:apns] if args.key?(:apns)
|
297
|
+
@condition = args[:condition] if args.key?(:condition)
|
298
|
+
@data = args[:data] if args.key?(:data)
|
299
|
+
@name = args[:name] if args.key?(:name)
|
300
|
+
@notification = args[:notification] if args.key?(:notification)
|
301
|
+
@token = args[:token] if args.key?(:token)
|
302
|
+
@topic = args[:topic] if args.key?(:topic)
|
303
|
+
@webpush = args[:webpush] if args.key?(:webpush)
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
# Basic notification template to use across all platforms.
|
308
|
+
class Notification
|
309
|
+
include Google::Apis::Core::Hashable
|
310
|
+
|
311
|
+
# The notification's body text.
|
312
|
+
# Corresponds to the JSON property `body`
|
313
|
+
# @return [String]
|
314
|
+
attr_accessor :body
|
315
|
+
|
316
|
+
# The notification's title.
|
317
|
+
# Corresponds to the JSON property `title`
|
318
|
+
# @return [String]
|
319
|
+
attr_accessor :title
|
320
|
+
|
321
|
+
def initialize(**args)
|
322
|
+
update!(**args)
|
323
|
+
end
|
324
|
+
|
325
|
+
# Update properties of this object
|
326
|
+
def update!(**args)
|
327
|
+
@body = args[:body] if args.key?(:body)
|
328
|
+
@title = args[:title] if args.key?(:title)
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
332
|
+
# Request to send a message to specified target.
|
333
|
+
class SendMessageRequest
|
334
|
+
include Google::Apis::Core::Hashable
|
335
|
+
|
336
|
+
# Message to send by Firebase Cloud Messaging Service.
|
337
|
+
# Corresponds to the JSON property `message`
|
338
|
+
# @return [Google::Apis::FcmV1::Message]
|
339
|
+
attr_accessor :message
|
340
|
+
|
341
|
+
# Flag for testing the request without actually delivering the message.
|
342
|
+
# Corresponds to the JSON property `validateOnly`
|
343
|
+
# @return [Boolean]
|
344
|
+
attr_accessor :validate_only
|
345
|
+
alias_method :validate_only?, :validate_only
|
346
|
+
|
347
|
+
def initialize(**args)
|
348
|
+
update!(**args)
|
349
|
+
end
|
350
|
+
|
351
|
+
# Update properties of this object
|
352
|
+
def update!(**args)
|
353
|
+
@message = args[:message] if args.key?(:message)
|
354
|
+
@validate_only = args[:validate_only] if args.key?(:validate_only)
|
355
|
+
end
|
356
|
+
end
|
357
|
+
|
358
|
+
# [Webpush protocol](https://tools.ietf.org/html/rfc8030) options.
|
359
|
+
class WebpushConfig
|
360
|
+
include Google::Apis::Core::Hashable
|
361
|
+
|
362
|
+
# Arbitrary key/value payload. If present, it will override
|
363
|
+
# google.firebase.fcm.v1.Message.data.
|
364
|
+
# Corresponds to the JSON property `data`
|
365
|
+
# @return [Hash<String,String>]
|
366
|
+
attr_accessor :data
|
367
|
+
|
368
|
+
# Options for features provided by the FCM SDK for Web.
|
369
|
+
# Corresponds to the JSON property `fcmOptions`
|
370
|
+
# @return [Google::Apis::FcmV1::WebpushFcmOptions]
|
371
|
+
attr_accessor :fcm_options
|
372
|
+
|
373
|
+
# HTTP headers defined in webpush protocol. Refer to
|
374
|
+
# [Webpush protocol](https://tools.ietf.org/html/rfc8030#section-5) for
|
375
|
+
# supported headers, e.g. "TTL": "15".
|
376
|
+
# Corresponds to the JSON property `headers`
|
377
|
+
# @return [Hash<String,String>]
|
378
|
+
attr_accessor :headers
|
379
|
+
|
380
|
+
# Web Notification options as a JSON object. Supports Notification instance
|
381
|
+
# properties as defined in [Web Notification
|
382
|
+
# API](https://developer.mozilla.org/en-US/docs/Web/API/Notification). If
|
383
|
+
# present, "title" and "body" fields override
|
384
|
+
# [google.firebase.fcm.v1.Notification.title] and
|
385
|
+
# [google.firebase.fcm.v1.Notification.body].
|
386
|
+
# Corresponds to the JSON property `notification`
|
387
|
+
# @return [Hash<String,Object>]
|
388
|
+
attr_accessor :notification
|
389
|
+
|
390
|
+
def initialize(**args)
|
391
|
+
update!(**args)
|
392
|
+
end
|
393
|
+
|
394
|
+
# Update properties of this object
|
395
|
+
def update!(**args)
|
396
|
+
@data = args[:data] if args.key?(:data)
|
397
|
+
@fcm_options = args[:fcm_options] if args.key?(:fcm_options)
|
398
|
+
@headers = args[:headers] if args.key?(:headers)
|
399
|
+
@notification = args[:notification] if args.key?(:notification)
|
400
|
+
end
|
401
|
+
end
|
402
|
+
|
403
|
+
# Options for features provided by the FCM SDK for Web.
|
404
|
+
class WebpushFcmOptions
|
405
|
+
include Google::Apis::Core::Hashable
|
406
|
+
|
407
|
+
# The link to open when the user clicks on the notification.
|
408
|
+
# For all URL values, HTTPS is required.
|
409
|
+
# Corresponds to the JSON property `link`
|
410
|
+
# @return [String]
|
411
|
+
attr_accessor :link
|
412
|
+
|
413
|
+
def initialize(**args)
|
414
|
+
update!(**args)
|
415
|
+
end
|
416
|
+
|
417
|
+
# Update properties of this object
|
418
|
+
def update!(**args)
|
419
|
+
@link = args[:link] if args.key?(:link)
|
420
|
+
end
|
421
|
+
end
|
422
|
+
end
|
423
|
+
end
|
424
|
+
end
|
@@ -0,0 +1,167 @@
|
|
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 FcmV1
|
24
|
+
|
25
|
+
class AndroidConfig
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class AndroidNotification
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class ApnsConfig
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Message
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class Notification
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class SendMessageRequest
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class WebpushConfig
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class WebpushFcmOptions
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class AndroidConfig
|
74
|
+
# @private
|
75
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
76
|
+
property :collapse_key, as: 'collapseKey'
|
77
|
+
hash :data, as: 'data'
|
78
|
+
property :notification, as: 'notification', class: Google::Apis::FcmV1::AndroidNotification, decorator: Google::Apis::FcmV1::AndroidNotification::Representation
|
79
|
+
|
80
|
+
property :priority, as: 'priority'
|
81
|
+
property :restricted_package_name, as: 'restrictedPackageName'
|
82
|
+
property :ttl, as: 'ttl'
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
class AndroidNotification
|
87
|
+
# @private
|
88
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
89
|
+
property :body, as: 'body'
|
90
|
+
collection :body_loc_args, as: 'bodyLocArgs'
|
91
|
+
property :body_loc_key, as: 'bodyLocKey'
|
92
|
+
property :channel_id, as: 'channelId'
|
93
|
+
property :click_action, as: 'clickAction'
|
94
|
+
property :color, as: 'color'
|
95
|
+
property :icon, as: 'icon'
|
96
|
+
property :sound, as: 'sound'
|
97
|
+
property :tag, as: 'tag'
|
98
|
+
property :title, as: 'title'
|
99
|
+
collection :title_loc_args, as: 'titleLocArgs'
|
100
|
+
property :title_loc_key, as: 'titleLocKey'
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
class ApnsConfig
|
105
|
+
# @private
|
106
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
107
|
+
hash :headers, as: 'headers'
|
108
|
+
hash :payload, as: 'payload'
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
class Message
|
113
|
+
# @private
|
114
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
115
|
+
property :android, as: 'android', class: Google::Apis::FcmV1::AndroidConfig, decorator: Google::Apis::FcmV1::AndroidConfig::Representation
|
116
|
+
|
117
|
+
property :apns, as: 'apns', class: Google::Apis::FcmV1::ApnsConfig, decorator: Google::Apis::FcmV1::ApnsConfig::Representation
|
118
|
+
|
119
|
+
property :condition, as: 'condition'
|
120
|
+
hash :data, as: 'data'
|
121
|
+
property :name, as: 'name'
|
122
|
+
property :notification, as: 'notification', class: Google::Apis::FcmV1::Notification, decorator: Google::Apis::FcmV1::Notification::Representation
|
123
|
+
|
124
|
+
property :token, as: 'token'
|
125
|
+
property :topic, as: 'topic'
|
126
|
+
property :webpush, as: 'webpush', class: Google::Apis::FcmV1::WebpushConfig, decorator: Google::Apis::FcmV1::WebpushConfig::Representation
|
127
|
+
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
class Notification
|
132
|
+
# @private
|
133
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
134
|
+
property :body, as: 'body'
|
135
|
+
property :title, as: 'title'
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
class SendMessageRequest
|
140
|
+
# @private
|
141
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
142
|
+
property :message, as: 'message', class: Google::Apis::FcmV1::Message, decorator: Google::Apis::FcmV1::Message::Representation
|
143
|
+
|
144
|
+
property :validate_only, as: 'validateOnly'
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
class WebpushConfig
|
149
|
+
# @private
|
150
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
151
|
+
hash :data, as: 'data'
|
152
|
+
property :fcm_options, as: 'fcmOptions', class: Google::Apis::FcmV1::WebpushFcmOptions, decorator: Google::Apis::FcmV1::WebpushFcmOptions::Representation
|
153
|
+
|
154
|
+
hash :headers, as: 'headers'
|
155
|
+
hash :notification, as: 'notification'
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
class WebpushFcmOptions
|
160
|
+
# @private
|
161
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
162
|
+
property :link, as: 'link'
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|