google-api-client 0.19.2 → 0.19.3
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/CHANGELOG.md +37 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +94 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +46 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +229 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +13 -13
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +11 -8
- data/generated/google/apis/clouddebugger_v2.rb +2 -2
- data/generated/google/apis/clouddebugger_v2/classes.rb +0 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +3 -3
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +61 -57
- data/generated/google/apis/container_v1.rb +2 -2
- data/generated/google/apis/container_v1/service.rb +1 -1
- data/generated/google/apis/container_v1beta1.rb +2 -2
- data/generated/google/apis/container_v1beta1/classes.rb +86 -0
- data/generated/google/apis/container_v1beta1/representations.rb +33 -0
- data/generated/google/apis/container_v1beta1/service.rb +84 -1
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/service.rb +104 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +7 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -0
- data/generated/google/apis/dlp_v2beta2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +5 -3
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +4 -2
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/service.rb +0 -54
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +53 -212
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +3 -2
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +3 -3
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1/classes.rb +6 -0
- data/generated/google/apis/pagespeedonline_v1/representations.rb +1 -0
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +6 -0
- data/generated/google/apis/pagespeedonline_v2/representations.rb +1 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +0 -2
- data/generated/google/apis/people_v1/service.rb +4 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +3 -3
- data/generated/google/apis/pubsub_v1/service.rb +31 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +3 -3
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/classes.rb +865 -0
- data/generated/google/apis/script_v1/representations.rb +428 -0
- data/generated/google/apis/script_v1/service.rb +586 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -10
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +48 -0
- data/generated/google/apis/sheets_v4/representations.rb +17 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +45 -0
- data/generated/google/apis/slides_v1/representations.rb +17 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +2 -2
- data/generated/google/apis/storage_v1/service.rb +1 -1
- data/generated/google/apis/storage_v1beta1/service.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +4 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/service.rb +1 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
|
@@ -27,7 +27,7 @@ module Google
|
|
|
27
27
|
# @see https://cloud.google.com/iam/
|
|
28
28
|
module IamV1
|
|
29
29
|
VERSION = 'V1'
|
|
30
|
-
REVISION = '
|
|
30
|
+
REVISION = '20180105'
|
|
31
31
|
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -156,8 +156,9 @@ module Google
|
|
|
156
156
|
# @return [String]
|
|
157
157
|
attr_accessor :key_algorithm
|
|
158
158
|
|
|
159
|
-
# The output format of the private key.
|
|
160
|
-
#
|
|
159
|
+
# The output format of the private key. The default value is
|
|
160
|
+
# `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File
|
|
161
|
+
# format.
|
|
161
162
|
# Corresponds to the JSON property `privateKeyType`
|
|
162
163
|
# @return [String]
|
|
163
164
|
attr_accessor :private_key_type
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/ml/
|
|
26
26
|
module MlV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20180105'
|
|
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'
|
|
@@ -1542,7 +1542,7 @@ module Google
|
|
|
1542
1542
|
# ]
|
|
1543
1543
|
# `
|
|
1544
1544
|
# For a description of IAM and its features, see the
|
|
1545
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
|
1545
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
|
1546
1546
|
class GoogleIamV1Policy
|
|
1547
1547
|
include Google::Apis::Core::Hashable
|
|
1548
1548
|
|
|
@@ -1577,7 +1577,7 @@ module Google
|
|
|
1577
1577
|
attr_accessor :iam_owned
|
|
1578
1578
|
alias_method :iam_owned?, :iam_owned
|
|
1579
1579
|
|
|
1580
|
-
#
|
|
1580
|
+
# Deprecated.
|
|
1581
1581
|
# Corresponds to the JSON property `version`
|
|
1582
1582
|
# @return [Fixnum]
|
|
1583
1583
|
attr_accessor :version
|
|
@@ -1625,7 +1625,7 @@ module Google
|
|
|
1625
1625
|
# ]
|
|
1626
1626
|
# `
|
|
1627
1627
|
# For a description of IAM and its features, see the
|
|
1628
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
|
1628
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
|
1629
1629
|
# Corresponds to the JSON property `policy`
|
|
1630
1630
|
# @return [Google::Apis::MlV1::GoogleIamV1Policy]
|
|
1631
1631
|
attr_accessor :policy
|
|
@@ -27,7 +27,7 @@ module Google
|
|
|
27
27
|
# @see https://cloud.google.com/monitoring/api/
|
|
28
28
|
module MonitoringV3
|
|
29
29
|
VERSION = 'V3'
|
|
30
|
-
REVISION = '
|
|
30
|
+
REVISION = '20180106'
|
|
31
31
|
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -26,6 +26,11 @@ module Google
|
|
|
26
26
|
class Result
|
|
27
27
|
include Google::Apis::Core::Hashable
|
|
28
28
|
|
|
29
|
+
# The captcha verify result
|
|
30
|
+
# Corresponds to the JSON property `captchaResult`
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :captcha_result
|
|
33
|
+
|
|
29
34
|
# Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed
|
|
30
35
|
# rule instantiated and run by the server.
|
|
31
36
|
# Corresponds to the JSON property `formattedResults`
|
|
@@ -89,6 +94,7 @@ module Google
|
|
|
89
94
|
|
|
90
95
|
# Update properties of this object
|
|
91
96
|
def update!(**args)
|
|
97
|
+
@captcha_result = args[:captcha_result] if args.key?(:captcha_result)
|
|
92
98
|
@formatted_results = args[:formatted_results] if args.key?(:formatted_results)
|
|
93
99
|
@id = args[:id] if args.key?(:id)
|
|
94
100
|
@invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules)
|
|
@@ -109,6 +109,7 @@ module Google
|
|
|
109
109
|
class Result
|
|
110
110
|
# @private
|
|
111
111
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
112
|
+
property :captcha_result, as: 'captchaResult'
|
|
112
113
|
property :formatted_results, as: 'formattedResults', class: Google::Apis::PagespeedonlineV1::Result::FormattedResults, decorator: Google::Apis::PagespeedonlineV1::Result::FormattedResults::Representation
|
|
113
114
|
|
|
114
115
|
property :id, as: 'id'
|
|
@@ -265,6 +265,11 @@ module Google
|
|
|
265
265
|
class Result
|
|
266
266
|
include Google::Apis::Core::Hashable
|
|
267
267
|
|
|
268
|
+
# The captcha verify result
|
|
269
|
+
# Corresponds to the JSON property `captchaResult`
|
|
270
|
+
# @return [String]
|
|
271
|
+
attr_accessor :captcha_result
|
|
272
|
+
|
|
268
273
|
# Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed
|
|
269
274
|
# rule instantiated and run by the server.
|
|
270
275
|
# Corresponds to the JSON property `formattedResults`
|
|
@@ -326,6 +331,7 @@ module Google
|
|
|
326
331
|
|
|
327
332
|
# Update properties of this object
|
|
328
333
|
def update!(**args)
|
|
334
|
+
@captcha_result = args[:captcha_result] if args.key?(:captcha_result)
|
|
329
335
|
@formatted_results = args[:formatted_results] if args.key?(:formatted_results)
|
|
330
336
|
@id = args[:id] if args.key?(:id)
|
|
331
337
|
@invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules)
|
|
@@ -174,6 +174,7 @@ module Google
|
|
|
174
174
|
class Result
|
|
175
175
|
# @private
|
|
176
176
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
177
|
+
property :captcha_result, as: 'captchaResult'
|
|
177
178
|
property :formatted_results, as: 'formattedResults', class: Google::Apis::PagespeedonlineV2::Result::FormattedResults, decorator: Google::Apis::PagespeedonlineV2::Result::FormattedResults::Representation
|
|
178
179
|
|
|
179
180
|
property :id, as: 'id'
|
|
@@ -833,7 +833,6 @@ module Google
|
|
|
833
833
|
end
|
|
834
834
|
|
|
835
835
|
# One of the person's interests.
|
|
836
|
-
# **DEPRECATED** (Message will not be returned.)
|
|
837
836
|
class Interest
|
|
838
837
|
include Google::Apis::Core::Hashable
|
|
839
838
|
|
|
@@ -1389,7 +1388,6 @@ module Google
|
|
|
1389
1388
|
attr_accessor :im_clients
|
|
1390
1389
|
|
|
1391
1390
|
# The person's interests.
|
|
1392
|
-
# **DEPRECATED** (No values will be returned.)
|
|
1393
1391
|
# Corresponds to the JSON property `interests`
|
|
1394
1392
|
# @return [Array<Google::Apis::PeopleV1::Interest>]
|
|
1395
1393
|
attr_accessor :interests
|
|
@@ -375,6 +375,7 @@ module Google
|
|
|
375
375
|
# * events
|
|
376
376
|
# * genders
|
|
377
377
|
# * imClients
|
|
378
|
+
# * interests
|
|
378
379
|
# * locales
|
|
379
380
|
# * memberships
|
|
380
381
|
# * metadata
|
|
@@ -442,6 +443,7 @@ module Google
|
|
|
442
443
|
# * events
|
|
443
444
|
# * genders
|
|
444
445
|
# * imClients
|
|
446
|
+
# * interests
|
|
445
447
|
# * locales
|
|
446
448
|
# * memberships
|
|
447
449
|
# * metadata
|
|
@@ -527,6 +529,7 @@ module Google
|
|
|
527
529
|
# * events
|
|
528
530
|
# * genders
|
|
529
531
|
# * imClients
|
|
532
|
+
# * interests
|
|
530
533
|
# * locales
|
|
531
534
|
# * names
|
|
532
535
|
# * nicknames
|
|
@@ -591,6 +594,7 @@ module Google
|
|
|
591
594
|
# * events
|
|
592
595
|
# * genders
|
|
593
596
|
# * imClients
|
|
597
|
+
# * interests
|
|
594
598
|
# * locales
|
|
595
599
|
# * memberships
|
|
596
600
|
# * metadata
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/pubsub/docs
|
|
26
26
|
module PubsubV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20180103'
|
|
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'
|
|
@@ -336,7 +336,7 @@ module Google
|
|
|
336
336
|
# ]
|
|
337
337
|
# `
|
|
338
338
|
# For a description of IAM and its features, see the
|
|
339
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
|
339
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
|
340
340
|
class Policy
|
|
341
341
|
include Google::Apis::Core::Hashable
|
|
342
342
|
|
|
@@ -360,7 +360,7 @@ module Google
|
|
|
360
360
|
# @return [String]
|
|
361
361
|
attr_accessor :etag
|
|
362
362
|
|
|
363
|
-
#
|
|
363
|
+
# Deprecated.
|
|
364
364
|
# Corresponds to the JSON property `version`
|
|
365
365
|
# @return [Fixnum]
|
|
366
366
|
attr_accessor :version
|
|
@@ -661,7 +661,7 @@ module Google
|
|
|
661
661
|
# ]
|
|
662
662
|
# `
|
|
663
663
|
# For a description of IAM and its features, see the
|
|
664
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
|
664
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
|
665
665
|
# Corresponds to the JSON property `policy`
|
|
666
666
|
# @return [Google::Apis::PubsubV1::Policy]
|
|
667
667
|
attr_accessor :policy
|
|
@@ -130,6 +130,37 @@ module Google
|
|
|
130
130
|
execute_or_queue_command(command, &block)
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
+
# Gets the configuration details of a snapshot.
|
|
134
|
+
# @param [String] snapshot
|
|
135
|
+
# The name of the snapshot to get.
|
|
136
|
+
# Format is `projects/`project`/snapshots/`snap``.
|
|
137
|
+
# @param [String] fields
|
|
138
|
+
# Selector specifying which fields to include in a partial response.
|
|
139
|
+
# @param [String] quota_user
|
|
140
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
141
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
142
|
+
# @param [Google::Apis::RequestOptions] options
|
|
143
|
+
# Request-specific options
|
|
144
|
+
#
|
|
145
|
+
# @yield [result, err] Result & error if block supplied
|
|
146
|
+
# @yieldparam result [Google::Apis::PubsubV1::Snapshot] parsed result object
|
|
147
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
148
|
+
#
|
|
149
|
+
# @return [Google::Apis::PubsubV1::Snapshot]
|
|
150
|
+
#
|
|
151
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
152
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
153
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
154
|
+
def get_project_snapshot(snapshot, fields: nil, quota_user: nil, options: nil, &block)
|
|
155
|
+
command = make_simple_command(:get, 'v1/{+snapshot}', options)
|
|
156
|
+
command.response_representation = Google::Apis::PubsubV1::Snapshot::Representation
|
|
157
|
+
command.response_class = Google::Apis::PubsubV1::Snapshot
|
|
158
|
+
command.params['snapshot'] = snapshot unless snapshot.nil?
|
|
159
|
+
command.query['fields'] = fields unless fields.nil?
|
|
160
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
161
|
+
execute_or_queue_command(command, &block)
|
|
162
|
+
end
|
|
163
|
+
|
|
133
164
|
# Gets the access control policy for a resource.
|
|
134
165
|
# Returns an empty policy if the resource exists and does not have a policy
|
|
135
166
|
# set.
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/pubsub/docs
|
|
26
26
|
module PubsubV1beta2
|
|
27
27
|
VERSION = 'V1beta2'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20180103'
|
|
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'
|
|
@@ -261,7 +261,7 @@ module Google
|
|
|
261
261
|
# ]
|
|
262
262
|
# `
|
|
263
263
|
# For a description of IAM and its features, see the
|
|
264
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
|
264
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
|
265
265
|
class Policy
|
|
266
266
|
include Google::Apis::Core::Hashable
|
|
267
267
|
|
|
@@ -285,7 +285,7 @@ module Google
|
|
|
285
285
|
# @return [String]
|
|
286
286
|
attr_accessor :etag
|
|
287
287
|
|
|
288
|
-
#
|
|
288
|
+
# Deprecated.
|
|
289
289
|
# Corresponds to the JSON property `version`
|
|
290
290
|
# @return [Fixnum]
|
|
291
291
|
attr_accessor :version
|
|
@@ -537,7 +537,7 @@ module Google
|
|
|
537
537
|
# ]
|
|
538
538
|
# `
|
|
539
539
|
# For a description of IAM and its features, see the
|
|
540
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
|
540
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
|
541
541
|
# Corresponds to the JSON property `policy`
|
|
542
542
|
# @return [Google::Apis::PubsubV1beta2::Policy]
|
|
543
543
|
attr_accessor :policy
|
|
@@ -28,7 +28,7 @@ module Google
|
|
|
28
28
|
# @see https://cloud.google.com/deployment-manager/runtime-configurator/
|
|
29
29
|
module RuntimeconfigV1beta1
|
|
30
30
|
VERSION = 'V1beta1'
|
|
31
|
-
REVISION = '
|
|
31
|
+
REVISION = '20180108'
|
|
32
32
|
|
|
33
33
|
# View and manage your data across Google Cloud Platform services
|
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -361,7 +361,7 @@ module Google
|
|
|
361
361
|
# ]
|
|
362
362
|
# `
|
|
363
363
|
# For a description of IAM and its features, see the
|
|
364
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
|
364
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
|
365
365
|
class Policy
|
|
366
366
|
include Google::Apis::Core::Hashable
|
|
367
367
|
|
|
@@ -385,7 +385,7 @@ module Google
|
|
|
385
385
|
# @return [String]
|
|
386
386
|
attr_accessor :etag
|
|
387
387
|
|
|
388
|
-
#
|
|
388
|
+
# Deprecated.
|
|
389
389
|
# Corresponds to the JSON property `version`
|
|
390
390
|
# @return [Fixnum]
|
|
391
391
|
attr_accessor :version
|
|
@@ -466,7 +466,7 @@ module Google
|
|
|
466
466
|
# ]
|
|
467
467
|
# `
|
|
468
468
|
# For a description of IAM and its features, see the
|
|
469
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
|
469
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
|
470
470
|
# Corresponds to the JSON property `policy`
|
|
471
471
|
# @return [Google::Apis::RuntimeconfigV1beta1::Policy]
|
|
472
472
|
attr_accessor :policy
|
|
@@ -22,10 +22,10 @@ module Google
|
|
|
22
22
|
#
|
|
23
23
|
# An API for managing and executing Google Apps Script projects.
|
|
24
24
|
#
|
|
25
|
-
# @see https://developers.google.com/apps-script/
|
|
25
|
+
# @see https://developers.google.com/apps-script/api
|
|
26
26
|
module ScriptV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20180110'
|
|
29
29
|
|
|
30
30
|
# Read, send, delete, and manage your email
|
|
31
31
|
AUTH_SCOPE = 'https://mail.google.com/'
|
|
@@ -22,6 +22,203 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module ScriptV1
|
|
24
24
|
|
|
25
|
+
# The Content resource.
|
|
26
|
+
class Content
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# The list of script project files.
|
|
30
|
+
# One of the files is a script manifest; it must be named "appsscript",
|
|
31
|
+
# must have type of JSON, and include the manifest configurations for the
|
|
32
|
+
# project.
|
|
33
|
+
# Corresponds to the JSON property `files`
|
|
34
|
+
# @return [Array<Google::Apis::ScriptV1::File>]
|
|
35
|
+
attr_accessor :files
|
|
36
|
+
|
|
37
|
+
# The script project's Drive ID.
|
|
38
|
+
# Corresponds to the JSON property `scriptId`
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :script_id
|
|
41
|
+
|
|
42
|
+
def initialize(**args)
|
|
43
|
+
update!(**args)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Update properties of this object
|
|
47
|
+
def update!(**args)
|
|
48
|
+
@files = args[:files] if args.key?(:files)
|
|
49
|
+
@script_id = args[:script_id] if args.key?(:script_id)
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Request to create a script project.
|
|
54
|
+
class CreateProjectRequest
|
|
55
|
+
include Google::Apis::Core::Hashable
|
|
56
|
+
|
|
57
|
+
# The Drive ID of a parent file that the created script project is bound to.
|
|
58
|
+
# This is usually the ID of a Google Doc, Google Sheet, Google Form, or
|
|
59
|
+
# Google Slides file. If not set, a standalone script project is created.
|
|
60
|
+
# Corresponds to the JSON property `parentId`
|
|
61
|
+
# @return [String]
|
|
62
|
+
attr_accessor :parent_id
|
|
63
|
+
|
|
64
|
+
# The title for the project.
|
|
65
|
+
# Corresponds to the JSON property `title`
|
|
66
|
+
# @return [String]
|
|
67
|
+
attr_accessor :title
|
|
68
|
+
|
|
69
|
+
def initialize(**args)
|
|
70
|
+
update!(**args)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Update properties of this object
|
|
74
|
+
def update!(**args)
|
|
75
|
+
@parent_id = args[:parent_id] if args.key?(:parent_id)
|
|
76
|
+
@title = args[:title] if args.key?(:title)
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Representation of a single script deployment.
|
|
81
|
+
class Deployment
|
|
82
|
+
include Google::Apis::Core::Hashable
|
|
83
|
+
|
|
84
|
+
# Metadata the defines how a deployment is configured.
|
|
85
|
+
# Corresponds to the JSON property `deploymentConfig`
|
|
86
|
+
# @return [Google::Apis::ScriptV1::DeploymentConfig]
|
|
87
|
+
attr_accessor :deployment_config
|
|
88
|
+
|
|
89
|
+
# The deployment ID for this deployment.
|
|
90
|
+
# Corresponds to the JSON property `deploymentId`
|
|
91
|
+
# @return [String]
|
|
92
|
+
attr_accessor :deployment_id
|
|
93
|
+
|
|
94
|
+
# The deployment's entry points.
|
|
95
|
+
# Corresponds to the JSON property `entryPoints`
|
|
96
|
+
# @return [Array<Google::Apis::ScriptV1::EntryPoint>]
|
|
97
|
+
attr_accessor :entry_points
|
|
98
|
+
|
|
99
|
+
# A set of functions. No duplicates are permitted.
|
|
100
|
+
# Corresponds to the JSON property `functionSet`
|
|
101
|
+
# @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeFunctionSet]
|
|
102
|
+
attr_accessor :function_set
|
|
103
|
+
|
|
104
|
+
# A set of scopes. No duplicates are permitted.
|
|
105
|
+
# Corresponds to the JSON property `scopeSet`
|
|
106
|
+
# @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeScopeSet]
|
|
107
|
+
attr_accessor :scope_set
|
|
108
|
+
|
|
109
|
+
# Last modified date time stamp.
|
|
110
|
+
# Corresponds to the JSON property `updateTime`
|
|
111
|
+
# @return [String]
|
|
112
|
+
attr_accessor :update_time
|
|
113
|
+
|
|
114
|
+
def initialize(**args)
|
|
115
|
+
update!(**args)
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Update properties of this object
|
|
119
|
+
def update!(**args)
|
|
120
|
+
@deployment_config = args[:deployment_config] if args.key?(:deployment_config)
|
|
121
|
+
@deployment_id = args[:deployment_id] if args.key?(:deployment_id)
|
|
122
|
+
@entry_points = args[:entry_points] if args.key?(:entry_points)
|
|
123
|
+
@function_set = args[:function_set] if args.key?(:function_set)
|
|
124
|
+
@scope_set = args[:scope_set] if args.key?(:scope_set)
|
|
125
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Metadata the defines how a deployment is configured.
|
|
130
|
+
class DeploymentConfig
|
|
131
|
+
include Google::Apis::Core::Hashable
|
|
132
|
+
|
|
133
|
+
# The description for this deployment.
|
|
134
|
+
# Corresponds to the JSON property `description`
|
|
135
|
+
# @return [String]
|
|
136
|
+
attr_accessor :description
|
|
137
|
+
|
|
138
|
+
# The manifest file name for this deployment.
|
|
139
|
+
# Corresponds to the JSON property `manifestFileName`
|
|
140
|
+
# @return [String]
|
|
141
|
+
attr_accessor :manifest_file_name
|
|
142
|
+
|
|
143
|
+
# The script project's Drive ID.
|
|
144
|
+
# Corresponds to the JSON property `scriptId`
|
|
145
|
+
# @return [String]
|
|
146
|
+
attr_accessor :script_id
|
|
147
|
+
|
|
148
|
+
# The version number on which this deployment is based.
|
|
149
|
+
# Corresponds to the JSON property `versionNumber`
|
|
150
|
+
# @return [Fixnum]
|
|
151
|
+
attr_accessor :version_number
|
|
152
|
+
|
|
153
|
+
def initialize(**args)
|
|
154
|
+
update!(**args)
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Update properties of this object
|
|
158
|
+
def update!(**args)
|
|
159
|
+
@description = args[:description] if args.key?(:description)
|
|
160
|
+
@manifest_file_name = args[:manifest_file_name] if args.key?(:manifest_file_name)
|
|
161
|
+
@script_id = args[:script_id] if args.key?(:script_id)
|
|
162
|
+
@version_number = args[:version_number] if args.key?(:version_number)
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
|
167
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
|
168
|
+
# or the response type of an API method. For instance:
|
|
169
|
+
# service Foo `
|
|
170
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
171
|
+
# `
|
|
172
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
|
173
|
+
class Empty
|
|
174
|
+
include Google::Apis::Core::Hashable
|
|
175
|
+
|
|
176
|
+
def initialize(**args)
|
|
177
|
+
update!(**args)
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Update properties of this object
|
|
181
|
+
def update!(**args)
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# A configuration that defines how a deployment is accessed externally.
|
|
186
|
+
class EntryPoint
|
|
187
|
+
include Google::Apis::Core::Hashable
|
|
188
|
+
|
|
189
|
+
# An add-on entry point.
|
|
190
|
+
# Corresponds to the JSON property `addOn`
|
|
191
|
+
# @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeAddOnEntryPoint]
|
|
192
|
+
attr_accessor :add_on
|
|
193
|
+
|
|
194
|
+
# The type of the entry point.
|
|
195
|
+
# Corresponds to the JSON property `entryPointType`
|
|
196
|
+
# @return [String]
|
|
197
|
+
attr_accessor :entry_point_type
|
|
198
|
+
|
|
199
|
+
# An API executable entry point.
|
|
200
|
+
# Corresponds to the JSON property `executionApi`
|
|
201
|
+
# @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeExecutionApiEntryPoint]
|
|
202
|
+
attr_accessor :execution_api
|
|
203
|
+
|
|
204
|
+
# A web application entry point.
|
|
205
|
+
# Corresponds to the JSON property `webApp`
|
|
206
|
+
# @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeWebAppEntryPoint]
|
|
207
|
+
attr_accessor :web_app
|
|
208
|
+
|
|
209
|
+
def initialize(**args)
|
|
210
|
+
update!(**args)
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Update properties of this object
|
|
214
|
+
def update!(**args)
|
|
215
|
+
@add_on = args[:add_on] if args.key?(:add_on)
|
|
216
|
+
@entry_point_type = args[:entry_point_type] if args.key?(:entry_point_type)
|
|
217
|
+
@execution_api = args[:execution_api] if args.key?(:execution_api)
|
|
218
|
+
@web_app = args[:web_app] if args.key?(:web_app)
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
|
|
25
222
|
# An object that provides information about the nature of an error resulting
|
|
26
223
|
# from an attempted execution of a script function using the Apps Script API.
|
|
27
224
|
# If a run call
|
|
@@ -146,6 +343,558 @@ module Google
|
|
|
146
343
|
end
|
|
147
344
|
end
|
|
148
345
|
|
|
346
|
+
# An individual file within a script project.
|
|
347
|
+
# A file is a third-party source code created by one or more
|
|
348
|
+
# developers. It can be a server-side JS code, HTML, or a
|
|
349
|
+
# configuration file. Each script project can contain multiple files.
|
|
350
|
+
class File
|
|
351
|
+
include Google::Apis::Core::Hashable
|
|
352
|
+
|
|
353
|
+
# Creation date timestamp.
|
|
354
|
+
# This read-only field is only visible to users who have WRITER
|
|
355
|
+
# permission for the script project.
|
|
356
|
+
# Corresponds to the JSON property `createTime`
|
|
357
|
+
# @return [String]
|
|
358
|
+
attr_accessor :create_time
|
|
359
|
+
|
|
360
|
+
# A set of functions. No duplicates are permitted.
|
|
361
|
+
# Corresponds to the JSON property `functionSet`
|
|
362
|
+
# @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeFunctionSet]
|
|
363
|
+
attr_accessor :function_set
|
|
364
|
+
|
|
365
|
+
# A simple user profile resource.
|
|
366
|
+
# Corresponds to the JSON property `lastModifyUser`
|
|
367
|
+
# @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeUser]
|
|
368
|
+
attr_accessor :last_modify_user
|
|
369
|
+
|
|
370
|
+
# The name of the file. The file extension is not part of the file
|
|
371
|
+
# name, which can be identified from the type field.
|
|
372
|
+
# Corresponds to the JSON property `name`
|
|
373
|
+
# @return [String]
|
|
374
|
+
attr_accessor :name
|
|
375
|
+
|
|
376
|
+
# The file content.
|
|
377
|
+
# Corresponds to the JSON property `source`
|
|
378
|
+
# @return [String]
|
|
379
|
+
attr_accessor :source
|
|
380
|
+
|
|
381
|
+
# The type of the file.
|
|
382
|
+
# Corresponds to the JSON property `type`
|
|
383
|
+
# @return [String]
|
|
384
|
+
attr_accessor :type
|
|
385
|
+
|
|
386
|
+
# Last modified date timestamp.
|
|
387
|
+
# This read-only field is only visible to users who have WRITER
|
|
388
|
+
# permission for the script project.
|
|
389
|
+
# Corresponds to the JSON property `updateTime`
|
|
390
|
+
# @return [String]
|
|
391
|
+
attr_accessor :update_time
|
|
392
|
+
|
|
393
|
+
def initialize(**args)
|
|
394
|
+
update!(**args)
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
# Update properties of this object
|
|
398
|
+
def update!(**args)
|
|
399
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
400
|
+
@function_set = args[:function_set] if args.key?(:function_set)
|
|
401
|
+
@last_modify_user = args[:last_modify_user] if args.key?(:last_modify_user)
|
|
402
|
+
@name = args[:name] if args.key?(:name)
|
|
403
|
+
@source = args[:source] if args.key?(:source)
|
|
404
|
+
@type = args[:type] if args.key?(:type)
|
|
405
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
406
|
+
end
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# An add-on entry point.
|
|
410
|
+
class GoogleAppsScriptTypeAddOnEntryPoint
|
|
411
|
+
include Google::Apis::Core::Hashable
|
|
412
|
+
|
|
413
|
+
# The add-on's required list of supported container types.
|
|
414
|
+
# Corresponds to the JSON property `addOnType`
|
|
415
|
+
# @return [String]
|
|
416
|
+
attr_accessor :add_on_type
|
|
417
|
+
|
|
418
|
+
# The add-on's optional description.
|
|
419
|
+
# Corresponds to the JSON property `description`
|
|
420
|
+
# @return [String]
|
|
421
|
+
attr_accessor :description
|
|
422
|
+
|
|
423
|
+
# The add-on's optional help URL.
|
|
424
|
+
# Corresponds to the JSON property `helpUrl`
|
|
425
|
+
# @return [String]
|
|
426
|
+
attr_accessor :help_url
|
|
427
|
+
|
|
428
|
+
# The add-on's required post install tip URL.
|
|
429
|
+
# Corresponds to the JSON property `postInstallTipUrl`
|
|
430
|
+
# @return [String]
|
|
431
|
+
attr_accessor :post_install_tip_url
|
|
432
|
+
|
|
433
|
+
# The add-on's optional report issue URL.
|
|
434
|
+
# Corresponds to the JSON property `reportIssueUrl`
|
|
435
|
+
# @return [String]
|
|
436
|
+
attr_accessor :report_issue_url
|
|
437
|
+
|
|
438
|
+
# The add-on's required title.
|
|
439
|
+
# Corresponds to the JSON property `title`
|
|
440
|
+
# @return [String]
|
|
441
|
+
attr_accessor :title
|
|
442
|
+
|
|
443
|
+
def initialize(**args)
|
|
444
|
+
update!(**args)
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
# Update properties of this object
|
|
448
|
+
def update!(**args)
|
|
449
|
+
@add_on_type = args[:add_on_type] if args.key?(:add_on_type)
|
|
450
|
+
@description = args[:description] if args.key?(:description)
|
|
451
|
+
@help_url = args[:help_url] if args.key?(:help_url)
|
|
452
|
+
@post_install_tip_url = args[:post_install_tip_url] if args.key?(:post_install_tip_url)
|
|
453
|
+
@report_issue_url = args[:report_issue_url] if args.key?(:report_issue_url)
|
|
454
|
+
@title = args[:title] if args.key?(:title)
|
|
455
|
+
end
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
# API executable entry point configuration.
|
|
459
|
+
class GoogleAppsScriptTypeExecutionApiConfig
|
|
460
|
+
include Google::Apis::Core::Hashable
|
|
461
|
+
|
|
462
|
+
# Who has permission to run the API executable.
|
|
463
|
+
# Corresponds to the JSON property `access`
|
|
464
|
+
# @return [String]
|
|
465
|
+
attr_accessor :access
|
|
466
|
+
|
|
467
|
+
def initialize(**args)
|
|
468
|
+
update!(**args)
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
# Update properties of this object
|
|
472
|
+
def update!(**args)
|
|
473
|
+
@access = args[:access] if args.key?(:access)
|
|
474
|
+
end
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# An API executable entry point.
|
|
478
|
+
class GoogleAppsScriptTypeExecutionApiEntryPoint
|
|
479
|
+
include Google::Apis::Core::Hashable
|
|
480
|
+
|
|
481
|
+
# API executable entry point configuration.
|
|
482
|
+
# Corresponds to the JSON property `entryPointConfig`
|
|
483
|
+
# @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeExecutionApiConfig]
|
|
484
|
+
attr_accessor :entry_point_config
|
|
485
|
+
|
|
486
|
+
def initialize(**args)
|
|
487
|
+
update!(**args)
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
# Update properties of this object
|
|
491
|
+
def update!(**args)
|
|
492
|
+
@entry_point_config = args[:entry_point_config] if args.key?(:entry_point_config)
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
# Represents a function in a script project.
|
|
497
|
+
class GoogleAppsScriptTypeFunction
|
|
498
|
+
include Google::Apis::Core::Hashable
|
|
499
|
+
|
|
500
|
+
# The function name in the script project.
|
|
501
|
+
# Corresponds to the JSON property `name`
|
|
502
|
+
# @return [String]
|
|
503
|
+
attr_accessor :name
|
|
504
|
+
|
|
505
|
+
def initialize(**args)
|
|
506
|
+
update!(**args)
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
# Update properties of this object
|
|
510
|
+
def update!(**args)
|
|
511
|
+
@name = args[:name] if args.key?(:name)
|
|
512
|
+
end
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
# A set of functions. No duplicates are permitted.
|
|
516
|
+
class GoogleAppsScriptTypeFunctionSet
|
|
517
|
+
include Google::Apis::Core::Hashable
|
|
518
|
+
|
|
519
|
+
# A list of functions composing the set.
|
|
520
|
+
# Corresponds to the JSON property `values`
|
|
521
|
+
# @return [Array<Google::Apis::ScriptV1::GoogleAppsScriptTypeFunction>]
|
|
522
|
+
attr_accessor :values
|
|
523
|
+
|
|
524
|
+
def initialize(**args)
|
|
525
|
+
update!(**args)
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
# Update properties of this object
|
|
529
|
+
def update!(**args)
|
|
530
|
+
@values = args[:values] if args.key?(:values)
|
|
531
|
+
end
|
|
532
|
+
end
|
|
533
|
+
|
|
534
|
+
# Representation of a single script process execution that was started from
|
|
535
|
+
# the script editor, a trigger, an application, or using the Apps Script API.
|
|
536
|
+
# This is distinct from the `Operation`
|
|
537
|
+
# resource, which only represents exeuctions started via the Apps Script API.
|
|
538
|
+
class GoogleAppsScriptTypeProcess
|
|
539
|
+
include Google::Apis::Core::Hashable
|
|
540
|
+
|
|
541
|
+
# Duration the execution spent executing.
|
|
542
|
+
# Corresponds to the JSON property `duration`
|
|
543
|
+
# @return [String]
|
|
544
|
+
attr_accessor :duration
|
|
545
|
+
|
|
546
|
+
# User-facing name for the user executing the script.
|
|
547
|
+
# Corresponds to the JSON property `executingUser`
|
|
548
|
+
# @return [String]
|
|
549
|
+
attr_accessor :executing_user
|
|
550
|
+
|
|
551
|
+
# Name of the function the started the execution.
|
|
552
|
+
# Corresponds to the JSON property `functionName`
|
|
553
|
+
# @return [String]
|
|
554
|
+
attr_accessor :function_name
|
|
555
|
+
|
|
556
|
+
# The executions status.
|
|
557
|
+
# Corresponds to the JSON property `processStatus`
|
|
558
|
+
# @return [String]
|
|
559
|
+
attr_accessor :process_status
|
|
560
|
+
|
|
561
|
+
# The executions type.
|
|
562
|
+
# Corresponds to the JSON property `processType`
|
|
563
|
+
# @return [String]
|
|
564
|
+
attr_accessor :process_type
|
|
565
|
+
|
|
566
|
+
# Name of the script being executed.
|
|
567
|
+
# Corresponds to the JSON property `projectName`
|
|
568
|
+
# @return [String]
|
|
569
|
+
attr_accessor :project_name
|
|
570
|
+
|
|
571
|
+
# Time the execution started.
|
|
572
|
+
# Corresponds to the JSON property `startTime`
|
|
573
|
+
# @return [String]
|
|
574
|
+
attr_accessor :start_time
|
|
575
|
+
|
|
576
|
+
# The executing users access level to the script.
|
|
577
|
+
# Corresponds to the JSON property `userAccessLevel`
|
|
578
|
+
# @return [String]
|
|
579
|
+
attr_accessor :user_access_level
|
|
580
|
+
|
|
581
|
+
def initialize(**args)
|
|
582
|
+
update!(**args)
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
# Update properties of this object
|
|
586
|
+
def update!(**args)
|
|
587
|
+
@duration = args[:duration] if args.key?(:duration)
|
|
588
|
+
@executing_user = args[:executing_user] if args.key?(:executing_user)
|
|
589
|
+
@function_name = args[:function_name] if args.key?(:function_name)
|
|
590
|
+
@process_status = args[:process_status] if args.key?(:process_status)
|
|
591
|
+
@process_type = args[:process_type] if args.key?(:process_type)
|
|
592
|
+
@project_name = args[:project_name] if args.key?(:project_name)
|
|
593
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
|
594
|
+
@user_access_level = args[:user_access_level] if args.key?(:user_access_level)
|
|
595
|
+
end
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
# Represents an authorization scope.
|
|
599
|
+
class GoogleAppsScriptTypeScope
|
|
600
|
+
include Google::Apis::Core::Hashable
|
|
601
|
+
|
|
602
|
+
# Who authorized the scope.
|
|
603
|
+
# Corresponds to the JSON property `authorizer`
|
|
604
|
+
# @return [String]
|
|
605
|
+
attr_accessor :authorizer
|
|
606
|
+
|
|
607
|
+
# The scope's identifying string.
|
|
608
|
+
# Corresponds to the JSON property `name`
|
|
609
|
+
# @return [String]
|
|
610
|
+
attr_accessor :name
|
|
611
|
+
|
|
612
|
+
def initialize(**args)
|
|
613
|
+
update!(**args)
|
|
614
|
+
end
|
|
615
|
+
|
|
616
|
+
# Update properties of this object
|
|
617
|
+
def update!(**args)
|
|
618
|
+
@authorizer = args[:authorizer] if args.key?(:authorizer)
|
|
619
|
+
@name = args[:name] if args.key?(:name)
|
|
620
|
+
end
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
# A set of scopes. No duplicates are permitted.
|
|
624
|
+
class GoogleAppsScriptTypeScopeSet
|
|
625
|
+
include Google::Apis::Core::Hashable
|
|
626
|
+
|
|
627
|
+
# List of scope values in the set.
|
|
628
|
+
# Corresponds to the JSON property `values`
|
|
629
|
+
# @return [Array<Google::Apis::ScriptV1::GoogleAppsScriptTypeScope>]
|
|
630
|
+
attr_accessor :values
|
|
631
|
+
|
|
632
|
+
def initialize(**args)
|
|
633
|
+
update!(**args)
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
# Update properties of this object
|
|
637
|
+
def update!(**args)
|
|
638
|
+
@values = args[:values] if args.key?(:values)
|
|
639
|
+
end
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
# A simple user profile resource.
|
|
643
|
+
class GoogleAppsScriptTypeUser
|
|
644
|
+
include Google::Apis::Core::Hashable
|
|
645
|
+
|
|
646
|
+
# The user's domain.
|
|
647
|
+
# Corresponds to the JSON property `domain`
|
|
648
|
+
# @return [String]
|
|
649
|
+
attr_accessor :domain
|
|
650
|
+
|
|
651
|
+
# The user's identifying email address.
|
|
652
|
+
# Corresponds to the JSON property `email`
|
|
653
|
+
# @return [String]
|
|
654
|
+
attr_accessor :email
|
|
655
|
+
|
|
656
|
+
# The user's display name.
|
|
657
|
+
# Corresponds to the JSON property `name`
|
|
658
|
+
# @return [String]
|
|
659
|
+
attr_accessor :name
|
|
660
|
+
|
|
661
|
+
# The user's photo.
|
|
662
|
+
# Corresponds to the JSON property `photoUrl`
|
|
663
|
+
# @return [String]
|
|
664
|
+
attr_accessor :photo_url
|
|
665
|
+
|
|
666
|
+
def initialize(**args)
|
|
667
|
+
update!(**args)
|
|
668
|
+
end
|
|
669
|
+
|
|
670
|
+
# Update properties of this object
|
|
671
|
+
def update!(**args)
|
|
672
|
+
@domain = args[:domain] if args.key?(:domain)
|
|
673
|
+
@email = args[:email] if args.key?(:email)
|
|
674
|
+
@name = args[:name] if args.key?(:name)
|
|
675
|
+
@photo_url = args[:photo_url] if args.key?(:photo_url)
|
|
676
|
+
end
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
# Web app entry point configuration.
|
|
680
|
+
class GoogleAppsScriptTypeWebAppConfig
|
|
681
|
+
include Google::Apis::Core::Hashable
|
|
682
|
+
|
|
683
|
+
# Who has permission to run the web app.
|
|
684
|
+
# Corresponds to the JSON property `access`
|
|
685
|
+
# @return [String]
|
|
686
|
+
attr_accessor :access
|
|
687
|
+
|
|
688
|
+
# Who to execute the web app as.
|
|
689
|
+
# Corresponds to the JSON property `executeAs`
|
|
690
|
+
# @return [String]
|
|
691
|
+
attr_accessor :execute_as
|
|
692
|
+
|
|
693
|
+
def initialize(**args)
|
|
694
|
+
update!(**args)
|
|
695
|
+
end
|
|
696
|
+
|
|
697
|
+
# Update properties of this object
|
|
698
|
+
def update!(**args)
|
|
699
|
+
@access = args[:access] if args.key?(:access)
|
|
700
|
+
@execute_as = args[:execute_as] if args.key?(:execute_as)
|
|
701
|
+
end
|
|
702
|
+
end
|
|
703
|
+
|
|
704
|
+
# A web application entry point.
|
|
705
|
+
class GoogleAppsScriptTypeWebAppEntryPoint
|
|
706
|
+
include Google::Apis::Core::Hashable
|
|
707
|
+
|
|
708
|
+
# Web app entry point configuration.
|
|
709
|
+
# Corresponds to the JSON property `entryPointConfig`
|
|
710
|
+
# @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeWebAppConfig]
|
|
711
|
+
attr_accessor :entry_point_config
|
|
712
|
+
|
|
713
|
+
# The URL for the web application.
|
|
714
|
+
# Corresponds to the JSON property `url`
|
|
715
|
+
# @return [String]
|
|
716
|
+
attr_accessor :url
|
|
717
|
+
|
|
718
|
+
def initialize(**args)
|
|
719
|
+
update!(**args)
|
|
720
|
+
end
|
|
721
|
+
|
|
722
|
+
# Update properties of this object
|
|
723
|
+
def update!(**args)
|
|
724
|
+
@entry_point_config = args[:entry_point_config] if args.key?(:entry_point_config)
|
|
725
|
+
@url = args[:url] if args.key?(:url)
|
|
726
|
+
end
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
# Response with the list of deployments for the specified Apps Script project.
|
|
730
|
+
class ListDeploymentsResponse
|
|
731
|
+
include Google::Apis::Core::Hashable
|
|
732
|
+
|
|
733
|
+
# The list of deployments.
|
|
734
|
+
# Corresponds to the JSON property `deployments`
|
|
735
|
+
# @return [Array<Google::Apis::ScriptV1::Deployment>]
|
|
736
|
+
attr_accessor :deployments
|
|
737
|
+
|
|
738
|
+
# The token that can be used in the next call to get the next page of
|
|
739
|
+
# results.
|
|
740
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
741
|
+
# @return [String]
|
|
742
|
+
attr_accessor :next_page_token
|
|
743
|
+
|
|
744
|
+
def initialize(**args)
|
|
745
|
+
update!(**args)
|
|
746
|
+
end
|
|
747
|
+
|
|
748
|
+
# Update properties of this object
|
|
749
|
+
def update!(**args)
|
|
750
|
+
@deployments = args[:deployments] if args.key?(:deployments)
|
|
751
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
752
|
+
end
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
# Response with the list of
|
|
756
|
+
# Process resources.
|
|
757
|
+
class ListScriptProcessesResponse
|
|
758
|
+
include Google::Apis::Core::Hashable
|
|
759
|
+
|
|
760
|
+
# Token for the next page of results. If empty, there are no more pages
|
|
761
|
+
# remaining.
|
|
762
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
763
|
+
# @return [String]
|
|
764
|
+
attr_accessor :next_page_token
|
|
765
|
+
|
|
766
|
+
# List of processes matching request parameters.
|
|
767
|
+
# Corresponds to the JSON property `processes`
|
|
768
|
+
# @return [Array<Google::Apis::ScriptV1::GoogleAppsScriptTypeProcess>]
|
|
769
|
+
attr_accessor :processes
|
|
770
|
+
|
|
771
|
+
def initialize(**args)
|
|
772
|
+
update!(**args)
|
|
773
|
+
end
|
|
774
|
+
|
|
775
|
+
# Update properties of this object
|
|
776
|
+
def update!(**args)
|
|
777
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
778
|
+
@processes = args[:processes] if args.key?(:processes)
|
|
779
|
+
end
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
# Response with the list of
|
|
783
|
+
# Process resources.
|
|
784
|
+
class ListUserProcessesResponse
|
|
785
|
+
include Google::Apis::Core::Hashable
|
|
786
|
+
|
|
787
|
+
# Token for the next page of results. If empty, there are no more pages
|
|
788
|
+
# remaining.
|
|
789
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
790
|
+
# @return [String]
|
|
791
|
+
attr_accessor :next_page_token
|
|
792
|
+
|
|
793
|
+
# List of processes matching request parameters.
|
|
794
|
+
# Corresponds to the JSON property `processes`
|
|
795
|
+
# @return [Array<Google::Apis::ScriptV1::GoogleAppsScriptTypeProcess>]
|
|
796
|
+
attr_accessor :processes
|
|
797
|
+
|
|
798
|
+
def initialize(**args)
|
|
799
|
+
update!(**args)
|
|
800
|
+
end
|
|
801
|
+
|
|
802
|
+
# Update properties of this object
|
|
803
|
+
def update!(**args)
|
|
804
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
805
|
+
@processes = args[:processes] if args.key?(:processes)
|
|
806
|
+
end
|
|
807
|
+
end
|
|
808
|
+
|
|
809
|
+
# Response with the list of the versions for the specified script project.
|
|
810
|
+
class ListVersionsResponse
|
|
811
|
+
include Google::Apis::Core::Hashable
|
|
812
|
+
|
|
813
|
+
# The token use to fetch the next page of records. if not exist in the
|
|
814
|
+
# response, that means no more versions to list.
|
|
815
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
816
|
+
# @return [String]
|
|
817
|
+
attr_accessor :next_page_token
|
|
818
|
+
|
|
819
|
+
# The list of versions.
|
|
820
|
+
# Corresponds to the JSON property `versions`
|
|
821
|
+
# @return [Array<Google::Apis::ScriptV1::Version>]
|
|
822
|
+
attr_accessor :versions
|
|
823
|
+
|
|
824
|
+
def initialize(**args)
|
|
825
|
+
update!(**args)
|
|
826
|
+
end
|
|
827
|
+
|
|
828
|
+
# Update properties of this object
|
|
829
|
+
def update!(**args)
|
|
830
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
831
|
+
@versions = args[:versions] if args.key?(:versions)
|
|
832
|
+
end
|
|
833
|
+
end
|
|
834
|
+
|
|
835
|
+
# Resource containing usage stats for a given script, based on the supplied
|
|
836
|
+
# filter and mask present in the request.
|
|
837
|
+
class Metrics
|
|
838
|
+
include Google::Apis::Core::Hashable
|
|
839
|
+
|
|
840
|
+
# Number of active users.
|
|
841
|
+
# Corresponds to the JSON property `activeUsers`
|
|
842
|
+
# @return [Array<Google::Apis::ScriptV1::MetricsValue>]
|
|
843
|
+
attr_accessor :active_users
|
|
844
|
+
|
|
845
|
+
# Number of failed executions.
|
|
846
|
+
# Corresponds to the JSON property `failedExecutions`
|
|
847
|
+
# @return [Array<Google::Apis::ScriptV1::MetricsValue>]
|
|
848
|
+
attr_accessor :failed_executions
|
|
849
|
+
|
|
850
|
+
# Number of total executions.
|
|
851
|
+
# Corresponds to the JSON property `totalExecutions`
|
|
852
|
+
# @return [Array<Google::Apis::ScriptV1::MetricsValue>]
|
|
853
|
+
attr_accessor :total_executions
|
|
854
|
+
|
|
855
|
+
def initialize(**args)
|
|
856
|
+
update!(**args)
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
# Update properties of this object
|
|
860
|
+
def update!(**args)
|
|
861
|
+
@active_users = args[:active_users] if args.key?(:active_users)
|
|
862
|
+
@failed_executions = args[:failed_executions] if args.key?(:failed_executions)
|
|
863
|
+
@total_executions = args[:total_executions] if args.key?(:total_executions)
|
|
864
|
+
end
|
|
865
|
+
end
|
|
866
|
+
|
|
867
|
+
# Metrics value that holds number of executions counted.
|
|
868
|
+
class MetricsValue
|
|
869
|
+
include Google::Apis::Core::Hashable
|
|
870
|
+
|
|
871
|
+
# Required field indicating the end time of the interval.
|
|
872
|
+
# Corresponds to the JSON property `endTime`
|
|
873
|
+
# @return [String]
|
|
874
|
+
attr_accessor :end_time
|
|
875
|
+
|
|
876
|
+
# Required field indicating the start time of the interval.
|
|
877
|
+
# Corresponds to the JSON property `startTime`
|
|
878
|
+
# @return [String]
|
|
879
|
+
attr_accessor :start_time
|
|
880
|
+
|
|
881
|
+
# Indicates the number of executions counted.
|
|
882
|
+
# Corresponds to the JSON property `value`
|
|
883
|
+
# @return [Fixnum]
|
|
884
|
+
attr_accessor :value
|
|
885
|
+
|
|
886
|
+
def initialize(**args)
|
|
887
|
+
update!(**args)
|
|
888
|
+
end
|
|
889
|
+
|
|
890
|
+
# Update properties of this object
|
|
891
|
+
def update!(**args)
|
|
892
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
|
893
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
|
894
|
+
@value = args[:value] if args.key?(:value)
|
|
895
|
+
end
|
|
896
|
+
end
|
|
897
|
+
|
|
149
898
|
# A representation of a execution of an Apps Script function that is started
|
|
150
899
|
# using run. The execution response does not arrive until the function finishes
|
|
151
900
|
# executing. The maximum execution runtime is listed in the [Apps Script quotas
|
|
@@ -206,6 +955,63 @@ module Google
|
|
|
206
955
|
end
|
|
207
956
|
end
|
|
208
957
|
|
|
958
|
+
# The script project resource.
|
|
959
|
+
class Project
|
|
960
|
+
include Google::Apis::Core::Hashable
|
|
961
|
+
|
|
962
|
+
# When the script was created.
|
|
963
|
+
# Corresponds to the JSON property `createTime`
|
|
964
|
+
# @return [String]
|
|
965
|
+
attr_accessor :create_time
|
|
966
|
+
|
|
967
|
+
# A simple user profile resource.
|
|
968
|
+
# Corresponds to the JSON property `creator`
|
|
969
|
+
# @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeUser]
|
|
970
|
+
attr_accessor :creator
|
|
971
|
+
|
|
972
|
+
# A simple user profile resource.
|
|
973
|
+
# Corresponds to the JSON property `lastModifyUser`
|
|
974
|
+
# @return [Google::Apis::ScriptV1::GoogleAppsScriptTypeUser]
|
|
975
|
+
attr_accessor :last_modify_user
|
|
976
|
+
|
|
977
|
+
# The parent's Drive ID that the script will be attached to. This is usually
|
|
978
|
+
# the ID of a Google Document or Google Sheet. This filed is optional, and
|
|
979
|
+
# if not set, a stand-alone script will be created.
|
|
980
|
+
# Corresponds to the JSON property `parentId`
|
|
981
|
+
# @return [String]
|
|
982
|
+
attr_accessor :parent_id
|
|
983
|
+
|
|
984
|
+
# The script project's Drive ID.
|
|
985
|
+
# Corresponds to the JSON property `scriptId`
|
|
986
|
+
# @return [String]
|
|
987
|
+
attr_accessor :script_id
|
|
988
|
+
|
|
989
|
+
# The title for the project.
|
|
990
|
+
# Corresponds to the JSON property `title`
|
|
991
|
+
# @return [String]
|
|
992
|
+
attr_accessor :title
|
|
993
|
+
|
|
994
|
+
# When the script was last updated.
|
|
995
|
+
# Corresponds to the JSON property `updateTime`
|
|
996
|
+
# @return [String]
|
|
997
|
+
attr_accessor :update_time
|
|
998
|
+
|
|
999
|
+
def initialize(**args)
|
|
1000
|
+
update!(**args)
|
|
1001
|
+
end
|
|
1002
|
+
|
|
1003
|
+
# Update properties of this object
|
|
1004
|
+
def update!(**args)
|
|
1005
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
1006
|
+
@creator = args[:creator] if args.key?(:creator)
|
|
1007
|
+
@last_modify_user = args[:last_modify_user] if args.key?(:last_modify_user)
|
|
1008
|
+
@parent_id = args[:parent_id] if args.key?(:parent_id)
|
|
1009
|
+
@script_id = args[:script_id] if args.key?(:script_id)
|
|
1010
|
+
@title = args[:title] if args.key?(:title)
|
|
1011
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
1012
|
+
end
|
|
1013
|
+
end
|
|
1014
|
+
|
|
209
1015
|
# A stack trace through the script that shows where the execution failed.
|
|
210
1016
|
class ScriptStackTraceElement
|
|
211
1017
|
include Google::Apis::Core::Hashable
|
|
@@ -268,6 +1074,65 @@ module Google
|
|
|
268
1074
|
@message = args[:message] if args.key?(:message)
|
|
269
1075
|
end
|
|
270
1076
|
end
|
|
1077
|
+
|
|
1078
|
+
# Request with deployment information to update an existing deployment.
|
|
1079
|
+
class UpdateDeploymentRequest
|
|
1080
|
+
include Google::Apis::Core::Hashable
|
|
1081
|
+
|
|
1082
|
+
# Metadata the defines how a deployment is configured.
|
|
1083
|
+
# Corresponds to the JSON property `deploymentConfig`
|
|
1084
|
+
# @return [Google::Apis::ScriptV1::DeploymentConfig]
|
|
1085
|
+
attr_accessor :deployment_config
|
|
1086
|
+
|
|
1087
|
+
def initialize(**args)
|
|
1088
|
+
update!(**args)
|
|
1089
|
+
end
|
|
1090
|
+
|
|
1091
|
+
# Update properties of this object
|
|
1092
|
+
def update!(**args)
|
|
1093
|
+
@deployment_config = args[:deployment_config] if args.key?(:deployment_config)
|
|
1094
|
+
end
|
|
1095
|
+
end
|
|
1096
|
+
|
|
1097
|
+
# A resource representing a script project version. A version is a "snapshot"
|
|
1098
|
+
# of a script project and is similar to a read-only branched release. When
|
|
1099
|
+
# creating deployments, the version to use must be specified.
|
|
1100
|
+
class Version
|
|
1101
|
+
include Google::Apis::Core::Hashable
|
|
1102
|
+
|
|
1103
|
+
# When the version was created.
|
|
1104
|
+
# Corresponds to the JSON property `createTime`
|
|
1105
|
+
# @return [String]
|
|
1106
|
+
attr_accessor :create_time
|
|
1107
|
+
|
|
1108
|
+
# The description for this version.
|
|
1109
|
+
# Corresponds to the JSON property `description`
|
|
1110
|
+
# @return [String]
|
|
1111
|
+
attr_accessor :description
|
|
1112
|
+
|
|
1113
|
+
# The script project's Drive ID.
|
|
1114
|
+
# Corresponds to the JSON property `scriptId`
|
|
1115
|
+
# @return [String]
|
|
1116
|
+
attr_accessor :script_id
|
|
1117
|
+
|
|
1118
|
+
# The incremental ID that is created by Apps Script when a version is
|
|
1119
|
+
# created. This is system assigned number and is immutable once created.
|
|
1120
|
+
# Corresponds to the JSON property `versionNumber`
|
|
1121
|
+
# @return [Fixnum]
|
|
1122
|
+
attr_accessor :version_number
|
|
1123
|
+
|
|
1124
|
+
def initialize(**args)
|
|
1125
|
+
update!(**args)
|
|
1126
|
+
end
|
|
1127
|
+
|
|
1128
|
+
# Update properties of this object
|
|
1129
|
+
def update!(**args)
|
|
1130
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
1131
|
+
@description = args[:description] if args.key?(:description)
|
|
1132
|
+
@script_id = args[:script_id] if args.key?(:script_id)
|
|
1133
|
+
@version_number = args[:version_number] if args.key?(:version_number)
|
|
1134
|
+
end
|
|
1135
|
+
end
|
|
271
1136
|
end
|
|
272
1137
|
end
|
|
273
1138
|
end
|