google-api-client 0.42.2 → 0.43.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +129 -0
- data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +8 -13
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +2 -3
- data/generated/google/apis/accessapproval_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1/classes.rb +9 -0
- data/generated/google/apis/accessapproval_v1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +523 -653
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +467 -631
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1/classes.rb +11 -18
- data/generated/google/apis/adexperiencereport_v1/service.rb +2 -3
- data/generated/google/apis/admob_v1.rb +1 -1
- data/generated/google/apis/admob_v1/classes.rb +139 -270
- data/generated/google/apis/admob_v1/service.rb +11 -13
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +107 -138
- data/generated/google/apis/alertcenter_v1beta1/service.rb +50 -55
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +315 -399
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +193 -220
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +55 -61
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +452 -557
- data/generated/google/apis/androidenterprise_v1/service.rb +181 -240
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +281 -342
- data/generated/google/apis/androidpublisher_v3/service.rb +125 -153
- data/generated/google/apis/apigee_v1.rb +6 -7
- data/generated/google/apis/apigee_v1/classes.rb +733 -1180
- data/generated/google/apis/apigee_v1/service.rb +879 -1133
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +97 -118
- data/generated/google/apis/billingbudgets_v1beta1/service.rb +30 -33
- data/generated/google/apis/blogger_v2.rb +2 -3
- data/generated/google/apis/blogger_v2/classes.rb +1 -2
- data/generated/google/apis/blogger_v2/service.rb +1 -2
- data/generated/google/apis/blogger_v3.rb +2 -3
- data/generated/google/apis/blogger_v3/classes.rb +1 -2
- data/generated/google/apis/blogger_v3/service.rb +1 -2
- data/generated/google/apis/chromeuxreport_v1.rb +1 -1
- data/generated/google/apis/chromeuxreport_v1/classes.rb +55 -66
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +250 -365
- data/generated/google/apis/classroom_v1/service.rb +643 -902
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +15 -11
- data/generated/google/apis/cloudasset_v1/service.rb +62 -45
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +3 -1
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +3 -1
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +7 -0
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +1 -0
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +1 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +350 -20
- data/generated/google/apis/compute_alpha/representations.rb +100 -0
- data/generated/google/apis/compute_alpha/service.rb +15 -7
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +39 -14
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +15 -7
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +65 -42
- data/generated/google/apis/compute_v1/representations.rb +18 -15
- data/generated/google/apis/compute_v1/service.rb +63 -19
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +26 -0
- data/generated/google/apis/container_v1/representations.rb +15 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +9 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +9 -0
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/classes.rb +303 -492
- data/generated/google/apis/customsearch_v1/service.rb +184 -341
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +572 -380
- data/generated/google/apis/datacatalog_v1beta1/service.rb +440 -319
- data/generated/google/apis/datafusion_v1.rb +43 -0
- data/generated/google/apis/datafusion_v1/classes.rb +1154 -0
- data/generated/google/apis/datafusion_v1/representations.rb +390 -0
- data/generated/google/apis/datafusion_v1/service.rb +680 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +192 -316
- data/generated/google/apis/dataproc_v1/service.rb +134 -168
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +198 -317
- data/generated/google/apis/dataproc_v1beta2/service.rb +137 -192
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +1238 -1589
- data/generated/google/apis/dialogflow_v2/service.rb +324 -448
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +1313 -1681
- data/generated/google/apis/dialogflow_v2beta1/service.rb +742 -998
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +104 -0
- data/generated/google/apis/displayvideo_v1/representations.rb +36 -0
- data/generated/google/apis/displayvideo_v1/service.rb +104 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +5 -4
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +7 -7
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +7 -7
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +7 -7
- data/generated/google/apis/domainsrdap_v1.rb +1 -1
- data/generated/google/apis/domainsrdap_v1/classes.rb +42 -69
- data/generated/google/apis/domainsrdap_v1/service.rb +16 -16
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +4 -2
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +196 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +107 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +4 -2
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +3 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +9 -1
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/driveactivity_v2/classes.rb +55 -68
- data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
- data/generated/google/apis/factchecktools_v1alpha1/classes.rb +46 -56
- data/generated/google/apis/factchecktools_v1alpha1/service.rb +30 -33
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +313 -345
- data/generated/google/apis/firebase_v1beta1/representations.rb +1 -0
- data/generated/google/apis/firebase_v1beta1/service.rb +356 -420
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +89 -112
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +18 -21
- data/generated/google/apis/firebasehosting_v1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1/classes.rb +36 -40
- data/generated/google/apis/firebasehosting_v1/service.rb +19 -22
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +148 -177
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +112 -145
- data/generated/google/apis/firebaseml_v1.rb +1 -1
- data/generated/google/apis/firebaseml_v1/classes.rb +39 -44
- data/generated/google/apis/firebaseml_v1/service.rb +19 -22
- data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
- data/generated/google/apis/firebaseml_v1beta2/classes.rb +60 -70
- data/generated/google/apis/firebaseml_v1beta2/service.rb +16 -18
- data/generated/google/apis/gameservices_v1.rb +1 -1
- data/generated/google/apis/gameservices_v1/classes.rb +344 -523
- data/generated/google/apis/gameservices_v1/service.rb +167 -207
- data/generated/google/apis/gameservices_v1beta.rb +1 -1
- data/generated/google/apis/gameservices_v1beta/classes.rb +344 -523
- data/generated/google/apis/gameservices_v1beta/service.rb +167 -207
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +3 -75
- data/generated/google/apis/genomics_v2alpha1/representations.rb +0 -27
- data/generated/google/apis/genomics_v2alpha1/service.rb +0 -34
- data/generated/google/apis/gmail_v1.rb +3 -3
- data/generated/google/apis/gmail_v1/classes.rb +216 -269
- data/generated/google/apis/gmail_v1/service.rb +257 -286
- data/generated/google/apis/gmailpostmastertools_v1beta1.rb +1 -1
- data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +37 -42
- data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +34 -40
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/service.rb +26 -14
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +85 -17
- data/generated/google/apis/healthcare_v1beta1/representations.rb +39 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +87 -16
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +93 -111
- data/generated/google/apis/language_v1/service.rb +4 -4
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +78 -90
- data/generated/google/apis/language_v1beta1/service.rb +2 -2
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +95 -112
- data/generated/google/apis/language_v1beta2/service.rb +4 -4
- data/generated/google/apis/libraryagent_v1.rb +1 -1
- data/generated/google/apis/libraryagent_v1/classes.rb +10 -16
- data/generated/google/apis/libraryagent_v1/service.rb +13 -16
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +6 -6
- data/generated/google/apis/managedidentities_v1.rb +1 -1
- data/generated/google/apis/managedidentities_v1/classes.rb +326 -452
- data/generated/google/apis/managedidentities_v1/service.rb +78 -99
- data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +336 -457
- data/generated/google/apis/managedidentities_v1alpha1/service.rb +88 -112
- data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +332 -456
- data/generated/google/apis/managedidentities_v1beta1/service.rb +76 -96
- data/generated/google/apis/memcache_v1.rb +35 -0
- data/generated/google/apis/memcache_v1/classes.rb +1157 -0
- data/generated/google/apis/memcache_v1/representations.rb +471 -0
- data/generated/google/apis/memcache_v1/service.rb +558 -0
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +41 -502
- data/generated/google/apis/memcache_v1beta2/representations.rb +9 -110
- data/generated/google/apis/memcache_v1beta2/service.rb +0 -119
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +12 -11
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +31 -14
- data/generated/google/apis/monitoring_v3/representations.rb +2 -0
- data/generated/google/apis/osconfig_v1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +721 -0
- data/generated/google/apis/osconfig_v1/representations.rb +337 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +148 -13
- data/generated/google/apis/people_v1/representations.rb +57 -0
- data/generated/google/apis/people_v1/service.rb +60 -48
- data/generated/google/apis/playcustomapp_v1.rb +1 -1
- data/generated/google/apis/playcustomapp_v1/classes.rb +2 -2
- data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1/classes.rb +232 -394
- data/generated/google/apis/policytroubleshooter_v1/service.rb +2 -2
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +232 -393
- data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -2
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +122 -146
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +38 -49
- data/generated/google/apis/realtimebidding_v1.rb +1 -4
- data/generated/google/apis/realtimebidding_v1/classes.rb +198 -291
- data/generated/google/apis/realtimebidding_v1/service.rb +98 -135
- data/generated/google/apis/recommendationengine_v1beta1.rb +2 -2
- data/generated/google/apis/recommendationengine_v1beta1/classes.rb +10 -8
- data/generated/google/apis/recommendationengine_v1beta1/service.rb +1 -1
- data/generated/google/apis/recommender_v1.rb +1 -1
- data/generated/google/apis/recommender_v1/classes.rb +76 -100
- data/generated/google/apis/recommender_v1/service.rb +43 -58
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +75 -99
- data/generated/google/apis/recommender_v1beta1/service.rb +43 -58
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +2 -2
- data/generated/google/apis/run_v1/service.rb +38 -2
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +36 -40
- data/generated/google/apis/runtimeconfig_v1/service.rb +19 -22
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +122 -146
- data/generated/google/apis/sasportal_v1alpha1/service.rb +38 -49
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +2 -2
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +574 -826
- data/generated/google/apis/securitycenter_v1/service.rb +250 -332
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +521 -746
- data/generated/google/apis/securitycenter_v1beta1/service.rb +160 -202
- data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +176 -208
- data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +21 -25
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +545 -791
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +247 -330
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1149 -1783
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +111 -138
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +1137 -1774
- data/generated/google/apis/serviceconsumermanagement_v1beta1/service.rb +52 -66
- data/generated/google/apis/servicecontrol_v2.rb +38 -0
- data/generated/google/apis/servicecontrol_v2/classes.rb +1121 -0
- data/generated/google/apis/servicecontrol_v2/representations.rb +405 -0
- data/generated/google/apis/servicecontrol_v2/service.rb +165 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +49 -1
- data/generated/google/apis/servicemanagement_v1/representations.rb +14 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +1119 -1758
- data/generated/google/apis/servicenetworking_v1/service.rb +94 -114
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +1065 -1684
- data/generated/google/apis/servicenetworking_v1beta/service.rb +52 -63
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +1140 -1823
- data/generated/google/apis/serviceusage_v1/service.rb +63 -80
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +1235 -1986
- data/generated/google/apis/serviceusage_v1beta1/service.rb +130 -162
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +3 -2
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +8 -10
- data/generated/google/apis/storagetransfer_v1/service.rb +26 -2
- data/generated/google/apis/tagmanager_v1.rb +2 -3
- data/generated/google/apis/tagmanager_v1/classes.rb +225 -288
- data/generated/google/apis/tagmanager_v1/service.rb +20 -21
- data/generated/google/apis/tagmanager_v2.rb +2 -3
- data/generated/google/apis/tagmanager_v2/classes.rb +240 -280
- data/generated/google/apis/tagmanager_v2/representations.rb +1 -0
- data/generated/google/apis/tagmanager_v2/service.rb +187 -283
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +665 -931
- data/generated/google/apis/toolresults_v1beta3/service.rb +231 -349
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +68 -78
- data/generated/google/apis/tpu_v1/service.rb +21 -25
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +68 -78
- data/generated/google/apis/tpu_v1alpha1/service.rb +21 -25
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3/service.rb +14 -1
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/service.rb +14 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1304 -1870
- data/generated/google/apis/vision_v1/service.rb +254 -340
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1246 -1790
- data/generated/google/apis/vision_v1p1beta1/service.rb +91 -121
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +1246 -1790
- data/generated/google/apis/vision_v1p2beta1/service.rb +91 -121
- data/generated/google/apis/websecurityscanner_v1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1/classes.rb +71 -95
- data/generated/google/apis/websecurityscanner_v1/service.rb +46 -65
- data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +55 -63
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +46 -65
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1beta/classes.rb +77 -92
- data/generated/google/apis/websecurityscanner_v1beta/service.rb +46 -65
- data/generated/google/apis/youtube_analytics_v2.rb +1 -1
- data/generated/google/apis/youtube_analytics_v2/classes.rb +77 -104
- data/generated/google/apis/youtube_analytics_v2/service.rb +106 -126
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +19 -19
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +937 -1175
- data/generated/google/apis/youtube_v3/service.rb +975 -1284
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +20 -29
- data/generated/google/apis/youtubereporting_v1/service.rb +40 -43
- data/lib/google/apis/core/base_service.rb +7 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -7
- data/generated/google/apis/fitness_v1.rb +0 -85
- data/generated/google/apis/fitness_v1/classes.rb +0 -1020
- data/generated/google/apis/fitness_v1/representations.rb +0 -398
- data/generated/google/apis/fitness_v1/service.rb +0 -647
@@ -1,398 +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 FitnessV1
|
24
|
-
|
25
|
-
class AggregateBucket
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
29
|
-
end
|
30
|
-
|
31
|
-
class AggregateBy
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
-
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
35
|
-
end
|
36
|
-
|
37
|
-
class AggregateRequest
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
-
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
41
|
-
end
|
42
|
-
|
43
|
-
class AggregateResponse
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
|
-
class Application
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
|
-
class BucketByActivity
|
56
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
-
|
58
|
-
include Google::Apis::Core::JsonObjectSupport
|
59
|
-
end
|
60
|
-
|
61
|
-
class BucketBySession
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
-
|
64
|
-
include Google::Apis::Core::JsonObjectSupport
|
65
|
-
end
|
66
|
-
|
67
|
-
class BucketByTime
|
68
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
-
|
70
|
-
include Google::Apis::Core::JsonObjectSupport
|
71
|
-
end
|
72
|
-
|
73
|
-
class BucketByTimePeriod
|
74
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
-
|
76
|
-
include Google::Apis::Core::JsonObjectSupport
|
77
|
-
end
|
78
|
-
|
79
|
-
class DataPoint
|
80
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
-
|
82
|
-
include Google::Apis::Core::JsonObjectSupport
|
83
|
-
end
|
84
|
-
|
85
|
-
class DataSource
|
86
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
-
|
88
|
-
include Google::Apis::Core::JsonObjectSupport
|
89
|
-
end
|
90
|
-
|
91
|
-
class DataType
|
92
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
-
|
94
|
-
include Google::Apis::Core::JsonObjectSupport
|
95
|
-
end
|
96
|
-
|
97
|
-
class DataTypeField
|
98
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
-
|
100
|
-
include Google::Apis::Core::JsonObjectSupport
|
101
|
-
end
|
102
|
-
|
103
|
-
class Dataset
|
104
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
-
|
106
|
-
include Google::Apis::Core::JsonObjectSupport
|
107
|
-
end
|
108
|
-
|
109
|
-
class Device
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
-
|
112
|
-
include Google::Apis::Core::JsonObjectSupport
|
113
|
-
end
|
114
|
-
|
115
|
-
class ListDataPointChangesResponse
|
116
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
-
|
118
|
-
include Google::Apis::Core::JsonObjectSupport
|
119
|
-
end
|
120
|
-
|
121
|
-
class ListDataSourcesResponse
|
122
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
-
|
124
|
-
include Google::Apis::Core::JsonObjectSupport
|
125
|
-
end
|
126
|
-
|
127
|
-
class ListSessionsResponse
|
128
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
-
|
130
|
-
include Google::Apis::Core::JsonObjectSupport
|
131
|
-
end
|
132
|
-
|
133
|
-
class MapValue
|
134
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
-
|
136
|
-
include Google::Apis::Core::JsonObjectSupport
|
137
|
-
end
|
138
|
-
|
139
|
-
class Session
|
140
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
-
|
142
|
-
include Google::Apis::Core::JsonObjectSupport
|
143
|
-
end
|
144
|
-
|
145
|
-
class Value
|
146
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
-
|
148
|
-
include Google::Apis::Core::JsonObjectSupport
|
149
|
-
end
|
150
|
-
|
151
|
-
class ValueMapValEntry
|
152
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
-
|
154
|
-
include Google::Apis::Core::JsonObjectSupport
|
155
|
-
end
|
156
|
-
|
157
|
-
class AggregateBucket
|
158
|
-
# @private
|
159
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
-
property :activity, as: 'activity'
|
161
|
-
collection :dataset, as: 'dataset', class: Google::Apis::FitnessV1::Dataset, decorator: Google::Apis::FitnessV1::Dataset::Representation
|
162
|
-
|
163
|
-
property :end_time_millis, :numeric_string => true, as: 'endTimeMillis'
|
164
|
-
property :session, as: 'session', class: Google::Apis::FitnessV1::Session, decorator: Google::Apis::FitnessV1::Session::Representation
|
165
|
-
|
166
|
-
property :start_time_millis, :numeric_string => true, as: 'startTimeMillis'
|
167
|
-
property :type, as: 'type'
|
168
|
-
end
|
169
|
-
end
|
170
|
-
|
171
|
-
class AggregateBy
|
172
|
-
# @private
|
173
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
174
|
-
property :data_source_id, as: 'dataSourceId'
|
175
|
-
property :data_type_name, as: 'dataTypeName'
|
176
|
-
end
|
177
|
-
end
|
178
|
-
|
179
|
-
class AggregateRequest
|
180
|
-
# @private
|
181
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
182
|
-
collection :aggregate_by, as: 'aggregateBy', class: Google::Apis::FitnessV1::AggregateBy, decorator: Google::Apis::FitnessV1::AggregateBy::Representation
|
183
|
-
|
184
|
-
property :bucket_by_activity_segment, as: 'bucketByActivitySegment', class: Google::Apis::FitnessV1::BucketByActivity, decorator: Google::Apis::FitnessV1::BucketByActivity::Representation
|
185
|
-
|
186
|
-
property :bucket_by_activity_type, as: 'bucketByActivityType', class: Google::Apis::FitnessV1::BucketByActivity, decorator: Google::Apis::FitnessV1::BucketByActivity::Representation
|
187
|
-
|
188
|
-
property :bucket_by_session, as: 'bucketBySession', class: Google::Apis::FitnessV1::BucketBySession, decorator: Google::Apis::FitnessV1::BucketBySession::Representation
|
189
|
-
|
190
|
-
property :bucket_by_time, as: 'bucketByTime', class: Google::Apis::FitnessV1::BucketByTime, decorator: Google::Apis::FitnessV1::BucketByTime::Representation
|
191
|
-
|
192
|
-
property :end_time_millis, :numeric_string => true, as: 'endTimeMillis'
|
193
|
-
collection :filtered_data_quality_standard, as: 'filteredDataQualityStandard'
|
194
|
-
property :start_time_millis, :numeric_string => true, as: 'startTimeMillis'
|
195
|
-
end
|
196
|
-
end
|
197
|
-
|
198
|
-
class AggregateResponse
|
199
|
-
# @private
|
200
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
201
|
-
collection :bucket, as: 'bucket', class: Google::Apis::FitnessV1::AggregateBucket, decorator: Google::Apis::FitnessV1::AggregateBucket::Representation
|
202
|
-
|
203
|
-
end
|
204
|
-
end
|
205
|
-
|
206
|
-
class Application
|
207
|
-
# @private
|
208
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
209
|
-
property :details_url, as: 'detailsUrl'
|
210
|
-
property :name, as: 'name'
|
211
|
-
property :package_name, as: 'packageName'
|
212
|
-
property :version, as: 'version'
|
213
|
-
end
|
214
|
-
end
|
215
|
-
|
216
|
-
class BucketByActivity
|
217
|
-
# @private
|
218
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
219
|
-
property :activity_data_source_id, as: 'activityDataSourceId'
|
220
|
-
property :min_duration_millis, :numeric_string => true, as: 'minDurationMillis'
|
221
|
-
end
|
222
|
-
end
|
223
|
-
|
224
|
-
class BucketBySession
|
225
|
-
# @private
|
226
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
227
|
-
property :min_duration_millis, :numeric_string => true, as: 'minDurationMillis'
|
228
|
-
end
|
229
|
-
end
|
230
|
-
|
231
|
-
class BucketByTime
|
232
|
-
# @private
|
233
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
234
|
-
property :duration_millis, :numeric_string => true, as: 'durationMillis'
|
235
|
-
property :period, as: 'period', class: Google::Apis::FitnessV1::BucketByTimePeriod, decorator: Google::Apis::FitnessV1::BucketByTimePeriod::Representation
|
236
|
-
|
237
|
-
end
|
238
|
-
end
|
239
|
-
|
240
|
-
class BucketByTimePeriod
|
241
|
-
# @private
|
242
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
243
|
-
property :time_zone_id, as: 'timeZoneId'
|
244
|
-
property :type, as: 'type'
|
245
|
-
property :value, as: 'value'
|
246
|
-
end
|
247
|
-
end
|
248
|
-
|
249
|
-
class DataPoint
|
250
|
-
# @private
|
251
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
252
|
-
property :computation_time_millis, :numeric_string => true, as: 'computationTimeMillis'
|
253
|
-
property :data_type_name, as: 'dataTypeName'
|
254
|
-
property :end_time_nanos, :numeric_string => true, as: 'endTimeNanos'
|
255
|
-
property :modified_time_millis, :numeric_string => true, as: 'modifiedTimeMillis'
|
256
|
-
property :origin_data_source_id, as: 'originDataSourceId'
|
257
|
-
property :raw_timestamp_nanos, :numeric_string => true, as: 'rawTimestampNanos'
|
258
|
-
property :start_time_nanos, :numeric_string => true, as: 'startTimeNanos'
|
259
|
-
collection :value, as: 'value', class: Google::Apis::FitnessV1::Value, decorator: Google::Apis::FitnessV1::Value::Representation
|
260
|
-
|
261
|
-
end
|
262
|
-
end
|
263
|
-
|
264
|
-
class DataSource
|
265
|
-
# @private
|
266
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
267
|
-
property :application, as: 'application', class: Google::Apis::FitnessV1::Application, decorator: Google::Apis::FitnessV1::Application::Representation
|
268
|
-
|
269
|
-
collection :data_quality_standard, as: 'dataQualityStandard'
|
270
|
-
property :data_stream_id, as: 'dataStreamId'
|
271
|
-
property :data_stream_name, as: 'dataStreamName'
|
272
|
-
property :data_type, as: 'dataType', class: Google::Apis::FitnessV1::DataType, decorator: Google::Apis::FitnessV1::DataType::Representation
|
273
|
-
|
274
|
-
property :device, as: 'device', class: Google::Apis::FitnessV1::Device, decorator: Google::Apis::FitnessV1::Device::Representation
|
275
|
-
|
276
|
-
property :name, as: 'name'
|
277
|
-
property :type, as: 'type'
|
278
|
-
end
|
279
|
-
end
|
280
|
-
|
281
|
-
class DataType
|
282
|
-
# @private
|
283
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
284
|
-
collection :field, as: 'field', class: Google::Apis::FitnessV1::DataTypeField, decorator: Google::Apis::FitnessV1::DataTypeField::Representation
|
285
|
-
|
286
|
-
property :name, as: 'name'
|
287
|
-
end
|
288
|
-
end
|
289
|
-
|
290
|
-
class DataTypeField
|
291
|
-
# @private
|
292
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
293
|
-
property :format, as: 'format'
|
294
|
-
property :name, as: 'name'
|
295
|
-
property :optional, as: 'optional'
|
296
|
-
end
|
297
|
-
end
|
298
|
-
|
299
|
-
class Dataset
|
300
|
-
# @private
|
301
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
302
|
-
property :data_source_id, as: 'dataSourceId'
|
303
|
-
property :max_end_time_ns, :numeric_string => true, as: 'maxEndTimeNs'
|
304
|
-
property :min_start_time_ns, :numeric_string => true, as: 'minStartTimeNs'
|
305
|
-
property :next_page_token, as: 'nextPageToken'
|
306
|
-
collection :point, as: 'point', class: Google::Apis::FitnessV1::DataPoint, decorator: Google::Apis::FitnessV1::DataPoint::Representation
|
307
|
-
|
308
|
-
end
|
309
|
-
end
|
310
|
-
|
311
|
-
class Device
|
312
|
-
# @private
|
313
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
314
|
-
property :manufacturer, as: 'manufacturer'
|
315
|
-
property :model, as: 'model'
|
316
|
-
property :type, as: 'type'
|
317
|
-
property :uid, as: 'uid'
|
318
|
-
property :version, as: 'version'
|
319
|
-
end
|
320
|
-
end
|
321
|
-
|
322
|
-
class ListDataPointChangesResponse
|
323
|
-
# @private
|
324
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
325
|
-
property :data_source_id, as: 'dataSourceId'
|
326
|
-
collection :deleted_data_point, as: 'deletedDataPoint', class: Google::Apis::FitnessV1::DataPoint, decorator: Google::Apis::FitnessV1::DataPoint::Representation
|
327
|
-
|
328
|
-
collection :inserted_data_point, as: 'insertedDataPoint', class: Google::Apis::FitnessV1::DataPoint, decorator: Google::Apis::FitnessV1::DataPoint::Representation
|
329
|
-
|
330
|
-
property :next_page_token, as: 'nextPageToken'
|
331
|
-
end
|
332
|
-
end
|
333
|
-
|
334
|
-
class ListDataSourcesResponse
|
335
|
-
# @private
|
336
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
337
|
-
collection :data_source, as: 'dataSource', class: Google::Apis::FitnessV1::DataSource, decorator: Google::Apis::FitnessV1::DataSource::Representation
|
338
|
-
|
339
|
-
end
|
340
|
-
end
|
341
|
-
|
342
|
-
class ListSessionsResponse
|
343
|
-
# @private
|
344
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
345
|
-
collection :deleted_session, as: 'deletedSession', class: Google::Apis::FitnessV1::Session, decorator: Google::Apis::FitnessV1::Session::Representation
|
346
|
-
|
347
|
-
property :has_more_data, as: 'hasMoreData'
|
348
|
-
property :next_page_token, as: 'nextPageToken'
|
349
|
-
collection :session, as: 'session', class: Google::Apis::FitnessV1::Session, decorator: Google::Apis::FitnessV1::Session::Representation
|
350
|
-
|
351
|
-
end
|
352
|
-
end
|
353
|
-
|
354
|
-
class MapValue
|
355
|
-
# @private
|
356
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
357
|
-
property :fp_val, as: 'fpVal'
|
358
|
-
end
|
359
|
-
end
|
360
|
-
|
361
|
-
class Session
|
362
|
-
# @private
|
363
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
364
|
-
property :active_time_millis, :numeric_string => true, as: 'activeTimeMillis'
|
365
|
-
property :activity_type, as: 'activityType'
|
366
|
-
property :application, as: 'application', class: Google::Apis::FitnessV1::Application, decorator: Google::Apis::FitnessV1::Application::Representation
|
367
|
-
|
368
|
-
property :description, as: 'description'
|
369
|
-
property :end_time_millis, :numeric_string => true, as: 'endTimeMillis'
|
370
|
-
property :id, as: 'id'
|
371
|
-
property :modified_time_millis, :numeric_string => true, as: 'modifiedTimeMillis'
|
372
|
-
property :name, as: 'name'
|
373
|
-
property :start_time_millis, :numeric_string => true, as: 'startTimeMillis'
|
374
|
-
end
|
375
|
-
end
|
376
|
-
|
377
|
-
class Value
|
378
|
-
# @private
|
379
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
380
|
-
property :fp_val, as: 'fpVal'
|
381
|
-
property :int_val, as: 'intVal'
|
382
|
-
collection :map_val, as: 'mapVal', class: Google::Apis::FitnessV1::ValueMapValEntry, decorator: Google::Apis::FitnessV1::ValueMapValEntry::Representation
|
383
|
-
|
384
|
-
property :string_val, as: 'stringVal'
|
385
|
-
end
|
386
|
-
end
|
387
|
-
|
388
|
-
class ValueMapValEntry
|
389
|
-
# @private
|
390
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
391
|
-
property :key, as: 'key'
|
392
|
-
property :value, as: 'value', class: Google::Apis::FitnessV1::MapValue, decorator: Google::Apis::FitnessV1::MapValue::Representation
|
393
|
-
|
394
|
-
end
|
395
|
-
end
|
396
|
-
end
|
397
|
-
end
|
398
|
-
end
|
@@ -1,647 +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 FitnessV1
|
23
|
-
# Fitness API
|
24
|
-
#
|
25
|
-
# The Fitness API for managing users' fitness tracking data.
|
26
|
-
#
|
27
|
-
# @example
|
28
|
-
# require 'google/apis/fitness_v1'
|
29
|
-
#
|
30
|
-
# Fitness = Google::Apis::FitnessV1 # Alias the module
|
31
|
-
# service = Fitness::FitnessService.new
|
32
|
-
#
|
33
|
-
# @see https://developers.google.com/fit/rest/v1/get-started
|
34
|
-
class FitnessService < 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
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
-
attr_accessor :quota_user
|
44
|
-
|
45
|
-
def initialize
|
46
|
-
super('https://www.googleapis.com/', '')
|
47
|
-
@batch_path = 'batch/fitness/v1'
|
48
|
-
end
|
49
|
-
|
50
|
-
# Creates a new data source that is unique across all data sources belonging
|
51
|
-
# to this user.
|
52
|
-
# A data source is a unique source of sensor data. Data sources can expose
|
53
|
-
# raw data coming from hardware sensors on local or companion devices. They
|
54
|
-
# can also expose derived data, created by transforming or merging other data
|
55
|
-
# sources. Multiple data sources can exist for the same data type. Every data
|
56
|
-
# point in every dataset inserted into or read from the Fitness API has an
|
57
|
-
# associated data source.
|
58
|
-
# Each data source produces a unique stream of dataset updates, with a
|
59
|
-
# unique data source identifier. Not all changes to data source affect the
|
60
|
-
# data stream ID, so that data collected by updated versions of the same
|
61
|
-
# application/device can still be considered to belong to the same data
|
62
|
-
# source.
|
63
|
-
# Data sources are identified using a string generated by the server, based
|
64
|
-
# on the contents of the source being created. The <code>dataStreamId</code>
|
65
|
-
# field should not be set when invoking this method. It
|
66
|
-
# will be automatically generated by the server with the correct format. If
|
67
|
-
# a <code>dataStreamId</code> is set, it must match the format that the
|
68
|
-
# server would generate. This format is a combination of some fields from the
|
69
|
-
# data source, and has a specific order. If it doesn't match, the request
|
70
|
-
# will fail with an error.
|
71
|
-
# Specifying a DataType which is not a known type (beginning with
|
72
|
-
# "com.google.") will create a DataSource with a <em>custom data type</em>.
|
73
|
-
# Custom data types are only readable by the application that created them.
|
74
|
-
# Custom data types are <strong>deprecated</strong>; use standard data types
|
75
|
-
# instead.
|
76
|
-
# In addition to the data source fields included in the data source ID, the
|
77
|
-
# developer project number that is authenticated when creating the data
|
78
|
-
# source is included. This developer project number is obfuscated when read
|
79
|
-
# by any other developer reading public data types.
|
80
|
-
# @param [String] user_id
|
81
|
-
# Create the data source for the person identified. Use <code>me</code> to
|
82
|
-
# indicate the authenticated user. Only <code>me</code> is supported at this
|
83
|
-
# time.
|
84
|
-
# @param [Google::Apis::FitnessV1::DataSource] data_source_object
|
85
|
-
# @param [String] fields
|
86
|
-
# Selector specifying which fields to include in a partial response.
|
87
|
-
# @param [String] quota_user
|
88
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
89
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
90
|
-
# @param [Google::Apis::RequestOptions] options
|
91
|
-
# Request-specific options
|
92
|
-
#
|
93
|
-
# @yield [result, err] Result & error if block supplied
|
94
|
-
# @yieldparam result [Google::Apis::FitnessV1::DataSource] parsed result object
|
95
|
-
# @yieldparam err [StandardError] error object if request failed
|
96
|
-
#
|
97
|
-
# @return [Google::Apis::FitnessV1::DataSource]
|
98
|
-
#
|
99
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
100
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
101
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
102
|
-
def create_user_data_source(user_id, data_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
103
|
-
command = make_simple_command(:post, 'fitness/v1/users/{userId}/dataSources', options)
|
104
|
-
command.request_representation = Google::Apis::FitnessV1::DataSource::Representation
|
105
|
-
command.request_object = data_source_object
|
106
|
-
command.response_representation = Google::Apis::FitnessV1::DataSource::Representation
|
107
|
-
command.response_class = Google::Apis::FitnessV1::DataSource
|
108
|
-
command.params['userId'] = user_id unless user_id.nil?
|
109
|
-
command.query['fields'] = fields unless fields.nil?
|
110
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
111
|
-
execute_or_queue_command(command, &block)
|
112
|
-
end
|
113
|
-
|
114
|
-
# Deletes the specified data source. The request will fail if the data
|
115
|
-
# source contains any data points.
|
116
|
-
# @param [String] user_id
|
117
|
-
# Retrieve a data source for the person identified. Use <code>me</code> to
|
118
|
-
# indicate the authenticated user. Only <code>me</code> is supported at this
|
119
|
-
# time.
|
120
|
-
# @param [String] data_source_id
|
121
|
-
# The data stream ID of the data source to delete.
|
122
|
-
# @param [String] fields
|
123
|
-
# Selector specifying which fields to include in a partial response.
|
124
|
-
# @param [String] quota_user
|
125
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
126
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
127
|
-
# @param [Google::Apis::RequestOptions] options
|
128
|
-
# Request-specific options
|
129
|
-
#
|
130
|
-
# @yield [result, err] Result & error if block supplied
|
131
|
-
# @yieldparam result [Google::Apis::FitnessV1::DataSource] parsed result object
|
132
|
-
# @yieldparam err [StandardError] error object if request failed
|
133
|
-
#
|
134
|
-
# @return [Google::Apis::FitnessV1::DataSource]
|
135
|
-
#
|
136
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
137
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
138
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
139
|
-
def delete_user_data_source(user_id, data_source_id, fields: nil, quota_user: nil, options: nil, &block)
|
140
|
-
command = make_simple_command(:delete, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}', options)
|
141
|
-
command.response_representation = Google::Apis::FitnessV1::DataSource::Representation
|
142
|
-
command.response_class = Google::Apis::FitnessV1::DataSource
|
143
|
-
command.params['userId'] = user_id unless user_id.nil?
|
144
|
-
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
145
|
-
command.query['fields'] = fields unless fields.nil?
|
146
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
147
|
-
execute_or_queue_command(command, &block)
|
148
|
-
end
|
149
|
-
|
150
|
-
# Returns the specified data source.
|
151
|
-
# @param [String] user_id
|
152
|
-
# Retrieve a data source for the person identified. Use <code>me</code> to
|
153
|
-
# indicate the authenticated user. Only <code>me</code> is supported at this
|
154
|
-
# time.
|
155
|
-
# @param [String] data_source_id
|
156
|
-
# The data stream ID of the data source to retrieve.
|
157
|
-
# @param [String] fields
|
158
|
-
# Selector specifying which fields to include in a partial response.
|
159
|
-
# @param [String] quota_user
|
160
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
161
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
162
|
-
# @param [Google::Apis::RequestOptions] options
|
163
|
-
# Request-specific options
|
164
|
-
#
|
165
|
-
# @yield [result, err] Result & error if block supplied
|
166
|
-
# @yieldparam result [Google::Apis::FitnessV1::DataSource] parsed result object
|
167
|
-
# @yieldparam err [StandardError] error object if request failed
|
168
|
-
#
|
169
|
-
# @return [Google::Apis::FitnessV1::DataSource]
|
170
|
-
#
|
171
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
172
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
173
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
174
|
-
def get_user_data_source(user_id, data_source_id, fields: nil, quota_user: nil, options: nil, &block)
|
175
|
-
command = make_simple_command(:get, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}', options)
|
176
|
-
command.response_representation = Google::Apis::FitnessV1::DataSource::Representation
|
177
|
-
command.response_class = Google::Apis::FitnessV1::DataSource
|
178
|
-
command.params['userId'] = user_id unless user_id.nil?
|
179
|
-
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
180
|
-
command.query['fields'] = fields unless fields.nil?
|
181
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
182
|
-
execute_or_queue_command(command, &block)
|
183
|
-
end
|
184
|
-
|
185
|
-
# Lists all data sources that are visible to the developer, using the OAuth
|
186
|
-
# scopes provided. The list is not exhaustive; the user may have private
|
187
|
-
# data sources that are only visible to other developers, or calls using
|
188
|
-
# other scopes.
|
189
|
-
# @param [String] user_id
|
190
|
-
# List data sources for the person identified. Use <code>me</code> to
|
191
|
-
# indicate the authenticated user. Only <code>me</code> is supported at this
|
192
|
-
# time.
|
193
|
-
# @param [Array<String>, String] data_type_name
|
194
|
-
# The names of data types to include in the list. If not specified, all
|
195
|
-
# data sources will be returned.
|
196
|
-
# @param [String] fields
|
197
|
-
# Selector specifying which fields to include in a partial response.
|
198
|
-
# @param [String] quota_user
|
199
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
200
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
201
|
-
# @param [Google::Apis::RequestOptions] options
|
202
|
-
# Request-specific options
|
203
|
-
#
|
204
|
-
# @yield [result, err] Result & error if block supplied
|
205
|
-
# @yieldparam result [Google::Apis::FitnessV1::ListDataSourcesResponse] parsed result object
|
206
|
-
# @yieldparam err [StandardError] error object if request failed
|
207
|
-
#
|
208
|
-
# @return [Google::Apis::FitnessV1::ListDataSourcesResponse]
|
209
|
-
#
|
210
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
211
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
212
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
213
|
-
def list_user_data_sources(user_id, data_type_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
214
|
-
command = make_simple_command(:get, 'fitness/v1/users/{userId}/dataSources', options)
|
215
|
-
command.response_representation = Google::Apis::FitnessV1::ListDataSourcesResponse::Representation
|
216
|
-
command.response_class = Google::Apis::FitnessV1::ListDataSourcesResponse
|
217
|
-
command.params['userId'] = user_id unless user_id.nil?
|
218
|
-
command.query['dataTypeName'] = data_type_name unless data_type_name.nil?
|
219
|
-
command.query['fields'] = fields unless fields.nil?
|
220
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
221
|
-
execute_or_queue_command(command, &block)
|
222
|
-
end
|
223
|
-
|
224
|
-
# Updates the specified data source. The <code>dataStreamId</code>,
|
225
|
-
# <code>dataType</code>, <code>type</code>, <code>dataStreamName</code>, and
|
226
|
-
# <code>device</code> properties with the exception of <code>version</code>,
|
227
|
-
# cannot be modified.
|
228
|
-
# Data sources are identified by their <code>dataStreamId</code>.
|
229
|
-
# @param [String] user_id
|
230
|
-
# Update the data source for the person identified. Use <code>me</code> to
|
231
|
-
# indicate the authenticated user. Only <code>me</code> is supported at this
|
232
|
-
# time.
|
233
|
-
# @param [String] data_source_id
|
234
|
-
# The data stream ID of the data source to update.
|
235
|
-
# @param [Google::Apis::FitnessV1::DataSource] data_source_object
|
236
|
-
# @param [String] fields
|
237
|
-
# Selector specifying which fields to include in a partial response.
|
238
|
-
# @param [String] quota_user
|
239
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
240
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
241
|
-
# @param [Google::Apis::RequestOptions] options
|
242
|
-
# Request-specific options
|
243
|
-
#
|
244
|
-
# @yield [result, err] Result & error if block supplied
|
245
|
-
# @yieldparam result [Google::Apis::FitnessV1::DataSource] parsed result object
|
246
|
-
# @yieldparam err [StandardError] error object if request failed
|
247
|
-
#
|
248
|
-
# @return [Google::Apis::FitnessV1::DataSource]
|
249
|
-
#
|
250
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
251
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
252
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
253
|
-
def update_user_data_source(user_id, data_source_id, data_source_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
254
|
-
command = make_simple_command(:put, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}', options)
|
255
|
-
command.request_representation = Google::Apis::FitnessV1::DataSource::Representation
|
256
|
-
command.request_object = data_source_object
|
257
|
-
command.response_representation = Google::Apis::FitnessV1::DataSource::Representation
|
258
|
-
command.response_class = Google::Apis::FitnessV1::DataSource
|
259
|
-
command.params['userId'] = user_id unless user_id.nil?
|
260
|
-
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
261
|
-
command.query['fields'] = fields unless fields.nil?
|
262
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
263
|
-
execute_or_queue_command(command, &block)
|
264
|
-
end
|
265
|
-
|
266
|
-
# Queries for user's data point changes for a particular data source.
|
267
|
-
# @param [String] user_id
|
268
|
-
# List data points for the person identified. Use <code>me</code> to indicate
|
269
|
-
# the authenticated user. Only <code>me</code> is supported at this time.
|
270
|
-
# @param [String] data_source_id
|
271
|
-
# The data stream ID of the data source that created the dataset.
|
272
|
-
# @param [Fixnum] limit
|
273
|
-
# If specified, no more than this many data point changes will be included
|
274
|
-
# in the response.
|
275
|
-
# @param [String] page_token
|
276
|
-
# The continuation token, which is used to page through large result sets.
|
277
|
-
# To get the next page of results, set this parameter to the value of
|
278
|
-
# <code>nextPageToken</code> from the previous response.
|
279
|
-
# @param [String] fields
|
280
|
-
# Selector specifying which fields to include in a partial response.
|
281
|
-
# @param [String] quota_user
|
282
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
283
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
284
|
-
# @param [Google::Apis::RequestOptions] options
|
285
|
-
# Request-specific options
|
286
|
-
#
|
287
|
-
# @yield [result, err] Result & error if block supplied
|
288
|
-
# @yieldparam result [Google::Apis::FitnessV1::ListDataPointChangesResponse] parsed result object
|
289
|
-
# @yieldparam err [StandardError] error object if request failed
|
290
|
-
#
|
291
|
-
# @return [Google::Apis::FitnessV1::ListDataPointChangesResponse]
|
292
|
-
#
|
293
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
294
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
295
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
296
|
-
def list_user_data_source_data_point_changes(user_id, data_source_id, limit: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
297
|
-
command = make_simple_command(:get, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}/dataPointChanges', options)
|
298
|
-
command.response_representation = Google::Apis::FitnessV1::ListDataPointChangesResponse::Representation
|
299
|
-
command.response_class = Google::Apis::FitnessV1::ListDataPointChangesResponse
|
300
|
-
command.params['userId'] = user_id unless user_id.nil?
|
301
|
-
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
302
|
-
command.query['limit'] = limit unless limit.nil?
|
303
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
304
|
-
command.query['fields'] = fields unless fields.nil?
|
305
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
306
|
-
execute_or_queue_command(command, &block)
|
307
|
-
end
|
308
|
-
|
309
|
-
# Performs an inclusive delete of all data points whose start and end times
|
310
|
-
# have any overlap with the time range specified by the dataset ID. For most
|
311
|
-
# data types, the entire data point will be deleted. For data types where the
|
312
|
-
# time span represents a consistent value (such as
|
313
|
-
# <code>com.google.activity.segment</code>), and a data point straddles
|
314
|
-
# either end point of the dataset, only the overlapping portion of the data
|
315
|
-
# point will be deleted.
|
316
|
-
# @param [String] user_id
|
317
|
-
# Delete a dataset for the person identified. Use <code>me</code> to indicate
|
318
|
-
# the authenticated user. Only <code>me</code> is supported at this time.
|
319
|
-
# @param [String] data_source_id
|
320
|
-
# The data stream ID of the data source that created the dataset.
|
321
|
-
# @param [String] dataset_id
|
322
|
-
# Dataset identifier that is a composite of the minimum data point start time
|
323
|
-
# and maximum data point end time represented as nanoseconds from the epoch.
|
324
|
-
# The ID is formatted like: "<var>startTime</var>-<var>endTime</var>"
|
325
|
-
# where <var>startTime</var> and <var>endTime</var> are 64 bit integers.
|
326
|
-
# @param [Fixnum] current_time_millis
|
327
|
-
# The client's current time in milliseconds since epoch.
|
328
|
-
# @param [Fixnum] modified_time_millis
|
329
|
-
# When the operation was performed on the client.
|
330
|
-
# @param [String] fields
|
331
|
-
# Selector specifying which fields to include in a partial response.
|
332
|
-
# @param [String] quota_user
|
333
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
334
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
335
|
-
# @param [Google::Apis::RequestOptions] options
|
336
|
-
# Request-specific options
|
337
|
-
#
|
338
|
-
# @yield [result, err] Result & error if block supplied
|
339
|
-
# @yieldparam result [NilClass] No result returned for this method
|
340
|
-
# @yieldparam err [StandardError] error object if request failed
|
341
|
-
#
|
342
|
-
# @return [void]
|
343
|
-
#
|
344
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
345
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
346
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
347
|
-
def delete_user_data_source_dataset(user_id, data_source_id, dataset_id, current_time_millis: nil, modified_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block)
|
348
|
-
command = make_simple_command(:delete, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options)
|
349
|
-
command.params['userId'] = user_id unless user_id.nil?
|
350
|
-
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
351
|
-
command.params['datasetId'] = dataset_id unless dataset_id.nil?
|
352
|
-
command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.nil?
|
353
|
-
command.query['modifiedTimeMillis'] = modified_time_millis unless modified_time_millis.nil?
|
354
|
-
command.query['fields'] = fields unless fields.nil?
|
355
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
356
|
-
execute_or_queue_command(command, &block)
|
357
|
-
end
|
358
|
-
|
359
|
-
# Returns a dataset containing all data points whose start and end times
|
360
|
-
# overlap with the specified range of the dataset minimum start time and
|
361
|
-
# maximum end time. Specifically, any data point whose start time is less
|
362
|
-
# than or equal to the dataset end time and whose end time is greater than or
|
363
|
-
# equal to the dataset start time.
|
364
|
-
# @param [String] user_id
|
365
|
-
# Retrieve a dataset for the person identified. Use <code>me</code> to
|
366
|
-
# indicate the authenticated user. Only <code>me</code> is supported at this
|
367
|
-
# time.
|
368
|
-
# @param [String] data_source_id
|
369
|
-
# The data stream ID of the data source that created the dataset.
|
370
|
-
# @param [String] dataset_id
|
371
|
-
# Dataset identifier that is a composite of the minimum data point start time
|
372
|
-
# and maximum data point end time represented as nanoseconds from the epoch.
|
373
|
-
# The ID is formatted like: "<var>startTime</var>-<var>endTime</var>"
|
374
|
-
# where <var>startTime</var> and <var>endTime</var> are 64 bit integers.
|
375
|
-
# @param [Fixnum] limit
|
376
|
-
# If specified, no more than this many data points will be included in the
|
377
|
-
# dataset. If there are more data points in the dataset, nextPageToken
|
378
|
-
# will be set in the dataset response.
|
379
|
-
# @param [String] page_token
|
380
|
-
# The continuation token, which is used to page through large datasets.
|
381
|
-
# To get the next page of a dataset, set this parameter to the value of
|
382
|
-
# <code>nextPageToken</code> from the previous response. Each subsequent
|
383
|
-
# call will yield a partial dataset with data point end timestamps that are
|
384
|
-
# strictly smaller than those in the previous partial response.
|
385
|
-
# @param [String] fields
|
386
|
-
# Selector specifying which fields to include in a partial response.
|
387
|
-
# @param [String] quota_user
|
388
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
389
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
390
|
-
# @param [Google::Apis::RequestOptions] options
|
391
|
-
# Request-specific options
|
392
|
-
#
|
393
|
-
# @yield [result, err] Result & error if block supplied
|
394
|
-
# @yieldparam result [Google::Apis::FitnessV1::Dataset] parsed result object
|
395
|
-
# @yieldparam err [StandardError] error object if request failed
|
396
|
-
#
|
397
|
-
# @return [Google::Apis::FitnessV1::Dataset]
|
398
|
-
#
|
399
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
400
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
401
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
402
|
-
def get_user_data_source_dataset(user_id, data_source_id, dataset_id, limit: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
403
|
-
command = make_simple_command(:get, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options)
|
404
|
-
command.response_representation = Google::Apis::FitnessV1::Dataset::Representation
|
405
|
-
command.response_class = Google::Apis::FitnessV1::Dataset
|
406
|
-
command.params['userId'] = user_id unless user_id.nil?
|
407
|
-
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
408
|
-
command.params['datasetId'] = dataset_id unless dataset_id.nil?
|
409
|
-
command.query['limit'] = limit unless limit.nil?
|
410
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
411
|
-
command.query['fields'] = fields unless fields.nil?
|
412
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
413
|
-
execute_or_queue_command(command, &block)
|
414
|
-
end
|
415
|
-
|
416
|
-
# Adds data points to a dataset. The dataset need not be previously created.
|
417
|
-
# All points within the given dataset will be returned with subsquent calls
|
418
|
-
# to retrieve this dataset. Data points can belong to more than one dataset.
|
419
|
-
# This method does not use patch semantics.
|
420
|
-
# @param [String] user_id
|
421
|
-
# Patch a dataset for the person identified. Use <code>me</code> to indicate
|
422
|
-
# the authenticated user. Only <code>me</code> is supported at this time.
|
423
|
-
# @param [String] data_source_id
|
424
|
-
# The data stream ID of the data source that created the dataset.
|
425
|
-
# @param [String] dataset_id
|
426
|
-
# Dataset identifier that is a composite of the minimum data point start time
|
427
|
-
# and maximum data point end time represented as nanoseconds from the epoch.
|
428
|
-
# The ID is formatted like: "<var>startTime</var>-<var>endTime</var>"
|
429
|
-
# where <var>startTime</var> and <var>endTime</var> are 64 bit integers.
|
430
|
-
# @param [Google::Apis::FitnessV1::Dataset] dataset_object
|
431
|
-
# @param [Fixnum] current_time_millis
|
432
|
-
# The client's current time in milliseconds since epoch. Note that the
|
433
|
-
# <code>minStartTimeNs</code> and <code>maxEndTimeNs</code> properties in
|
434
|
-
# the request body are in nanoseconds instead of milliseconds.
|
435
|
-
# @param [String] fields
|
436
|
-
# Selector specifying which fields to include in a partial response.
|
437
|
-
# @param [String] quota_user
|
438
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
439
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
440
|
-
# @param [Google::Apis::RequestOptions] options
|
441
|
-
# Request-specific options
|
442
|
-
#
|
443
|
-
# @yield [result, err] Result & error if block supplied
|
444
|
-
# @yieldparam result [Google::Apis::FitnessV1::Dataset] parsed result object
|
445
|
-
# @yieldparam err [StandardError] error object if request failed
|
446
|
-
#
|
447
|
-
# @return [Google::Apis::FitnessV1::Dataset]
|
448
|
-
#
|
449
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
450
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
451
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
452
|
-
def patch_user_data_source_dataset(user_id, data_source_id, dataset_id, dataset_object = nil, current_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block)
|
453
|
-
command = make_simple_command(:patch, 'fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}', options)
|
454
|
-
command.request_representation = Google::Apis::FitnessV1::Dataset::Representation
|
455
|
-
command.request_object = dataset_object
|
456
|
-
command.response_representation = Google::Apis::FitnessV1::Dataset::Representation
|
457
|
-
command.response_class = Google::Apis::FitnessV1::Dataset
|
458
|
-
command.params['userId'] = user_id unless user_id.nil?
|
459
|
-
command.params['dataSourceId'] = data_source_id unless data_source_id.nil?
|
460
|
-
command.params['datasetId'] = dataset_id unless dataset_id.nil?
|
461
|
-
command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.nil?
|
462
|
-
command.query['fields'] = fields unless fields.nil?
|
463
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
464
|
-
execute_or_queue_command(command, &block)
|
465
|
-
end
|
466
|
-
|
467
|
-
# Aggregates data of a certain type or stream into buckets divided by a given
|
468
|
-
# type of boundary. Multiple data sets of multiple types and from multiple
|
469
|
-
# sources can be aggregated into exactly one bucket type per request.
|
470
|
-
# @param [String] user_id
|
471
|
-
# Aggregate data for the person identified. Use <code>me</code> to indicate
|
472
|
-
# the authenticated user. Only <code>me</code> is supported at this time.
|
473
|
-
# @param [Google::Apis::FitnessV1::AggregateRequest] aggregate_request_object
|
474
|
-
# @param [String] fields
|
475
|
-
# Selector specifying which fields to include in a partial response.
|
476
|
-
# @param [String] quota_user
|
477
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
478
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
479
|
-
# @param [Google::Apis::RequestOptions] options
|
480
|
-
# Request-specific options
|
481
|
-
#
|
482
|
-
# @yield [result, err] Result & error if block supplied
|
483
|
-
# @yieldparam result [Google::Apis::FitnessV1::AggregateResponse] parsed result object
|
484
|
-
# @yieldparam err [StandardError] error object if request failed
|
485
|
-
#
|
486
|
-
# @return [Google::Apis::FitnessV1::AggregateResponse]
|
487
|
-
#
|
488
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
489
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
490
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
491
|
-
def aggregate_dataset(user_id, aggregate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
492
|
-
command = make_simple_command(:post, 'fitness/v1/users/{userId}/dataset:aggregate', options)
|
493
|
-
command.request_representation = Google::Apis::FitnessV1::AggregateRequest::Representation
|
494
|
-
command.request_object = aggregate_request_object
|
495
|
-
command.response_representation = Google::Apis::FitnessV1::AggregateResponse::Representation
|
496
|
-
command.response_class = Google::Apis::FitnessV1::AggregateResponse
|
497
|
-
command.params['userId'] = user_id unless user_id.nil?
|
498
|
-
command.query['fields'] = fields unless fields.nil?
|
499
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
500
|
-
execute_or_queue_command(command, &block)
|
501
|
-
end
|
502
|
-
|
503
|
-
# Deletes a session specified by the given session ID.
|
504
|
-
# @param [String] user_id
|
505
|
-
# Delete a session for the person identified. Use <code>me</code> to indicate
|
506
|
-
# the authenticated user. Only <code>me</code> is supported at this time.
|
507
|
-
# @param [String] session_id
|
508
|
-
# The ID of the session to be deleted.
|
509
|
-
# @param [Fixnum] current_time_millis
|
510
|
-
# The client's current time in milliseconds since epoch.
|
511
|
-
# @param [String] fields
|
512
|
-
# Selector specifying which fields to include in a partial response.
|
513
|
-
# @param [String] quota_user
|
514
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
515
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
516
|
-
# @param [Google::Apis::RequestOptions] options
|
517
|
-
# Request-specific options
|
518
|
-
#
|
519
|
-
# @yield [result, err] Result & error if block supplied
|
520
|
-
# @yieldparam result [NilClass] No result returned for this method
|
521
|
-
# @yieldparam err [StandardError] error object if request failed
|
522
|
-
#
|
523
|
-
# @return [void]
|
524
|
-
#
|
525
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
526
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
527
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
528
|
-
def delete_user_session(user_id, session_id, current_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block)
|
529
|
-
command = make_simple_command(:delete, 'fitness/v1/users/{userId}/sessions/{sessionId}', options)
|
530
|
-
command.params['userId'] = user_id unless user_id.nil?
|
531
|
-
command.params['sessionId'] = session_id unless session_id.nil?
|
532
|
-
command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.nil?
|
533
|
-
command.query['fields'] = fields unless fields.nil?
|
534
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
535
|
-
execute_or_queue_command(command, &block)
|
536
|
-
end
|
537
|
-
|
538
|
-
# Lists sessions previously created.
|
539
|
-
# @param [String] user_id
|
540
|
-
# List sessions for the person identified. Use <code>me</code> to indicate
|
541
|
-
# the authenticated user. Only <code>me</code> is supported at this time.
|
542
|
-
# @param [Array<Fixnum>, Fixnum] activity_type
|
543
|
-
# If non-empty, only sessions with these activity types should be returned.
|
544
|
-
# @param [String] end_time
|
545
|
-
# An <a href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339</a> timestamp.
|
546
|
-
# Only sessions ending between the start and end times will be included in
|
547
|
-
# the response. If this time is omitted but <var>startTime</var> is
|
548
|
-
# specified, all sessions from <var>startTime</var> to the end of time will
|
549
|
-
# be returned.
|
550
|
-
# @param [Boolean] include_deleted
|
551
|
-
# If true, and if both <var>startTime</var> and <var>endTime</var> are
|
552
|
-
# omitted, session deletions will be returned.
|
553
|
-
# @param [String] page_token
|
554
|
-
# The continuation token, which is used for incremental syncing.
|
555
|
-
# To get the next batch of changes, set this parameter to the value of
|
556
|
-
# <code>nextPageToken</code> from the previous response. The page token is
|
557
|
-
# ignored if either start or end time is specified. If none of start time,
|
558
|
-
# end time, and the page token is specified, sessions modified in the last
|
559
|
-
# 30 days are returned.
|
560
|
-
# @param [String] start_time
|
561
|
-
# An <a href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339</a> timestamp.
|
562
|
-
# Only sessions ending between the start and end times will be included in
|
563
|
-
# the response. If this time is omitted but <var>endTime</var> is specified,
|
564
|
-
# all sessions from the start of time up to <var>endTime</var> will be
|
565
|
-
# returned.
|
566
|
-
# @param [String] fields
|
567
|
-
# Selector specifying which fields to include in a partial response.
|
568
|
-
# @param [String] quota_user
|
569
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
570
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
571
|
-
# @param [Google::Apis::RequestOptions] options
|
572
|
-
# Request-specific options
|
573
|
-
#
|
574
|
-
# @yield [result, err] Result & error if block supplied
|
575
|
-
# @yieldparam result [Google::Apis::FitnessV1::ListSessionsResponse] parsed result object
|
576
|
-
# @yieldparam err [StandardError] error object if request failed
|
577
|
-
#
|
578
|
-
# @return [Google::Apis::FitnessV1::ListSessionsResponse]
|
579
|
-
#
|
580
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
581
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
582
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
583
|
-
def list_user_sessions(user_id, activity_type: nil, end_time: nil, include_deleted: nil, page_token: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
584
|
-
command = make_simple_command(:get, 'fitness/v1/users/{userId}/sessions', options)
|
585
|
-
command.response_representation = Google::Apis::FitnessV1::ListSessionsResponse::Representation
|
586
|
-
command.response_class = Google::Apis::FitnessV1::ListSessionsResponse
|
587
|
-
command.params['userId'] = user_id unless user_id.nil?
|
588
|
-
command.query['activityType'] = activity_type unless activity_type.nil?
|
589
|
-
command.query['endTime'] = end_time unless end_time.nil?
|
590
|
-
command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
|
591
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
592
|
-
command.query['startTime'] = start_time unless start_time.nil?
|
593
|
-
command.query['fields'] = fields unless fields.nil?
|
594
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
595
|
-
execute_or_queue_command(command, &block)
|
596
|
-
end
|
597
|
-
|
598
|
-
# Updates or insert a given session.
|
599
|
-
# @param [String] user_id
|
600
|
-
# Create sessions for the person identified. Use <code>me</code> to indicate
|
601
|
-
# the authenticated user. Only <code>me</code> is supported at this time.
|
602
|
-
# @param [String] session_id
|
603
|
-
# The ID of the session to be created.
|
604
|
-
# @param [Google::Apis::FitnessV1::Session] session_object
|
605
|
-
# @param [Fixnum] current_time_millis
|
606
|
-
# The client's current time in milliseconds since epoch.
|
607
|
-
# @param [String] fields
|
608
|
-
# Selector specifying which fields to include in a partial response.
|
609
|
-
# @param [String] quota_user
|
610
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
611
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
612
|
-
# @param [Google::Apis::RequestOptions] options
|
613
|
-
# Request-specific options
|
614
|
-
#
|
615
|
-
# @yield [result, err] Result & error if block supplied
|
616
|
-
# @yieldparam result [Google::Apis::FitnessV1::Session] parsed result object
|
617
|
-
# @yieldparam err [StandardError] error object if request failed
|
618
|
-
#
|
619
|
-
# @return [Google::Apis::FitnessV1::Session]
|
620
|
-
#
|
621
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
622
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
623
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
624
|
-
def update_user_session(user_id, session_id, session_object = nil, current_time_millis: nil, fields: nil, quota_user: nil, options: nil, &block)
|
625
|
-
command = make_simple_command(:put, 'fitness/v1/users/{userId}/sessions/{sessionId}', options)
|
626
|
-
command.request_representation = Google::Apis::FitnessV1::Session::Representation
|
627
|
-
command.request_object = session_object
|
628
|
-
command.response_representation = Google::Apis::FitnessV1::Session::Representation
|
629
|
-
command.response_class = Google::Apis::FitnessV1::Session
|
630
|
-
command.params['userId'] = user_id unless user_id.nil?
|
631
|
-
command.params['sessionId'] = session_id unless session_id.nil?
|
632
|
-
command.query['currentTimeMillis'] = current_time_millis unless current_time_millis.nil?
|
633
|
-
command.query['fields'] = fields unless fields.nil?
|
634
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
635
|
-
execute_or_queue_command(command, &block)
|
636
|
-
end
|
637
|
-
|
638
|
-
protected
|
639
|
-
|
640
|
-
def apply_command_defaults(command)
|
641
|
-
command.query['key'] = key unless key.nil?
|
642
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
643
|
-
end
|
644
|
-
end
|
645
|
-
end
|
646
|
-
end
|
647
|
-
end
|