google-api-client 0.24.0 → 0.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +47 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +41 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +10 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +18 -15
- data/generated/google/apis/cloudkms_v1.rb +3 -6
- data/generated/google/apis/cloudkms_v1/service.rb +2 -5
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +156 -144
- data/generated/google/apis/compute_alpha/representations.rb +66 -66
- data/generated/google/apis/compute_alpha/service.rb +7 -7
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +221 -10
- data/generated/google/apis/compute_beta/representations.rb +111 -2
- data/generated/google/apis/compute_beta/service.rb +39 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/service.rb +3 -3
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +56 -0
- data/generated/google/apis/container_v1/representations.rb +19 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +9 -6
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +76 -5
- data/generated/google/apis/content_v2/representations.rb +42 -0
- data/generated/google/apis/content_v2/service.rb +40 -0
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +70 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +42 -0
- data/generated/google/apis/content_v2sandbox/service.rb +40 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +7 -1
- data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +8 -2
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +23 -17
- data/generated/google/apis/dialogflow_v2/service.rb +9 -8
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +23 -17
- data/generated/google/apis/dialogflow_v2beta1/service.rb +9 -8
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +178 -21
- data/generated/google/apis/dlp_v2/representations.rb +68 -0
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/classes.rb +102 -0
- data/generated/google/apis/firestore_v1beta2/representations.rb +47 -0
- data/generated/google/apis/firestore_v1beta2/service.rb +144 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +8 -2
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/service.rb +18 -7
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/service.rb +18 -7
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/service.rb +21 -7
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/service.rb +2 -2
- data/generated/google/apis/indexing_v3.rb +4 -1
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +35 -35
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1.rb +38 -0
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +2910 -0
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +966 -0
- data/generated/google/apis/jobs_v3p1beta1/service.rb +692 -0
- data/generated/google/apis/kgsearch_v1.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/service.rb +9 -9
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/service.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +10 -3
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/service.rb +1 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +4 -3
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +2 -242
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -60
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +4 -4
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +3 -242
- data/generated/google/apis/serviceusage_v1/representations.rb +0 -60
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +4 -242
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +0 -60
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/service.rb +11 -10
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +11 -8
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +25 -21
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +26 -16
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -7
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -2
@@ -58,12 +58,6 @@ module Google
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class AuthorizationRule
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
-
|
64
|
-
include Google::Apis::Core::JsonObjectSupport
|
65
|
-
end
|
66
|
-
|
67
61
|
class Backend
|
68
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
63
|
|
@@ -292,18 +286,6 @@ module Google
|
|
292
286
|
include Google::Apis::Core::JsonObjectSupport
|
293
287
|
end
|
294
288
|
|
295
|
-
class MediaDownload
|
296
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
-
|
298
|
-
include Google::Apis::Core::JsonObjectSupport
|
299
|
-
end
|
300
|
-
|
301
|
-
class MediaUpload
|
302
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
|
-
|
304
|
-
include Google::Apis::Core::JsonObjectSupport
|
305
|
-
end
|
306
|
-
|
307
289
|
class MethodProp
|
308
290
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
291
|
|
@@ -513,14 +495,6 @@ module Google
|
|
513
495
|
end
|
514
496
|
end
|
515
497
|
|
516
|
-
class AuthorizationRule
|
517
|
-
# @private
|
518
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
519
|
-
property :permissions, as: 'permissions'
|
520
|
-
property :selector, as: 'selector'
|
521
|
-
end
|
522
|
-
end
|
523
|
-
|
524
498
|
class Backend
|
525
499
|
# @private
|
526
500
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -863,23 +837,15 @@ module Google
|
|
863
837
|
class Representation < Google::Apis::Core::JsonRepresentation
|
864
838
|
collection :additional_bindings, as: 'additionalBindings', class: Google::Apis::ServiceusageV1::HttpRule, decorator: Google::Apis::ServiceusageV1::HttpRule::Representation
|
865
839
|
|
866
|
-
collection :authorizations, as: 'authorizations', class: Google::Apis::ServiceusageV1::AuthorizationRule, decorator: Google::Apis::ServiceusageV1::AuthorizationRule::Representation
|
867
|
-
|
868
840
|
property :body, as: 'body'
|
869
841
|
property :custom, as: 'custom', class: Google::Apis::ServiceusageV1::CustomHttpPattern, decorator: Google::Apis::ServiceusageV1::CustomHttpPattern::Representation
|
870
842
|
|
871
843
|
property :delete, as: 'delete'
|
872
844
|
property :get, as: 'get'
|
873
|
-
property :media_download, as: 'mediaDownload', class: Google::Apis::ServiceusageV1::MediaDownload, decorator: Google::Apis::ServiceusageV1::MediaDownload::Representation
|
874
|
-
|
875
|
-
property :media_upload, as: 'mediaUpload', class: Google::Apis::ServiceusageV1::MediaUpload, decorator: Google::Apis::ServiceusageV1::MediaUpload::Representation
|
876
|
-
|
877
845
|
property :patch, as: 'patch'
|
878
846
|
property :post, as: 'post'
|
879
847
|
property :put, as: 'put'
|
880
848
|
property :response_body, as: 'responseBody'
|
881
|
-
property :rest_collection, as: 'restCollection'
|
882
|
-
property :rest_method_name, as: 'restMethodName'
|
883
849
|
property :selector, as: 'selector'
|
884
850
|
end
|
885
851
|
end
|
@@ -940,32 +906,6 @@ module Google
|
|
940
906
|
end
|
941
907
|
end
|
942
908
|
|
943
|
-
class MediaDownload
|
944
|
-
# @private
|
945
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
946
|
-
property :complete_notification, as: 'completeNotification'
|
947
|
-
property :download_service, as: 'downloadService'
|
948
|
-
property :dropzone, as: 'dropzone'
|
949
|
-
property :enabled, as: 'enabled'
|
950
|
-
property :max_direct_download_size, :numeric_string => true, as: 'maxDirectDownloadSize'
|
951
|
-
property :use_direct_download, as: 'useDirectDownload'
|
952
|
-
end
|
953
|
-
end
|
954
|
-
|
955
|
-
class MediaUpload
|
956
|
-
# @private
|
957
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
958
|
-
property :complete_notification, as: 'completeNotification'
|
959
|
-
property :dropzone, as: 'dropzone'
|
960
|
-
property :enabled, as: 'enabled'
|
961
|
-
property :max_size, :numeric_string => true, as: 'maxSize'
|
962
|
-
collection :mime_types, as: 'mimeTypes'
|
963
|
-
property :progress_notification, as: 'progressNotification'
|
964
|
-
property :start_notification, as: 'startNotification'
|
965
|
-
property :upload_service, as: 'uploadService'
|
966
|
-
end
|
967
|
-
end
|
968
|
-
|
969
909
|
class MethodProp
|
970
910
|
# @private
|
971
911
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/service-usage/
|
28
28
|
module ServiceusageV1beta1
|
29
29
|
VERSION = 'V1beta1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20180919'
|
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'
|
@@ -340,49 +340,6 @@ module Google
|
|
340
340
|
end
|
341
341
|
end
|
342
342
|
|
343
|
-
# Authorization rule for API services.
|
344
|
-
# It specifies the permission(s) required for an API element for the overall
|
345
|
-
# API request to succeed. It is typically used to mark request message fields
|
346
|
-
# that contain the name of the resource and indicates the permissions that
|
347
|
-
# will be checked on that resource.
|
348
|
-
# For example:
|
349
|
-
# package google.storage.v1;
|
350
|
-
# message CopyObjectRequest `
|
351
|
-
# string source = 1 [
|
352
|
-
# (google.api.authz).permissions = "storage.objects.get"];
|
353
|
-
# string destination = 2 [
|
354
|
-
# (google.api.authz).permissions =
|
355
|
-
# "storage.objects.create,storage.objects.update"];
|
356
|
-
# `
|
357
|
-
class AuthorizationRule
|
358
|
-
include Google::Apis::Core::Hashable
|
359
|
-
|
360
|
-
# The required permissions. The acceptable values vary depend on the
|
361
|
-
# authorization system used. For Google APIs, it should be a comma-separated
|
362
|
-
# Google IAM permission values. When multiple permissions are listed, the
|
363
|
-
# semantics is not defined by the system. Additional documentation must
|
364
|
-
# be provided manually.
|
365
|
-
# Corresponds to the JSON property `permissions`
|
366
|
-
# @return [String]
|
367
|
-
attr_accessor :permissions
|
368
|
-
|
369
|
-
# Selects the API elements to which this rule applies.
|
370
|
-
# Refer to selector for syntax details.
|
371
|
-
# Corresponds to the JSON property `selector`
|
372
|
-
# @return [String]
|
373
|
-
attr_accessor :selector
|
374
|
-
|
375
|
-
def initialize(**args)
|
376
|
-
update!(**args)
|
377
|
-
end
|
378
|
-
|
379
|
-
# Update properties of this object
|
380
|
-
def update!(**args)
|
381
|
-
@permissions = args[:permissions] if args.key?(:permissions)
|
382
|
-
@selector = args[:selector] if args.key?(:selector)
|
383
|
-
end
|
384
|
-
end
|
385
|
-
|
386
343
|
# `Backend` defines the backend configuration for a service.
|
387
344
|
class Backend
|
388
345
|
include Google::Apis::Core::Hashable
|
@@ -1604,6 +1561,7 @@ module Google
|
|
1604
1561
|
# quota checks at runtime.
|
1605
1562
|
# An example quota configuration in yaml format:
|
1606
1563
|
# quota:
|
1564
|
+
# limits:
|
1607
1565
|
# - name: apiWriteQpsPerProject
|
1608
1566
|
# metric: library.googleapis.com/write_calls
|
1609
1567
|
# unit: "1/min/`project`" # rate limit for consumer projects
|
@@ -1882,6 +1840,7 @@ module Google
|
|
1882
1840
|
# quota checks at runtime.
|
1883
1841
|
# An example quota configuration in yaml format:
|
1884
1842
|
# quota:
|
1843
|
+
# limits:
|
1885
1844
|
# - name: apiWriteQpsPerProject
|
1886
1845
|
# metric: library.googleapis.com/write_calls
|
1887
1846
|
# unit: "1/min/`project`" # rate limit for consumer projects
|
@@ -2205,14 +2164,6 @@ module Google
|
|
2205
2164
|
# @return [Array<Google::Apis::ServiceusageV1beta1::HttpRule>]
|
2206
2165
|
attr_accessor :additional_bindings
|
2207
2166
|
|
2208
|
-
# Specifies the permission(s) required for an API element for the overall
|
2209
|
-
# API request to succeed. It is typically used to mark request message fields
|
2210
|
-
# that contain the name of the resource and indicates the permissions that
|
2211
|
-
# will be checked on that resource.
|
2212
|
-
# Corresponds to the JSON property `authorizations`
|
2213
|
-
# @return [Array<Google::Apis::ServiceusageV1beta1::AuthorizationRule>]
|
2214
|
-
attr_accessor :authorizations
|
2215
|
-
|
2216
2167
|
# The name of the request field whose value is mapped to the HTTP request
|
2217
2168
|
# body, or `*` for mapping all request fields not captured by the path
|
2218
2169
|
# pattern to the HTTP body, or omitted for not having any HTTP request body.
|
@@ -2238,22 +2189,6 @@ module Google
|
|
2238
2189
|
# @return [String]
|
2239
2190
|
attr_accessor :get
|
2240
2191
|
|
2241
|
-
# Defines the Media configuration for a service in case of a download.
|
2242
|
-
# Use this only for Scotty Requests. Do not use this for media support using
|
2243
|
-
# Bytestream, add instead [][google.bytestream.RestByteStream] as an API to
|
2244
|
-
# your configuration for Bytestream methods.
|
2245
|
-
# Corresponds to the JSON property `mediaDownload`
|
2246
|
-
# @return [Google::Apis::ServiceusageV1beta1::MediaDownload]
|
2247
|
-
attr_accessor :media_download
|
2248
|
-
|
2249
|
-
# Defines the Media configuration for a service in case of an upload.
|
2250
|
-
# Use this only for Scotty Requests. Do not use this for media support using
|
2251
|
-
# Bytestream, add instead [][google.bytestream.RestByteStream] as an API to
|
2252
|
-
# your configuration for Bytestream methods.
|
2253
|
-
# Corresponds to the JSON property `mediaUpload`
|
2254
|
-
# @return [Google::Apis::ServiceusageV1beta1::MediaUpload]
|
2255
|
-
attr_accessor :media_upload
|
2256
|
-
|
2257
2192
|
# Maps to HTTP PATCH. Used for updating a resource.
|
2258
2193
|
# Corresponds to the JSON property `patch`
|
2259
2194
|
# @return [String]
|
@@ -2278,44 +2213,6 @@ module Google
|
|
2278
2213
|
# @return [String]
|
2279
2214
|
attr_accessor :response_body
|
2280
2215
|
|
2281
|
-
# DO NOT USE. This is an experimental field.
|
2282
|
-
# Optional. The REST collection name is by default derived from the URL
|
2283
|
-
# pattern. If specified, this field overrides the default collection name.
|
2284
|
-
# Example:
|
2285
|
-
# rpc AddressesAggregatedList(AddressesAggregatedListRequest)
|
2286
|
-
# returns (AddressesAggregatedListResponse) `
|
2287
|
-
# option (google.api.http) = `
|
2288
|
-
# get: "/v1/projects/`project_id`/aggregated/addresses"
|
2289
|
-
# rest_collection: "projects.addresses"
|
2290
|
-
# `;
|
2291
|
-
# `
|
2292
|
-
# This method has the automatically derived collection name
|
2293
|
-
# "projects.aggregated". Because, semantically, this rpc is actually an
|
2294
|
-
# operation on the "projects.addresses" collection, the `rest_collection`
|
2295
|
-
# field is configured to override the derived collection name.
|
2296
|
-
# Corresponds to the JSON property `restCollection`
|
2297
|
-
# @return [String]
|
2298
|
-
attr_accessor :rest_collection
|
2299
|
-
|
2300
|
-
# DO NOT USE. This is an experimental field.
|
2301
|
-
# Optional. The rest method name is by default derived from the URL
|
2302
|
-
# pattern. If specified, this field overrides the default method name.
|
2303
|
-
# Example:
|
2304
|
-
# rpc CreateResource(CreateResourceRequest)
|
2305
|
-
# returns (CreateResourceResponse) `
|
2306
|
-
# option (google.api.http) = `
|
2307
|
-
# post: "/v1/resources",
|
2308
|
-
# body: "resource",
|
2309
|
-
# rest_method_name: "insert"
|
2310
|
-
# `;
|
2311
|
-
# `
|
2312
|
-
# This method has the automatically derived rest method name
|
2313
|
-
# "create", but for backwards compatibility with apiary, it is specified as
|
2314
|
-
# insert.
|
2315
|
-
# Corresponds to the JSON property `restMethodName`
|
2316
|
-
# @return [String]
|
2317
|
-
attr_accessor :rest_method_name
|
2318
|
-
|
2319
2216
|
# Selects a method to which this rule applies.
|
2320
2217
|
# Refer to selector for syntax details.
|
2321
2218
|
# Corresponds to the JSON property `selector`
|
@@ -2329,19 +2226,14 @@ module Google
|
|
2329
2226
|
# Update properties of this object
|
2330
2227
|
def update!(**args)
|
2331
2228
|
@additional_bindings = args[:additional_bindings] if args.key?(:additional_bindings)
|
2332
|
-
@authorizations = args[:authorizations] if args.key?(:authorizations)
|
2333
2229
|
@body = args[:body] if args.key?(:body)
|
2334
2230
|
@custom = args[:custom] if args.key?(:custom)
|
2335
2231
|
@delete = args[:delete] if args.key?(:delete)
|
2336
2232
|
@get = args[:get] if args.key?(:get)
|
2337
|
-
@media_download = args[:media_download] if args.key?(:media_download)
|
2338
|
-
@media_upload = args[:media_upload] if args.key?(:media_upload)
|
2339
2233
|
@patch = args[:patch] if args.key?(:patch)
|
2340
2234
|
@post = args[:post] if args.key?(:post)
|
2341
2235
|
@put = args[:put] if args.key?(:put)
|
2342
2236
|
@response_body = args[:response_body] if args.key?(:response_body)
|
2343
|
-
@rest_collection = args[:rest_collection] if args.key?(:rest_collection)
|
2344
|
-
@rest_method_name = args[:rest_method_name] if args.key?(:rest_method_name)
|
2345
2237
|
@selector = args[:selector] if args.key?(:selector)
|
2346
2238
|
end
|
2347
2239
|
end
|
@@ -2565,138 +2457,6 @@ module Google
|
|
2565
2457
|
end
|
2566
2458
|
end
|
2567
2459
|
|
2568
|
-
# Defines the Media configuration for a service in case of a download.
|
2569
|
-
# Use this only for Scotty Requests. Do not use this for media support using
|
2570
|
-
# Bytestream, add instead [][google.bytestream.RestByteStream] as an API to
|
2571
|
-
# your configuration for Bytestream methods.
|
2572
|
-
class MediaDownload
|
2573
|
-
include Google::Apis::Core::Hashable
|
2574
|
-
|
2575
|
-
# A boolean that determines whether a notification for the completion of a
|
2576
|
-
# download should be sent to the backend.
|
2577
|
-
# Corresponds to the JSON property `completeNotification`
|
2578
|
-
# @return [Boolean]
|
2579
|
-
attr_accessor :complete_notification
|
2580
|
-
alias_method :complete_notification?, :complete_notification
|
2581
|
-
|
2582
|
-
# DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED.
|
2583
|
-
# Specify name of the download service if one is used for download.
|
2584
|
-
# Corresponds to the JSON property `downloadService`
|
2585
|
-
# @return [String]
|
2586
|
-
attr_accessor :download_service
|
2587
|
-
|
2588
|
-
# Name of the Scotty dropzone to use for the current API.
|
2589
|
-
# Corresponds to the JSON property `dropzone`
|
2590
|
-
# @return [String]
|
2591
|
-
attr_accessor :dropzone
|
2592
|
-
|
2593
|
-
# Whether download is enabled.
|
2594
|
-
# Corresponds to the JSON property `enabled`
|
2595
|
-
# @return [Boolean]
|
2596
|
-
attr_accessor :enabled
|
2597
|
-
alias_method :enabled?, :enabled
|
2598
|
-
|
2599
|
-
# Optional maximum acceptable size for direct download.
|
2600
|
-
# The size is specified in bytes.
|
2601
|
-
# Corresponds to the JSON property `maxDirectDownloadSize`
|
2602
|
-
# @return [Fixnum]
|
2603
|
-
attr_accessor :max_direct_download_size
|
2604
|
-
|
2605
|
-
# A boolean that determines if direct download from ESF should be used for
|
2606
|
-
# download of this media.
|
2607
|
-
# Corresponds to the JSON property `useDirectDownload`
|
2608
|
-
# @return [Boolean]
|
2609
|
-
attr_accessor :use_direct_download
|
2610
|
-
alias_method :use_direct_download?, :use_direct_download
|
2611
|
-
|
2612
|
-
def initialize(**args)
|
2613
|
-
update!(**args)
|
2614
|
-
end
|
2615
|
-
|
2616
|
-
# Update properties of this object
|
2617
|
-
def update!(**args)
|
2618
|
-
@complete_notification = args[:complete_notification] if args.key?(:complete_notification)
|
2619
|
-
@download_service = args[:download_service] if args.key?(:download_service)
|
2620
|
-
@dropzone = args[:dropzone] if args.key?(:dropzone)
|
2621
|
-
@enabled = args[:enabled] if args.key?(:enabled)
|
2622
|
-
@max_direct_download_size = args[:max_direct_download_size] if args.key?(:max_direct_download_size)
|
2623
|
-
@use_direct_download = args[:use_direct_download] if args.key?(:use_direct_download)
|
2624
|
-
end
|
2625
|
-
end
|
2626
|
-
|
2627
|
-
# Defines the Media configuration for a service in case of an upload.
|
2628
|
-
# Use this only for Scotty Requests. Do not use this for media support using
|
2629
|
-
# Bytestream, add instead [][google.bytestream.RestByteStream] as an API to
|
2630
|
-
# your configuration for Bytestream methods.
|
2631
|
-
class MediaUpload
|
2632
|
-
include Google::Apis::Core::Hashable
|
2633
|
-
|
2634
|
-
# A boolean that determines whether a notification for the completion of an
|
2635
|
-
# upload should be sent to the backend. These notifications will not be seen
|
2636
|
-
# by the client and will not consume quota.
|
2637
|
-
# Corresponds to the JSON property `completeNotification`
|
2638
|
-
# @return [Boolean]
|
2639
|
-
attr_accessor :complete_notification
|
2640
|
-
alias_method :complete_notification?, :complete_notification
|
2641
|
-
|
2642
|
-
# Name of the Scotty dropzone to use for the current API.
|
2643
|
-
# Corresponds to the JSON property `dropzone`
|
2644
|
-
# @return [String]
|
2645
|
-
attr_accessor :dropzone
|
2646
|
-
|
2647
|
-
# Whether upload is enabled.
|
2648
|
-
# Corresponds to the JSON property `enabled`
|
2649
|
-
# @return [Boolean]
|
2650
|
-
attr_accessor :enabled
|
2651
|
-
alias_method :enabled?, :enabled
|
2652
|
-
|
2653
|
-
# Optional maximum acceptable size for an upload.
|
2654
|
-
# The size is specified in bytes.
|
2655
|
-
# Corresponds to the JSON property `maxSize`
|
2656
|
-
# @return [Fixnum]
|
2657
|
-
attr_accessor :max_size
|
2658
|
-
|
2659
|
-
# An array of mimetype patterns. Esf will only accept uploads that match one
|
2660
|
-
# of the given patterns.
|
2661
|
-
# Corresponds to the JSON property `mimeTypes`
|
2662
|
-
# @return [Array<String>]
|
2663
|
-
attr_accessor :mime_types
|
2664
|
-
|
2665
|
-
# Whether to receive a notification for progress changes of media upload.
|
2666
|
-
# Corresponds to the JSON property `progressNotification`
|
2667
|
-
# @return [Boolean]
|
2668
|
-
attr_accessor :progress_notification
|
2669
|
-
alias_method :progress_notification?, :progress_notification
|
2670
|
-
|
2671
|
-
# Whether to receive a notification on the start of media upload.
|
2672
|
-
# Corresponds to the JSON property `startNotification`
|
2673
|
-
# @return [Boolean]
|
2674
|
-
attr_accessor :start_notification
|
2675
|
-
alias_method :start_notification?, :start_notification
|
2676
|
-
|
2677
|
-
# DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED.
|
2678
|
-
# Specify name of the upload service if one is used for upload.
|
2679
|
-
# Corresponds to the JSON property `uploadService`
|
2680
|
-
# @return [String]
|
2681
|
-
attr_accessor :upload_service
|
2682
|
-
|
2683
|
-
def initialize(**args)
|
2684
|
-
update!(**args)
|
2685
|
-
end
|
2686
|
-
|
2687
|
-
# Update properties of this object
|
2688
|
-
def update!(**args)
|
2689
|
-
@complete_notification = args[:complete_notification] if args.key?(:complete_notification)
|
2690
|
-
@dropzone = args[:dropzone] if args.key?(:dropzone)
|
2691
|
-
@enabled = args[:enabled] if args.key?(:enabled)
|
2692
|
-
@max_size = args[:max_size] if args.key?(:max_size)
|
2693
|
-
@mime_types = args[:mime_types] if args.key?(:mime_types)
|
2694
|
-
@progress_notification = args[:progress_notification] if args.key?(:progress_notification)
|
2695
|
-
@start_notification = args[:start_notification] if args.key?(:start_notification)
|
2696
|
-
@upload_service = args[:upload_service] if args.key?(:upload_service)
|
2697
|
-
end
|
2698
|
-
end
|
2699
|
-
|
2700
2460
|
# Method represents a method of an API interface.
|
2701
2461
|
class MethodProp
|
2702
2462
|
include Google::Apis::Core::Hashable
|
@@ -3443,6 +3203,7 @@ module Google
|
|
3443
3203
|
# quota checks at runtime.
|
3444
3204
|
# An example quota configuration in yaml format:
|
3445
3205
|
# quota:
|
3206
|
+
# limits:
|
3446
3207
|
# - name: apiWriteQpsPerProject
|
3447
3208
|
# metric: library.googleapis.com/write_calls
|
3448
3209
|
# unit: "1/min/`project`" # rate limit for consumer projects
|
@@ -3757,6 +3518,7 @@ module Google
|
|
3757
3518
|
# quota checks at runtime.
|
3758
3519
|
# An example quota configuration in yaml format:
|
3759
3520
|
# quota:
|
3521
|
+
# limits:
|
3760
3522
|
# - name: apiWriteQpsPerProject
|
3761
3523
|
# metric: library.googleapis.com/write_calls
|
3762
3524
|
# unit: "1/min/`project`" # rate limit for consumer projects
|
@@ -58,12 +58,6 @@ module Google
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class AuthorizationRule
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
-
|
64
|
-
include Google::Apis::Core::JsonObjectSupport
|
65
|
-
end
|
66
|
-
|
67
61
|
class Backend
|
68
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
63
|
|
@@ -286,18 +280,6 @@ module Google
|
|
286
280
|
include Google::Apis::Core::JsonObjectSupport
|
287
281
|
end
|
288
282
|
|
289
|
-
class MediaDownload
|
290
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
|
-
|
292
|
-
include Google::Apis::Core::JsonObjectSupport
|
293
|
-
end
|
294
|
-
|
295
|
-
class MediaUpload
|
296
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
-
|
298
|
-
include Google::Apis::Core::JsonObjectSupport
|
299
|
-
end
|
300
|
-
|
301
283
|
class MethodProp
|
302
284
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
285
|
|
@@ -519,14 +501,6 @@ module Google
|
|
519
501
|
end
|
520
502
|
end
|
521
503
|
|
522
|
-
class AuthorizationRule
|
523
|
-
# @private
|
524
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
525
|
-
property :permissions, as: 'permissions'
|
526
|
-
property :selector, as: 'selector'
|
527
|
-
end
|
528
|
-
end
|
529
|
-
|
530
504
|
class Backend
|
531
505
|
# @private
|
532
506
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -862,23 +836,15 @@ module Google
|
|
862
836
|
class Representation < Google::Apis::Core::JsonRepresentation
|
863
837
|
collection :additional_bindings, as: 'additionalBindings', class: Google::Apis::ServiceusageV1beta1::HttpRule, decorator: Google::Apis::ServiceusageV1beta1::HttpRule::Representation
|
864
838
|
|
865
|
-
collection :authorizations, as: 'authorizations', class: Google::Apis::ServiceusageV1beta1::AuthorizationRule, decorator: Google::Apis::ServiceusageV1beta1::AuthorizationRule::Representation
|
866
|
-
|
867
839
|
property :body, as: 'body'
|
868
840
|
property :custom, as: 'custom', class: Google::Apis::ServiceusageV1beta1::CustomHttpPattern, decorator: Google::Apis::ServiceusageV1beta1::CustomHttpPattern::Representation
|
869
841
|
|
870
842
|
property :delete, as: 'delete'
|
871
843
|
property :get, as: 'get'
|
872
|
-
property :media_download, as: 'mediaDownload', class: Google::Apis::ServiceusageV1beta1::MediaDownload, decorator: Google::Apis::ServiceusageV1beta1::MediaDownload::Representation
|
873
|
-
|
874
|
-
property :media_upload, as: 'mediaUpload', class: Google::Apis::ServiceusageV1beta1::MediaUpload, decorator: Google::Apis::ServiceusageV1beta1::MediaUpload::Representation
|
875
|
-
|
876
844
|
property :patch, as: 'patch'
|
877
845
|
property :post, as: 'post'
|
878
846
|
property :put, as: 'put'
|
879
847
|
property :response_body, as: 'responseBody'
|
880
|
-
property :rest_collection, as: 'restCollection'
|
881
|
-
property :rest_method_name, as: 'restMethodName'
|
882
848
|
property :selector, as: 'selector'
|
883
849
|
end
|
884
850
|
end
|
@@ -939,32 +905,6 @@ module Google
|
|
939
905
|
end
|
940
906
|
end
|
941
907
|
|
942
|
-
class MediaDownload
|
943
|
-
# @private
|
944
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
945
|
-
property :complete_notification, as: 'completeNotification'
|
946
|
-
property :download_service, as: 'downloadService'
|
947
|
-
property :dropzone, as: 'dropzone'
|
948
|
-
property :enabled, as: 'enabled'
|
949
|
-
property :max_direct_download_size, :numeric_string => true, as: 'maxDirectDownloadSize'
|
950
|
-
property :use_direct_download, as: 'useDirectDownload'
|
951
|
-
end
|
952
|
-
end
|
953
|
-
|
954
|
-
class MediaUpload
|
955
|
-
# @private
|
956
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
957
|
-
property :complete_notification, as: 'completeNotification'
|
958
|
-
property :dropzone, as: 'dropzone'
|
959
|
-
property :enabled, as: 'enabled'
|
960
|
-
property :max_size, :numeric_string => true, as: 'maxSize'
|
961
|
-
collection :mime_types, as: 'mimeTypes'
|
962
|
-
property :progress_notification, as: 'progressNotification'
|
963
|
-
property :start_notification, as: 'startNotification'
|
964
|
-
property :upload_service, as: 'uploadService'
|
965
|
-
end
|
966
|
-
end
|
967
|
-
|
968
908
|
class MethodProp
|
969
909
|
# @private
|
970
910
|
class Representation < Google::Apis::Core::JsonRepresentation
|