google-api-client 0.37.0 → 0.37.1
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 +76 -0
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +236 -22
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +104 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +135 -0
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +24 -22
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +64 -0
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +31 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +10 -1
- data/generated/google/apis/chat_v1/representations.rb +1 -0
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +98 -34
- data/generated/google/apis/cloudasset_v1/representations.rb +19 -0
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +152 -151
- data/generated/google/apis/cloudidentity_v1/representations.rb +72 -72
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +0 -560
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +0 -226
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtrace_v2beta1.rb +44 -0
- data/generated/google/apis/cloudtrace_v2beta1/classes.rb +144 -0
- data/generated/google/apis/cloudtrace_v2beta1/representations.rb +82 -0
- data/generated/google/apis/cloudtrace_v2beta1/service.rb +258 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +190 -46
- data/generated/google/apis/compute_alpha/representations.rb +35 -14
- data/generated/google/apis/compute_alpha/service.rb +40 -56
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +98 -24
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +1 -2
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +123 -19
- data/generated/google/apis/compute_v1/representations.rb +19 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +2 -2
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +2 -2
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +4 -3
- data/generated/google/apis/datacatalog_v1beta1/service.rb +190 -17
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +40 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +16 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +67 -0
- data/generated/google/apis/dataproc_v1/representations.rb +23 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +2 -1
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/domainsrdap_v1.rb +1 -1
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +6 -19
- data/generated/google/apis/file_v1/service.rb +1 -1
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +4 -17
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +10 -5
- data/generated/google/apis/fitness_v1/service.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +3 -3
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/indexing_v3.rb +1 -1
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +84 -0
- data/generated/google/apis/logging_v2/representations.rb +33 -0
- data/generated/google/apis/logging_v2/service.rb +680 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +21 -18
- data/generated/google/apis/monitoring_v3/service.rb +27 -18
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1.rb +35 -0
- data/generated/google/apis/secretmanager_v1/classes.rb +970 -0
- data/generated/google/apis/secretmanager_v1/representations.rb +388 -0
- data/generated/google/apis/secretmanager_v1/service.rb +675 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +36 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +19 -0
- data/generated/google/apis/servicenetworking_v1/representations.rb +2 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +94 -85
- data/generated/google/apis/storagetransfer_v1/service.rb +17 -11
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +29 -0
- data/generated/google/apis/testing_v1/representations.rb +15 -0
- data/generated/google/apis/toolresults_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -3
|
@@ -30,7 +30,7 @@ module Google
|
|
|
30
30
|
# @see https://cloud.google.com/monitoring/api/
|
|
31
31
|
module MonitoringV3
|
|
32
32
|
VERSION = 'V3'
|
|
33
|
-
REVISION = '
|
|
33
|
+
REVISION = '20200219'
|
|
34
34
|
|
|
35
35
|
# View and manage your data across Google Cloud Platform services
|
|
36
36
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -2089,12 +2089,13 @@ module Google
|
|
|
2089
2089
|
# @return [String]
|
|
2090
2090
|
attr_accessor :duration
|
|
2091
2091
|
|
|
2092
|
-
# A filter that identifies
|
|
2093
|
-
#
|
|
2094
|
-
#
|
|
2095
|
-
# will be retrieved / processed) and must
|
|
2096
|
-
#
|
|
2097
|
-
# This field may not exceed 2048
|
|
2092
|
+
# A filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies
|
|
2093
|
+
# which time series should be compared with the threshold.The filter is similar
|
|
2094
|
+
# to the one that is specified in the ListTimeSeries request (that call is
|
|
2095
|
+
# useful to verify the time series that will be retrieved / processed) and must
|
|
2096
|
+
# specify the metric type and optionally may contain restrictions on resource
|
|
2097
|
+
# type, resource labels, and metric labels. This field may not exceed 2048
|
|
2098
|
+
# Unicode characters in length.
|
|
2098
2099
|
# Corresponds to the JSON property `filter`
|
|
2099
2100
|
# @return [String]
|
|
2100
2101
|
attr_accessor :filter
|
|
@@ -2390,12 +2391,13 @@ module Google
|
|
|
2390
2391
|
# @return [Array<Google::Apis::MonitoringV3::Aggregation>]
|
|
2391
2392
|
attr_accessor :denominator_aggregations
|
|
2392
2393
|
|
|
2393
|
-
# A filter that identifies
|
|
2394
|
-
#
|
|
2395
|
-
#
|
|
2396
|
-
# the
|
|
2397
|
-
#
|
|
2398
|
-
# This field may not exceed
|
|
2394
|
+
# A filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies
|
|
2395
|
+
# a time series that should be used as the denominator of a ratio that will be
|
|
2396
|
+
# compared with the threshold. If a denominator_filter is specified, the time
|
|
2397
|
+
# series specified by the filter field will be used as the numerator.The filter
|
|
2398
|
+
# must specify the metric type and optionally may contain restrictions on
|
|
2399
|
+
# resource type, resource labels, and metric labels. This field may not exceed
|
|
2400
|
+
# 2048 Unicode characters in length.
|
|
2399
2401
|
# Corresponds to the JSON property `denominatorFilter`
|
|
2400
2402
|
# @return [String]
|
|
2401
2403
|
attr_accessor :denominator_filter
|
|
@@ -2413,12 +2415,13 @@ module Google
|
|
|
2413
2415
|
# @return [String]
|
|
2414
2416
|
attr_accessor :duration
|
|
2415
2417
|
|
|
2416
|
-
# A filter that identifies
|
|
2417
|
-
#
|
|
2418
|
-
#
|
|
2419
|
-
# will be retrieved / processed) and must
|
|
2420
|
-
#
|
|
2421
|
-
# This field may not exceed 2048
|
|
2418
|
+
# A filter (https://cloud.google.com/monitoring/api/v3/filters) that identifies
|
|
2419
|
+
# which time series should be compared with the threshold.The filter is similar
|
|
2420
|
+
# to the one that is specified in the ListTimeSeries request (that call is
|
|
2421
|
+
# useful to verify the time series that will be retrieved / processed) and must
|
|
2422
|
+
# specify the metric type and optionally may contain restrictions on resource
|
|
2423
|
+
# type, resource labels, and metric labels. This field may not exceed 2048
|
|
2424
|
+
# Unicode characters in length.
|
|
2422
2425
|
# Corresponds to the JSON property `filter`
|
|
2423
2426
|
# @return [String]
|
|
2424
2427
|
attr_accessor :filter
|
|
@@ -164,12 +164,13 @@ module Google
|
|
|
164
164
|
# @param [String] filter
|
|
165
165
|
# If provided, this field specifies the criteria that must be met by alert
|
|
166
166
|
# policies to be included in the response.For more details, see sorting and
|
|
167
|
-
# filtering.
|
|
167
|
+
# filtering (https://cloud.google.com/monitoring/api/v3/sorting-and-filtering).
|
|
168
168
|
# @param [String] order_by
|
|
169
169
|
# A comma-separated list of fields by which to sort the result. Supports the
|
|
170
170
|
# same set of field references as the filter field. Entries can be prefixed with
|
|
171
171
|
# a minus sign to sort by the field in descending order.For more details, see
|
|
172
|
-
# sorting and filtering.
|
|
172
|
+
# sorting and filtering (https://cloud.google.com/monitoring/api/v3/sorting-and-
|
|
173
|
+
# filtering).
|
|
173
174
|
# @param [Fixnum] page_size
|
|
174
175
|
# The maximum number of results to return in a single response.
|
|
175
176
|
# @param [String] page_token
|
|
@@ -511,10 +512,11 @@ module Google
|
|
|
511
512
|
# Required. The group whose members are listed. The format is:
|
|
512
513
|
# projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
|
|
513
514
|
# @param [String] filter
|
|
514
|
-
# An optional list filter
|
|
515
|
-
#
|
|
516
|
-
#
|
|
517
|
-
# VM instances,
|
|
515
|
+
# An optional list filter (https://cloud.google.com/monitoring/api/learn_more#
|
|
516
|
+
# filtering) describing the members to be returned. The filter may reference the
|
|
517
|
+
# type, labels, and metadata of monitored resources that comprise the group. For
|
|
518
|
+
# example, to return only resources representing Compute Engine VM instances,
|
|
519
|
+
# use this filter:
|
|
518
520
|
# `resource.type = "gce_instance"`
|
|
519
521
|
# @param [String] interval_end_time
|
|
520
522
|
# Required. The end of the time interval.
|
|
@@ -560,7 +562,7 @@ module Google
|
|
|
560
562
|
end
|
|
561
563
|
|
|
562
564
|
# Creates a new metric descriptor. User-created metric descriptors define custom
|
|
563
|
-
# metrics.
|
|
565
|
+
# metrics (https://cloud.google.com/monitoring/custom-metrics).
|
|
564
566
|
# @param [String] name
|
|
565
567
|
# Required. The project on which to execute the request. The format is:
|
|
566
568
|
# projects/[PROJECT_ID_OR_NUMBER]
|
|
@@ -594,7 +596,8 @@ module Google
|
|
|
594
596
|
execute_or_queue_command(command, &block)
|
|
595
597
|
end
|
|
596
598
|
|
|
597
|
-
# Deletes a metric descriptor. Only user-created custom metrics
|
|
599
|
+
# Deletes a metric descriptor. Only user-created custom metrics (https://cloud.
|
|
600
|
+
# google.com/monitoring/custom-metrics) can be deleted.
|
|
598
601
|
# @param [String] name
|
|
599
602
|
# Required. The metric descriptor on which to execute the request. The format is:
|
|
600
603
|
# projects/[PROJECT_ID_OR_NUMBER]/metricDescriptors/[METRIC_ID]
|
|
@@ -667,8 +670,10 @@ module Google
|
|
|
667
670
|
# projects/[PROJECT_ID_OR_NUMBER]
|
|
668
671
|
# @param [String] filter
|
|
669
672
|
# If this field is empty, all custom and system-defined metric descriptors are
|
|
670
|
-
# returned. Otherwise, the filter
|
|
671
|
-
#
|
|
673
|
+
# returned. Otherwise, the filter (https://cloud.google.com/monitoring/api/v3/
|
|
674
|
+
# filters) specifies which metric descriptors are to be returned. For example,
|
|
675
|
+
# the following filter matches all custom metrics (https://cloud.google.com/
|
|
676
|
+
# monitoring/custom-metrics):
|
|
672
677
|
# metric.type = starts_with("custom.googleapis.com/")
|
|
673
678
|
# @param [Fixnum] page_size
|
|
674
679
|
# A positive number that is the maximum number of results to return.
|
|
@@ -745,9 +750,10 @@ module Google
|
|
|
745
750
|
# Required. The project on which to execute the request. The format is:
|
|
746
751
|
# projects/[PROJECT_ID_OR_NUMBER]
|
|
747
752
|
# @param [String] filter
|
|
748
|
-
# An optional filter
|
|
749
|
-
#
|
|
750
|
-
#
|
|
753
|
+
# An optional filter (https://cloud.google.com/monitoring/api/v3/filters)
|
|
754
|
+
# describing the descriptors to be returned. The filter can reference the
|
|
755
|
+
# descriptor's type and labels. For example, the following filter returns only
|
|
756
|
+
# Google Compute Engine descriptors that have an id label:
|
|
751
757
|
# resource.type = starts_with("gce_") AND resource.label:id
|
|
752
758
|
# @param [Fixnum] page_size
|
|
753
759
|
# A positive number that is the maximum number of results to return.
|
|
@@ -1034,12 +1040,14 @@ module Google
|
|
|
1034
1040
|
# @param [String] filter
|
|
1035
1041
|
# If provided, this field specifies the criteria that must be met by
|
|
1036
1042
|
# notification channels to be included in the response.For more details, see
|
|
1037
|
-
# sorting and filtering.
|
|
1043
|
+
# sorting and filtering (https://cloud.google.com/monitoring/api/v3/sorting-and-
|
|
1044
|
+
# filtering).
|
|
1038
1045
|
# @param [String] order_by
|
|
1039
1046
|
# A comma-separated list of fields by which to sort the result. Supports the
|
|
1040
1047
|
# same set of fields as in filter. Entries can be prefixed with a minus sign to
|
|
1041
1048
|
# sort in descending rather than ascending order.For more details, see sorting
|
|
1042
|
-
# and filtering.
|
|
1049
|
+
# and filtering (https://cloud.google.com/monitoring/api/v3/sorting-and-
|
|
1050
|
+
# filtering).
|
|
1043
1051
|
# @param [Fixnum] page_size
|
|
1044
1052
|
# The maximum number of results to return in a single response. If not set to a
|
|
1045
1053
|
# positive number, a reasonable value will be chosen by the service.
|
|
@@ -1270,9 +1278,10 @@ module Google
|
|
|
1270
1278
|
# per_series_aligner must be specified and not equal to ALIGN_NONE and
|
|
1271
1279
|
# alignment_period must be specified; otherwise, an error is returned.
|
|
1272
1280
|
# @param [String] filter
|
|
1273
|
-
# Required. A monitoring filter
|
|
1274
|
-
#
|
|
1275
|
-
# specify metric
|
|
1281
|
+
# Required. A monitoring filter (https://cloud.google.com/monitoring/api/v3/
|
|
1282
|
+
# filters) that specifies which time series should be returned. The filter must
|
|
1283
|
+
# specify a single metric type, and can additionally specify metric labels and
|
|
1284
|
+
# other information. For example:
|
|
1276
1285
|
# metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
|
|
1277
1286
|
# metric.labels.instance_name = "my-instance-name"
|
|
1278
1287
|
# @param [String] interval_end_time
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/compute/docs/oslogin/
|
|
26
26
|
module OsloginV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200215'
|
|
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'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/compute/docs/oslogin/
|
|
26
26
|
module OsloginV1alpha
|
|
27
27
|
VERSION = 'V1alpha'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200215'
|
|
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'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/compute/docs/oslogin/
|
|
26
26
|
module OsloginV1beta
|
|
27
27
|
VERSION = 'V1beta'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200215'
|
|
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'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/people/
|
|
26
26
|
module PeopleV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200215'
|
|
29
29
|
|
|
30
30
|
# See, edit, download, and permanently delete your contacts
|
|
31
31
|
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/spectrum-access-system/
|
|
26
26
|
module ProdTtSasportalV1alpha1
|
|
27
27
|
VERSION = 'V1alpha1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200219'
|
|
29
29
|
|
|
30
30
|
# View your email address
|
|
31
31
|
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
|
@@ -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 = '20200211'
|
|
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'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/pubsub/docs
|
|
26
26
|
module PubsubV1beta1a
|
|
27
27
|
VERSION = 'V1beta1a'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200211'
|
|
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'
|
|
@@ -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 = '20200211'
|
|
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'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/remote-build-execution/docs/
|
|
26
26
|
module RemotebuildexecutionV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200218'
|
|
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'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/remote-build-execution/docs/
|
|
26
26
|
module RemotebuildexecutionV1alpha
|
|
27
27
|
VERSION = 'V1alpha'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200218'
|
|
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'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/remote-build-execution/docs/
|
|
26
26
|
module RemotebuildexecutionV2
|
|
27
27
|
VERSION = 'V2'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200218'
|
|
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'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/spectrum-access-system/
|
|
26
26
|
module SasportalV1alpha1
|
|
27
27
|
VERSION = 'V1alpha1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200220'
|
|
29
29
|
|
|
30
30
|
# View your email address
|
|
31
31
|
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/apps-script/api/
|
|
26
26
|
module ScriptV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200215'
|
|
29
29
|
|
|
30
30
|
# Read, compose, send, and permanently delete all your email from Gmail
|
|
31
31
|
AUTH_SCOPE = 'https://mail.google.com/'
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/secretmanager_v1/service.rb'
|
|
16
|
+
require 'google/apis/secretmanager_v1/classes.rb'
|
|
17
|
+
require 'google/apis/secretmanager_v1/representations.rb'
|
|
18
|
+
|
|
19
|
+
module Google
|
|
20
|
+
module Apis
|
|
21
|
+
# Secret Manager API
|
|
22
|
+
#
|
|
23
|
+
# Stores and manages access to application secrets. Provides convenience while
|
|
24
|
+
# improving security.
|
|
25
|
+
#
|
|
26
|
+
# @see https://cloud.google.com/secret-manager/
|
|
27
|
+
module SecretmanagerV1
|
|
28
|
+
VERSION = 'V1'
|
|
29
|
+
REVISION = '20200208'
|
|
30
|
+
|
|
31
|
+
# View and manage your data across Google Cloud Platform services
|
|
32
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,970 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'date'
|
|
16
|
+
require 'google/apis/core/base_service'
|
|
17
|
+
require 'google/apis/core/json_representation'
|
|
18
|
+
require 'google/apis/core/hashable'
|
|
19
|
+
require 'google/apis/errors'
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Apis
|
|
23
|
+
module SecretmanagerV1
|
|
24
|
+
|
|
25
|
+
# Response message for SecretManagerService.AccessSecretVersion.
|
|
26
|
+
class AccessSecretVersionResponse
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# The resource name of the SecretVersion in the format
|
|
30
|
+
# `projects/*/secrets/*/versions/*`.
|
|
31
|
+
# Corresponds to the JSON property `name`
|
|
32
|
+
# @return [String]
|
|
33
|
+
attr_accessor :name
|
|
34
|
+
|
|
35
|
+
# A secret payload resource in the Secret Manager API. This contains the
|
|
36
|
+
# sensitive secret data that is associated with a SecretVersion.
|
|
37
|
+
# Corresponds to the JSON property `payload`
|
|
38
|
+
# @return [Google::Apis::SecretmanagerV1::SecretPayload]
|
|
39
|
+
attr_accessor :payload
|
|
40
|
+
|
|
41
|
+
def initialize(**args)
|
|
42
|
+
update!(**args)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Update properties of this object
|
|
46
|
+
def update!(**args)
|
|
47
|
+
@name = args[:name] if args.key?(:name)
|
|
48
|
+
@payload = args[:payload] if args.key?(:payload)
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Request message for SecretManagerService.AddSecretVersion.
|
|
53
|
+
class AddSecretVersionRequest
|
|
54
|
+
include Google::Apis::Core::Hashable
|
|
55
|
+
|
|
56
|
+
# A secret payload resource in the Secret Manager API. This contains the
|
|
57
|
+
# sensitive secret data that is associated with a SecretVersion.
|
|
58
|
+
# Corresponds to the JSON property `payload`
|
|
59
|
+
# @return [Google::Apis::SecretmanagerV1::SecretPayload]
|
|
60
|
+
attr_accessor :payload
|
|
61
|
+
|
|
62
|
+
def initialize(**args)
|
|
63
|
+
update!(**args)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Update properties of this object
|
|
67
|
+
def update!(**args)
|
|
68
|
+
@payload = args[:payload] if args.key?(:payload)
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Specifies the audit configuration for a service.
|
|
73
|
+
# The configuration determines which permission types are logged, and what
|
|
74
|
+
# identities, if any, are exempted from logging.
|
|
75
|
+
# An AuditConfig must have one or more AuditLogConfigs.
|
|
76
|
+
# If there are AuditConfigs for both `allServices` and a specific service,
|
|
77
|
+
# the union of the two AuditConfigs is used for that service: the log_types
|
|
78
|
+
# specified in each AuditConfig are enabled, and the exempted_members in each
|
|
79
|
+
# AuditLogConfig are exempted.
|
|
80
|
+
# Example Policy with multiple AuditConfigs:
|
|
81
|
+
# `
|
|
82
|
+
# "audit_configs": [
|
|
83
|
+
# `
|
|
84
|
+
# "service": "allServices"
|
|
85
|
+
# "audit_log_configs": [
|
|
86
|
+
# `
|
|
87
|
+
# "log_type": "DATA_READ",
|
|
88
|
+
# "exempted_members": [
|
|
89
|
+
# "user:jose@example.com"
|
|
90
|
+
# ]
|
|
91
|
+
# `,
|
|
92
|
+
# `
|
|
93
|
+
# "log_type": "DATA_WRITE",
|
|
94
|
+
# `,
|
|
95
|
+
# `
|
|
96
|
+
# "log_type": "ADMIN_READ",
|
|
97
|
+
# `
|
|
98
|
+
# ]
|
|
99
|
+
# `,
|
|
100
|
+
# `
|
|
101
|
+
# "service": "sampleservice.googleapis.com"
|
|
102
|
+
# "audit_log_configs": [
|
|
103
|
+
# `
|
|
104
|
+
# "log_type": "DATA_READ",
|
|
105
|
+
# `,
|
|
106
|
+
# `
|
|
107
|
+
# "log_type": "DATA_WRITE",
|
|
108
|
+
# "exempted_members": [
|
|
109
|
+
# "user:aliya@example.com"
|
|
110
|
+
# ]
|
|
111
|
+
# `
|
|
112
|
+
# ]
|
|
113
|
+
# `
|
|
114
|
+
# ]
|
|
115
|
+
# `
|
|
116
|
+
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
|
117
|
+
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
|
118
|
+
# aliya@example.com from DATA_WRITE logging.
|
|
119
|
+
class AuditConfig
|
|
120
|
+
include Google::Apis::Core::Hashable
|
|
121
|
+
|
|
122
|
+
# The configuration for logging of each type of permission.
|
|
123
|
+
# Corresponds to the JSON property `auditLogConfigs`
|
|
124
|
+
# @return [Array<Google::Apis::SecretmanagerV1::AuditLogConfig>]
|
|
125
|
+
attr_accessor :audit_log_configs
|
|
126
|
+
|
|
127
|
+
# Specifies a service that will be enabled for audit logging.
|
|
128
|
+
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
|
129
|
+
# `allServices` is a special value that covers all services.
|
|
130
|
+
# Corresponds to the JSON property `service`
|
|
131
|
+
# @return [String]
|
|
132
|
+
attr_accessor :service
|
|
133
|
+
|
|
134
|
+
def initialize(**args)
|
|
135
|
+
update!(**args)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Update properties of this object
|
|
139
|
+
def update!(**args)
|
|
140
|
+
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
|
141
|
+
@service = args[:service] if args.key?(:service)
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Provides the configuration for logging a type of permissions.
|
|
146
|
+
# Example:
|
|
147
|
+
# `
|
|
148
|
+
# "audit_log_configs": [
|
|
149
|
+
# `
|
|
150
|
+
# "log_type": "DATA_READ",
|
|
151
|
+
# "exempted_members": [
|
|
152
|
+
# "user:jose@example.com"
|
|
153
|
+
# ]
|
|
154
|
+
# `,
|
|
155
|
+
# `
|
|
156
|
+
# "log_type": "DATA_WRITE",
|
|
157
|
+
# `
|
|
158
|
+
# ]
|
|
159
|
+
# `
|
|
160
|
+
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
|
161
|
+
# jose@example.com from DATA_READ logging.
|
|
162
|
+
class AuditLogConfig
|
|
163
|
+
include Google::Apis::Core::Hashable
|
|
164
|
+
|
|
165
|
+
# Specifies the identities that do not cause logging for this type of
|
|
166
|
+
# permission.
|
|
167
|
+
# Follows the same format of Binding.members.
|
|
168
|
+
# Corresponds to the JSON property `exemptedMembers`
|
|
169
|
+
# @return [Array<String>]
|
|
170
|
+
attr_accessor :exempted_members
|
|
171
|
+
|
|
172
|
+
# The log type that this config enables.
|
|
173
|
+
# Corresponds to the JSON property `logType`
|
|
174
|
+
# @return [String]
|
|
175
|
+
attr_accessor :log_type
|
|
176
|
+
|
|
177
|
+
def initialize(**args)
|
|
178
|
+
update!(**args)
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Update properties of this object
|
|
182
|
+
def update!(**args)
|
|
183
|
+
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
|
184
|
+
@log_type = args[:log_type] if args.key?(:log_type)
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# A replication policy that replicates the Secret payload without any
|
|
189
|
+
# restrictions.
|
|
190
|
+
class Automatic
|
|
191
|
+
include Google::Apis::Core::Hashable
|
|
192
|
+
|
|
193
|
+
def initialize(**args)
|
|
194
|
+
update!(**args)
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Update properties of this object
|
|
198
|
+
def update!(**args)
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Associates `members` with a `role`.
|
|
203
|
+
class Binding
|
|
204
|
+
include Google::Apis::Core::Hashable
|
|
205
|
+
|
|
206
|
+
# Represents a textual expression in the Common Expression Language (CEL)
|
|
207
|
+
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
|
208
|
+
# are documented at https://github.com/google/cel-spec.
|
|
209
|
+
# Example (Comparison):
|
|
210
|
+
# title: "Summary size limit"
|
|
211
|
+
# description: "Determines if a summary is less than 100 chars"
|
|
212
|
+
# expression: "document.summary.size() < 100"
|
|
213
|
+
# Example (Equality):
|
|
214
|
+
# title: "Requestor is owner"
|
|
215
|
+
# description: "Determines if requestor is the document owner"
|
|
216
|
+
# expression: "document.owner == request.auth.claims.email"
|
|
217
|
+
# Example (Logic):
|
|
218
|
+
# title: "Public documents"
|
|
219
|
+
# description: "Determine whether the document should be publicly visible"
|
|
220
|
+
# expression: "document.type != 'private' && document.type != 'internal'"
|
|
221
|
+
# Example (Data Manipulation):
|
|
222
|
+
# title: "Notification string"
|
|
223
|
+
# description: "Create a notification string with a timestamp."
|
|
224
|
+
# expression: "'New message received at ' + string(document.create_time)"
|
|
225
|
+
# The exact variables and functions that may be referenced within an expression
|
|
226
|
+
# are determined by the service that evaluates it. See the service
|
|
227
|
+
# documentation for additional information.
|
|
228
|
+
# Corresponds to the JSON property `condition`
|
|
229
|
+
# @return [Google::Apis::SecretmanagerV1::Expr]
|
|
230
|
+
attr_accessor :condition
|
|
231
|
+
|
|
232
|
+
# Specifies the identities requesting access for a Cloud Platform resource.
|
|
233
|
+
# `members` can have the following values:
|
|
234
|
+
# * `allUsers`: A special identifier that represents anyone who is
|
|
235
|
+
# on the internet; with or without a Google account.
|
|
236
|
+
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
|
237
|
+
# who is authenticated with a Google account or a service account.
|
|
238
|
+
# * `user:`emailid``: An email address that represents a specific Google
|
|
239
|
+
# account. For example, `alice@example.com` .
|
|
240
|
+
# * `serviceAccount:`emailid``: An email address that represents a service
|
|
241
|
+
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
|
242
|
+
# * `group:`emailid``: An email address that represents a Google group.
|
|
243
|
+
# For example, `admins@example.com`.
|
|
244
|
+
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
|
245
|
+
# identifier) representing a user that has been recently deleted. For
|
|
246
|
+
# example, `alice@example.com?uid=123456789012345678901`. If the user is
|
|
247
|
+
# recovered, this value reverts to `user:`emailid`` and the recovered user
|
|
248
|
+
# retains the role in the binding.
|
|
249
|
+
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
|
|
250
|
+
# unique identifier) representing a service account that has been recently
|
|
251
|
+
# deleted. For example,
|
|
252
|
+
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
|
253
|
+
# If the service account is undeleted, this value reverts to
|
|
254
|
+
# `serviceAccount:`emailid`` and the undeleted service account retains the
|
|
255
|
+
# role in the binding.
|
|
256
|
+
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
|
257
|
+
# identifier) representing a Google group that has been recently
|
|
258
|
+
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
|
259
|
+
# the group is recovered, this value reverts to `group:`emailid`` and the
|
|
260
|
+
# recovered group retains the role in the binding.
|
|
261
|
+
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
|
262
|
+
# users of that domain. For example, `google.com` or `example.com`.
|
|
263
|
+
# Corresponds to the JSON property `members`
|
|
264
|
+
# @return [Array<String>]
|
|
265
|
+
attr_accessor :members
|
|
266
|
+
|
|
267
|
+
# Role that is assigned to `members`.
|
|
268
|
+
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
|
269
|
+
# Corresponds to the JSON property `role`
|
|
270
|
+
# @return [String]
|
|
271
|
+
attr_accessor :role
|
|
272
|
+
|
|
273
|
+
def initialize(**args)
|
|
274
|
+
update!(**args)
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# Update properties of this object
|
|
278
|
+
def update!(**args)
|
|
279
|
+
@condition = args[:condition] if args.key?(:condition)
|
|
280
|
+
@members = args[:members] if args.key?(:members)
|
|
281
|
+
@role = args[:role] if args.key?(:role)
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Request message for SecretManagerService.DestroySecretVersion.
|
|
286
|
+
class DestroySecretVersionRequest
|
|
287
|
+
include Google::Apis::Core::Hashable
|
|
288
|
+
|
|
289
|
+
def initialize(**args)
|
|
290
|
+
update!(**args)
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# Update properties of this object
|
|
294
|
+
def update!(**args)
|
|
295
|
+
end
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Request message for SecretManagerService.DisableSecretVersion.
|
|
299
|
+
class DisableSecretVersionRequest
|
|
300
|
+
include Google::Apis::Core::Hashable
|
|
301
|
+
|
|
302
|
+
def initialize(**args)
|
|
303
|
+
update!(**args)
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
# Update properties of this object
|
|
307
|
+
def update!(**args)
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
|
312
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
|
313
|
+
# or the response type of an API method. For instance:
|
|
314
|
+
# service Foo `
|
|
315
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
316
|
+
# `
|
|
317
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
|
318
|
+
class Empty
|
|
319
|
+
include Google::Apis::Core::Hashable
|
|
320
|
+
|
|
321
|
+
def initialize(**args)
|
|
322
|
+
update!(**args)
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
# Update properties of this object
|
|
326
|
+
def update!(**args)
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
# Request message for SecretManagerService.EnableSecretVersion.
|
|
331
|
+
class EnableSecretVersionRequest
|
|
332
|
+
include Google::Apis::Core::Hashable
|
|
333
|
+
|
|
334
|
+
def initialize(**args)
|
|
335
|
+
update!(**args)
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# Update properties of this object
|
|
339
|
+
def update!(**args)
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# Represents a textual expression in the Common Expression Language (CEL)
|
|
344
|
+
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
|
345
|
+
# are documented at https://github.com/google/cel-spec.
|
|
346
|
+
# Example (Comparison):
|
|
347
|
+
# title: "Summary size limit"
|
|
348
|
+
# description: "Determines if a summary is less than 100 chars"
|
|
349
|
+
# expression: "document.summary.size() < 100"
|
|
350
|
+
# Example (Equality):
|
|
351
|
+
# title: "Requestor is owner"
|
|
352
|
+
# description: "Determines if requestor is the document owner"
|
|
353
|
+
# expression: "document.owner == request.auth.claims.email"
|
|
354
|
+
# Example (Logic):
|
|
355
|
+
# title: "Public documents"
|
|
356
|
+
# description: "Determine whether the document should be publicly visible"
|
|
357
|
+
# expression: "document.type != 'private' && document.type != 'internal'"
|
|
358
|
+
# Example (Data Manipulation):
|
|
359
|
+
# title: "Notification string"
|
|
360
|
+
# description: "Create a notification string with a timestamp."
|
|
361
|
+
# expression: "'New message received at ' + string(document.create_time)"
|
|
362
|
+
# The exact variables and functions that may be referenced within an expression
|
|
363
|
+
# are determined by the service that evaluates it. See the service
|
|
364
|
+
# documentation for additional information.
|
|
365
|
+
class Expr
|
|
366
|
+
include Google::Apis::Core::Hashable
|
|
367
|
+
|
|
368
|
+
# Optional. Description of the expression. This is a longer text which
|
|
369
|
+
# describes the expression, e.g. when hovered over it in a UI.
|
|
370
|
+
# Corresponds to the JSON property `description`
|
|
371
|
+
# @return [String]
|
|
372
|
+
attr_accessor :description
|
|
373
|
+
|
|
374
|
+
# Textual representation of an expression in Common Expression Language
|
|
375
|
+
# syntax.
|
|
376
|
+
# Corresponds to the JSON property `expression`
|
|
377
|
+
# @return [String]
|
|
378
|
+
attr_accessor :expression
|
|
379
|
+
|
|
380
|
+
# Optional. String indicating the location of the expression for error
|
|
381
|
+
# reporting, e.g. a file name and a position in the file.
|
|
382
|
+
# Corresponds to the JSON property `location`
|
|
383
|
+
# @return [String]
|
|
384
|
+
attr_accessor :location
|
|
385
|
+
|
|
386
|
+
# Optional. Title for the expression, i.e. a short string describing
|
|
387
|
+
# its purpose. This can be used e.g. in UIs which allow to enter the
|
|
388
|
+
# expression.
|
|
389
|
+
# Corresponds to the JSON property `title`
|
|
390
|
+
# @return [String]
|
|
391
|
+
attr_accessor :title
|
|
392
|
+
|
|
393
|
+
def initialize(**args)
|
|
394
|
+
update!(**args)
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
# Update properties of this object
|
|
398
|
+
def update!(**args)
|
|
399
|
+
@description = args[:description] if args.key?(:description)
|
|
400
|
+
@expression = args[:expression] if args.key?(:expression)
|
|
401
|
+
@location = args[:location] if args.key?(:location)
|
|
402
|
+
@title = args[:title] if args.key?(:title)
|
|
403
|
+
end
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
# The response message for Locations.ListLocations.
|
|
407
|
+
class ListLocationsResponse
|
|
408
|
+
include Google::Apis::Core::Hashable
|
|
409
|
+
|
|
410
|
+
# A list of locations that matches the specified filter in the request.
|
|
411
|
+
# Corresponds to the JSON property `locations`
|
|
412
|
+
# @return [Array<Google::Apis::SecretmanagerV1::Location>]
|
|
413
|
+
attr_accessor :locations
|
|
414
|
+
|
|
415
|
+
# The standard List next-page token.
|
|
416
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
417
|
+
# @return [String]
|
|
418
|
+
attr_accessor :next_page_token
|
|
419
|
+
|
|
420
|
+
def initialize(**args)
|
|
421
|
+
update!(**args)
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
# Update properties of this object
|
|
425
|
+
def update!(**args)
|
|
426
|
+
@locations = args[:locations] if args.key?(:locations)
|
|
427
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
428
|
+
end
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
# Response message for SecretManagerService.ListSecretVersions.
|
|
432
|
+
class ListSecretVersionsResponse
|
|
433
|
+
include Google::Apis::Core::Hashable
|
|
434
|
+
|
|
435
|
+
# A token to retrieve the next page of results. Pass this value in
|
|
436
|
+
# ListSecretVersionsRequest.page_token to retrieve the next page.
|
|
437
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
438
|
+
# @return [String]
|
|
439
|
+
attr_accessor :next_page_token
|
|
440
|
+
|
|
441
|
+
# The total number of SecretVersions.
|
|
442
|
+
# Corresponds to the JSON property `totalSize`
|
|
443
|
+
# @return [Fixnum]
|
|
444
|
+
attr_accessor :total_size
|
|
445
|
+
|
|
446
|
+
# The list of SecretVersions sorted in reverse by
|
|
447
|
+
# create_time (newest first).
|
|
448
|
+
# Corresponds to the JSON property `versions`
|
|
449
|
+
# @return [Array<Google::Apis::SecretmanagerV1::SecretVersion>]
|
|
450
|
+
attr_accessor :versions
|
|
451
|
+
|
|
452
|
+
def initialize(**args)
|
|
453
|
+
update!(**args)
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
# Update properties of this object
|
|
457
|
+
def update!(**args)
|
|
458
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
459
|
+
@total_size = args[:total_size] if args.key?(:total_size)
|
|
460
|
+
@versions = args[:versions] if args.key?(:versions)
|
|
461
|
+
end
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
# Response message for SecretManagerService.ListSecrets.
|
|
465
|
+
class ListSecretsResponse
|
|
466
|
+
include Google::Apis::Core::Hashable
|
|
467
|
+
|
|
468
|
+
# A token to retrieve the next page of results. Pass this value in
|
|
469
|
+
# ListSecretsRequest.page_token to retrieve the next page.
|
|
470
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
471
|
+
# @return [String]
|
|
472
|
+
attr_accessor :next_page_token
|
|
473
|
+
|
|
474
|
+
# The list of Secrets sorted in reverse by create_time (newest
|
|
475
|
+
# first).
|
|
476
|
+
# Corresponds to the JSON property `secrets`
|
|
477
|
+
# @return [Array<Google::Apis::SecretmanagerV1::Secret>]
|
|
478
|
+
attr_accessor :secrets
|
|
479
|
+
|
|
480
|
+
# The total number of Secrets.
|
|
481
|
+
# Corresponds to the JSON property `totalSize`
|
|
482
|
+
# @return [Fixnum]
|
|
483
|
+
attr_accessor :total_size
|
|
484
|
+
|
|
485
|
+
def initialize(**args)
|
|
486
|
+
update!(**args)
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
# Update properties of this object
|
|
490
|
+
def update!(**args)
|
|
491
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
492
|
+
@secrets = args[:secrets] if args.key?(:secrets)
|
|
493
|
+
@total_size = args[:total_size] if args.key?(:total_size)
|
|
494
|
+
end
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
# A resource that represents Google Cloud Platform location.
|
|
498
|
+
class Location
|
|
499
|
+
include Google::Apis::Core::Hashable
|
|
500
|
+
|
|
501
|
+
# The friendly name for this location, typically a nearby city name.
|
|
502
|
+
# For example, "Tokyo".
|
|
503
|
+
# Corresponds to the JSON property `displayName`
|
|
504
|
+
# @return [String]
|
|
505
|
+
attr_accessor :display_name
|
|
506
|
+
|
|
507
|
+
# Cross-service attributes for the location. For example
|
|
508
|
+
# `"cloud.googleapis.com/region": "us-east1"`
|
|
509
|
+
# Corresponds to the JSON property `labels`
|
|
510
|
+
# @return [Hash<String,String>]
|
|
511
|
+
attr_accessor :labels
|
|
512
|
+
|
|
513
|
+
# The canonical id for this location. For example: `"us-east1"`.
|
|
514
|
+
# Corresponds to the JSON property `locationId`
|
|
515
|
+
# @return [String]
|
|
516
|
+
attr_accessor :location_id
|
|
517
|
+
|
|
518
|
+
# Service-specific metadata. For example the available capacity at the given
|
|
519
|
+
# location.
|
|
520
|
+
# Corresponds to the JSON property `metadata`
|
|
521
|
+
# @return [Hash<String,Object>]
|
|
522
|
+
attr_accessor :metadata
|
|
523
|
+
|
|
524
|
+
# Resource name for the location, which may vary between implementations.
|
|
525
|
+
# For example: `"projects/example-project/locations/us-east1"`
|
|
526
|
+
# Corresponds to the JSON property `name`
|
|
527
|
+
# @return [String]
|
|
528
|
+
attr_accessor :name
|
|
529
|
+
|
|
530
|
+
def initialize(**args)
|
|
531
|
+
update!(**args)
|
|
532
|
+
end
|
|
533
|
+
|
|
534
|
+
# Update properties of this object
|
|
535
|
+
def update!(**args)
|
|
536
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
537
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
538
|
+
@location_id = args[:location_id] if args.key?(:location_id)
|
|
539
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
540
|
+
@name = args[:name] if args.key?(:name)
|
|
541
|
+
end
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
|
545
|
+
# controls for Google Cloud resources.
|
|
546
|
+
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
|
547
|
+
# `members` to a single `role`. Members can be user accounts, service accounts,
|
|
548
|
+
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
|
549
|
+
# permissions; each `role` can be an IAM predefined role or a user-created
|
|
550
|
+
# custom role.
|
|
551
|
+
# Optionally, a `binding` can specify a `condition`, which is a logical
|
|
552
|
+
# expression that allows access to a resource only if the expression evaluates
|
|
553
|
+
# to `true`. A condition can add constraints based on attributes of the
|
|
554
|
+
# request, the resource, or both.
|
|
555
|
+
# **JSON example:**
|
|
556
|
+
# `
|
|
557
|
+
# "bindings": [
|
|
558
|
+
# `
|
|
559
|
+
# "role": "roles/resourcemanager.organizationAdmin",
|
|
560
|
+
# "members": [
|
|
561
|
+
# "user:mike@example.com",
|
|
562
|
+
# "group:admins@example.com",
|
|
563
|
+
# "domain:google.com",
|
|
564
|
+
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
|
|
565
|
+
# ]
|
|
566
|
+
# `,
|
|
567
|
+
# `
|
|
568
|
+
# "role": "roles/resourcemanager.organizationViewer",
|
|
569
|
+
# "members": ["user:eve@example.com"],
|
|
570
|
+
# "condition": `
|
|
571
|
+
# "title": "expirable access",
|
|
572
|
+
# "description": "Does not grant access after Sep 2020",
|
|
573
|
+
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
574
|
+
# ",
|
|
575
|
+
# `
|
|
576
|
+
# `
|
|
577
|
+
# ],
|
|
578
|
+
# "etag": "BwWWja0YfJA=",
|
|
579
|
+
# "version": 3
|
|
580
|
+
# `
|
|
581
|
+
# **YAML example:**
|
|
582
|
+
# bindings:
|
|
583
|
+
# - members:
|
|
584
|
+
# - user:mike@example.com
|
|
585
|
+
# - group:admins@example.com
|
|
586
|
+
# - domain:google.com
|
|
587
|
+
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
|
588
|
+
# role: roles/resourcemanager.organizationAdmin
|
|
589
|
+
# - members:
|
|
590
|
+
# - user:eve@example.com
|
|
591
|
+
# role: roles/resourcemanager.organizationViewer
|
|
592
|
+
# condition:
|
|
593
|
+
# title: expirable access
|
|
594
|
+
# description: Does not grant access after Sep 2020
|
|
595
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
596
|
+
# - etag: BwWWja0YfJA=
|
|
597
|
+
# - version: 3
|
|
598
|
+
# For a description of IAM and its features, see the
|
|
599
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
600
|
+
class Policy
|
|
601
|
+
include Google::Apis::Core::Hashable
|
|
602
|
+
|
|
603
|
+
# Specifies cloud audit logging configuration for this policy.
|
|
604
|
+
# Corresponds to the JSON property `auditConfigs`
|
|
605
|
+
# @return [Array<Google::Apis::SecretmanagerV1::AuditConfig>]
|
|
606
|
+
attr_accessor :audit_configs
|
|
607
|
+
|
|
608
|
+
# Associates a list of `members` to a `role`. Optionally, may specify a
|
|
609
|
+
# `condition` that determines how and when the `bindings` are applied. Each
|
|
610
|
+
# of the `bindings` must contain at least one member.
|
|
611
|
+
# Corresponds to the JSON property `bindings`
|
|
612
|
+
# @return [Array<Google::Apis::SecretmanagerV1::Binding>]
|
|
613
|
+
attr_accessor :bindings
|
|
614
|
+
|
|
615
|
+
# `etag` is used for optimistic concurrency control as a way to help
|
|
616
|
+
# prevent simultaneous updates of a policy from overwriting each other.
|
|
617
|
+
# It is strongly suggested that systems make use of the `etag` in the
|
|
618
|
+
# read-modify-write cycle to perform policy updates in order to avoid race
|
|
619
|
+
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
|
620
|
+
# systems are expected to put that etag in the request to `setIamPolicy` to
|
|
621
|
+
# ensure that their change will be applied to the same version of the policy.
|
|
622
|
+
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
|
623
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
|
624
|
+
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
|
625
|
+
# the conditions in the version `3` policy are lost.
|
|
626
|
+
# Corresponds to the JSON property `etag`
|
|
627
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
628
|
+
# @return [String]
|
|
629
|
+
attr_accessor :etag
|
|
630
|
+
|
|
631
|
+
# Specifies the format of the policy.
|
|
632
|
+
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
|
|
633
|
+
# are rejected.
|
|
634
|
+
# Any operation that affects conditional role bindings must specify version
|
|
635
|
+
# `3`. This requirement applies to the following operations:
|
|
636
|
+
# * Getting a policy that includes a conditional role binding
|
|
637
|
+
# * Adding a conditional role binding to a policy
|
|
638
|
+
# * Changing a conditional role binding in a policy
|
|
639
|
+
# * Removing any role binding, with or without a condition, from a policy
|
|
640
|
+
# that includes conditions
|
|
641
|
+
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
|
642
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
|
643
|
+
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
|
644
|
+
# the conditions in the version `3` policy are lost.
|
|
645
|
+
# If a policy does not include any conditions, operations on that policy may
|
|
646
|
+
# specify any valid version or leave the field unset.
|
|
647
|
+
# Corresponds to the JSON property `version`
|
|
648
|
+
# @return [Fixnum]
|
|
649
|
+
attr_accessor :version
|
|
650
|
+
|
|
651
|
+
def initialize(**args)
|
|
652
|
+
update!(**args)
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
# Update properties of this object
|
|
656
|
+
def update!(**args)
|
|
657
|
+
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
|
658
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
|
659
|
+
@etag = args[:etag] if args.key?(:etag)
|
|
660
|
+
@version = args[:version] if args.key?(:version)
|
|
661
|
+
end
|
|
662
|
+
end
|
|
663
|
+
|
|
664
|
+
# Represents a Replica for this Secret.
|
|
665
|
+
class Replica
|
|
666
|
+
include Google::Apis::Core::Hashable
|
|
667
|
+
|
|
668
|
+
# The canonical IDs of the location to replicate data.
|
|
669
|
+
# For example: `"us-east1"`.
|
|
670
|
+
# Corresponds to the JSON property `location`
|
|
671
|
+
# @return [String]
|
|
672
|
+
attr_accessor :location
|
|
673
|
+
|
|
674
|
+
def initialize(**args)
|
|
675
|
+
update!(**args)
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
# Update properties of this object
|
|
679
|
+
def update!(**args)
|
|
680
|
+
@location = args[:location] if args.key?(:location)
|
|
681
|
+
end
|
|
682
|
+
end
|
|
683
|
+
|
|
684
|
+
# A policy that defines the replication configuration of data.
|
|
685
|
+
class Replication
|
|
686
|
+
include Google::Apis::Core::Hashable
|
|
687
|
+
|
|
688
|
+
# A replication policy that replicates the Secret payload without any
|
|
689
|
+
# restrictions.
|
|
690
|
+
# Corresponds to the JSON property `automatic`
|
|
691
|
+
# @return [Google::Apis::SecretmanagerV1::Automatic]
|
|
692
|
+
attr_accessor :automatic
|
|
693
|
+
|
|
694
|
+
# A replication policy that replicates the Secret payload into the
|
|
695
|
+
# locations specified in Secret.replication.user_managed.replicas
|
|
696
|
+
# Corresponds to the JSON property `userManaged`
|
|
697
|
+
# @return [Google::Apis::SecretmanagerV1::UserManaged]
|
|
698
|
+
attr_accessor :user_managed
|
|
699
|
+
|
|
700
|
+
def initialize(**args)
|
|
701
|
+
update!(**args)
|
|
702
|
+
end
|
|
703
|
+
|
|
704
|
+
# Update properties of this object
|
|
705
|
+
def update!(**args)
|
|
706
|
+
@automatic = args[:automatic] if args.key?(:automatic)
|
|
707
|
+
@user_managed = args[:user_managed] if args.key?(:user_managed)
|
|
708
|
+
end
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
# A Secret is a logical secret whose value and versions can
|
|
712
|
+
# be accessed.
|
|
713
|
+
# A Secret is made up of zero or more SecretVersions that
|
|
714
|
+
# represent the secret data.
|
|
715
|
+
class Secret
|
|
716
|
+
include Google::Apis::Core::Hashable
|
|
717
|
+
|
|
718
|
+
# Output only. The time at which the Secret was created.
|
|
719
|
+
# Corresponds to the JSON property `createTime`
|
|
720
|
+
# @return [String]
|
|
721
|
+
attr_accessor :create_time
|
|
722
|
+
|
|
723
|
+
# The labels assigned to this Secret.
|
|
724
|
+
# Label keys must be between 1 and 63 characters long, have a UTF-8 encoding
|
|
725
|
+
# of maximum 128 bytes, and must conform to the following PCRE regular
|
|
726
|
+
# expression: `\p`Ll`\p`Lo``0,62``
|
|
727
|
+
# Label values must be between 0 and 63 characters long, have a UTF-8
|
|
728
|
+
# encoding of maximum 128 bytes, and must conform to the following PCRE
|
|
729
|
+
# regular expression: `[\p`Ll`\p`Lo`\p`N`_-]`0,63``
|
|
730
|
+
# No more than 64 labels can be assigned to a given resource.
|
|
731
|
+
# Corresponds to the JSON property `labels`
|
|
732
|
+
# @return [Hash<String,String>]
|
|
733
|
+
attr_accessor :labels
|
|
734
|
+
|
|
735
|
+
# Output only. The resource name of the Secret in the format `projects/*/secrets/
|
|
736
|
+
# *`.
|
|
737
|
+
# Corresponds to the JSON property `name`
|
|
738
|
+
# @return [String]
|
|
739
|
+
attr_accessor :name
|
|
740
|
+
|
|
741
|
+
# A policy that defines the replication configuration of data.
|
|
742
|
+
# Corresponds to the JSON property `replication`
|
|
743
|
+
# @return [Google::Apis::SecretmanagerV1::Replication]
|
|
744
|
+
attr_accessor :replication
|
|
745
|
+
|
|
746
|
+
def initialize(**args)
|
|
747
|
+
update!(**args)
|
|
748
|
+
end
|
|
749
|
+
|
|
750
|
+
# Update properties of this object
|
|
751
|
+
def update!(**args)
|
|
752
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
753
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
754
|
+
@name = args[:name] if args.key?(:name)
|
|
755
|
+
@replication = args[:replication] if args.key?(:replication)
|
|
756
|
+
end
|
|
757
|
+
end
|
|
758
|
+
|
|
759
|
+
# A secret payload resource in the Secret Manager API. This contains the
|
|
760
|
+
# sensitive secret data that is associated with a SecretVersion.
|
|
761
|
+
class SecretPayload
|
|
762
|
+
include Google::Apis::Core::Hashable
|
|
763
|
+
|
|
764
|
+
# The secret data. Must be no larger than 64KiB.
|
|
765
|
+
# Corresponds to the JSON property `data`
|
|
766
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
767
|
+
# @return [String]
|
|
768
|
+
attr_accessor :data
|
|
769
|
+
|
|
770
|
+
def initialize(**args)
|
|
771
|
+
update!(**args)
|
|
772
|
+
end
|
|
773
|
+
|
|
774
|
+
# Update properties of this object
|
|
775
|
+
def update!(**args)
|
|
776
|
+
@data = args[:data] if args.key?(:data)
|
|
777
|
+
end
|
|
778
|
+
end
|
|
779
|
+
|
|
780
|
+
# A secret version resource in the Secret Manager API.
|
|
781
|
+
class SecretVersion
|
|
782
|
+
include Google::Apis::Core::Hashable
|
|
783
|
+
|
|
784
|
+
# Output only. The time at which the SecretVersion was created.
|
|
785
|
+
# Corresponds to the JSON property `createTime`
|
|
786
|
+
# @return [String]
|
|
787
|
+
attr_accessor :create_time
|
|
788
|
+
|
|
789
|
+
# Output only. The time this SecretVersion was destroyed.
|
|
790
|
+
# Only present if state is
|
|
791
|
+
# DESTROYED.
|
|
792
|
+
# Corresponds to the JSON property `destroyTime`
|
|
793
|
+
# @return [String]
|
|
794
|
+
attr_accessor :destroy_time
|
|
795
|
+
|
|
796
|
+
# Output only. The resource name of the SecretVersion in the
|
|
797
|
+
# format `projects/*/secrets/*/versions/*`.
|
|
798
|
+
# SecretVersion IDs in a Secret start at 1 and
|
|
799
|
+
# are incremented for each subsequent version of the secret.
|
|
800
|
+
# Corresponds to the JSON property `name`
|
|
801
|
+
# @return [String]
|
|
802
|
+
attr_accessor :name
|
|
803
|
+
|
|
804
|
+
# Output only. The current state of the SecretVersion.
|
|
805
|
+
# Corresponds to the JSON property `state`
|
|
806
|
+
# @return [String]
|
|
807
|
+
attr_accessor :state
|
|
808
|
+
|
|
809
|
+
def initialize(**args)
|
|
810
|
+
update!(**args)
|
|
811
|
+
end
|
|
812
|
+
|
|
813
|
+
# Update properties of this object
|
|
814
|
+
def update!(**args)
|
|
815
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
816
|
+
@destroy_time = args[:destroy_time] if args.key?(:destroy_time)
|
|
817
|
+
@name = args[:name] if args.key?(:name)
|
|
818
|
+
@state = args[:state] if args.key?(:state)
|
|
819
|
+
end
|
|
820
|
+
end
|
|
821
|
+
|
|
822
|
+
# Request message for `SetIamPolicy` method.
|
|
823
|
+
class SetIamPolicyRequest
|
|
824
|
+
include Google::Apis::Core::Hashable
|
|
825
|
+
|
|
826
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
|
827
|
+
# controls for Google Cloud resources.
|
|
828
|
+
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
|
829
|
+
# `members` to a single `role`. Members can be user accounts, service accounts,
|
|
830
|
+
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
|
831
|
+
# permissions; each `role` can be an IAM predefined role or a user-created
|
|
832
|
+
# custom role.
|
|
833
|
+
# Optionally, a `binding` can specify a `condition`, which is a logical
|
|
834
|
+
# expression that allows access to a resource only if the expression evaluates
|
|
835
|
+
# to `true`. A condition can add constraints based on attributes of the
|
|
836
|
+
# request, the resource, or both.
|
|
837
|
+
# **JSON example:**
|
|
838
|
+
# `
|
|
839
|
+
# "bindings": [
|
|
840
|
+
# `
|
|
841
|
+
# "role": "roles/resourcemanager.organizationAdmin",
|
|
842
|
+
# "members": [
|
|
843
|
+
# "user:mike@example.com",
|
|
844
|
+
# "group:admins@example.com",
|
|
845
|
+
# "domain:google.com",
|
|
846
|
+
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
|
|
847
|
+
# ]
|
|
848
|
+
# `,
|
|
849
|
+
# `
|
|
850
|
+
# "role": "roles/resourcemanager.organizationViewer",
|
|
851
|
+
# "members": ["user:eve@example.com"],
|
|
852
|
+
# "condition": `
|
|
853
|
+
# "title": "expirable access",
|
|
854
|
+
# "description": "Does not grant access after Sep 2020",
|
|
855
|
+
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
856
|
+
# ",
|
|
857
|
+
# `
|
|
858
|
+
# `
|
|
859
|
+
# ],
|
|
860
|
+
# "etag": "BwWWja0YfJA=",
|
|
861
|
+
# "version": 3
|
|
862
|
+
# `
|
|
863
|
+
# **YAML example:**
|
|
864
|
+
# bindings:
|
|
865
|
+
# - members:
|
|
866
|
+
# - user:mike@example.com
|
|
867
|
+
# - group:admins@example.com
|
|
868
|
+
# - domain:google.com
|
|
869
|
+
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
|
870
|
+
# role: roles/resourcemanager.organizationAdmin
|
|
871
|
+
# - members:
|
|
872
|
+
# - user:eve@example.com
|
|
873
|
+
# role: roles/resourcemanager.organizationViewer
|
|
874
|
+
# condition:
|
|
875
|
+
# title: expirable access
|
|
876
|
+
# description: Does not grant access after Sep 2020
|
|
877
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
878
|
+
# - etag: BwWWja0YfJA=
|
|
879
|
+
# - version: 3
|
|
880
|
+
# For a description of IAM and its features, see the
|
|
881
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
882
|
+
# Corresponds to the JSON property `policy`
|
|
883
|
+
# @return [Google::Apis::SecretmanagerV1::Policy]
|
|
884
|
+
attr_accessor :policy
|
|
885
|
+
|
|
886
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
887
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
|
888
|
+
# following default mask is used:
|
|
889
|
+
# paths: "bindings, etag"
|
|
890
|
+
# This field is only used by Cloud IAM.
|
|
891
|
+
# Corresponds to the JSON property `updateMask`
|
|
892
|
+
# @return [String]
|
|
893
|
+
attr_accessor :update_mask
|
|
894
|
+
|
|
895
|
+
def initialize(**args)
|
|
896
|
+
update!(**args)
|
|
897
|
+
end
|
|
898
|
+
|
|
899
|
+
# Update properties of this object
|
|
900
|
+
def update!(**args)
|
|
901
|
+
@policy = args[:policy] if args.key?(:policy)
|
|
902
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
|
903
|
+
end
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
# Request message for `TestIamPermissions` method.
|
|
907
|
+
class TestIamPermissionsRequest
|
|
908
|
+
include Google::Apis::Core::Hashable
|
|
909
|
+
|
|
910
|
+
# The set of permissions to check for the `resource`. Permissions with
|
|
911
|
+
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
912
|
+
# information see
|
|
913
|
+
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
914
|
+
# Corresponds to the JSON property `permissions`
|
|
915
|
+
# @return [Array<String>]
|
|
916
|
+
attr_accessor :permissions
|
|
917
|
+
|
|
918
|
+
def initialize(**args)
|
|
919
|
+
update!(**args)
|
|
920
|
+
end
|
|
921
|
+
|
|
922
|
+
# Update properties of this object
|
|
923
|
+
def update!(**args)
|
|
924
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
|
925
|
+
end
|
|
926
|
+
end
|
|
927
|
+
|
|
928
|
+
# Response message for `TestIamPermissions` method.
|
|
929
|
+
class TestIamPermissionsResponse
|
|
930
|
+
include Google::Apis::Core::Hashable
|
|
931
|
+
|
|
932
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
|
933
|
+
# allowed.
|
|
934
|
+
# Corresponds to the JSON property `permissions`
|
|
935
|
+
# @return [Array<String>]
|
|
936
|
+
attr_accessor :permissions
|
|
937
|
+
|
|
938
|
+
def initialize(**args)
|
|
939
|
+
update!(**args)
|
|
940
|
+
end
|
|
941
|
+
|
|
942
|
+
# Update properties of this object
|
|
943
|
+
def update!(**args)
|
|
944
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
|
945
|
+
end
|
|
946
|
+
end
|
|
947
|
+
|
|
948
|
+
# A replication policy that replicates the Secret payload into the
|
|
949
|
+
# locations specified in Secret.replication.user_managed.replicas
|
|
950
|
+
class UserManaged
|
|
951
|
+
include Google::Apis::Core::Hashable
|
|
952
|
+
|
|
953
|
+
# Required. The list of Replicas for this Secret.
|
|
954
|
+
# Cannot be empty.
|
|
955
|
+
# Corresponds to the JSON property `replicas`
|
|
956
|
+
# @return [Array<Google::Apis::SecretmanagerV1::Replica>]
|
|
957
|
+
attr_accessor :replicas
|
|
958
|
+
|
|
959
|
+
def initialize(**args)
|
|
960
|
+
update!(**args)
|
|
961
|
+
end
|
|
962
|
+
|
|
963
|
+
# Update properties of this object
|
|
964
|
+
def update!(**args)
|
|
965
|
+
@replicas = args[:replicas] if args.key?(:replicas)
|
|
966
|
+
end
|
|
967
|
+
end
|
|
968
|
+
end
|
|
969
|
+
end
|
|
970
|
+
end
|