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
@@ -334,6 +334,18 @@ module Google
|
|
334
334
|
include Google::Apis::Core::JsonObjectSupport
|
335
335
|
end
|
336
336
|
|
337
|
+
class GooglePrivacyDlpV2ExcludeInfoTypes
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
include Google::Apis::Core::JsonObjectSupport
|
341
|
+
end
|
342
|
+
|
343
|
+
class GooglePrivacyDlpV2ExclusionRule
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
|
+
|
346
|
+
include Google::Apis::Core::JsonObjectSupport
|
347
|
+
end
|
348
|
+
|
337
349
|
class GooglePrivacyDlpV2Expressions
|
338
350
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
351
|
|
@@ -472,6 +484,18 @@ module Google
|
|
472
484
|
include Google::Apis::Core::JsonObjectSupport
|
473
485
|
end
|
474
486
|
|
487
|
+
class GooglePrivacyDlpV2InspectionRule
|
488
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
489
|
+
|
490
|
+
include Google::Apis::Core::JsonObjectSupport
|
491
|
+
end
|
492
|
+
|
493
|
+
class GooglePrivacyDlpV2InspectionRuleSet
|
494
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
495
|
+
|
496
|
+
include Google::Apis::Core::JsonObjectSupport
|
497
|
+
end
|
498
|
+
|
475
499
|
class GooglePrivacyDlpV2JobTrigger
|
476
500
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
477
501
|
|
@@ -1354,6 +1378,7 @@ module Google
|
|
1354
1378
|
|
1355
1379
|
property :dictionary, as: 'dictionary', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Dictionary, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Dictionary::Representation
|
1356
1380
|
|
1381
|
+
property :exclusion_type, as: 'exclusionType'
|
1357
1382
|
property :info_type, as: 'infoType', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType::Representation
|
1358
1383
|
|
1359
1384
|
property :likelihood, as: 'likelihood'
|
@@ -1557,6 +1582,27 @@ module Google
|
|
1557
1582
|
end
|
1558
1583
|
end
|
1559
1584
|
|
1585
|
+
class GooglePrivacyDlpV2ExcludeInfoTypes
|
1586
|
+
# @private
|
1587
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1588
|
+
collection :info_types, as: 'infoTypes', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType::Representation
|
1589
|
+
|
1590
|
+
end
|
1591
|
+
end
|
1592
|
+
|
1593
|
+
class GooglePrivacyDlpV2ExclusionRule
|
1594
|
+
# @private
|
1595
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1596
|
+
property :dictionary, as: 'dictionary', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Dictionary, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Dictionary::Representation
|
1597
|
+
|
1598
|
+
property :exclude_info_types, as: 'excludeInfoTypes', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ExcludeInfoTypes, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ExcludeInfoTypes::Representation
|
1599
|
+
|
1600
|
+
property :matching_type, as: 'matchingType'
|
1601
|
+
property :regex, as: 'regex', class: Google::Apis::DlpV2::GooglePrivacyDlpV2Regex, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2Regex::Representation
|
1602
|
+
|
1603
|
+
end
|
1604
|
+
end
|
1605
|
+
|
1560
1606
|
class GooglePrivacyDlpV2Expressions
|
1561
1607
|
# @private
|
1562
1608
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1726,6 +1772,8 @@ module Google
|
|
1726
1772
|
property :limits, as: 'limits', class: Google::Apis::DlpV2::GooglePrivacyDlpV2FindingLimits, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2FindingLimits::Representation
|
1727
1773
|
|
1728
1774
|
property :min_likelihood, as: 'minLikelihood'
|
1775
|
+
collection :rule_set, as: 'ruleSet', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectionRuleSet, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectionRuleSet::Representation
|
1776
|
+
|
1729
1777
|
end
|
1730
1778
|
end
|
1731
1779
|
|
@@ -1793,6 +1841,26 @@ module Google
|
|
1793
1841
|
end
|
1794
1842
|
end
|
1795
1843
|
|
1844
|
+
class GooglePrivacyDlpV2InspectionRule
|
1845
|
+
# @private
|
1846
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1847
|
+
property :exclusion_rule, as: 'exclusionRule', class: Google::Apis::DlpV2::GooglePrivacyDlpV2ExclusionRule, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2ExclusionRule::Representation
|
1848
|
+
|
1849
|
+
property :hotword_rule, as: 'hotwordRule', class: Google::Apis::DlpV2::GooglePrivacyDlpV2HotwordRule, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2HotwordRule::Representation
|
1850
|
+
|
1851
|
+
end
|
1852
|
+
end
|
1853
|
+
|
1854
|
+
class GooglePrivacyDlpV2InspectionRuleSet
|
1855
|
+
# @private
|
1856
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1857
|
+
collection :info_types, as: 'infoTypes', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoType::Representation
|
1858
|
+
|
1859
|
+
collection :rules, as: 'rules', class: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectionRule, decorator: Google::Apis::DlpV2::GooglePrivacyDlpV2InspectionRule::Representation
|
1860
|
+
|
1861
|
+
end
|
1862
|
+
end
|
1863
|
+
|
1796
1864
|
class GooglePrivacyDlpV2JobTrigger
|
1797
1865
|
# @private
|
1798
1866
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/firestore
|
27
27
|
module FirestoreV1beta2
|
28
28
|
VERSION = 'V1beta2'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20180910'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -22,6 +22,25 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module FirestoreV1beta2
|
24
24
|
|
25
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
26
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
27
|
+
# or the response type of an API method. For instance:
|
28
|
+
# service Foo `
|
29
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
30
|
+
# `
|
31
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
32
|
+
class Empty
|
33
|
+
include Google::Apis::Core::Hashable
|
34
|
+
|
35
|
+
def initialize(**args)
|
36
|
+
update!(**args)
|
37
|
+
end
|
38
|
+
|
39
|
+
# Update properties of this object
|
40
|
+
def update!(**args)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
25
44
|
# Represents a single field in the database.
|
26
45
|
# Fields are grouped by their "Collection Group", which represent all
|
27
46
|
# collections in the database with the same id.
|
@@ -305,6 +324,63 @@ module Google
|
|
305
324
|
end
|
306
325
|
end
|
307
326
|
|
327
|
+
# Metadata for google.longrunning.Operation results from
|
328
|
+
# FirestoreAdmin.CreateIndex.
|
329
|
+
class GoogleFirestoreAdminV1beta2IndexOperationMetadata
|
330
|
+
include Google::Apis::Core::Hashable
|
331
|
+
|
332
|
+
# The time this operation completed. Will be unset if operation still in
|
333
|
+
# progress.
|
334
|
+
# Corresponds to the JSON property `endTime`
|
335
|
+
# @return [String]
|
336
|
+
attr_accessor :end_time
|
337
|
+
|
338
|
+
# The index resource that this operation is acting on. For example:
|
339
|
+
# `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id`
|
340
|
+
# /indexes/`index_id``
|
341
|
+
# Corresponds to the JSON property `index`
|
342
|
+
# @return [String]
|
343
|
+
attr_accessor :index
|
344
|
+
|
345
|
+
# Describes the progress of the operation.
|
346
|
+
# Unit of work is generic and must be interpreted based on where Progress
|
347
|
+
# is used.
|
348
|
+
# Corresponds to the JSON property `progressBytes`
|
349
|
+
# @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress]
|
350
|
+
attr_accessor :progress_bytes
|
351
|
+
|
352
|
+
# Describes the progress of the operation.
|
353
|
+
# Unit of work is generic and must be interpreted based on where Progress
|
354
|
+
# is used.
|
355
|
+
# Corresponds to the JSON property `progressDocuments`
|
356
|
+
# @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress]
|
357
|
+
attr_accessor :progress_documents
|
358
|
+
|
359
|
+
# The time this operation started.
|
360
|
+
# Corresponds to the JSON property `startTime`
|
361
|
+
# @return [String]
|
362
|
+
attr_accessor :start_time
|
363
|
+
|
364
|
+
# The state of the operation.
|
365
|
+
# Corresponds to the JSON property `state`
|
366
|
+
# @return [String]
|
367
|
+
attr_accessor :state
|
368
|
+
|
369
|
+
def initialize(**args)
|
370
|
+
update!(**args)
|
371
|
+
end
|
372
|
+
|
373
|
+
# Update properties of this object
|
374
|
+
def update!(**args)
|
375
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
376
|
+
@index = args[:index] if args.key?(:index)
|
377
|
+
@progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
|
378
|
+
@progress_documents = args[:progress_documents] if args.key?(:progress_documents)
|
379
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
380
|
+
@state = args[:state] if args.key?(:state)
|
381
|
+
end
|
382
|
+
end
|
383
|
+
|
308
384
|
# The response for FirestoreAdmin.ListFields.
|
309
385
|
class GoogleFirestoreAdminV1beta2ListFieldsResponse
|
310
386
|
include Google::Apis::Core::Hashable
|
@@ -331,6 +407,32 @@ module Google
|
|
331
407
|
end
|
332
408
|
end
|
333
409
|
|
410
|
+
# The response for FirestoreAdmin.ListIndexes.
|
411
|
+
class GoogleFirestoreAdminV1beta2ListIndexesResponse
|
412
|
+
include Google::Apis::Core::Hashable
|
413
|
+
|
414
|
+
# The requested indexes.
|
415
|
+
# Corresponds to the JSON property `indexes`
|
416
|
+
# @return [Array<Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index>]
|
417
|
+
attr_accessor :indexes
|
418
|
+
|
419
|
+
# A page token that may be used to request another page of results. If blank,
|
420
|
+
# this is the last page.
|
421
|
+
# Corresponds to the JSON property `nextPageToken`
|
422
|
+
# @return [String]
|
423
|
+
attr_accessor :next_page_token
|
424
|
+
|
425
|
+
def initialize(**args)
|
426
|
+
update!(**args)
|
427
|
+
end
|
428
|
+
|
429
|
+
# Update properties of this object
|
430
|
+
def update!(**args)
|
431
|
+
@indexes = args[:indexes] if args.key?(:indexes)
|
432
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
433
|
+
end
|
434
|
+
end
|
435
|
+
|
334
436
|
# Describes the progress of the operation.
|
335
437
|
# Unit of work is generic and must be interpreted based on where Progress
|
336
438
|
# is used.
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module FirestoreV1beta2
|
24
24
|
|
25
|
+
class Empty
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class GoogleFirestoreAdminV1beta2Field
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -58,12 +64,24 @@ module Google
|
|
58
64
|
include Google::Apis::Core::JsonObjectSupport
|
59
65
|
end
|
60
66
|
|
67
|
+
class GoogleFirestoreAdminV1beta2IndexOperationMetadata
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
61
73
|
class GoogleFirestoreAdminV1beta2ListFieldsResponse
|
62
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
75
|
|
64
76
|
include Google::Apis::Core::JsonObjectSupport
|
65
77
|
end
|
66
78
|
|
79
|
+
class GoogleFirestoreAdminV1beta2ListIndexesResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
67
85
|
class GoogleFirestoreAdminV1beta2Progress
|
68
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
87
|
|
@@ -82,6 +100,12 @@ module Google
|
|
82
100
|
include Google::Apis::Core::JsonObjectSupport
|
83
101
|
end
|
84
102
|
|
103
|
+
class Empty
|
104
|
+
# @private
|
105
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
85
109
|
class GoogleFirestoreAdminV1beta2Field
|
86
110
|
# @private
|
87
111
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -147,6 +171,20 @@ module Google
|
|
147
171
|
end
|
148
172
|
end
|
149
173
|
|
174
|
+
class GoogleFirestoreAdminV1beta2IndexOperationMetadata
|
175
|
+
# @private
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
177
|
+
property :end_time, as: 'endTime'
|
178
|
+
property :index, as: 'index'
|
179
|
+
property :progress_bytes, as: 'progressBytes', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress::Representation
|
180
|
+
|
181
|
+
property :progress_documents, as: 'progressDocuments', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Progress::Representation
|
182
|
+
|
183
|
+
property :start_time, as: 'startTime'
|
184
|
+
property :state, as: 'state'
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
150
188
|
class GoogleFirestoreAdminV1beta2ListFieldsResponse
|
151
189
|
# @private
|
152
190
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -156,6 +194,15 @@ module Google
|
|
156
194
|
end
|
157
195
|
end
|
158
196
|
|
197
|
+
class GoogleFirestoreAdminV1beta2ListIndexesResponse
|
198
|
+
# @private
|
199
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
200
|
+
collection :indexes, as: 'indexes', class: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index, decorator: Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index::Representation
|
201
|
+
|
202
|
+
property :next_page_token, as: 'nextPageToken'
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
159
206
|
class GoogleFirestoreAdminV1beta2Progress
|
160
207
|
# @private
|
161
208
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -48,6 +48,86 @@ module Google
|
|
48
48
|
@batch_path = 'batch'
|
49
49
|
end
|
50
50
|
|
51
|
+
# Creates a composite index. This returns a google.longrunning.Operation
|
52
|
+
# which may be used to track the status of the creation. The metadata for
|
53
|
+
# the operation will be the type IndexOperationMetadata.
|
54
|
+
# @param [String] parent
|
55
|
+
# A parent name of the form
|
56
|
+
# `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id`
|
57
|
+
# `
|
58
|
+
# @param [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index] google_firestore_admin_v1beta2_index_object
|
59
|
+
# @param [String] fields
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
61
|
+
# @param [String] quota_user
|
62
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
63
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
64
|
+
# @param [Google::Apis::RequestOptions] options
|
65
|
+
# Request-specific options
|
66
|
+
#
|
67
|
+
# @yield [result, err] Result & error if block supplied
|
68
|
+
# @yieldparam result [Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation] parsed result object
|
69
|
+
# @yieldparam err [StandardError] error object if request failed
|
70
|
+
#
|
71
|
+
# @return [Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation]
|
72
|
+
#
|
73
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
74
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
75
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
76
|
+
def create_project_database_collection_group_index(parent, google_firestore_admin_v1beta2_index_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
77
|
+
command = make_simple_command(:post, 'v1beta2/{+parent}/indexes', options)
|
78
|
+
command.request_representation = Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index::Representation
|
79
|
+
command.request_object = google_firestore_admin_v1beta2_index_object
|
80
|
+
command.response_representation = Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation::Representation
|
81
|
+
command.response_class = Google::Apis::FirestoreV1beta2::GoogleLongrunningOperation
|
82
|
+
command.params['parent'] = parent unless parent.nil?
|
83
|
+
command.query['fields'] = fields unless fields.nil?
|
84
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
85
|
+
execute_or_queue_command(command, &block)
|
86
|
+
end
|
87
|
+
|
88
|
+
# Lists composite indexes.
|
89
|
+
# @param [String] parent
|
90
|
+
# A parent name of the form
|
91
|
+
# `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id`
|
92
|
+
# `
|
93
|
+
# @param [String] filter
|
94
|
+
# The filter to apply to list results.
|
95
|
+
# @param [Fixnum] page_size
|
96
|
+
# The number of results to return.
|
97
|
+
# @param [String] page_token
|
98
|
+
# A page token, returned from a previous call to
|
99
|
+
# FirestoreAdmin.ListIndexes, that may be used to get the next
|
100
|
+
# page of results.
|
101
|
+
# @param [String] fields
|
102
|
+
# Selector specifying which fields to include in a partial response.
|
103
|
+
# @param [String] quota_user
|
104
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
105
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
106
|
+
# @param [Google::Apis::RequestOptions] options
|
107
|
+
# Request-specific options
|
108
|
+
#
|
109
|
+
# @yield [result, err] Result & error if block supplied
|
110
|
+
# @yieldparam result [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2ListIndexesResponse] parsed result object
|
111
|
+
# @yieldparam err [StandardError] error object if request failed
|
112
|
+
#
|
113
|
+
# @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2ListIndexesResponse]
|
114
|
+
#
|
115
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
116
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
117
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
118
|
+
def list_project_database_collection_group_indexes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
119
|
+
command = make_simple_command(:get, 'v1beta2/{+parent}/indexes', options)
|
120
|
+
command.response_representation = Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2ListIndexesResponse::Representation
|
121
|
+
command.response_class = Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2ListIndexesResponse
|
122
|
+
command.params['parent'] = parent unless parent.nil?
|
123
|
+
command.query['filter'] = filter unless filter.nil?
|
124
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
125
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
126
|
+
command.query['fields'] = fields unless fields.nil?
|
127
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
128
|
+
execute_or_queue_command(command, &block)
|
129
|
+
end
|
130
|
+
|
51
131
|
# Gets the metadata and configuration for a Field.
|
52
132
|
# @param [String] name
|
53
133
|
# A name of the form
|
@@ -201,6 +281,70 @@ module Google
|
|
201
281
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
202
282
|
execute_or_queue_command(command, &block)
|
203
283
|
end
|
284
|
+
|
285
|
+
# Deletes a composite index.
|
286
|
+
# @param [String] name
|
287
|
+
# A name of the form
|
288
|
+
# `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id`
|
289
|
+
# /indexes/`index_id``
|
290
|
+
# @param [String] fields
|
291
|
+
# Selector specifying which fields to include in a partial response.
|
292
|
+
# @param [String] quota_user
|
293
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
294
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
295
|
+
# @param [Google::Apis::RequestOptions] options
|
296
|
+
# Request-specific options
|
297
|
+
#
|
298
|
+
# @yield [result, err] Result & error if block supplied
|
299
|
+
# @yieldparam result [Google::Apis::FirestoreV1beta2::Empty] parsed result object
|
300
|
+
# @yieldparam err [StandardError] error object if request failed
|
301
|
+
#
|
302
|
+
# @return [Google::Apis::FirestoreV1beta2::Empty]
|
303
|
+
#
|
304
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
305
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
306
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
307
|
+
def delete_project_database_collection_group_index(name, fields: nil, quota_user: nil, options: nil, &block)
|
308
|
+
command = make_simple_command(:delete, 'v1beta2/{+name}', options)
|
309
|
+
command.response_representation = Google::Apis::FirestoreV1beta2::Empty::Representation
|
310
|
+
command.response_class = Google::Apis::FirestoreV1beta2::Empty
|
311
|
+
command.params['name'] = name unless name.nil?
|
312
|
+
command.query['fields'] = fields unless fields.nil?
|
313
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
314
|
+
execute_or_queue_command(command, &block)
|
315
|
+
end
|
316
|
+
|
317
|
+
# Gets a composite index.
|
318
|
+
# @param [String] name
|
319
|
+
# A name of the form
|
320
|
+
# `projects/`project_id`/databases/`database_id`/collectionGroups/`collection_id`
|
321
|
+
# /indexes/`index_id``
|
322
|
+
# @param [String] fields
|
323
|
+
# Selector specifying which fields to include in a partial response.
|
324
|
+
# @param [String] quota_user
|
325
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
326
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
327
|
+
# @param [Google::Apis::RequestOptions] options
|
328
|
+
# Request-specific options
|
329
|
+
#
|
330
|
+
# @yield [result, err] Result & error if block supplied
|
331
|
+
# @yieldparam result [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index] parsed result object
|
332
|
+
# @yieldparam err [StandardError] error object if request failed
|
333
|
+
#
|
334
|
+
# @return [Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index]
|
335
|
+
#
|
336
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
337
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
338
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
339
|
+
def get_project_database_collection_group_index(name, fields: nil, quota_user: nil, options: nil, &block)
|
340
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
341
|
+
command.response_representation = Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index::Representation
|
342
|
+
command.response_class = Google::Apis::FirestoreV1beta2::GoogleFirestoreAdminV1beta2Index
|
343
|
+
command.params['name'] = name unless name.nil?
|
344
|
+
command.query['fields'] = fields unless fields.nil?
|
345
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
346
|
+
execute_or_queue_command(command, &block)
|
347
|
+
end
|
204
348
|
|
205
349
|
protected
|
206
350
|
|