google-api-client 0.9.20 → 0.9.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +8 -4
- data/api_names.yaml +33179 -1058
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +24 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +2 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +14 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +2 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +7 -0
- data/generated/google/apis/analyticsreporting_v4/representations.rb +1 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +96 -156
- data/generated/google/apis/androidenterprise_v1/representations.rb +18 -47
- data/generated/google/apis/androidenterprise_v1/service.rb +15 -459
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +176 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +62 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +60 -2
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +300 -198
- data/generated/google/apis/appengine_v1beta5/representations.rb +36 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +54 -49
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +50 -6
- data/generated/google/apis/bigquery_v2/representations.rb +5 -0
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +7 -2
- data/generated/google/apis/books_v1/representations.rb +1 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +74 -74
- data/generated/google/apis/classroom_v1/representations.rb +29 -29
- data/generated/google/apis/classroom_v1/service.rb +132 -28
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +47 -27
- data/generated/google/apis/cloudbuild_v1/representations.rb +20 -7
- data/generated/google/apis/cloudbuild_v1/service.rb +42 -0
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +648 -578
- data/generated/google/apis/clouddebugger_v2/representations.rb +140 -140
- data/generated/google/apis/clouddebugger_v2/service.rb +161 -155
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +563 -423
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +116 -76
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +318 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +396 -331
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +317 -281
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +352 -80
- data/generated/google/apis/compute_beta/representations.rb +132 -19
- data/generated/google/apis/compute_beta/service.rb +214 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +673 -73
- data/generated/google/apis/compute_v1/representations.rb +274 -9
- data/generated/google/apis/compute_v1/service.rb +1574 -2
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +7 -8
- data/generated/google/apis/content_v2/service.rb +125 -54
- data/generated/google/apis/dataflow_v1b3.rb +2 -3
- data/generated/google/apis/dataflow_v1b3/classes.rb +286 -114
- data/generated/google/apis/dataflow_v1b3/representations.rb +73 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +37 -38
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +5 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +37 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +16 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +4 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +55 -21
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +41 -12
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/fitness_v1.rb +31 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +32 -1
- data/generated/google/apis/gmail_v1/representations.rb +15 -0
- data/generated/google/apis/gmail_v1/service.rb +41 -2
- data/generated/google/apis/identitytoolkit_v3.rb +4 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +7 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +1 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +10 -10
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +28 -26
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +166 -8
- data/generated/google/apis/language_v1beta1/representations.rb +50 -0
- data/generated/google/apis/language_v1beta1/service.rb +32 -0
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +868 -789
- data/generated/google/apis/logging_v2beta1/representations.rb +179 -147
- data/generated/google/apis/logging_v2beta1/service.rb +378 -211
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +110 -112
- data/generated/google/apis/monitoring_v3/service.rb +68 -73
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +380 -327
- data/generated/google/apis/pubsub_v1/representations.rb +79 -79
- data/generated/google/apis/pubsub_v1/service.rb +424 -396
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +175 -53
- data/generated/google/apis/sheets_v4/representations.rb +48 -13
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +149 -31
- data/generated/google/apis/slides_v1/representations.rb +52 -9
- data/generated/google/apis/slides_v1/service.rb +5 -5
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/service.rb +3 -1
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +54 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -0
- data/generated/google/apis/storage_v1/representations.rb +2 -0
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +63 -59
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +0 -76
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +71 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +33 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +52 -0
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +15 -2
- data/generated/google/apis/youtube_v3/representations.rb +3 -0
- data/generated/google/apis/youtube_v3/service.rb +4 -4
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +146 -137
- data/generated/google/apis/youtubereporting_v1/representations.rb +33 -33
- data/generated/google/apis/youtubereporting_v1/service.rb +149 -145
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- metadata +29 -29
|
@@ -303,6 +303,7 @@ module Google
|
|
|
303
303
|
property :file_extension, as: 'fileExtension'
|
|
304
304
|
property :folder_color_rgb, as: 'folderColorRgb'
|
|
305
305
|
property :full_file_extension, as: 'fullFileExtension'
|
|
306
|
+
property :has_thumbnail, as: 'hasThumbnail'
|
|
306
307
|
property :head_revision_id, as: 'headRevisionId'
|
|
307
308
|
property :icon_link, as: 'iconLink'
|
|
308
309
|
property :id, as: 'id'
|
|
@@ -338,6 +339,7 @@ module Google
|
|
|
338
339
|
collection :spaces, as: 'spaces'
|
|
339
340
|
property :starred, as: 'starred'
|
|
340
341
|
property :thumbnail_link, as: 'thumbnailLink'
|
|
342
|
+
property :thumbnail_version, as: 'thumbnailVersion'
|
|
341
343
|
property :trashed, as: 'trashed'
|
|
342
344
|
property :version, as: 'version'
|
|
343
345
|
property :video_media_metadata, as: 'videoMediaMetadata', class: Google::Apis::DriveV3::File::VideoMediaMetadata, decorator: Google::Apis::DriveV3::File::VideoMediaMetadata::Representation
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/fit/rest/
|
|
26
26
|
module FitnessV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20161128'
|
|
29
29
|
|
|
30
30
|
# View your activity information in Google Fit
|
|
31
31
|
AUTH_FITNESS_ACTIVITY_READ = 'https://www.googleapis.com/auth/fitness.activity.read'
|
|
@@ -33,12 +33,30 @@ module Google
|
|
|
33
33
|
# View and store your activity information in Google Fit
|
|
34
34
|
AUTH_FITNESS_ACTIVITY_WRITE = 'https://www.googleapis.com/auth/fitness.activity.write'
|
|
35
35
|
|
|
36
|
+
# View blood glucose data in Google Fit
|
|
37
|
+
AUTH_FITNESS_BLOOD_GLUCOSE_READ = 'https://www.googleapis.com/auth/fitness.blood_glucose.read'
|
|
38
|
+
|
|
39
|
+
# View and store blood glucose data in Google Fit
|
|
40
|
+
AUTH_FITNESS_BLOOD_GLUCOSE_WRITE = 'https://www.googleapis.com/auth/fitness.blood_glucose.write'
|
|
41
|
+
|
|
42
|
+
# View blood pressure data in Google Fit
|
|
43
|
+
AUTH_FITNESS_BLOOD_PRESSURE_READ = 'https://www.googleapis.com/auth/fitness.blood_pressure.read'
|
|
44
|
+
|
|
45
|
+
# View and store blood pressure data in Google Fit
|
|
46
|
+
AUTH_FITNESS_BLOOD_PRESSURE_WRITE = 'https://www.googleapis.com/auth/fitness.blood_pressure.write'
|
|
47
|
+
|
|
36
48
|
# View body sensor information in Google Fit
|
|
37
49
|
AUTH_FITNESS_BODY_READ = 'https://www.googleapis.com/auth/fitness.body.read'
|
|
38
50
|
|
|
39
51
|
# View and store body sensor data in Google Fit
|
|
40
52
|
AUTH_FITNESS_BODY_WRITE = 'https://www.googleapis.com/auth/fitness.body.write'
|
|
41
53
|
|
|
54
|
+
# View body temperature data in Google Fit
|
|
55
|
+
AUTH_FITNESS_BODY_TEMPERATURE_READ = 'https://www.googleapis.com/auth/fitness.body_temperature.read'
|
|
56
|
+
|
|
57
|
+
# View and store body temperature data in Google Fit
|
|
58
|
+
AUTH_FITNESS_BODY_TEMPERATURE_WRITE = 'https://www.googleapis.com/auth/fitness.body_temperature.write'
|
|
59
|
+
|
|
42
60
|
# View your stored location data in Google Fit
|
|
43
61
|
AUTH_FITNESS_LOCATION_READ = 'https://www.googleapis.com/auth/fitness.location.read'
|
|
44
62
|
|
|
@@ -50,6 +68,18 @@ module Google
|
|
|
50
68
|
|
|
51
69
|
# View and store nutrition information in Google Fit
|
|
52
70
|
AUTH_FITNESS_NUTRITION_WRITE = 'https://www.googleapis.com/auth/fitness.nutrition.write'
|
|
71
|
+
|
|
72
|
+
# View oxygen saturation data in Google Fit
|
|
73
|
+
AUTH_FITNESS_OXYGEN_SATURATION_READ = 'https://www.googleapis.com/auth/fitness.oxygen_saturation.read'
|
|
74
|
+
|
|
75
|
+
# View and store oxygen saturation data in Google Fit
|
|
76
|
+
AUTH_FITNESS_OXYGEN_SATURATION_WRITE = 'https://www.googleapis.com/auth/fitness.oxygen_saturation.write'
|
|
77
|
+
|
|
78
|
+
# View reproductive health data in Google Fit
|
|
79
|
+
AUTH_FITNESS_REPRODUCTIVE_HEALTH_READ = 'https://www.googleapis.com/auth/fitness.reproductive_health.read'
|
|
80
|
+
|
|
81
|
+
# View and store reproductive health data in Google Fit
|
|
82
|
+
AUTH_FITNESS_REPRODUCTIVE_HEALTH_WRITE = 'https://www.googleapis.com/auth/fitness.reproductive_health.write'
|
|
53
83
|
end
|
|
54
84
|
end
|
|
55
85
|
end
|
|
@@ -871,7 +871,7 @@ module Google
|
|
|
871
871
|
|
|
872
872
|
# Holder object for the value of a single field in a data point.
|
|
873
873
|
# A field value has a particular format and is only ever set to one of an
|
|
874
|
-
# integer or a floating point value.
|
|
874
|
+
# integer or a floating point value. LINT.IfChange
|
|
875
875
|
class Value
|
|
876
876
|
include Google::Apis::Core::Hashable
|
|
877
877
|
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/games/services
|
|
26
26
|
module GamesConfigurationV1configuration
|
|
27
27
|
VERSION = 'V1configuration'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20170111'
|
|
29
29
|
|
|
30
30
|
# View and manage your Google Play Developer account
|
|
31
31
|
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/games/services
|
|
26
26
|
module GamesManagementV1management
|
|
27
27
|
VERSION = 'V1management'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20170111'
|
|
29
29
|
|
|
30
30
|
# Share your Google+ profile information and view and manage your game activity
|
|
31
31
|
AUTH_GAMES = 'https://www.googleapis.com/auth/games'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/games/services/
|
|
26
26
|
module GamesV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20170111'
|
|
29
29
|
|
|
30
30
|
# View and manage its own configuration data in your Google Drive
|
|
31
31
|
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
|
|
@@ -74,6 +74,37 @@ module Google
|
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
+
#
|
|
78
|
+
class BatchModifyMessagesRequest
|
|
79
|
+
include Google::Apis::Core::Hashable
|
|
80
|
+
|
|
81
|
+
# A list of label IDs to add to messages.
|
|
82
|
+
# Corresponds to the JSON property `addLabelIds`
|
|
83
|
+
# @return [Array<String>]
|
|
84
|
+
attr_accessor :add_label_ids
|
|
85
|
+
|
|
86
|
+
# The IDs of the messages to modify. There is a limit of 1000 ids per request.
|
|
87
|
+
# Corresponds to the JSON property `ids`
|
|
88
|
+
# @return [Array<String>]
|
|
89
|
+
attr_accessor :ids
|
|
90
|
+
|
|
91
|
+
# A list of label IDs to remove from messages.
|
|
92
|
+
# Corresponds to the JSON property `removeLabelIds`
|
|
93
|
+
# @return [Array<String>]
|
|
94
|
+
attr_accessor :remove_label_ids
|
|
95
|
+
|
|
96
|
+
def initialize(**args)
|
|
97
|
+
update!(**args)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Update properties of this object
|
|
101
|
+
def update!(**args)
|
|
102
|
+
@add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
|
|
103
|
+
@ids = args[:ids] if args.key?(:ids)
|
|
104
|
+
@remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
77
108
|
# A draft email in the user's mailbox.
|
|
78
109
|
class Draft
|
|
79
110
|
include Google::Apis::Core::Hashable
|
|
@@ -878,7 +909,7 @@ module Google
|
|
|
878
909
|
# @return [String]
|
|
879
910
|
attr_accessor :data
|
|
880
911
|
|
|
881
|
-
#
|
|
912
|
+
# Number of bytes for the message part data (encoding notwithstanding).
|
|
882
913
|
# Corresponds to the JSON property `size`
|
|
883
914
|
# @return [Fixnum]
|
|
884
915
|
attr_accessor :size
|
|
@@ -34,6 +34,12 @@ module Google
|
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
+
class BatchModifyMessagesRequest
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
37
43
|
class Draft
|
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
45
|
|
|
@@ -254,6 +260,15 @@ module Google
|
|
|
254
260
|
end
|
|
255
261
|
end
|
|
256
262
|
|
|
263
|
+
class BatchModifyMessagesRequest
|
|
264
|
+
# @private
|
|
265
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
266
|
+
collection :add_label_ids, as: 'addLabelIds'
|
|
267
|
+
collection :ids, as: 'ids'
|
|
268
|
+
collection :remove_label_ids, as: 'removeLabelIds'
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
|
|
257
272
|
class Draft
|
|
258
273
|
# @private
|
|
259
274
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -774,6 +774,43 @@ module Google
|
|
|
774
774
|
execute_or_queue_command(command, &block)
|
|
775
775
|
end
|
|
776
776
|
|
|
777
|
+
# Modifies the labels on the specified messages.
|
|
778
|
+
# @param [String] user_id
|
|
779
|
+
# The user's email address. The special value me can be used to indicate the
|
|
780
|
+
# authenticated user.
|
|
781
|
+
# @param [Google::Apis::GmailV1::BatchModifyMessagesRequest] batch_modify_messages_request_object
|
|
782
|
+
# @param [String] fields
|
|
783
|
+
# Selector specifying which fields to include in a partial response.
|
|
784
|
+
# @param [String] quota_user
|
|
785
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
786
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
787
|
+
# Overrides userIp if both are provided.
|
|
788
|
+
# @param [String] user_ip
|
|
789
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
790
|
+
# enforce per-user limits.
|
|
791
|
+
# @param [Google::Apis::RequestOptions] options
|
|
792
|
+
# Request-specific options
|
|
793
|
+
#
|
|
794
|
+
# @yield [result, err] Result & error if block supplied
|
|
795
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
796
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
797
|
+
#
|
|
798
|
+
# @return [void]
|
|
799
|
+
#
|
|
800
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
801
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
802
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
803
|
+
def batch_modify_messages(user_id, batch_modify_messages_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
804
|
+
command = make_simple_command(:post, '{userId}/messages/batchModify', options)
|
|
805
|
+
command.request_representation = Google::Apis::GmailV1::BatchModifyMessagesRequest::Representation
|
|
806
|
+
command.request_object = batch_modify_messages_request_object
|
|
807
|
+
command.params['userId'] = user_id unless user_id.nil?
|
|
808
|
+
command.query['fields'] = fields unless fields.nil?
|
|
809
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
810
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
811
|
+
execute_or_queue_command(command, &block)
|
|
812
|
+
end
|
|
813
|
+
|
|
777
814
|
# Immediately and permanently deletes the specified message. This operation
|
|
778
815
|
# cannot be undone. Prefer messages.trash instead.
|
|
779
816
|
# @param [String] user_id
|
|
@@ -997,7 +1034,8 @@ module Google
|
|
|
997
1034
|
# @param [String] q
|
|
998
1035
|
# Only return messages matching the specified query. Supports the same query
|
|
999
1036
|
# format as the Gmail search box. For example, "from:someuser@example.com
|
|
1000
|
-
# rfc822msgid: is:unread".
|
|
1037
|
+
# rfc822msgid: is:unread". Parameter cannot be used when accessing the api using
|
|
1038
|
+
# the gmail.metadata scope.
|
|
1001
1039
|
# @param [String] fields
|
|
1002
1040
|
# Selector specifying which fields to include in a partial response.
|
|
1003
1041
|
# @param [String] quota_user
|
|
@@ -2236,7 +2274,8 @@ module Google
|
|
|
2236
2274
|
# @param [String] q
|
|
2237
2275
|
# Only return threads matching the specified query. Supports the same query
|
|
2238
2276
|
# format as the Gmail search box. For example, "from:someuser@example.com
|
|
2239
|
-
# rfc822msgid: is:unread".
|
|
2277
|
+
# rfc822msgid: is:unread". Parameter cannot be used when accessing the api using
|
|
2278
|
+
# the gmail.metadata scope.
|
|
2240
2279
|
# @param [String] fields
|
|
2241
2280
|
# Selector specifying which fields to include in a partial response.
|
|
2242
2281
|
# @param [String] quota_user
|
|
@@ -25,7 +25,10 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/identity-toolkit/v3/
|
|
26
26
|
module IdentitytoolkitV3
|
|
27
27
|
VERSION = 'V3'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20161206'
|
|
29
|
+
|
|
30
|
+
# View and manage your data across Google Cloud Platform services
|
|
31
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
29
32
|
|
|
30
33
|
# View and administer all your Firebase data and settings
|
|
31
34
|
AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'
|
|
@@ -432,6 +432,12 @@ module Google
|
|
|
432
432
|
# @return [String]
|
|
433
433
|
attr_accessor :next_page_token
|
|
434
434
|
|
|
435
|
+
# Specify which project (field value is actually project id) to operate. Only
|
|
436
|
+
# used when provided credential.
|
|
437
|
+
# Corresponds to the JSON property `targetProjectId`
|
|
438
|
+
# @return [String]
|
|
439
|
+
attr_accessor :target_project_id
|
|
440
|
+
|
|
435
441
|
def initialize(**args)
|
|
436
442
|
update!(**args)
|
|
437
443
|
end
|
|
@@ -441,6 +447,7 @@ module Google
|
|
|
441
447
|
@delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
|
|
442
448
|
@max_results = args[:max_results] if args.key?(:max_results)
|
|
443
449
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
450
|
+
@target_project_id = args[:target_project_id] if args.key?(:target_project_id)
|
|
444
451
|
end
|
|
445
452
|
end
|
|
446
453
|
|
|
@@ -20,13 +20,12 @@ module Google
|
|
|
20
20
|
module Apis
|
|
21
21
|
# Knowledge Graph Search API
|
|
22
22
|
#
|
|
23
|
-
#
|
|
24
|
-
# Graph for entities.
|
|
23
|
+
# Searches the Google Knowledge Graph for entities.
|
|
25
24
|
#
|
|
26
25
|
# @see https://developers.google.com/knowledge-graph/
|
|
27
26
|
module KgsearchV1
|
|
28
27
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
28
|
+
REVISION = '20170109'
|
|
30
29
|
end
|
|
31
30
|
end
|
|
32
31
|
end
|
|
@@ -22,21 +22,21 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module KgsearchV1
|
|
24
24
|
|
|
25
|
-
# Response message includes the context and a list of matching results
|
|
26
|
-
# contain the detail of associated entities.
|
|
25
|
+
# Response message includes the context and a list of matching results
|
|
26
|
+
# which contain the detail of associated entities.
|
|
27
27
|
class SearchResponse
|
|
28
28
|
include Google::Apis::Core::Hashable
|
|
29
29
|
|
|
30
|
-
# The local context applicable for the response. See more details at
|
|
31
|
-
# w3.org/TR/json-ld/#context-definitions.
|
|
32
|
-
# Corresponds to the JSON property
|
|
30
|
+
# The local context applicable for the response. See more details at
|
|
31
|
+
# http://www.w3.org/TR/json-ld/#context-definitions.
|
|
32
|
+
# Corresponds to the JSON property `@context`
|
|
33
33
|
# @return [Object]
|
|
34
|
-
attr_accessor :
|
|
34
|
+
attr_accessor :_context
|
|
35
35
|
|
|
36
36
|
# The schema type of top-level JSON-LD object, e.g. ItemList.
|
|
37
|
-
# Corresponds to the JSON property
|
|
37
|
+
# Corresponds to the JSON property `@type`
|
|
38
38
|
# @return [Object]
|
|
39
|
-
attr_accessor :
|
|
39
|
+
attr_accessor :_type
|
|
40
40
|
|
|
41
41
|
# The item list of search results.
|
|
42
42
|
# Corresponds to the JSON property `itemListElement`
|
|
@@ -49,8 +49,8 @@ module Google
|
|
|
49
49
|
|
|
50
50
|
# Update properties of this object
|
|
51
51
|
def update!(**args)
|
|
52
|
-
@
|
|
53
|
-
@
|
|
52
|
+
@_context = args[:_context] if args.key?(:_context)
|
|
53
|
+
@_type = args[:_type] if args.key?(:_type)
|
|
54
54
|
@item_list_element = args[:item_list_element] if args.key?(:item_list_element)
|
|
55
55
|
end
|
|
56
56
|
end
|
|
@@ -31,8 +31,8 @@ module Google
|
|
|
31
31
|
class SearchResponse
|
|
32
32
|
# @private
|
|
33
33
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
34
|
-
property :
|
|
35
|
-
property :
|
|
34
|
+
property :_context, as: '@context'
|
|
35
|
+
property :_type, as: '@type'
|
|
36
36
|
collection :item_list_element, as: 'itemListElement'
|
|
37
37
|
end
|
|
38
38
|
end
|
|
@@ -22,8 +22,7 @@ module Google
|
|
|
22
22
|
module KgsearchV1
|
|
23
23
|
# Knowledge Graph Search API
|
|
24
24
|
#
|
|
25
|
-
#
|
|
26
|
-
# Graph for entities.
|
|
25
|
+
# Searches the Google Knowledge Graph for entities.
|
|
27
26
|
#
|
|
28
27
|
# @example
|
|
29
28
|
# require 'google/apis/kgsearch_v1'
|
|
@@ -47,30 +46,33 @@ module Google
|
|
|
47
46
|
super('https://kgsearch.googleapis.com/', '')
|
|
48
47
|
end
|
|
49
48
|
|
|
50
|
-
# Searches Knowledge Graph for entities that match the constraints.
|
|
51
|
-
# matched entities will be returned in response, which will be in
|
|
52
|
-
# and compatible with http://schema.org
|
|
53
|
-
# @param [
|
|
54
|
-
#
|
|
49
|
+
# Searches Knowledge Graph for entities that match the constraints.
|
|
50
|
+
# A list of matched entities will be returned in response, which will be in
|
|
51
|
+
# JSON-LD format and compatible with http://schema.org
|
|
52
|
+
# @param [Fixnum] limit
|
|
53
|
+
# Limits the number of entities to be returned.
|
|
55
54
|
# @param [Array<String>, String] ids
|
|
56
55
|
# The list of entity id to be used for search instead of query string.
|
|
57
|
-
#
|
|
58
|
-
#
|
|
59
|
-
# en'.
|
|
60
|
-
# @param [Array<String>, String] types
|
|
61
|
-
# Restricts returned entities with these types, e.g. Person (as defined in http:/
|
|
62
|
-
# /schema.org/Person).
|
|
63
|
-
# @param [Boolean] indent
|
|
64
|
-
# Enables indenting of json results.
|
|
56
|
+
# To specify multiple ids in the HTTP request, repeat the parameter in the
|
|
57
|
+
# URL as in ...?ids=A&ids=B
|
|
65
58
|
# @param [Boolean] prefix
|
|
66
59
|
# Enables prefix match against names and aliases of entities
|
|
67
|
-
# @param [
|
|
68
|
-
#
|
|
69
|
-
# @param [
|
|
70
|
-
#
|
|
60
|
+
# @param [String] query
|
|
61
|
+
# The literal query string for search.
|
|
62
|
+
# @param [Boolean] indent
|
|
63
|
+
# Enables indenting of json results.
|
|
64
|
+
# @param [Array<String>, String] types
|
|
65
|
+
# Restricts returned entities with these types, e.g. Person
|
|
66
|
+
# (as defined in http://schema.org/Person). If multiple types are specified,
|
|
67
|
+
# returned entities will contain one or more of these types.
|
|
68
|
+
# @param [Array<String>, String] languages
|
|
69
|
+
# The list of language codes (defined in ISO 693) to run the query with,
|
|
70
|
+
# e.g. 'en'.
|
|
71
71
|
# @param [String] quota_user
|
|
72
72
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
73
73
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
74
|
+
# @param [String] fields
|
|
75
|
+
# Selector specifying which fields to include in a partial response.
|
|
74
76
|
# @param [Google::Apis::RequestOptions] options
|
|
75
77
|
# Request-specific options
|
|
76
78
|
#
|
|
@@ -83,19 +85,19 @@ module Google
|
|
|
83
85
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
84
86
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
85
87
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
86
|
-
def search_entities(
|
|
88
|
+
def search_entities(limit: nil, ids: nil, prefix: nil, query: nil, indent: nil, types: nil, languages: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
87
89
|
command = make_simple_command(:get, 'v1/entities:search', options)
|
|
88
90
|
command.response_representation = Google::Apis::KgsearchV1::SearchResponse::Representation
|
|
89
91
|
command.response_class = Google::Apis::KgsearchV1::SearchResponse
|
|
90
|
-
command.query['
|
|
92
|
+
command.query['limit'] = limit unless limit.nil?
|
|
91
93
|
command.query['ids'] = ids unless ids.nil?
|
|
92
|
-
command.query['languages'] = languages unless languages.nil?
|
|
93
|
-
command.query['types'] = types unless types.nil?
|
|
94
|
-
command.query['indent'] = indent unless indent.nil?
|
|
95
94
|
command.query['prefix'] = prefix unless prefix.nil?
|
|
96
|
-
command.query['
|
|
97
|
-
command.query['
|
|
95
|
+
command.query['query'] = query unless query.nil?
|
|
96
|
+
command.query['indent'] = indent unless indent.nil?
|
|
97
|
+
command.query['types'] = types unless types.nil?
|
|
98
|
+
command.query['languages'] = languages unless languages.nil?
|
|
98
99
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
100
|
+
command.query['fields'] = fields unless fields.nil?
|
|
99
101
|
execute_or_queue_command(command, &block)
|
|
100
102
|
end
|
|
101
103
|
|