google-api-client 0.20.1 → 0.21.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 +140 -0
- data/README.md +3 -12
- data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +11 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +24 -40
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +66 -110
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +117 -195
- data/generated/google/apis/adexchangeseller_v1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1/service.rb +36 -60
- data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +54 -90
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +45 -75
- data/generated/google/apis/adexperiencereport_v1.rb +2 -2
- data/generated/google/apis/adexperiencereport_v1/classes.rb +1 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/admin_datatransfer_v1/service.rb +18 -30
- data/generated/google/apis/admin_directory_v1.rb +3 -3
- data/generated/google/apis/admin_directory_v1/classes.rb +18 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +3 -0
- data/generated/google/apis/admin_directory_v1/service.rb +363 -577
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +21 -35
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/service.rb +117 -195
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +81 -135
- data/generated/google/apis/analytics_v2_4.rb +1 -1
- data/generated/google/apis/analytics_v2_4/service.rb +21 -35
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +32 -60
- data/generated/google/apis/analytics_v3/representations.rb +8 -12
- data/generated/google/apis/analytics_v3/service.rb +261 -435
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -12
- data/generated/google/apis/androidenterprise_v1/service.rb +254 -425
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +38 -6
- data/generated/google/apis/androidmanagement_v1/representations.rb +18 -0
- data/generated/google/apis/androidpublisher_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1/service.rb +9 -15
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1/service.rb +12 -20
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +102 -1
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +255 -286
- data/generated/google/apis/androidpublisher_v3.rb +34 -0
- data/generated/google/apis/androidpublisher_v3/classes.rb +1899 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +882 -0
- data/generated/google/apis/androidpublisher_v3/service.rb +2208 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +6 -10
- data/generated/google/apis/appsmarket_v2/service.rb +12 -20
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +18 -30
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +67 -9
- data/generated/google/apis/bigquery_v2/representations.rb +22 -0
- data/generated/google/apis/bigquery_v2/service.rb +69 -115
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +1 -2
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +2 -2
- data/generated/google/apis/blogger_v2/service.rb +30 -50
- data/generated/google/apis/blogger_v3/service.rb +102 -170
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/service.rb +156 -260
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +114 -190
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +6 -0
- data/generated/google/apis/chat_v1/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +18 -30
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +0 -69
- data/generated/google/apis/classroom_v1/representations.rb +0 -31
- data/generated/google/apis/classroom_v1/service.rb +0 -88
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +0 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +2 -1
- data/generated/google/apis/cloudfunctions_v1.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1beta2.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +14 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +2 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +3 -4
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +29 -7
- data/generated/google/apis/cloudiot_v1/service.rb +398 -1
- data/generated/google/apis/cloudkms_v1.rb +2 -2
- data/generated/google/apis/cloudkms_v1/classes.rb +29 -7
- data/generated/google/apis/cloudkms_v1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +30 -8
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -3
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +29 -7
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +29 -7
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +29 -7
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +39 -10
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +9 -11
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
- data/generated/google/apis/{dlp_v2beta1.rb → composer_v1beta1.rb} +9 -11
- data/generated/google/apis/composer_v1beta1/classes.rb +643 -0
- data/generated/google/apis/composer_v1beta1/representations.rb +195 -0
- data/generated/google/apis/composer_v1beta1/service.rb +462 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +3939 -2239
- data/generated/google/apis/compute_alpha/representations.rb +1063 -335
- data/generated/google/apis/compute_alpha/service.rb +3532 -3368
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +150 -53
- data/generated/google/apis/compute_beta/representations.rb +23 -0
- data/generated/google/apis/compute_beta/service.rb +1269 -2077
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +46 -43
- data/generated/google/apis/compute_v1/service.rb +1022 -1666
- data/generated/google/apis/container_v1.rb +2 -2
- data/generated/google/apis/container_v1/classes.rb +20 -15
- data/generated/google/apis/container_v1/representations.rb +1 -0
- data/generated/google/apis/container_v1/service.rb +33 -31
- data/generated/google/apis/container_v1beta1.rb +2 -2
- data/generated/google/apis/container_v1beta1/classes.rb +186 -14
- data/generated/google/apis/container_v1beta1/representations.rb +77 -0
- data/generated/google/apis/container_v1beta1/service.rb +111 -31
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +173 -8
- data/generated/google/apis/content_v2/representations.rb +71 -0
- data/generated/google/apis/content_v2/service.rb +246 -410
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +75 -8
- data/generated/google/apis/content_v2sandbox/representations.rb +33 -0
- data/generated/google/apis/content_v2sandbox/service.rb +63 -105
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +9 -15
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +15 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +6 -6
- data/generated/google/apis/dataproc_v1/service.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2.rb +2 -2
- data/generated/google/apis/dataproc_v1beta2/classes.rb +48 -13
- data/generated/google/apis/dataproc_v1beta2/representations.rb +12 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +1 -1
- data/generated/google/apis/datastore_v1.rb +2 -2
- data/generated/google/apis/datastore_v1/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta1.rb +2 -2
- data/generated/google/apis/datastore_v1beta1/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +2 -2
- data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +118 -194
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +61 -99
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +103 -169
- data/generated/google/apis/dfareporting_v2_8/service.rb +618 -1030
- data/generated/google/apis/dfareporting_v3_0/service.rb +615 -1025
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +94 -24
- data/generated/google/apis/dialogflow_v2/representations.rb +13 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +94 -24
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +13 -0
- data/generated/google/apis/discovery_v1/service.rb +9 -15
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +116 -1572
- data/generated/google/apis/dlp_v2/representations.rb +673 -1405
- data/generated/google/apis/dlp_v2/service.rb +24 -24
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +7 -0
- data/generated/google/apis/dns_v1/representations.rb +1 -0
- data/generated/google/apis/dns_v1/service.rb +49 -81
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +7 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
- data/generated/google/apis/dns_v1beta2/service.rb +49 -81
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +7 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +1 -0
- data/generated/google/apis/dns_v2beta1/service.rb +49 -81
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +30 -50
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/service.rb +33 -55
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +205 -341
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +120 -200
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +2 -2
- data/generated/google/apis/firestore_v1beta1/service.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +45 -75
- data/generated/google/apis/fusiontables_v1.rb +1 -1
- data/generated/google/apis/fusiontables_v1/service.rb +99 -165
- data/generated/google/apis/fusiontables_v2/service.rb +105 -175
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +42 -70
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/service.rb +84 -140
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +162 -270
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +41 -7
- data/generated/google/apis/genomics_v1/representations.rb +1 -0
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +12 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +70 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +20 -0
- data/generated/google/apis/gmail_v1/service.rb +189 -315
- data/generated/google/apis/groupsmigration_v1/service.rb +6 -10
- data/generated/google/apis/groupssettings_v1/service.rb +12 -20
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +29 -7
- data/generated/google/apis/iam_v1/service.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/service.rb +63 -105
- data/generated/google/apis/jobs_v2.rb +38 -0
- data/generated/google/apis/jobs_v2/classes.rb +3378 -0
- data/generated/google/apis/jobs_v2/representations.rb +1067 -0
- data/generated/google/apis/jobs_v2/service.rb +754 -0
- data/generated/google/apis/licensing_v1/service.rb +24 -40
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +55 -5
- data/generated/google/apis/logging_v2/representations.rb +16 -0
- data/generated/google/apis/logging_v2/service.rb +6 -4
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +55 -5
- data/generated/google/apis/logging_v2beta1/representations.rb +16 -0
- data/generated/google/apis/logging_v2beta1/service.rb +6 -4
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +75 -125
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +65 -28
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1/service.rb +2 -2
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v1/service.rb +27 -45
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +15 -25
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +6 -0
- data/generated/google/apis/oslogin_v1/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +7 -1
- data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +4 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +6 -0
- data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
- data/generated/google/apis/pagespeedonline_v1.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1/service.rb +6 -10
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/service.rb +6 -10
- data/generated/google/apis/pagespeedonline_v4/service.rb +6 -10
- data/generated/google/apis/photoslibrary_v1.rb +49 -0
- data/generated/google/apis/photoslibrary_v1/classes.rb +1330 -0
- data/generated/google/apis/photoslibrary_v1/representations.rb +625 -0
- data/generated/google/apis/photoslibrary_v1/service.rb +399 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +6 -10
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +63 -105
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +30 -50
- data/generated/google/apis/pubsub_v1.rb +2 -2
- data/generated/google/apis/pubsub_v1/classes.rb +29 -7
- data/generated/google/apis/pubsub_v1/service.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a.rb +2 -2
- data/generated/google/apis/pubsub_v1beta1a/service.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2.rb +2 -2
- data/generated/google/apis/pubsub_v1beta2/classes.rb +29 -7
- data/generated/google/apis/pubsub_v1beta2/service.rb +1 -1
- data/generated/google/apis/{dlp_v2beta2.rb → redis_v1beta1.rb} +10 -11
- data/generated/google/apis/redis_v1beta1/classes.rb +681 -0
- data/generated/google/apis/redis_v1beta1/representations.rb +240 -0
- data/generated/google/apis/redis_v1beta1/service.rb +426 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +33 -55
- data/generated/google/apis/replicapool_v1beta2/service.rb +39 -65
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +33 -55
- data/generated/google/apis/reseller_v1/service.rb +54 -90
- data/generated/google/apis/resourceviews_v1beta1/service.rb +45 -75
- data/generated/google/apis/resourceviews_v1beta2/service.rb +36 -60
- data/generated/google/apis/runtimeconfig_v1.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +28 -6
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
- data/generated/google/apis/script_v1.rb +8 -2
- data/generated/google/apis/script_v1/classes.rb +3 -3
- data/generated/google/apis/script_v1/service.rb +8 -2
- data/generated/google/apis/servicebroker_v1.rb +36 -0
- data/generated/google/apis/servicebroker_v1/classes.rb +240 -0
- data/generated/google/apis/servicebroker_v1/representations.rb +96 -0
- data/generated/google/apis/servicebroker_v1/service.rb +168 -0
- data/generated/google/apis/servicebroker_v1alpha1.rb +36 -0
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +939 -0
- data/generated/google/apis/servicebroker_v1alpha1/representations.rb +348 -0
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +728 -0
- data/generated/google/apis/servicebroker_v1beta1.rb +36 -0
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +1046 -0
- data/generated/google/apis/servicebroker_v1beta1/representations.rb +393 -0
- data/generated/google/apis/servicebroker_v1beta1/service.rb +917 -0
- data/generated/google/apis/servicecontrol_v1.rb +2 -2
- data/generated/google/apis/servicecontrol_v1/classes.rb +1 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +2 -2
- data/generated/google/apis/servicemanagement_v1/classes.rb +29 -7
- data/generated/google/apis/servicemanagement_v1/service.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +299 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +101 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +421 -0
- data/generated/google/apis/sheets_v4/representations.rb +120 -0
- data/generated/google/apis/site_verification_v1/service.rb +24 -40
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +6 -2
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +39 -12
- data/generated/google/apis/spanner_v1/service.rb +2 -2
- data/generated/google/apis/spectrum_v1explorer.rb +1 -1
- data/generated/google/apis/spectrum_v1explorer/service.rb +21 -35
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +12 -0
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/sqladmin_v1beta3.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta3/service.rb +75 -125
- data/generated/google/apis/sqladmin_v1beta4/service.rb +126 -210
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +3 -6
- data/generated/google/apis/storage_v1/service.rb +144 -240
- data/generated/google/apis/storage_v1beta1.rb +1 -1
- data/generated/google/apis/storage_v1beta1/service.rb +75 -125
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/storage_v1beta2/service.rb +105 -175
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +4 -3
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +19 -122
- data/generated/google/apis/surveys_v2/representations.rb +0 -38
- data/generated/google/apis/surveys_v2/service.rb +27 -157
- data/generated/google/apis/tagmanager_v1/service.rb +153 -255
- data/generated/google/apis/tagmanager_v2/service.rb +222 -370
- data/generated/google/apis/tasks_v1/service.rb +45 -75
- data/generated/google/apis/texttospeech_v1beta1.rb +2 -2
- data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/service.rb +75 -125
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/urlshortener_v1/service.rb +12 -20
- data/generated/google/apis/vault_v1.rb +2 -2
- data/generated/google/apis/vault_v1/service.rb +1 -1
- data/generated/google/apis/videointelligence_v1.rb +34 -0
- data/generated/google/apis/videointelligence_v1/classes.rb +2149 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +972 -0
- data/generated/google/apis/videointelligence_v1/service.rb +246 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +18 -18
- data/generated/google/apis/{taskqueue_v1beta2.rb → videointelligence_v1beta2.rb} +10 -13
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +2092 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +933 -0
- data/generated/google/apis/videointelligence_v1beta2/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1441 -62
- data/generated/google/apis/vision_v1/representations.rb +582 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1441 -62
- data/generated/google/apis/vision_v1p1beta1/representations.rb +582 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +63 -3
- data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
- data/generated/google/apis/webfonts_v1/service.rb +6 -10
- data/generated/google/apis/webmasters_v3/service.rb +42 -70
- data/generated/google/apis/websecurityscanner_v1alpha.rb +34 -0
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +760 -0
- data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +354 -0
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +548 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +27 -45
- data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +27 -45
- data/generated/google/apis/youtube_analytics_v2.rb +46 -0
- data/generated/google/apis/youtube_analytics_v2/classes.rb +532 -0
- data/generated/google/apis/youtube_analytics_v2/representations.rb +232 -0
- data/generated/google/apis/youtube_analytics_v2/service.rb +478 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +225 -375
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -168
- data/generated/google/apis/youtube_v3/representations.rb +0 -62
- data/generated/google/apis/youtube_v3/service.rb +216 -415
- data/lib/google/apis/generator/helpers.rb +3 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +50 -38
- data/generated/google/apis/dlp_v2beta1/classes.rb +0 -3820
- data/generated/google/apis/dlp_v2beta1/representations.rb +0 -1879
- data/generated/google/apis/dlp_v2beta1/service.rb +0 -603
- data/generated/google/apis/dlp_v2beta2/classes.rb +0 -6386
- data/generated/google/apis/dlp_v2beta2/representations.rb +0 -3085
- data/generated/google/apis/dlp_v2beta2/service.rb +0 -1332
- data/generated/google/apis/prediction_v1_2.rb +0 -44
- data/generated/google/apis/prediction_v1_2/classes.rb +0 -237
- data/generated/google/apis/prediction_v1_2/representations.rb +0 -133
- data/generated/google/apis/prediction_v1_2/service.rb +0 -287
- data/generated/google/apis/prediction_v1_3.rb +0 -44
- data/generated/google/apis/prediction_v1_3/classes.rb +0 -286
- data/generated/google/apis/prediction_v1_3/representations.rb +0 -139
- data/generated/google/apis/prediction_v1_3/service.rb +0 -284
- data/generated/google/apis/prediction_v1_4.rb +0 -44
- data/generated/google/apis/prediction_v1_4/classes.rb +0 -336
- data/generated/google/apis/prediction_v1_4/representations.rb +0 -158
- data/generated/google/apis/prediction_v1_4/service.rb +0 -284
- data/generated/google/apis/prediction_v1_5.rb +0 -44
- data/generated/google/apis/prediction_v1_5/classes.rb +0 -708
- data/generated/google/apis/prediction_v1_5/representations.rb +0 -352
- data/generated/google/apis/prediction_v1_5/service.rb +0 -357
- data/generated/google/apis/prediction_v1_6.rb +0 -47
- data/generated/google/apis/prediction_v1_6/classes.rb +0 -751
- data/generated/google/apis/prediction_v1_6/representations.rb +0 -369
- data/generated/google/apis/prediction_v1_6/service.rb +0 -381
- data/generated/google/apis/taskqueue_v1beta1.rb +0 -37
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +0 -242
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +0 -124
- data/generated/google/apis/taskqueue_v1beta1/service.rb +0 -269
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +0 -254
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +0 -126
- data/generated/google/apis/taskqueue_v1beta2/service.rb +0 -409
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/compute/docs/oslogin/rest/
|
26
26
|
module OsloginV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20180413'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -117,6 +117,11 @@ module Google
|
|
117
117
|
# @return [String]
|
118
118
|
attr_accessor :home_directory
|
119
119
|
|
120
|
+
# The operating system type where this account applies.
|
121
|
+
# Corresponds to the JSON property `operatingSystemType`
|
122
|
+
# @return [String]
|
123
|
+
attr_accessor :operating_system_type
|
124
|
+
|
120
125
|
# Only one POSIX account can be marked as primary.
|
121
126
|
# Corresponds to the JSON property `primary`
|
122
127
|
# @return [Boolean]
|
@@ -154,6 +159,7 @@ module Google
|
|
154
159
|
@gecos = args[:gecos] if args.key?(:gecos)
|
155
160
|
@gid = args[:gid] if args.key?(:gid)
|
156
161
|
@home_directory = args[:home_directory] if args.key?(:home_directory)
|
162
|
+
@operating_system_type = args[:operating_system_type] if args.key?(:operating_system_type)
|
157
163
|
@primary = args[:primary] if args.key?(:primary)
|
158
164
|
@shell = args[:shell] if args.key?(:shell)
|
159
165
|
@system_id = args[:system_id] if args.key?(:system_id)
|
@@ -84,6 +84,7 @@ module Google
|
|
84
84
|
property :gecos, as: 'gecos'
|
85
85
|
property :gid, :numeric_string => true, as: 'gid'
|
86
86
|
property :home_directory, as: 'homeDirectory'
|
87
|
+
property :operating_system_type, as: 'operatingSystemType'
|
87
88
|
property :primary, as: 'primary'
|
88
89
|
property :shell, as: 'shell'
|
89
90
|
property :system_id, as: 'systemId'
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/compute/docs/oslogin/rest/
|
26
26
|
module OsloginV1alpha
|
27
27
|
VERSION = 'V1alpha'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20180430'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -41,7 +41,7 @@ module Google
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
# A response message
|
44
|
+
# A response message from importing an SSH public key.
|
45
45
|
class ImportSshPublicKeyResponse
|
46
46
|
include Google::Apis::Core::Hashable
|
47
47
|
|
@@ -117,6 +117,11 @@ module Google
|
|
117
117
|
# @return [String]
|
118
118
|
attr_accessor :home_directory
|
119
119
|
|
120
|
+
# The operating system type where this account applies.
|
121
|
+
# Corresponds to the JSON property `operatingSystemType`
|
122
|
+
# @return [String]
|
123
|
+
attr_accessor :operating_system_type
|
124
|
+
|
120
125
|
# Only one POSIX account can be marked as primary.
|
121
126
|
# Corresponds to the JSON property `primary`
|
122
127
|
# @return [Boolean]
|
@@ -154,6 +159,7 @@ module Google
|
|
154
159
|
@gecos = args[:gecos] if args.key?(:gecos)
|
155
160
|
@gid = args[:gid] if args.key?(:gid)
|
156
161
|
@home_directory = args[:home_directory] if args.key?(:home_directory)
|
162
|
+
@operating_system_type = args[:operating_system_type] if args.key?(:operating_system_type)
|
157
163
|
@primary = args[:primary] if args.key?(:primary)
|
158
164
|
@shell = args[:shell] if args.key?(:shell)
|
159
165
|
@system_id = args[:system_id] if args.key?(:system_id)
|
@@ -84,6 +84,7 @@ module Google
|
|
84
84
|
property :gecos, as: 'gecos'
|
85
85
|
property :gid, :numeric_string => true, as: 'gid'
|
86
86
|
property :home_directory, as: 'homeDirectory'
|
87
|
+
property :operating_system_type, as: 'operatingSystemType'
|
87
88
|
property :primary, as: 'primary'
|
88
89
|
property :shell, as: 'shell'
|
89
90
|
property :system_id, as: 'systemId'
|
@@ -121,6 +121,8 @@ module Google
|
|
121
121
|
# A reference to the POSIX account to update. POSIX accounts are identified
|
122
122
|
# by the project ID they are associated with. A reference to the POSIX
|
123
123
|
# account is in format `users/`user`/projects/`project``.
|
124
|
+
# @param [String] operating_system_type
|
125
|
+
# The type of operating system associated with the account.
|
124
126
|
# @param [String] fields
|
125
127
|
# Selector specifying which fields to include in a partial response.
|
126
128
|
# @param [String] quota_user
|
@@ -138,11 +140,12 @@ module Google
|
|
138
140
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
139
141
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
140
142
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
141
|
-
def delete_user_project(name, fields: nil, quota_user: nil, options: nil, &block)
|
143
|
+
def delete_user_project(name, operating_system_type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
142
144
|
command = make_simple_command(:delete, 'v1alpha/{+name}', options)
|
143
145
|
command.response_representation = Google::Apis::OsloginV1alpha::Empty::Representation
|
144
146
|
command.response_class = Google::Apis::OsloginV1alpha::Empty
|
145
147
|
command.params['name'] = name unless name.nil?
|
148
|
+
command.query['operatingSystemType'] = operating_system_type unless operating_system_type.nil?
|
146
149
|
command.query['fields'] = fields unless fields.nil?
|
147
150
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
148
151
|
execute_or_queue_command(command, &block)
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/compute/docs/oslogin/rest/
|
26
26
|
module OsloginV1beta
|
27
27
|
VERSION = 'V1beta'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20180413'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -117,6 +117,11 @@ module Google
|
|
117
117
|
# @return [String]
|
118
118
|
attr_accessor :home_directory
|
119
119
|
|
120
|
+
# The operating system type where this account applies.
|
121
|
+
# Corresponds to the JSON property `operatingSystemType`
|
122
|
+
# @return [String]
|
123
|
+
attr_accessor :operating_system_type
|
124
|
+
|
120
125
|
# Only one POSIX account can be marked as primary.
|
121
126
|
# Corresponds to the JSON property `primary`
|
122
127
|
# @return [Boolean]
|
@@ -154,6 +159,7 @@ module Google
|
|
154
159
|
@gecos = args[:gecos] if args.key?(:gecos)
|
155
160
|
@gid = args[:gid] if args.key?(:gid)
|
156
161
|
@home_directory = args[:home_directory] if args.key?(:home_directory)
|
162
|
+
@operating_system_type = args[:operating_system_type] if args.key?(:operating_system_type)
|
157
163
|
@primary = args[:primary] if args.key?(:primary)
|
158
164
|
@shell = args[:shell] if args.key?(:shell)
|
159
165
|
@system_id = args[:system_id] if args.key?(:system_id)
|
@@ -84,6 +84,7 @@ module Google
|
|
84
84
|
property :gecos, as: 'gecos'
|
85
85
|
property :gid, :numeric_string => true, as: 'gid'
|
86
86
|
property :home_directory, as: 'homeDirectory'
|
87
|
+
property :operating_system_type, as: 'operatingSystemType'
|
87
88
|
property :primary, as: 'primary'
|
88
89
|
property :shell, as: 'shell'
|
89
90
|
property :system_id, as: 'systemId'
|
@@ -39,14 +39,12 @@ module Google
|
|
39
39
|
attr_accessor :key
|
40
40
|
|
41
41
|
# @return [String]
|
42
|
-
#
|
43
|
-
#
|
44
|
-
# Overrides userIp if both are provided.
|
42
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
43
|
+
# characters.
|
45
44
|
attr_accessor :quota_user
|
46
45
|
|
47
46
|
# @return [String]
|
48
|
-
#
|
49
|
-
# enforce per-user limits.
|
47
|
+
# Deprecated. Please use quotaUser instead.
|
50
48
|
attr_accessor :user_ip
|
51
49
|
|
52
50
|
def initialize
|
@@ -73,12 +71,10 @@ module Google
|
|
73
71
|
# @param [String] fields
|
74
72
|
# Selector specifying which fields to include in a partial response.
|
75
73
|
# @param [String] quota_user
|
76
|
-
#
|
77
|
-
#
|
78
|
-
# Overrides userIp if both are provided.
|
74
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
75
|
+
# characters.
|
79
76
|
# @param [String] user_ip
|
80
|
-
#
|
81
|
-
# enforce per-user limits.
|
77
|
+
# Deprecated. Please use quotaUser instead.
|
82
78
|
# @param [Google::Apis::RequestOptions] options
|
83
79
|
# Request-specific options
|
84
80
|
#
|
@@ -39,14 +39,12 @@ module Google
|
|
39
39
|
attr_accessor :key
|
40
40
|
|
41
41
|
# @return [String]
|
42
|
-
#
|
43
|
-
#
|
44
|
-
# Overrides userIp if both are provided.
|
42
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
43
|
+
# characters.
|
45
44
|
attr_accessor :quota_user
|
46
45
|
|
47
46
|
# @return [String]
|
48
|
-
#
|
49
|
-
# enforce per-user limits.
|
47
|
+
# Deprecated. Please use quotaUser instead.
|
50
48
|
attr_accessor :user_ip
|
51
49
|
|
52
50
|
def initialize
|
@@ -73,12 +71,10 @@ module Google
|
|
73
71
|
# @param [String] fields
|
74
72
|
# Selector specifying which fields to include in a partial response.
|
75
73
|
# @param [String] quota_user
|
76
|
-
#
|
77
|
-
#
|
78
|
-
# Overrides userIp if both are provided.
|
74
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
75
|
+
# characters.
|
79
76
|
# @param [String] user_ip
|
80
|
-
#
|
81
|
-
# enforce per-user limits.
|
77
|
+
# Deprecated. Please use quotaUser instead.
|
82
78
|
# @param [Google::Apis::RequestOptions] options
|
83
79
|
# Request-specific options
|
84
80
|
#
|
@@ -39,14 +39,12 @@ module Google
|
|
39
39
|
attr_accessor :key
|
40
40
|
|
41
41
|
# @return [String]
|
42
|
-
#
|
43
|
-
#
|
44
|
-
# Overrides userIp if both are provided.
|
42
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
43
|
+
# characters.
|
45
44
|
attr_accessor :quota_user
|
46
45
|
|
47
46
|
# @return [String]
|
48
|
-
#
|
49
|
-
# enforce per-user limits.
|
47
|
+
# Deprecated. Please use quotaUser instead.
|
50
48
|
attr_accessor :user_ip
|
51
49
|
|
52
50
|
def initialize
|
@@ -79,12 +77,10 @@ module Google
|
|
79
77
|
# @param [String] fields
|
80
78
|
# Selector specifying which fields to include in a partial response.
|
81
79
|
# @param [String] quota_user
|
82
|
-
#
|
83
|
-
#
|
84
|
-
# Overrides userIp if both are provided.
|
80
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
81
|
+
# characters.
|
85
82
|
# @param [String] user_ip
|
86
|
-
#
|
87
|
-
# enforce per-user limits.
|
83
|
+
# Deprecated. Please use quotaUser instead.
|
88
84
|
# @param [Google::Apis::RequestOptions] options
|
89
85
|
# Request-specific options
|
90
86
|
#
|
@@ -0,0 +1,49 @@
|
|
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/photoslibrary_v1/service.rb'
|
16
|
+
require 'google/apis/photoslibrary_v1/classes.rb'
|
17
|
+
require 'google/apis/photoslibrary_v1/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Photos Library API
|
22
|
+
#
|
23
|
+
# Manage photos, videos, and albums in Google Photos
|
24
|
+
#
|
25
|
+
# @see https://developers.google.com/photos/
|
26
|
+
module PhotoslibraryV1
|
27
|
+
VERSION = 'V1'
|
28
|
+
REVISION = '20180508'
|
29
|
+
|
30
|
+
# View the photos, videos and albums in your Google Photos
|
31
|
+
AUTH_DRIVE_PHOTOS_READONLY = 'https://www.googleapis.com/auth/drive.photos.readonly'
|
32
|
+
|
33
|
+
# View and manage your Google Photos library
|
34
|
+
AUTH_PHOTOSLIBRARY = 'https://www.googleapis.com/auth/photoslibrary'
|
35
|
+
|
36
|
+
# Add to your Google Photos library
|
37
|
+
AUTH_PHOTOSLIBRARY_APPENDONLY = 'https://www.googleapis.com/auth/photoslibrary.appendonly'
|
38
|
+
|
39
|
+
# View your Google Photos library
|
40
|
+
AUTH_PHOTOSLIBRARY_READONLY = 'https://www.googleapis.com/auth/photoslibrary.readonly'
|
41
|
+
|
42
|
+
# Manage photos added by this app
|
43
|
+
AUTH_PHOTOSLIBRARY_READONLY_APPCREATEDDATA = 'https://www.googleapis.com/auth/photoslibrary.readonly.appcreateddata'
|
44
|
+
|
45
|
+
# Manage and add to shared albums on your behalf
|
46
|
+
AUTH_PHOTOSLIBRARY_SHARING = 'https://www.googleapis.com/auth/photoslibrary.sharing'
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,1330 @@
|
|
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 PhotoslibraryV1
|
24
|
+
|
25
|
+
# Request to add an enrichment to a specific album at a specific position.
|
26
|
+
class AddEnrichmentToAlbumRequest
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Specifies a position in an album.
|
30
|
+
# Corresponds to the JSON property `albumPosition`
|
31
|
+
# @return [Google::Apis::PhotoslibraryV1::AlbumPosition]
|
32
|
+
attr_accessor :album_position
|
33
|
+
|
34
|
+
# A new enrichment item to be added to an album, used by the
|
35
|
+
# AddEnrichmentToAlbum call.
|
36
|
+
# Corresponds to the JSON property `newEnrichmentItem`
|
37
|
+
# @return [Google::Apis::PhotoslibraryV1::NewEnrichmentItem]
|
38
|
+
attr_accessor :new_enrichment_item
|
39
|
+
|
40
|
+
def initialize(**args)
|
41
|
+
update!(**args)
|
42
|
+
end
|
43
|
+
|
44
|
+
# Update properties of this object
|
45
|
+
def update!(**args)
|
46
|
+
@album_position = args[:album_position] if args.key?(:album_position)
|
47
|
+
@new_enrichment_item = args[:new_enrichment_item] if args.key?(:new_enrichment_item)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
class AddEnrichmentToAlbumResponse
|
53
|
+
include Google::Apis::Core::Hashable
|
54
|
+
|
55
|
+
# An enrichment item.
|
56
|
+
# Corresponds to the JSON property `enrichmentItem`
|
57
|
+
# @return [Google::Apis::PhotoslibraryV1::EnrichmentItem]
|
58
|
+
attr_accessor :enrichment_item
|
59
|
+
|
60
|
+
def initialize(**args)
|
61
|
+
update!(**args)
|
62
|
+
end
|
63
|
+
|
64
|
+
# Update properties of this object
|
65
|
+
def update!(**args)
|
66
|
+
@enrichment_item = args[:enrichment_item] if args.key?(:enrichment_item)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# Representation of an album in Google Photos.
|
71
|
+
# Albums are a container for media items. They contain an additional
|
72
|
+
# shareInfo property if they have been shared by the application.
|
73
|
+
class Album
|
74
|
+
include Google::Apis::Core::Hashable
|
75
|
+
|
76
|
+
# [Output only] A URL to the cover photo's bytes. This should not be used as
|
77
|
+
# is. Parameters should be appended to this URL before use. For example,
|
78
|
+
# '=w2048-h1024' will set the dimensions of the cover photo to have a width
|
79
|
+
# of 2048 px and height of 1024 px.
|
80
|
+
# Corresponds to the JSON property `coverPhotoBaseUrl`
|
81
|
+
# @return [String]
|
82
|
+
attr_accessor :cover_photo_base_url
|
83
|
+
|
84
|
+
# [Ouput only] Identifier for the album. This is a persistent identifier that
|
85
|
+
# can be used between sessions to identify this album.
|
86
|
+
# Corresponds to the JSON property `id`
|
87
|
+
# @return [String]
|
88
|
+
attr_accessor :id
|
89
|
+
|
90
|
+
# [Output only] True if media items can be created in the album.
|
91
|
+
# This field is based on the scopes granted and permissions of the album. If
|
92
|
+
# the scopes are changed or permissions of the album are changed, this field
|
93
|
+
# will be updated.
|
94
|
+
# Corresponds to the JSON property `isWriteable`
|
95
|
+
# @return [Boolean]
|
96
|
+
attr_accessor :is_writeable
|
97
|
+
alias_method :is_writeable?, :is_writeable
|
98
|
+
|
99
|
+
# [Output only] Google Photos URL for the album. The user needs to be signed
|
100
|
+
# in to their Google Photos account to access this link.
|
101
|
+
# Corresponds to the JSON property `productUrl`
|
102
|
+
# @return [String]
|
103
|
+
attr_accessor :product_url
|
104
|
+
|
105
|
+
# Information about albums that are shared. Note that this
|
106
|
+
# information is only included if the album was created by you and you have the
|
107
|
+
# sharing scope.
|
108
|
+
# Corresponds to the JSON property `shareInfo`
|
109
|
+
# @return [Google::Apis::PhotoslibraryV1::ShareInfo]
|
110
|
+
attr_accessor :share_info
|
111
|
+
|
112
|
+
# Name of the album displayed to the user in their Google Photos account.
|
113
|
+
# This string should not be more than 500 characters.
|
114
|
+
# Corresponds to the JSON property `title`
|
115
|
+
# @return [String]
|
116
|
+
attr_accessor :title
|
117
|
+
|
118
|
+
# [Output only] The number of media items in the album
|
119
|
+
# Corresponds to the JSON property `totalMediaItems`
|
120
|
+
# @return [Fixnum]
|
121
|
+
attr_accessor :total_media_items
|
122
|
+
|
123
|
+
def initialize(**args)
|
124
|
+
update!(**args)
|
125
|
+
end
|
126
|
+
|
127
|
+
# Update properties of this object
|
128
|
+
def update!(**args)
|
129
|
+
@cover_photo_base_url = args[:cover_photo_base_url] if args.key?(:cover_photo_base_url)
|
130
|
+
@id = args[:id] if args.key?(:id)
|
131
|
+
@is_writeable = args[:is_writeable] if args.key?(:is_writeable)
|
132
|
+
@product_url = args[:product_url] if args.key?(:product_url)
|
133
|
+
@share_info = args[:share_info] if args.key?(:share_info)
|
134
|
+
@title = args[:title] if args.key?(:title)
|
135
|
+
@total_media_items = args[:total_media_items] if args.key?(:total_media_items)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
# Specifies a position in an album.
|
140
|
+
class AlbumPosition
|
141
|
+
include Google::Apis::Core::Hashable
|
142
|
+
|
143
|
+
# Type of position, for a media or enrichment item.
|
144
|
+
# Corresponds to the JSON property `position`
|
145
|
+
# @return [String]
|
146
|
+
attr_accessor :position
|
147
|
+
|
148
|
+
# The enrichment item to which the position is relative to.
|
149
|
+
# Only used when position type is AFTER_ENRICHMENT_ITEM.
|
150
|
+
# Corresponds to the JSON property `relativeEnrichmentItemId`
|
151
|
+
# @return [String]
|
152
|
+
attr_accessor :relative_enrichment_item_id
|
153
|
+
|
154
|
+
# The media item to which the position is relative to.
|
155
|
+
# Only used when position type is AFTER_MEDIA_ITEM.
|
156
|
+
# Corresponds to the JSON property `relativeMediaItemId`
|
157
|
+
# @return [String]
|
158
|
+
attr_accessor :relative_media_item_id
|
159
|
+
|
160
|
+
def initialize(**args)
|
161
|
+
update!(**args)
|
162
|
+
end
|
163
|
+
|
164
|
+
# Update properties of this object
|
165
|
+
def update!(**args)
|
166
|
+
@position = args[:position] if args.key?(:position)
|
167
|
+
@relative_enrichment_item_id = args[:relative_enrichment_item_id] if args.key?(:relative_enrichment_item_id)
|
168
|
+
@relative_media_item_id = args[:relative_media_item_id] if args.key?(:relative_media_item_id)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
# Request to create one or more media items in a user's Google Photos library.
|
173
|
+
# If an <code>albumid</code> is specified, the media items are also added to
|
174
|
+
# that album. <code>albumPosition</code> is optional and can only be specified
|
175
|
+
# if an <code>albumId</code> is set.
|
176
|
+
class BatchCreateMediaItemsRequest
|
177
|
+
include Google::Apis::Core::Hashable
|
178
|
+
|
179
|
+
# Identifier of the album where the media item(s) will be added. They will
|
180
|
+
# also be added to the user's library. This is an optional field.
|
181
|
+
# Corresponds to the JSON property `albumId`
|
182
|
+
# @return [String]
|
183
|
+
attr_accessor :album_id
|
184
|
+
|
185
|
+
# Specifies a position in an album.
|
186
|
+
# Corresponds to the JSON property `albumPosition`
|
187
|
+
# @return [Google::Apis::PhotoslibraryV1::AlbumPosition]
|
188
|
+
attr_accessor :album_position
|
189
|
+
|
190
|
+
# List of media items to be created.
|
191
|
+
# Corresponds to the JSON property `newMediaItems`
|
192
|
+
# @return [Array<Google::Apis::PhotoslibraryV1::NewMediaItem>]
|
193
|
+
attr_accessor :new_media_items
|
194
|
+
|
195
|
+
def initialize(**args)
|
196
|
+
update!(**args)
|
197
|
+
end
|
198
|
+
|
199
|
+
# Update properties of this object
|
200
|
+
def update!(**args)
|
201
|
+
@album_id = args[:album_id] if args.key?(:album_id)
|
202
|
+
@album_position = args[:album_position] if args.key?(:album_position)
|
203
|
+
@new_media_items = args[:new_media_items] if args.key?(:new_media_items)
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
#
|
208
|
+
class BatchCreateMediaItemsResponse
|
209
|
+
include Google::Apis::Core::Hashable
|
210
|
+
|
211
|
+
# [Output only] List of media items which were created.
|
212
|
+
# Corresponds to the JSON property `newMediaItemResults`
|
213
|
+
# @return [Array<Google::Apis::PhotoslibraryV1::NewMediaItemResult>]
|
214
|
+
attr_accessor :new_media_item_results
|
215
|
+
|
216
|
+
def initialize(**args)
|
217
|
+
update!(**args)
|
218
|
+
end
|
219
|
+
|
220
|
+
# Update properties of this object
|
221
|
+
def update!(**args)
|
222
|
+
@new_media_item_results = args[:new_media_item_results] if args.key?(:new_media_item_results)
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
# This filter is used to define which results to return based on the contents
|
227
|
+
# of the media item.
|
228
|
+
# It is possible to specify a list of categories to include, and/or a list of
|
229
|
+
# categories to exclude. Within each list, the categories are combined with an
|
230
|
+
# OR. For example, if the content filter looks like:
|
231
|
+
# included_content_categories: [c1, c2, c3]
|
232
|
+
# It would get media items that contain (c1 OR c2 OR c3).
|
233
|
+
# And if the content filter looks like:
|
234
|
+
# excluded_content_categories: [c1, c2, c3]
|
235
|
+
# It would get media items that contain NOT (c1 OR c2 OR c3).
|
236
|
+
# You can also include some categories while excluding others, as in this
|
237
|
+
# proto:
|
238
|
+
# included_content_categories: [c1, c2],
|
239
|
+
# excluded_content_category: [c3, c4]
|
240
|
+
# It would get media items that contain (c1 OR c2) AND NOT (c3 OR c4).
|
241
|
+
# A category that appears in <code>includedContentategories</code> must not
|
242
|
+
# appear in <code>excludedContentCategories</code>.
|
243
|
+
class ContentFilter
|
244
|
+
include Google::Apis::Core::Hashable
|
245
|
+
|
246
|
+
# The set of categories that must NOT be present in the media items in the
|
247
|
+
# result. The items in the set are ORed. There is a maximum of 10
|
248
|
+
# excludedContentCategories per request.
|
249
|
+
# Corresponds to the JSON property `excludedContentCategories`
|
250
|
+
# @return [Array<String>]
|
251
|
+
attr_accessor :excluded_content_categories
|
252
|
+
|
253
|
+
# The set of categories that must be present in the media items in the
|
254
|
+
# result. The items in the set are ORed. There is a maximum of 10
|
255
|
+
# includedContentCategories per request.
|
256
|
+
# Corresponds to the JSON property `includedContentCategories`
|
257
|
+
# @return [Array<String>]
|
258
|
+
attr_accessor :included_content_categories
|
259
|
+
|
260
|
+
def initialize(**args)
|
261
|
+
update!(**args)
|
262
|
+
end
|
263
|
+
|
264
|
+
# Update properties of this object
|
265
|
+
def update!(**args)
|
266
|
+
@excluded_content_categories = args[:excluded_content_categories] if args.key?(:excluded_content_categories)
|
267
|
+
@included_content_categories = args[:included_content_categories] if args.key?(:included_content_categories)
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
# Information about a user who contributed the media item. Note that this
|
272
|
+
# information is only included if the album containing the media item is
|
273
|
+
# shared, was created by you and you have the sharing scope.
|
274
|
+
class ContributorInfo
|
275
|
+
include Google::Apis::Core::Hashable
|
276
|
+
|
277
|
+
# Display name of the contributor.
|
278
|
+
# Corresponds to the JSON property `displayName`
|
279
|
+
# @return [String]
|
280
|
+
attr_accessor :display_name
|
281
|
+
|
282
|
+
# URL to the profile picture of the contributor.
|
283
|
+
# Corresponds to the JSON property `profilePictureBaseUrl`
|
284
|
+
# @return [String]
|
285
|
+
attr_accessor :profile_picture_base_url
|
286
|
+
|
287
|
+
def initialize(**args)
|
288
|
+
update!(**args)
|
289
|
+
end
|
290
|
+
|
291
|
+
# Update properties of this object
|
292
|
+
def update!(**args)
|
293
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
294
|
+
@profile_picture_base_url = args[:profile_picture_base_url] if args.key?(:profile_picture_base_url)
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
298
|
+
# Request to create an album in Google Photos.
|
299
|
+
class CreateAlbumRequest
|
300
|
+
include Google::Apis::Core::Hashable
|
301
|
+
|
302
|
+
# Representation of an album in Google Photos.
|
303
|
+
# Albums are a container for media items. They contain an additional
|
304
|
+
# shareInfo property if they have been shared by the application.
|
305
|
+
# Corresponds to the JSON property `album`
|
306
|
+
# @return [Google::Apis::PhotoslibraryV1::Album]
|
307
|
+
attr_accessor :album
|
308
|
+
|
309
|
+
def initialize(**args)
|
310
|
+
update!(**args)
|
311
|
+
end
|
312
|
+
|
313
|
+
# Update properties of this object
|
314
|
+
def update!(**args)
|
315
|
+
@album = args[:album] if args.key?(:album)
|
316
|
+
end
|
317
|
+
end
|
318
|
+
|
319
|
+
# Represents a whole calendar date. The day may be 0 to represent a year and
|
320
|
+
# month where the day is not significant, e.g. a whole calendar month. The month
|
321
|
+
# may be 0 to represent a a day and a year where the month is not signficant, e.
|
322
|
+
# g. when you want to specify the same day in every month of a year or a
|
323
|
+
# specific year. The year may be 0 to represent a month and day independent of
|
324
|
+
# year, e.g. anniversary date.
|
325
|
+
class Date
|
326
|
+
include Google::Apis::Core::Hashable
|
327
|
+
|
328
|
+
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
329
|
+
# if specifying a year/month where the day is not significant.
|
330
|
+
# Corresponds to the JSON property `day`
|
331
|
+
# @return [Fixnum]
|
332
|
+
attr_accessor :day
|
333
|
+
|
334
|
+
# Month of year. Must be from 1 to 12, or 0 if specifying a date without a
|
335
|
+
# month.
|
336
|
+
# Corresponds to the JSON property `month`
|
337
|
+
# @return [Fixnum]
|
338
|
+
attr_accessor :month
|
339
|
+
|
340
|
+
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
341
|
+
# a year.
|
342
|
+
# Corresponds to the JSON property `year`
|
343
|
+
# @return [Fixnum]
|
344
|
+
attr_accessor :year
|
345
|
+
|
346
|
+
def initialize(**args)
|
347
|
+
update!(**args)
|
348
|
+
end
|
349
|
+
|
350
|
+
# Update properties of this object
|
351
|
+
def update!(**args)
|
352
|
+
@day = args[:day] if args.key?(:day)
|
353
|
+
@month = args[:month] if args.key?(:month)
|
354
|
+
@year = args[:year] if args.key?(:year)
|
355
|
+
end
|
356
|
+
end
|
357
|
+
|
358
|
+
# This filter defines the allowed dates or date ranges for the media returned.
|
359
|
+
# It is possible to pick a set of specific dates and a set of date ranges.
|
360
|
+
class DateFilter
|
361
|
+
include Google::Apis::Core::Hashable
|
362
|
+
|
363
|
+
# List of dates that the media items must have been created on. There is a
|
364
|
+
# maximum of 5 dates that can be included per request.
|
365
|
+
# Corresponds to the JSON property `dates`
|
366
|
+
# @return [Array<Google::Apis::PhotoslibraryV1::Date>]
|
367
|
+
attr_accessor :dates
|
368
|
+
|
369
|
+
# List of dates ranges that the media items must have been created in. There
|
370
|
+
# is a maximum of 5 dates ranges that can be included per request.
|
371
|
+
# Corresponds to the JSON property `ranges`
|
372
|
+
# @return [Array<Google::Apis::PhotoslibraryV1::DateRange>]
|
373
|
+
attr_accessor :ranges
|
374
|
+
|
375
|
+
def initialize(**args)
|
376
|
+
update!(**args)
|
377
|
+
end
|
378
|
+
|
379
|
+
# Update properties of this object
|
380
|
+
def update!(**args)
|
381
|
+
@dates = args[:dates] if args.key?(:dates)
|
382
|
+
@ranges = args[:ranges] if args.key?(:ranges)
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
386
|
+
# Defines a range of dates. Both dates must be of the same format (see Date
|
387
|
+
# definition for more).
|
388
|
+
class DateRange
|
389
|
+
include Google::Apis::Core::Hashable
|
390
|
+
|
391
|
+
# Represents a whole calendar date. The day may be 0 to represent a year and
|
392
|
+
# month where the day is not significant, e.g. a whole calendar month. The month
|
393
|
+
# may be 0 to represent a a day and a year where the month is not signficant, e.
|
394
|
+
# g. when you want to specify the same day in every month of a year or a
|
395
|
+
# specific year. The year may be 0 to represent a month and day independent of
|
396
|
+
# year, e.g. anniversary date.
|
397
|
+
# Corresponds to the JSON property `endDate`
|
398
|
+
# @return [Google::Apis::PhotoslibraryV1::Date]
|
399
|
+
attr_accessor :end_date
|
400
|
+
|
401
|
+
# Represents a whole calendar date. The day may be 0 to represent a year and
|
402
|
+
# month where the day is not significant, e.g. a whole calendar month. The month
|
403
|
+
# may be 0 to represent a a day and a year where the month is not signficant, e.
|
404
|
+
# g. when you want to specify the same day in every month of a year or a
|
405
|
+
# specific year. The year may be 0 to represent a month and day independent of
|
406
|
+
# year, e.g. anniversary date.
|
407
|
+
# Corresponds to the JSON property `startDate`
|
408
|
+
# @return [Google::Apis::PhotoslibraryV1::Date]
|
409
|
+
attr_accessor :start_date
|
410
|
+
|
411
|
+
def initialize(**args)
|
412
|
+
update!(**args)
|
413
|
+
end
|
414
|
+
|
415
|
+
# Update properties of this object
|
416
|
+
def update!(**args)
|
417
|
+
@end_date = args[:end_date] if args.key?(:end_date)
|
418
|
+
@start_date = args[:start_date] if args.key?(:start_date)
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
422
|
+
# An enrichment item.
|
423
|
+
class EnrichmentItem
|
424
|
+
include Google::Apis::Core::Hashable
|
425
|
+
|
426
|
+
# Identifier of the enrichment item.
|
427
|
+
# Corresponds to the JSON property `id`
|
428
|
+
# @return [String]
|
429
|
+
attr_accessor :id
|
430
|
+
|
431
|
+
def initialize(**args)
|
432
|
+
update!(**args)
|
433
|
+
end
|
434
|
+
|
435
|
+
# Update properties of this object
|
436
|
+
def update!(**args)
|
437
|
+
@id = args[:id] if args.key?(:id)
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
441
|
+
# Filters that can be applied to a media item search.
|
442
|
+
# If multiple filter options are specified, they are treated as AND with each
|
443
|
+
# other.
|
444
|
+
class Filters
|
445
|
+
include Google::Apis::Core::Hashable
|
446
|
+
|
447
|
+
# This filter is used to define which results to return based on the contents
|
448
|
+
# of the media item.
|
449
|
+
# It is possible to specify a list of categories to include, and/or a list of
|
450
|
+
# categories to exclude. Within each list, the categories are combined with an
|
451
|
+
# OR. For example, if the content filter looks like:
|
452
|
+
# included_content_categories: [c1, c2, c3]
|
453
|
+
# It would get media items that contain (c1 OR c2 OR c3).
|
454
|
+
# And if the content filter looks like:
|
455
|
+
# excluded_content_categories: [c1, c2, c3]
|
456
|
+
# It would get media items that contain NOT (c1 OR c2 OR c3).
|
457
|
+
# You can also include some categories while excluding others, as in this
|
458
|
+
# proto:
|
459
|
+
# included_content_categories: [c1, c2],
|
460
|
+
# excluded_content_category: [c3, c4]
|
461
|
+
# It would get media items that contain (c1 OR c2) AND NOT (c3 OR c4).
|
462
|
+
# A category that appears in <code>includedContentategories</code> must not
|
463
|
+
# appear in <code>excludedContentCategories</code>.
|
464
|
+
# Corresponds to the JSON property `contentFilter`
|
465
|
+
# @return [Google::Apis::PhotoslibraryV1::ContentFilter]
|
466
|
+
attr_accessor :content_filter
|
467
|
+
|
468
|
+
# This filter defines the allowed dates or date ranges for the media returned.
|
469
|
+
# It is possible to pick a set of specific dates and a set of date ranges.
|
470
|
+
# Corresponds to the JSON property `dateFilter`
|
471
|
+
# @return [Google::Apis::PhotoslibraryV1::DateFilter]
|
472
|
+
attr_accessor :date_filter
|
473
|
+
|
474
|
+
# If set, the results will include media items that the user has archived.
|
475
|
+
# Defaults to false (archived media items are not included).
|
476
|
+
# Corresponds to the JSON property `includeArchivedMedia`
|
477
|
+
# @return [Boolean]
|
478
|
+
attr_accessor :include_archived_media
|
479
|
+
alias_method :include_archived_media?, :include_archived_media
|
480
|
+
|
481
|
+
# This filter defines the type of media items to be returned, for example
|
482
|
+
# videos or photos. All the specified media types are treated as an OR with
|
483
|
+
# each other.
|
484
|
+
# Corresponds to the JSON property `mediaTypeFilter`
|
485
|
+
# @return [Google::Apis::PhotoslibraryV1::MediaTypeFilter]
|
486
|
+
attr_accessor :media_type_filter
|
487
|
+
|
488
|
+
def initialize(**args)
|
489
|
+
update!(**args)
|
490
|
+
end
|
491
|
+
|
492
|
+
# Update properties of this object
|
493
|
+
def update!(**args)
|
494
|
+
@content_filter = args[:content_filter] if args.key?(:content_filter)
|
495
|
+
@date_filter = args[:date_filter] if args.key?(:date_filter)
|
496
|
+
@include_archived_media = args[:include_archived_media] if args.key?(:include_archived_media)
|
497
|
+
@media_type_filter = args[:media_type_filter] if args.key?(:media_type_filter)
|
498
|
+
end
|
499
|
+
end
|
500
|
+
|
501
|
+
# Request to join a shared album on behalf of the user. This uses a shareToken
|
502
|
+
# which can be acquired via the shareAlbum or listSharedAlbums calls.
|
503
|
+
class JoinSharedAlbumRequest
|
504
|
+
include Google::Apis::Core::Hashable
|
505
|
+
|
506
|
+
# Token indicating the shared album to join on behalf of the user.
|
507
|
+
# Corresponds to the JSON property `shareToken`
|
508
|
+
# @return [String]
|
509
|
+
attr_accessor :share_token
|
510
|
+
|
511
|
+
def initialize(**args)
|
512
|
+
update!(**args)
|
513
|
+
end
|
514
|
+
|
515
|
+
# Update properties of this object
|
516
|
+
def update!(**args)
|
517
|
+
@share_token = args[:share_token] if args.key?(:share_token)
|
518
|
+
end
|
519
|
+
end
|
520
|
+
|
521
|
+
# Response to successfully joining the shared album on behalf of the user.
|
522
|
+
class JoinSharedAlbumResponse
|
523
|
+
include Google::Apis::Core::Hashable
|
524
|
+
|
525
|
+
def initialize(**args)
|
526
|
+
update!(**args)
|
527
|
+
end
|
528
|
+
|
529
|
+
# Update properties of this object
|
530
|
+
def update!(**args)
|
531
|
+
end
|
532
|
+
end
|
533
|
+
|
534
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
535
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
536
|
+
# specified otherwise, this must conform to the
|
537
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
538
|
+
# standard</a>. Values must be within normalized ranges.
|
539
|
+
class LatLng
|
540
|
+
include Google::Apis::Core::Hashable
|
541
|
+
|
542
|
+
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
543
|
+
# Corresponds to the JSON property `latitude`
|
544
|
+
# @return [Float]
|
545
|
+
attr_accessor :latitude
|
546
|
+
|
547
|
+
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
548
|
+
# Corresponds to the JSON property `longitude`
|
549
|
+
# @return [Float]
|
550
|
+
attr_accessor :longitude
|
551
|
+
|
552
|
+
def initialize(**args)
|
553
|
+
update!(**args)
|
554
|
+
end
|
555
|
+
|
556
|
+
# Update properties of this object
|
557
|
+
def update!(**args)
|
558
|
+
@latitude = args[:latitude] if args.key?(:latitude)
|
559
|
+
@longitude = args[:longitude] if args.key?(:longitude)
|
560
|
+
end
|
561
|
+
end
|
562
|
+
|
563
|
+
#
|
564
|
+
class ListAlbumsResponse
|
565
|
+
include Google::Apis::Core::Hashable
|
566
|
+
|
567
|
+
# [Output only] List of albums that were created by the user.
|
568
|
+
# Corresponds to the JSON property `albums`
|
569
|
+
# @return [Array<Google::Apis::PhotoslibraryV1::Album>]
|
570
|
+
attr_accessor :albums
|
571
|
+
|
572
|
+
# [Output only] Token to use to get the next set of albums. Populated if
|
573
|
+
# there are more albums to retrieve for this request.
|
574
|
+
# Corresponds to the JSON property `nextPageToken`
|
575
|
+
# @return [String]
|
576
|
+
attr_accessor :next_page_token
|
577
|
+
|
578
|
+
def initialize(**args)
|
579
|
+
update!(**args)
|
580
|
+
end
|
581
|
+
|
582
|
+
# Update properties of this object
|
583
|
+
def update!(**args)
|
584
|
+
@albums = args[:albums] if args.key?(:albums)
|
585
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
586
|
+
end
|
587
|
+
end
|
588
|
+
|
589
|
+
#
|
590
|
+
class ListSharedAlbumsResponse
|
591
|
+
include Google::Apis::Core::Hashable
|
592
|
+
|
593
|
+
# [Output only] Token to use to get the next set of shared albums. Populated
|
594
|
+
# if there are more shared albums to retrieve for this request.
|
595
|
+
# Corresponds to the JSON property `nextPageToken`
|
596
|
+
# @return [String]
|
597
|
+
attr_accessor :next_page_token
|
598
|
+
|
599
|
+
# [Output only] List of shared albums that were requested.
|
600
|
+
# Corresponds to the JSON property `sharedAlbums`
|
601
|
+
# @return [Array<Google::Apis::PhotoslibraryV1::Album>]
|
602
|
+
attr_accessor :shared_albums
|
603
|
+
|
604
|
+
def initialize(**args)
|
605
|
+
update!(**args)
|
606
|
+
end
|
607
|
+
|
608
|
+
# Update properties of this object
|
609
|
+
def update!(**args)
|
610
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
611
|
+
@shared_albums = args[:shared_albums] if args.key?(:shared_albums)
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
615
|
+
# Represents a physical location.
|
616
|
+
class Location
|
617
|
+
include Google::Apis::Core::Hashable
|
618
|
+
|
619
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
620
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
621
|
+
# specified otherwise, this must conform to the
|
622
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
623
|
+
# standard</a>. Values must be within normalized ranges.
|
624
|
+
# Corresponds to the JSON property `latlng`
|
625
|
+
# @return [Google::Apis::PhotoslibraryV1::LatLng]
|
626
|
+
attr_accessor :latlng
|
627
|
+
|
628
|
+
# Name of the location to be displayed.
|
629
|
+
# Corresponds to the JSON property `locationName`
|
630
|
+
# @return [String]
|
631
|
+
attr_accessor :location_name
|
632
|
+
|
633
|
+
def initialize(**args)
|
634
|
+
update!(**args)
|
635
|
+
end
|
636
|
+
|
637
|
+
# Update properties of this object
|
638
|
+
def update!(**args)
|
639
|
+
@latlng = args[:latlng] if args.key?(:latlng)
|
640
|
+
@location_name = args[:location_name] if args.key?(:location_name)
|
641
|
+
end
|
642
|
+
end
|
643
|
+
|
644
|
+
# An enrichment containing a single location.
|
645
|
+
class LocationEnrichment
|
646
|
+
include Google::Apis::Core::Hashable
|
647
|
+
|
648
|
+
# Represents a physical location.
|
649
|
+
# Corresponds to the JSON property `location`
|
650
|
+
# @return [Google::Apis::PhotoslibraryV1::Location]
|
651
|
+
attr_accessor :location
|
652
|
+
|
653
|
+
def initialize(**args)
|
654
|
+
update!(**args)
|
655
|
+
end
|
656
|
+
|
657
|
+
# Update properties of this object
|
658
|
+
def update!(**args)
|
659
|
+
@location = args[:location] if args.key?(:location)
|
660
|
+
end
|
661
|
+
end
|
662
|
+
|
663
|
+
# An enrichment containing a map, showing origin and destination locations.
|
664
|
+
class MapEnrichment
|
665
|
+
include Google::Apis::Core::Hashable
|
666
|
+
|
667
|
+
# Represents a physical location.
|
668
|
+
# Corresponds to the JSON property `destination`
|
669
|
+
# @return [Google::Apis::PhotoslibraryV1::Location]
|
670
|
+
attr_accessor :destination
|
671
|
+
|
672
|
+
# Represents a physical location.
|
673
|
+
# Corresponds to the JSON property `origin`
|
674
|
+
# @return [Google::Apis::PhotoslibraryV1::Location]
|
675
|
+
attr_accessor :origin
|
676
|
+
|
677
|
+
def initialize(**args)
|
678
|
+
update!(**args)
|
679
|
+
end
|
680
|
+
|
681
|
+
# Update properties of this object
|
682
|
+
def update!(**args)
|
683
|
+
@destination = args[:destination] if args.key?(:destination)
|
684
|
+
@origin = args[:origin] if args.key?(:origin)
|
685
|
+
end
|
686
|
+
end
|
687
|
+
|
688
|
+
# Representation of a media item (e.g. photo, video etc.) in Google Photos.
|
689
|
+
class MediaItem
|
690
|
+
include Google::Apis::Core::Hashable
|
691
|
+
|
692
|
+
# A URL to the media item's bytes. This should not be used as is.
|
693
|
+
# For example, '=w2048-h1024' will set the dimensions of a media item of type
|
694
|
+
# photo to have a width of 2048 px and height of 1024 px.
|
695
|
+
# Corresponds to the JSON property `baseUrl`
|
696
|
+
# @return [String]
|
697
|
+
attr_accessor :base_url
|
698
|
+
|
699
|
+
# Information about a user who contributed the media item. Note that this
|
700
|
+
# information is only included if the album containing the media item is
|
701
|
+
# shared, was created by you and you have the sharing scope.
|
702
|
+
# Corresponds to the JSON property `contributorInfo`
|
703
|
+
# @return [Google::Apis::PhotoslibraryV1::ContributorInfo]
|
704
|
+
attr_accessor :contributor_info
|
705
|
+
|
706
|
+
# Description of the media item. This is shown to the user in the item's
|
707
|
+
# info section in the Google Photos app.
|
708
|
+
# Corresponds to the JSON property `description`
|
709
|
+
# @return [String]
|
710
|
+
attr_accessor :description
|
711
|
+
|
712
|
+
# Identifier for the media item. This is a persistent identifier that can be
|
713
|
+
# used between sessions to identify this media item.
|
714
|
+
# Corresponds to the JSON property `id`
|
715
|
+
# @return [String]
|
716
|
+
attr_accessor :id
|
717
|
+
|
718
|
+
# Metadata for a media item.
|
719
|
+
# Corresponds to the JSON property `mediaMetadata`
|
720
|
+
# @return [Google::Apis::PhotoslibraryV1::MediaMetadata]
|
721
|
+
attr_accessor :media_metadata
|
722
|
+
|
723
|
+
# MIME type of the media item.
|
724
|
+
# Corresponds to the JSON property `mimeType`
|
725
|
+
# @return [String]
|
726
|
+
attr_accessor :mime_type
|
727
|
+
|
728
|
+
# Google Photos URL for the media item. This link will only be available to
|
729
|
+
# the user if they're signed in.
|
730
|
+
# Corresponds to the JSON property `productUrl`
|
731
|
+
# @return [String]
|
732
|
+
attr_accessor :product_url
|
733
|
+
|
734
|
+
def initialize(**args)
|
735
|
+
update!(**args)
|
736
|
+
end
|
737
|
+
|
738
|
+
# Update properties of this object
|
739
|
+
def update!(**args)
|
740
|
+
@base_url = args[:base_url] if args.key?(:base_url)
|
741
|
+
@contributor_info = args[:contributor_info] if args.key?(:contributor_info)
|
742
|
+
@description = args[:description] if args.key?(:description)
|
743
|
+
@id = args[:id] if args.key?(:id)
|
744
|
+
@media_metadata = args[:media_metadata] if args.key?(:media_metadata)
|
745
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
746
|
+
@product_url = args[:product_url] if args.key?(:product_url)
|
747
|
+
end
|
748
|
+
end
|
749
|
+
|
750
|
+
# Metadata for a media item.
|
751
|
+
class MediaMetadata
|
752
|
+
include Google::Apis::Core::Hashable
|
753
|
+
|
754
|
+
# Time when the media item was first created (not when it was uploaded to
|
755
|
+
# Google Photos).
|
756
|
+
# Corresponds to the JSON property `creationTime`
|
757
|
+
# @return [String]
|
758
|
+
attr_accessor :creation_time
|
759
|
+
|
760
|
+
# Original height (in pixels) of the media item.
|
761
|
+
# Corresponds to the JSON property `height`
|
762
|
+
# @return [Fixnum]
|
763
|
+
attr_accessor :height
|
764
|
+
|
765
|
+
# Metadata that is specific to a photo, for example, ISO, focal length and
|
766
|
+
# exposure time. Some of these fields may be null or not included.
|
767
|
+
# Corresponds to the JSON property `photo`
|
768
|
+
# @return [Google::Apis::PhotoslibraryV1::Photo]
|
769
|
+
attr_accessor :photo
|
770
|
+
|
771
|
+
# Metadata that is specific to a video, for example, fps and processing status.
|
772
|
+
# Some of these fields may be null or not included.
|
773
|
+
# Corresponds to the JSON property `video`
|
774
|
+
# @return [Google::Apis::PhotoslibraryV1::Video]
|
775
|
+
attr_accessor :video
|
776
|
+
|
777
|
+
# Original width (in pixels) of the media item.
|
778
|
+
# Corresponds to the JSON property `width`
|
779
|
+
# @return [Fixnum]
|
780
|
+
attr_accessor :width
|
781
|
+
|
782
|
+
def initialize(**args)
|
783
|
+
update!(**args)
|
784
|
+
end
|
785
|
+
|
786
|
+
# Update properties of this object
|
787
|
+
def update!(**args)
|
788
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
789
|
+
@height = args[:height] if args.key?(:height)
|
790
|
+
@photo = args[:photo] if args.key?(:photo)
|
791
|
+
@video = args[:video] if args.key?(:video)
|
792
|
+
@width = args[:width] if args.key?(:width)
|
793
|
+
end
|
794
|
+
end
|
795
|
+
|
796
|
+
# This filter defines the type of media items to be returned, for example
|
797
|
+
# videos or photos. All the specified media types are treated as an OR with
|
798
|
+
# each other.
|
799
|
+
class MediaTypeFilter
|
800
|
+
include Google::Apis::Core::Hashable
|
801
|
+
|
802
|
+
# The types of media items to be included. This field should only be
|
803
|
+
# populated with one media type, multiple media types will result in an error
|
804
|
+
# response.
|
805
|
+
# Corresponds to the JSON property `mediaTypes`
|
806
|
+
# @return [Array<String>]
|
807
|
+
attr_accessor :media_types
|
808
|
+
|
809
|
+
def initialize(**args)
|
810
|
+
update!(**args)
|
811
|
+
end
|
812
|
+
|
813
|
+
# Update properties of this object
|
814
|
+
def update!(**args)
|
815
|
+
@media_types = args[:media_types] if args.key?(:media_types)
|
816
|
+
end
|
817
|
+
end
|
818
|
+
|
819
|
+
# A new enrichment item to be added to an album, used by the
|
820
|
+
# AddEnrichmentToAlbum call.
|
821
|
+
class NewEnrichmentItem
|
822
|
+
include Google::Apis::Core::Hashable
|
823
|
+
|
824
|
+
# An enrichment containing a single location.
|
825
|
+
# Corresponds to the JSON property `locationEnrichment`
|
826
|
+
# @return [Google::Apis::PhotoslibraryV1::LocationEnrichment]
|
827
|
+
attr_accessor :location_enrichment
|
828
|
+
|
829
|
+
# An enrichment containing a map, showing origin and destination locations.
|
830
|
+
# Corresponds to the JSON property `mapEnrichment`
|
831
|
+
# @return [Google::Apis::PhotoslibraryV1::MapEnrichment]
|
832
|
+
attr_accessor :map_enrichment
|
833
|
+
|
834
|
+
# An enrichment containing text.
|
835
|
+
# Corresponds to the JSON property `textEnrichment`
|
836
|
+
# @return [Google::Apis::PhotoslibraryV1::TextEnrichment]
|
837
|
+
attr_accessor :text_enrichment
|
838
|
+
|
839
|
+
def initialize(**args)
|
840
|
+
update!(**args)
|
841
|
+
end
|
842
|
+
|
843
|
+
# Update properties of this object
|
844
|
+
def update!(**args)
|
845
|
+
@location_enrichment = args[:location_enrichment] if args.key?(:location_enrichment)
|
846
|
+
@map_enrichment = args[:map_enrichment] if args.key?(:map_enrichment)
|
847
|
+
@text_enrichment = args[:text_enrichment] if args.key?(:text_enrichment)
|
848
|
+
end
|
849
|
+
end
|
850
|
+
|
851
|
+
# New media item that will be created in a user's Google Photos account.
|
852
|
+
class NewMediaItem
|
853
|
+
include Google::Apis::Core::Hashable
|
854
|
+
|
855
|
+
# Description of the media item. This will be shown to the user in the item's
|
856
|
+
# info section in the Google Photos app.
|
857
|
+
# This string should not be more than 1000 characters.
|
858
|
+
# Corresponds to the JSON property `description`
|
859
|
+
# @return [String]
|
860
|
+
attr_accessor :description
|
861
|
+
|
862
|
+
# A simple media item to be created in Google Photos via an upload token.
|
863
|
+
# Corresponds to the JSON property `simpleMediaItem`
|
864
|
+
# @return [Google::Apis::PhotoslibraryV1::SimpleMediaItem]
|
865
|
+
attr_accessor :simple_media_item
|
866
|
+
|
867
|
+
def initialize(**args)
|
868
|
+
update!(**args)
|
869
|
+
end
|
870
|
+
|
871
|
+
# Update properties of this object
|
872
|
+
def update!(**args)
|
873
|
+
@description = args[:description] if args.key?(:description)
|
874
|
+
@simple_media_item = args[:simple_media_item] if args.key?(:simple_media_item)
|
875
|
+
end
|
876
|
+
end
|
877
|
+
|
878
|
+
# Result of creating a new media item.
|
879
|
+
class NewMediaItemResult
|
880
|
+
include Google::Apis::Core::Hashable
|
881
|
+
|
882
|
+
# Representation of a media item (e.g. photo, video etc.) in Google Photos.
|
883
|
+
# Corresponds to the JSON property `mediaItem`
|
884
|
+
# @return [Google::Apis::PhotoslibraryV1::MediaItem]
|
885
|
+
attr_accessor :media_item
|
886
|
+
|
887
|
+
# The `Status` type defines a logical error model that is suitable for different
|
888
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
889
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
890
|
+
# - Simple to use and understand for most users
|
891
|
+
# - Flexible enough to meet unexpected needs
|
892
|
+
# # Overview
|
893
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
894
|
+
# and error details. The error code should be an enum value of
|
895
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
896
|
+
# error message should be a developer-facing English message that helps
|
897
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
898
|
+
# error message is needed, put the localized message in the error details or
|
899
|
+
# localize it in the client. The optional error details may contain arbitrary
|
900
|
+
# information about the error. There is a predefined set of error detail types
|
901
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
902
|
+
# # Language mapping
|
903
|
+
# The `Status` message is the logical representation of the error model, but it
|
904
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
905
|
+
# exposed in different client libraries and different wire protocols, it can be
|
906
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
907
|
+
# in Java, but more likely mapped to some error codes in C.
|
908
|
+
# # Other uses
|
909
|
+
# The error model and the `Status` message can be used in a variety of
|
910
|
+
# environments, either with or without APIs, to provide a
|
911
|
+
# consistent developer experience across different environments.
|
912
|
+
# Example uses of this error model include:
|
913
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
914
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
915
|
+
# errors.
|
916
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
917
|
+
# have a `Status` message for error reporting.
|
918
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
919
|
+
# `Status` message should be used directly inside batch response, one for
|
920
|
+
# each error sub-response.
|
921
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
922
|
+
# results in its response, the status of those operations should be
|
923
|
+
# represented directly using the `Status` message.
|
924
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
925
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
926
|
+
# Corresponds to the JSON property `status`
|
927
|
+
# @return [Google::Apis::PhotoslibraryV1::Status]
|
928
|
+
attr_accessor :status
|
929
|
+
|
930
|
+
# The upload token used to create this new media item.
|
931
|
+
# Corresponds to the JSON property `uploadToken`
|
932
|
+
# @return [String]
|
933
|
+
attr_accessor :upload_token
|
934
|
+
|
935
|
+
def initialize(**args)
|
936
|
+
update!(**args)
|
937
|
+
end
|
938
|
+
|
939
|
+
# Update properties of this object
|
940
|
+
def update!(**args)
|
941
|
+
@media_item = args[:media_item] if args.key?(:media_item)
|
942
|
+
@status = args[:status] if args.key?(:status)
|
943
|
+
@upload_token = args[:upload_token] if args.key?(:upload_token)
|
944
|
+
end
|
945
|
+
end
|
946
|
+
|
947
|
+
# Metadata that is specific to a photo, for example, ISO, focal length and
|
948
|
+
# exposure time. Some of these fields may be null or not included.
|
949
|
+
class Photo
|
950
|
+
include Google::Apis::Core::Hashable
|
951
|
+
|
952
|
+
# Apeture f number of the photo.
|
953
|
+
# Corresponds to the JSON property `apertureFNumber`
|
954
|
+
# @return [Float]
|
955
|
+
attr_accessor :aperture_f_number
|
956
|
+
|
957
|
+
# Brand of the camera which took the photo.
|
958
|
+
# Corresponds to the JSON property `cameraMake`
|
959
|
+
# @return [String]
|
960
|
+
attr_accessor :camera_make
|
961
|
+
|
962
|
+
# Model of the camera which took the photo.
|
963
|
+
# Corresponds to the JSON property `cameraModel`
|
964
|
+
# @return [String]
|
965
|
+
attr_accessor :camera_model
|
966
|
+
|
967
|
+
# Exposure time of the photo.
|
968
|
+
# Corresponds to the JSON property `exposureTime`
|
969
|
+
# @return [String]
|
970
|
+
attr_accessor :exposure_time
|
971
|
+
|
972
|
+
# Focal length of the photo.
|
973
|
+
# Corresponds to the JSON property `focalLength`
|
974
|
+
# @return [Float]
|
975
|
+
attr_accessor :focal_length
|
976
|
+
|
977
|
+
# ISO of the photo.
|
978
|
+
# Corresponds to the JSON property `isoEquivalent`
|
979
|
+
# @return [Fixnum]
|
980
|
+
attr_accessor :iso_equivalent
|
981
|
+
|
982
|
+
def initialize(**args)
|
983
|
+
update!(**args)
|
984
|
+
end
|
985
|
+
|
986
|
+
# Update properties of this object
|
987
|
+
def update!(**args)
|
988
|
+
@aperture_f_number = args[:aperture_f_number] if args.key?(:aperture_f_number)
|
989
|
+
@camera_make = args[:camera_make] if args.key?(:camera_make)
|
990
|
+
@camera_model = args[:camera_model] if args.key?(:camera_model)
|
991
|
+
@exposure_time = args[:exposure_time] if args.key?(:exposure_time)
|
992
|
+
@focal_length = args[:focal_length] if args.key?(:focal_length)
|
993
|
+
@iso_equivalent = args[:iso_equivalent] if args.key?(:iso_equivalent)
|
994
|
+
end
|
995
|
+
end
|
996
|
+
|
997
|
+
# Request to search for media items in a user's library.
|
998
|
+
# If the album id is specified, this call will return the list of media items
|
999
|
+
# in the album. If neither filters nor album id are
|
1000
|
+
# specified, this call will return all media items in a user's Google Photos
|
1001
|
+
# library.
|
1002
|
+
# If filters are specified, this call will return all media items in
|
1003
|
+
# the user's library which fulfills the criteria based upon the filters.
|
1004
|
+
# Filters and album id must not both be set, as this will result in an
|
1005
|
+
# invalid request.
|
1006
|
+
class SearchMediaItemsRequest
|
1007
|
+
include Google::Apis::Core::Hashable
|
1008
|
+
|
1009
|
+
# Identifier of an album. If populated will list all media items in
|
1010
|
+
# specified album. Cannot be set in conjunction with any filters.
|
1011
|
+
# Corresponds to the JSON property `albumId`
|
1012
|
+
# @return [String]
|
1013
|
+
attr_accessor :album_id
|
1014
|
+
|
1015
|
+
# Filters that can be applied to a media item search.
|
1016
|
+
# If multiple filter options are specified, they are treated as AND with each
|
1017
|
+
# other.
|
1018
|
+
# Corresponds to the JSON property `filters`
|
1019
|
+
# @return [Google::Apis::PhotoslibraryV1::Filters]
|
1020
|
+
attr_accessor :filters
|
1021
|
+
|
1022
|
+
# Maximum number of media items to return in the response. The default number
|
1023
|
+
# of media items to return at a time is 100. The maximum page size is 500.
|
1024
|
+
# Corresponds to the JSON property `pageSize`
|
1025
|
+
# @return [Fixnum]
|
1026
|
+
attr_accessor :page_size
|
1027
|
+
|
1028
|
+
# A continuation token to get the next page of the results. Adding this to
|
1029
|
+
# the request will return the rows after the pageToken. The pageToken should
|
1030
|
+
# be the value returned in the nextPageToken parameter in the response to the
|
1031
|
+
# searchMediaItems request.
|
1032
|
+
# Corresponds to the JSON property `pageToken`
|
1033
|
+
# @return [String]
|
1034
|
+
attr_accessor :page_token
|
1035
|
+
|
1036
|
+
def initialize(**args)
|
1037
|
+
update!(**args)
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
# Update properties of this object
|
1041
|
+
def update!(**args)
|
1042
|
+
@album_id = args[:album_id] if args.key?(:album_id)
|
1043
|
+
@filters = args[:filters] if args.key?(:filters)
|
1044
|
+
@page_size = args[:page_size] if args.key?(:page_size)
|
1045
|
+
@page_token = args[:page_token] if args.key?(:page_token)
|
1046
|
+
end
|
1047
|
+
end
|
1048
|
+
|
1049
|
+
#
|
1050
|
+
class SearchMediaItemsResponse
|
1051
|
+
include Google::Apis::Core::Hashable
|
1052
|
+
|
1053
|
+
# [Output only] List of media items that match the search parameters.
|
1054
|
+
# Corresponds to the JSON property `mediaItems`
|
1055
|
+
# @return [Array<Google::Apis::PhotoslibraryV1::MediaItem>]
|
1056
|
+
attr_accessor :media_items
|
1057
|
+
|
1058
|
+
# [Output only] Token to use to get the next set of media items. Its presence
|
1059
|
+
# is the only reliable indicator of more media items being available in the
|
1060
|
+
# next request.
|
1061
|
+
# Corresponds to the JSON property `nextPageToken`
|
1062
|
+
# @return [String]
|
1063
|
+
attr_accessor :next_page_token
|
1064
|
+
|
1065
|
+
def initialize(**args)
|
1066
|
+
update!(**args)
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
# Update properties of this object
|
1070
|
+
def update!(**args)
|
1071
|
+
@media_items = args[:media_items] if args.key?(:media_items)
|
1072
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1073
|
+
end
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
# Request to make an album shared in Google Photos.
|
1077
|
+
class ShareAlbumRequest
|
1078
|
+
include Google::Apis::Core::Hashable
|
1079
|
+
|
1080
|
+
# Options that control the sharing of an album.
|
1081
|
+
# Corresponds to the JSON property `sharedAlbumOptions`
|
1082
|
+
# @return [Google::Apis::PhotoslibraryV1::SharedAlbumOptions]
|
1083
|
+
attr_accessor :shared_album_options
|
1084
|
+
|
1085
|
+
def initialize(**args)
|
1086
|
+
update!(**args)
|
1087
|
+
end
|
1088
|
+
|
1089
|
+
# Update properties of this object
|
1090
|
+
def update!(**args)
|
1091
|
+
@shared_album_options = args[:shared_album_options] if args.key?(:shared_album_options)
|
1092
|
+
end
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
#
|
1096
|
+
class ShareAlbumResponse
|
1097
|
+
include Google::Apis::Core::Hashable
|
1098
|
+
|
1099
|
+
# Information about albums that are shared. Note that this
|
1100
|
+
# information is only included if the album was created by you and you have the
|
1101
|
+
# sharing scope.
|
1102
|
+
# Corresponds to the JSON property `shareInfo`
|
1103
|
+
# @return [Google::Apis::PhotoslibraryV1::ShareInfo]
|
1104
|
+
attr_accessor :share_info
|
1105
|
+
|
1106
|
+
def initialize(**args)
|
1107
|
+
update!(**args)
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
# Update properties of this object
|
1111
|
+
def update!(**args)
|
1112
|
+
@share_info = args[:share_info] if args.key?(:share_info)
|
1113
|
+
end
|
1114
|
+
end
|
1115
|
+
|
1116
|
+
# Information about albums that are shared. Note that this
|
1117
|
+
# information is only included if the album was created by you and you have the
|
1118
|
+
# sharing scope.
|
1119
|
+
class ShareInfo
|
1120
|
+
include Google::Apis::Core::Hashable
|
1121
|
+
|
1122
|
+
# A token which can be used to join this shared album on behalf of other
|
1123
|
+
# users via the API.
|
1124
|
+
# Corresponds to the JSON property `shareToken`
|
1125
|
+
# @return [String]
|
1126
|
+
attr_accessor :share_token
|
1127
|
+
|
1128
|
+
# A link to the album that's now shared on the Google Photos website and app.
|
1129
|
+
# Anyone with the link can access this shared album and see all of the items
|
1130
|
+
# present in the album.
|
1131
|
+
# Corresponds to the JSON property `shareableUrl`
|
1132
|
+
# @return [String]
|
1133
|
+
attr_accessor :shareable_url
|
1134
|
+
|
1135
|
+
# Options that control the sharing of an album.
|
1136
|
+
# Corresponds to the JSON property `sharedAlbumOptions`
|
1137
|
+
# @return [Google::Apis::PhotoslibraryV1::SharedAlbumOptions]
|
1138
|
+
attr_accessor :shared_album_options
|
1139
|
+
|
1140
|
+
def initialize(**args)
|
1141
|
+
update!(**args)
|
1142
|
+
end
|
1143
|
+
|
1144
|
+
# Update properties of this object
|
1145
|
+
def update!(**args)
|
1146
|
+
@share_token = args[:share_token] if args.key?(:share_token)
|
1147
|
+
@shareable_url = args[:shareable_url] if args.key?(:shareable_url)
|
1148
|
+
@shared_album_options = args[:shared_album_options] if args.key?(:shared_album_options)
|
1149
|
+
end
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
# Options that control the sharing of an album.
|
1153
|
+
class SharedAlbumOptions
|
1154
|
+
include Google::Apis::Core::Hashable
|
1155
|
+
|
1156
|
+
# True if the shared album allows collaborators (users who have joined
|
1157
|
+
# the album) to add media items to it. Defaults to false.
|
1158
|
+
# Corresponds to the JSON property `isCollaborative`
|
1159
|
+
# @return [Boolean]
|
1160
|
+
attr_accessor :is_collaborative
|
1161
|
+
alias_method :is_collaborative?, :is_collaborative
|
1162
|
+
|
1163
|
+
# True if the shared album allows the owner and the collaborators (users
|
1164
|
+
# who have joined the album) to add comments to the album. Defaults to false.
|
1165
|
+
# Corresponds to the JSON property `isCommentable`
|
1166
|
+
# @return [Boolean]
|
1167
|
+
attr_accessor :is_commentable
|
1168
|
+
alias_method :is_commentable?, :is_commentable
|
1169
|
+
|
1170
|
+
def initialize(**args)
|
1171
|
+
update!(**args)
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
# Update properties of this object
|
1175
|
+
def update!(**args)
|
1176
|
+
@is_collaborative = args[:is_collaborative] if args.key?(:is_collaborative)
|
1177
|
+
@is_commentable = args[:is_commentable] if args.key?(:is_commentable)
|
1178
|
+
end
|
1179
|
+
end
|
1180
|
+
|
1181
|
+
# A simple media item to be created in Google Photos via an upload token.
|
1182
|
+
class SimpleMediaItem
|
1183
|
+
include Google::Apis::Core::Hashable
|
1184
|
+
|
1185
|
+
# Token identifying the media bytes which have been uploaded to Google.
|
1186
|
+
# Corresponds to the JSON property `uploadToken`
|
1187
|
+
# @return [String]
|
1188
|
+
attr_accessor :upload_token
|
1189
|
+
|
1190
|
+
def initialize(**args)
|
1191
|
+
update!(**args)
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
# Update properties of this object
|
1195
|
+
def update!(**args)
|
1196
|
+
@upload_token = args[:upload_token] if args.key?(:upload_token)
|
1197
|
+
end
|
1198
|
+
end
|
1199
|
+
|
1200
|
+
# The `Status` type defines a logical error model that is suitable for different
|
1201
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
1202
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
1203
|
+
# - Simple to use and understand for most users
|
1204
|
+
# - Flexible enough to meet unexpected needs
|
1205
|
+
# # Overview
|
1206
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
1207
|
+
# and error details. The error code should be an enum value of
|
1208
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
1209
|
+
# error message should be a developer-facing English message that helps
|
1210
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
1211
|
+
# error message is needed, put the localized message in the error details or
|
1212
|
+
# localize it in the client. The optional error details may contain arbitrary
|
1213
|
+
# information about the error. There is a predefined set of error detail types
|
1214
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
1215
|
+
# # Language mapping
|
1216
|
+
# The `Status` message is the logical representation of the error model, but it
|
1217
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
1218
|
+
# exposed in different client libraries and different wire protocols, it can be
|
1219
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
1220
|
+
# in Java, but more likely mapped to some error codes in C.
|
1221
|
+
# # Other uses
|
1222
|
+
# The error model and the `Status` message can be used in a variety of
|
1223
|
+
# environments, either with or without APIs, to provide a
|
1224
|
+
# consistent developer experience across different environments.
|
1225
|
+
# Example uses of this error model include:
|
1226
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
1227
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
1228
|
+
# errors.
|
1229
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
1230
|
+
# have a `Status` message for error reporting.
|
1231
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
1232
|
+
# `Status` message should be used directly inside batch response, one for
|
1233
|
+
# each error sub-response.
|
1234
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
1235
|
+
# results in its response, the status of those operations should be
|
1236
|
+
# represented directly using the `Status` message.
|
1237
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
1238
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
1239
|
+
class Status
|
1240
|
+
include Google::Apis::Core::Hashable
|
1241
|
+
|
1242
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
1243
|
+
# Corresponds to the JSON property `code`
|
1244
|
+
# @return [Fixnum]
|
1245
|
+
attr_accessor :code
|
1246
|
+
|
1247
|
+
# A list of messages that carry the error details. There is a common set of
|
1248
|
+
# message types for APIs to use.
|
1249
|
+
# Corresponds to the JSON property `details`
|
1250
|
+
# @return [Array<Hash<String,Object>>]
|
1251
|
+
attr_accessor :details
|
1252
|
+
|
1253
|
+
# A developer-facing error message, which should be in English. Any
|
1254
|
+
# user-facing error message should be localized and sent in the
|
1255
|
+
# google.rpc.Status.details field, or localized by the client.
|
1256
|
+
# Corresponds to the JSON property `message`
|
1257
|
+
# @return [String]
|
1258
|
+
attr_accessor :message
|
1259
|
+
|
1260
|
+
def initialize(**args)
|
1261
|
+
update!(**args)
|
1262
|
+
end
|
1263
|
+
|
1264
|
+
# Update properties of this object
|
1265
|
+
def update!(**args)
|
1266
|
+
@code = args[:code] if args.key?(:code)
|
1267
|
+
@details = args[:details] if args.key?(:details)
|
1268
|
+
@message = args[:message] if args.key?(:message)
|
1269
|
+
end
|
1270
|
+
end
|
1271
|
+
|
1272
|
+
# An enrichment containing text.
|
1273
|
+
class TextEnrichment
|
1274
|
+
include Google::Apis::Core::Hashable
|
1275
|
+
|
1276
|
+
# Text for this text enrichment item.
|
1277
|
+
# Corresponds to the JSON property `text`
|
1278
|
+
# @return [String]
|
1279
|
+
attr_accessor :text
|
1280
|
+
|
1281
|
+
def initialize(**args)
|
1282
|
+
update!(**args)
|
1283
|
+
end
|
1284
|
+
|
1285
|
+
# Update properties of this object
|
1286
|
+
def update!(**args)
|
1287
|
+
@text = args[:text] if args.key?(:text)
|
1288
|
+
end
|
1289
|
+
end
|
1290
|
+
|
1291
|
+
# Metadata that is specific to a video, for example, fps and processing status.
|
1292
|
+
# Some of these fields may be null or not included.
|
1293
|
+
class Video
|
1294
|
+
include Google::Apis::Core::Hashable
|
1295
|
+
|
1296
|
+
# Brand of the camera which took the video.
|
1297
|
+
# Corresponds to the JSON property `cameraMake`
|
1298
|
+
# @return [String]
|
1299
|
+
attr_accessor :camera_make
|
1300
|
+
|
1301
|
+
# Model of the camera which took the video.
|
1302
|
+
# Corresponds to the JSON property `cameraModel`
|
1303
|
+
# @return [String]
|
1304
|
+
attr_accessor :camera_model
|
1305
|
+
|
1306
|
+
# Frame rate of the video.
|
1307
|
+
# Corresponds to the JSON property `fps`
|
1308
|
+
# @return [Float]
|
1309
|
+
attr_accessor :fps
|
1310
|
+
|
1311
|
+
# Processing status of the video.
|
1312
|
+
# Corresponds to the JSON property `status`
|
1313
|
+
# @return [String]
|
1314
|
+
attr_accessor :status
|
1315
|
+
|
1316
|
+
def initialize(**args)
|
1317
|
+
update!(**args)
|
1318
|
+
end
|
1319
|
+
|
1320
|
+
# Update properties of this object
|
1321
|
+
def update!(**args)
|
1322
|
+
@camera_make = args[:camera_make] if args.key?(:camera_make)
|
1323
|
+
@camera_model = args[:camera_model] if args.key?(:camera_model)
|
1324
|
+
@fps = args[:fps] if args.key?(:fps)
|
1325
|
+
@status = args[:status] if args.key?(:status)
|
1326
|
+
end
|
1327
|
+
end
|
1328
|
+
end
|
1329
|
+
end
|
1330
|
+
end
|