google-api-client 0.36.0 → 0.36.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 +69 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +2 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +7 -4
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +32 -32
- data/generated/google/apis/androidpublisher_v3/representations.rb +17 -17
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +2 -1
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +81 -41
- data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +2 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +8 -8
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +60 -30
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +75 -40
- data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +75 -41
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +75 -41
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/service.rb +5 -2
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +206 -0
- data/generated/google/apis/cloudasset_v1/representations.rb +101 -0
- data/generated/google/apis/cloudasset_v1/service.rb +174 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +59 -41
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +9 -5
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +75 -41
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +75 -41
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +104 -41
- data/generated/google/apis/cloudkms_v1/representations.rb +15 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +75 -41
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +75 -41
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +75 -41
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +75 -41
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +3 -2
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +81 -47
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +75 -41
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +81 -47
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +5 -3
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +68 -47
- data/generated/google/apis/compute_alpha/representations.rb +2 -1
- data/generated/google/apis/compute_alpha/service.rb +54 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +597 -40
- data/generated/google/apis/compute_beta/representations.rb +164 -0
- data/generated/google/apis/compute_beta/service.rb +343 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +54 -39
- data/generated/google/apis/compute_v1/representations.rb +1 -0
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +75 -41
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +77 -43
- data/generated/google/apis/containeranalysis_v1beta1/service.rb +26 -20
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +46 -42
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +46 -42
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +75 -41
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +16 -22
- data/generated/google/apis/datastore_v1/service.rb +10 -10
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +5 -4
- data/generated/google/apis/datastore_v1beta3/service.rb +8 -8
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/classes.rb +88 -88
- data/generated/google/apis/dfareporting_v3_4/representations.rb +39 -39
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +77 -0
- data/generated/google/apis/dlp_v2/representations.rb +42 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +59 -12
- data/generated/google/apis/file_v1/representations.rb +19 -2
- data/generated/google/apis/file_v1/service.rb +8 -4
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +59 -12
- data/generated/google/apis/file_v1beta1/representations.rb +19 -2
- data/generated/google/apis/file_v1beta1/service.rb +8 -4
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +75 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +35 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +6 -2
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/classes.rb +7 -4
- data/generated/google/apis/iamcredentials_v1/service.rb +4 -4
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +225 -40
- data/generated/google/apis/iap_v1/representations.rb +84 -0
- data/generated/google/apis/iap_v1/service.rb +292 -0
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +75 -40
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +29 -41
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +14 -21
- data/generated/google/apis/ml_v1/service.rb +15 -18
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +15 -11
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +6 -10
- data/generated/google/apis/monitoring_v3/representations.rb +0 -1
- data/generated/google/apis/{fusiontables_v1.rb → policytroubleshooter_v1.rb} +10 -13
- data/generated/google/apis/policytroubleshooter_v1/classes.rb +700 -0
- data/generated/google/apis/policytroubleshooter_v1/representations.rb +203 -0
- data/generated/google/apis/policytroubleshooter_v1/service.rb +90 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +75 -41
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +75 -41
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +75 -41
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +82 -41
- data/generated/google/apis/run_v1alpha1/representations.rb +2 -0
- data/generated/google/apis/{fusiontables_v2.rb → secretmanager_v1beta1.rb} +11 -14
- data/generated/google/apis/secretmanager_v1beta1/classes.rb +936 -0
- data/generated/google/apis/secretmanager_v1beta1/representations.rb +388 -0
- data/generated/google/apis/secretmanager_v1beta1/service.rb +674 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +85 -1
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +32 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +4 -3
- data/generated/google/apis/servicecontrol_v1/service.rb +2 -1
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +38 -1
- data/generated/google/apis/servicenetworking_v1/representations.rb +14 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +35 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -1
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +1 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +16 -1
- data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +16 -1
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/service.rb +4 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +2 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +374 -2
- data/generated/google/apis/toolresults_v1beta3/representations.rb +109 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +98 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -11
- data/generated/google/apis/fusiontables_v1/classes.rb +0 -977
- data/generated/google/apis/fusiontables_v1/representations.rb +0 -449
- data/generated/google/apis/fusiontables_v1/service.rb +0 -1307
- data/generated/google/apis/fusiontables_v2/classes.rb +0 -1049
- data/generated/google/apis/fusiontables_v2/representations.rb +0 -457
- data/generated/google/apis/fusiontables_v2/service.rb +0 -1431
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/cloud-build/docs/
|
|
26
26
|
module CloudbuildV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20191207'
|
|
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'
|
|
@@ -408,9 +408,9 @@ module Google
|
|
|
408
408
|
# @return [Array<Google::Apis::CloudbuildV1::Volume>]
|
|
409
409
|
attr_accessor :volumes
|
|
410
410
|
|
|
411
|
-
# Option to specify a `WorkerPool` for the build.
|
|
412
|
-
#
|
|
413
|
-
# This is
|
|
411
|
+
# Option to specify a `WorkerPool` for the build.
|
|
412
|
+
# Format: projects/`project`/workerPools/`workerPool`
|
|
413
|
+
# This field is experimental.
|
|
414
414
|
# Corresponds to the JSON property `workerPool`
|
|
415
415
|
# @return [String]
|
|
416
416
|
attr_accessor :worker_pool
|
|
@@ -649,7 +649,11 @@ module Google
|
|
|
649
649
|
# @return [Array<String>]
|
|
650
650
|
attr_accessor :included_files
|
|
651
651
|
|
|
652
|
-
# User
|
|
652
|
+
# User-assigned name of the trigger. Must be unique within the project.
|
|
653
|
+
# Trigger names must meet the following requirements:
|
|
654
|
+
# + They must contain only alphanumeric characters and dashes.
|
|
655
|
+
# + They can be 1-64 characters long.
|
|
656
|
+
# + They must begin and end with an alphanumeric character.
|
|
653
657
|
# Corresponds to the JSON property `name`
|
|
654
658
|
# @return [String]
|
|
655
659
|
attr_accessor :name
|
|
@@ -1014,7 +1018,7 @@ module Google
|
|
|
1014
1018
|
# @return [String]
|
|
1015
1019
|
attr_accessor :branch
|
|
1016
1020
|
|
|
1017
|
-
# Whether to block builds on a "/gcbrun" comment from a repository
|
|
1021
|
+
# Whether to block builds on a "/gcbrun" comment from a repository admin or
|
|
1018
1022
|
# collaborator.
|
|
1019
1023
|
# Corresponds to the JSON property `commentControl`
|
|
1020
1024
|
# @return [String]
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/functions
|
|
26
26
|
module CloudfunctionsV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20191203'
|
|
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'
|
|
@@ -162,6 +162,23 @@ module Google
|
|
|
162
162
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
|
163
163
|
# * `group:`emailid``: An email address that represents a Google group.
|
|
164
164
|
# For example, `admins@example.com`.
|
|
165
|
+
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
|
166
|
+
# identifier) representing a user that has been recently deleted. For
|
|
167
|
+
# example, `alice@example.com?uid=123456789012345678901`. If the user is
|
|
168
|
+
# recovered, this value reverts to `user:`emailid`` and the recovered user
|
|
169
|
+
# retains the role in the binding.
|
|
170
|
+
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
|
|
171
|
+
# unique identifier) representing a service account that has been recently
|
|
172
|
+
# deleted. For example,
|
|
173
|
+
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
|
174
|
+
# If the service account is undeleted, this value reverts to
|
|
175
|
+
# `serviceAccount:`emailid`` and the undeleted service account retains the
|
|
176
|
+
# role in the binding.
|
|
177
|
+
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
|
178
|
+
# identifier) representing a Google group that has been recently
|
|
179
|
+
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
|
180
|
+
# the group is recovered, this value reverts to `group:`emailid`` and the
|
|
181
|
+
# recovered group retains the role in the binding.
|
|
165
182
|
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
|
166
183
|
# users of that domain. For example, `google.com` or `example.com`.
|
|
167
184
|
# Corresponds to the JSON property `members`
|
|
@@ -928,16 +945,18 @@ module Google
|
|
|
928
945
|
end
|
|
929
946
|
end
|
|
930
947
|
|
|
931
|
-
#
|
|
932
|
-
#
|
|
948
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
|
949
|
+
# controls for Google Cloud resources.
|
|
933
950
|
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
|
934
951
|
# `members` to a single `role`. Members can be user accounts, service accounts,
|
|
935
952
|
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
|
936
|
-
# permissions
|
|
937
|
-
#
|
|
938
|
-
#
|
|
939
|
-
#
|
|
940
|
-
#
|
|
953
|
+
# permissions; each `role` can be an IAM predefined role or a user-created
|
|
954
|
+
# custom role.
|
|
955
|
+
# Optionally, a `binding` can specify a `condition`, which is a logical
|
|
956
|
+
# expression that allows access to a resource only if the expression evaluates
|
|
957
|
+
# to `true`. A condition can add constraints based on attributes of the
|
|
958
|
+
# request, the resource, or both.
|
|
959
|
+
# **JSON example:**
|
|
941
960
|
# `
|
|
942
961
|
# "bindings": [
|
|
943
962
|
# `
|
|
@@ -955,13 +974,15 @@ module Google
|
|
|
955
974
|
# "condition": `
|
|
956
975
|
# "title": "expirable access",
|
|
957
976
|
# "description": "Does not grant access after Sep 2020",
|
|
958
|
-
# "expression": "request.time <
|
|
959
|
-
#
|
|
977
|
+
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
978
|
+
# ",
|
|
960
979
|
# `
|
|
961
980
|
# `
|
|
962
|
-
# ]
|
|
981
|
+
# ],
|
|
982
|
+
# "etag": "BwWWja0YfJA=",
|
|
983
|
+
# "version": 3
|
|
963
984
|
# `
|
|
964
|
-
# **YAML
|
|
985
|
+
# **YAML example:**
|
|
965
986
|
# bindings:
|
|
966
987
|
# - members:
|
|
967
988
|
# - user:mike@example.com
|
|
@@ -976,8 +997,10 @@ module Google
|
|
|
976
997
|
# title: expirable access
|
|
977
998
|
# description: Does not grant access after Sep 2020
|
|
978
999
|
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
1000
|
+
# - etag: BwWWja0YfJA=
|
|
1001
|
+
# - version: 3
|
|
979
1002
|
# For a description of IAM and its features, see the
|
|
980
|
-
# [IAM
|
|
1003
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
981
1004
|
class Policy
|
|
982
1005
|
include Google::Apis::Core::Hashable
|
|
983
1006
|
|
|
@@ -986,9 +1009,9 @@ module Google
|
|
|
986
1009
|
# @return [Array<Google::Apis::CloudfunctionsV1::AuditConfig>]
|
|
987
1010
|
attr_accessor :audit_configs
|
|
988
1011
|
|
|
989
|
-
# Associates a list of `members` to a `role`. Optionally may specify a
|
|
990
|
-
# `condition` that determines when
|
|
991
|
-
# `bindings`
|
|
1012
|
+
# Associates a list of `members` to a `role`. Optionally, may specify a
|
|
1013
|
+
# `condition` that determines how and when the `bindings` are applied. Each
|
|
1014
|
+
# of the `bindings` must contain at least one member.
|
|
992
1015
|
# Corresponds to the JSON property `bindings`
|
|
993
1016
|
# @return [Array<Google::Apis::CloudfunctionsV1::Binding>]
|
|
994
1017
|
attr_accessor :bindings
|
|
@@ -1000,26 +1023,31 @@ module Google
|
|
|
1000
1023
|
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
|
1001
1024
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
|
1002
1025
|
# ensure that their change will be applied to the same version of the policy.
|
|
1003
|
-
# If
|
|
1004
|
-
#
|
|
1005
|
-
#
|
|
1006
|
-
#
|
|
1026
|
+
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
|
1027
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
|
1028
|
+
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
|
1029
|
+
# the conditions in the version `3` policy are lost.
|
|
1007
1030
|
# Corresponds to the JSON property `etag`
|
|
1008
1031
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1009
1032
|
# @return [String]
|
|
1010
1033
|
attr_accessor :etag
|
|
1011
1034
|
|
|
1012
1035
|
# Specifies the format of the policy.
|
|
1013
|
-
# Valid values are 0
|
|
1014
|
-
# rejected.
|
|
1015
|
-
#
|
|
1016
|
-
#
|
|
1017
|
-
#
|
|
1018
|
-
# conditional policy
|
|
1019
|
-
#
|
|
1020
|
-
#
|
|
1021
|
-
#
|
|
1022
|
-
#
|
|
1036
|
+
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
|
|
1037
|
+
# are rejected.
|
|
1038
|
+
# Any operation that affects conditional role bindings must specify version
|
|
1039
|
+
# `3`. This requirement applies to the following operations:
|
|
1040
|
+
# * Getting a policy that includes a conditional role binding
|
|
1041
|
+
# * Adding a conditional role binding to a policy
|
|
1042
|
+
# * Changing a conditional role binding in a policy
|
|
1043
|
+
# * Removing any role binding, with or without a condition, from a policy
|
|
1044
|
+
# that includes conditions
|
|
1045
|
+
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
|
1046
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
|
1047
|
+
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
|
1048
|
+
# the conditions in the version `3` policy are lost.
|
|
1049
|
+
# If a policy does not include any conditions, operations on that policy may
|
|
1050
|
+
# specify any valid version or leave the field unset.
|
|
1023
1051
|
# Corresponds to the JSON property `version`
|
|
1024
1052
|
# @return [Fixnum]
|
|
1025
1053
|
attr_accessor :version
|
|
@@ -1058,16 +1086,18 @@ module Google
|
|
|
1058
1086
|
class SetIamPolicyRequest
|
|
1059
1087
|
include Google::Apis::Core::Hashable
|
|
1060
1088
|
|
|
1061
|
-
#
|
|
1062
|
-
#
|
|
1089
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
|
1090
|
+
# controls for Google Cloud resources.
|
|
1063
1091
|
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
|
1064
1092
|
# `members` to a single `role`. Members can be user accounts, service accounts,
|
|
1065
1093
|
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
|
1066
|
-
# permissions
|
|
1067
|
-
#
|
|
1068
|
-
#
|
|
1069
|
-
#
|
|
1070
|
-
#
|
|
1094
|
+
# permissions; each `role` can be an IAM predefined role or a user-created
|
|
1095
|
+
# custom role.
|
|
1096
|
+
# Optionally, a `binding` can specify a `condition`, which is a logical
|
|
1097
|
+
# expression that allows access to a resource only if the expression evaluates
|
|
1098
|
+
# to `true`. A condition can add constraints based on attributes of the
|
|
1099
|
+
# request, the resource, or both.
|
|
1100
|
+
# **JSON example:**
|
|
1071
1101
|
# `
|
|
1072
1102
|
# "bindings": [
|
|
1073
1103
|
# `
|
|
@@ -1085,13 +1115,15 @@ module Google
|
|
|
1085
1115
|
# "condition": `
|
|
1086
1116
|
# "title": "expirable access",
|
|
1087
1117
|
# "description": "Does not grant access after Sep 2020",
|
|
1088
|
-
# "expression": "request.time <
|
|
1089
|
-
#
|
|
1118
|
+
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
1119
|
+
# ",
|
|
1090
1120
|
# `
|
|
1091
1121
|
# `
|
|
1092
|
-
# ]
|
|
1122
|
+
# ],
|
|
1123
|
+
# "etag": "BwWWja0YfJA=",
|
|
1124
|
+
# "version": 3
|
|
1093
1125
|
# `
|
|
1094
|
-
# **YAML
|
|
1126
|
+
# **YAML example:**
|
|
1095
1127
|
# bindings:
|
|
1096
1128
|
# - members:
|
|
1097
1129
|
# - user:mike@example.com
|
|
@@ -1106,8 +1138,10 @@ module Google
|
|
|
1106
1138
|
# title: expirable access
|
|
1107
1139
|
# description: Does not grant access after Sep 2020
|
|
1108
1140
|
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
1141
|
+
# - etag: BwWWja0YfJA=
|
|
1142
|
+
# - version: 3
|
|
1109
1143
|
# For a description of IAM and its features, see the
|
|
1110
|
-
# [IAM
|
|
1144
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
1111
1145
|
# Corresponds to the JSON property `policy`
|
|
1112
1146
|
# @return [Google::Apis::CloudfunctionsV1::Policy]
|
|
1113
1147
|
attr_accessor :policy
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/iot
|
|
27
27
|
module CloudiotV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20191203'
|
|
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'
|
|
@@ -87,6 +87,23 @@ module Google
|
|
|
87
87
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
|
88
88
|
# * `group:`emailid``: An email address that represents a Google group.
|
|
89
89
|
# For example, `admins@example.com`.
|
|
90
|
+
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
|
91
|
+
# identifier) representing a user that has been recently deleted. For
|
|
92
|
+
# example, `alice@example.com?uid=123456789012345678901`. If the user is
|
|
93
|
+
# recovered, this value reverts to `user:`emailid`` and the recovered user
|
|
94
|
+
# retains the role in the binding.
|
|
95
|
+
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
|
|
96
|
+
# unique identifier) representing a service account that has been recently
|
|
97
|
+
# deleted. For example,
|
|
98
|
+
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
|
99
|
+
# If the service account is undeleted, this value reverts to
|
|
100
|
+
# `serviceAccount:`emailid`` and the undeleted service account retains the
|
|
101
|
+
# role in the binding.
|
|
102
|
+
# * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
|
103
|
+
# identifier) representing a Google group that has been recently
|
|
104
|
+
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
|
105
|
+
# the group is recovered, this value reverts to `group:`emailid`` and the
|
|
106
|
+
# recovered group retains the role in the binding.
|
|
90
107
|
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
|
91
108
|
# users of that domain. For example, `google.com` or `example.com`.
|
|
92
109
|
# Corresponds to the JSON property `members`
|
|
@@ -793,16 +810,18 @@ module Google
|
|
|
793
810
|
end
|
|
794
811
|
end
|
|
795
812
|
|
|
796
|
-
#
|
|
797
|
-
#
|
|
813
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
|
814
|
+
# controls for Google Cloud resources.
|
|
798
815
|
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
|
799
816
|
# `members` to a single `role`. Members can be user accounts, service accounts,
|
|
800
817
|
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
|
801
|
-
# permissions
|
|
802
|
-
#
|
|
803
|
-
#
|
|
804
|
-
#
|
|
805
|
-
#
|
|
818
|
+
# permissions; each `role` can be an IAM predefined role or a user-created
|
|
819
|
+
# custom role.
|
|
820
|
+
# Optionally, a `binding` can specify a `condition`, which is a logical
|
|
821
|
+
# expression that allows access to a resource only if the expression evaluates
|
|
822
|
+
# to `true`. A condition can add constraints based on attributes of the
|
|
823
|
+
# request, the resource, or both.
|
|
824
|
+
# **JSON example:**
|
|
806
825
|
# `
|
|
807
826
|
# "bindings": [
|
|
808
827
|
# `
|
|
@@ -820,13 +839,15 @@ module Google
|
|
|
820
839
|
# "condition": `
|
|
821
840
|
# "title": "expirable access",
|
|
822
841
|
# "description": "Does not grant access after Sep 2020",
|
|
823
|
-
# "expression": "request.time <
|
|
824
|
-
#
|
|
842
|
+
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
843
|
+
# ",
|
|
825
844
|
# `
|
|
826
845
|
# `
|
|
827
|
-
# ]
|
|
846
|
+
# ],
|
|
847
|
+
# "etag": "BwWWja0YfJA=",
|
|
848
|
+
# "version": 3
|
|
828
849
|
# `
|
|
829
|
-
# **YAML
|
|
850
|
+
# **YAML example:**
|
|
830
851
|
# bindings:
|
|
831
852
|
# - members:
|
|
832
853
|
# - user:mike@example.com
|
|
@@ -841,14 +862,16 @@ module Google
|
|
|
841
862
|
# title: expirable access
|
|
842
863
|
# description: Does not grant access after Sep 2020
|
|
843
864
|
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
865
|
+
# - etag: BwWWja0YfJA=
|
|
866
|
+
# - version: 3
|
|
844
867
|
# For a description of IAM and its features, see the
|
|
845
|
-
# [IAM
|
|
868
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
846
869
|
class Policy
|
|
847
870
|
include Google::Apis::Core::Hashable
|
|
848
871
|
|
|
849
|
-
# Associates a list of `members` to a `role`. Optionally may specify a
|
|
850
|
-
# `condition` that determines when
|
|
851
|
-
# `bindings`
|
|
872
|
+
# Associates a list of `members` to a `role`. Optionally, may specify a
|
|
873
|
+
# `condition` that determines how and when the `bindings` are applied. Each
|
|
874
|
+
# of the `bindings` must contain at least one member.
|
|
852
875
|
# Corresponds to the JSON property `bindings`
|
|
853
876
|
# @return [Array<Google::Apis::CloudiotV1::Binding>]
|
|
854
877
|
attr_accessor :bindings
|
|
@@ -860,26 +883,31 @@ module Google
|
|
|
860
883
|
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
|
861
884
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
|
862
885
|
# ensure that their change will be applied to the same version of the policy.
|
|
863
|
-
# If
|
|
864
|
-
#
|
|
865
|
-
#
|
|
866
|
-
#
|
|
886
|
+
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
|
887
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
|
888
|
+
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
|
889
|
+
# the conditions in the version `3` policy are lost.
|
|
867
890
|
# Corresponds to the JSON property `etag`
|
|
868
891
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
869
892
|
# @return [String]
|
|
870
893
|
attr_accessor :etag
|
|
871
894
|
|
|
872
895
|
# Specifies the format of the policy.
|
|
873
|
-
# Valid values are 0
|
|
874
|
-
# rejected.
|
|
875
|
-
#
|
|
876
|
-
#
|
|
877
|
-
#
|
|
878
|
-
# conditional policy
|
|
879
|
-
#
|
|
880
|
-
#
|
|
881
|
-
#
|
|
882
|
-
#
|
|
896
|
+
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
|
|
897
|
+
# are rejected.
|
|
898
|
+
# Any operation that affects conditional role bindings must specify version
|
|
899
|
+
# `3`. This requirement applies to the following operations:
|
|
900
|
+
# * Getting a policy that includes a conditional role binding
|
|
901
|
+
# * Adding a conditional role binding to a policy
|
|
902
|
+
# * Changing a conditional role binding in a policy
|
|
903
|
+
# * Removing any role binding, with or without a condition, from a policy
|
|
904
|
+
# that includes conditions
|
|
905
|
+
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
|
906
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
|
907
|
+
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
|
908
|
+
# the conditions in the version `3` policy are lost.
|
|
909
|
+
# If a policy does not include any conditions, operations on that policy may
|
|
910
|
+
# specify any valid version or leave the field unset.
|
|
883
911
|
# Corresponds to the JSON property `version`
|
|
884
912
|
# @return [Fixnum]
|
|
885
913
|
attr_accessor :version
|
|
@@ -1018,16 +1046,18 @@ module Google
|
|
|
1018
1046
|
class SetIamPolicyRequest
|
|
1019
1047
|
include Google::Apis::Core::Hashable
|
|
1020
1048
|
|
|
1021
|
-
#
|
|
1022
|
-
#
|
|
1049
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
|
1050
|
+
# controls for Google Cloud resources.
|
|
1023
1051
|
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
|
1024
1052
|
# `members` to a single `role`. Members can be user accounts, service accounts,
|
|
1025
1053
|
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
|
1026
|
-
# permissions
|
|
1027
|
-
#
|
|
1028
|
-
#
|
|
1029
|
-
#
|
|
1030
|
-
#
|
|
1054
|
+
# permissions; each `role` can be an IAM predefined role or a user-created
|
|
1055
|
+
# custom role.
|
|
1056
|
+
# Optionally, a `binding` can specify a `condition`, which is a logical
|
|
1057
|
+
# expression that allows access to a resource only if the expression evaluates
|
|
1058
|
+
# to `true`. A condition can add constraints based on attributes of the
|
|
1059
|
+
# request, the resource, or both.
|
|
1060
|
+
# **JSON example:**
|
|
1031
1061
|
# `
|
|
1032
1062
|
# "bindings": [
|
|
1033
1063
|
# `
|
|
@@ -1045,13 +1075,15 @@ module Google
|
|
|
1045
1075
|
# "condition": `
|
|
1046
1076
|
# "title": "expirable access",
|
|
1047
1077
|
# "description": "Does not grant access after Sep 2020",
|
|
1048
|
-
# "expression": "request.time <
|
|
1049
|
-
#
|
|
1078
|
+
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
1079
|
+
# ",
|
|
1050
1080
|
# `
|
|
1051
1081
|
# `
|
|
1052
|
-
# ]
|
|
1082
|
+
# ],
|
|
1083
|
+
# "etag": "BwWWja0YfJA=",
|
|
1084
|
+
# "version": 3
|
|
1053
1085
|
# `
|
|
1054
|
-
# **YAML
|
|
1086
|
+
# **YAML example:**
|
|
1055
1087
|
# bindings:
|
|
1056
1088
|
# - members:
|
|
1057
1089
|
# - user:mike@example.com
|
|
@@ -1066,8 +1098,10 @@ module Google
|
|
|
1066
1098
|
# title: expirable access
|
|
1067
1099
|
# description: Does not grant access after Sep 2020
|
|
1068
1100
|
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
1101
|
+
# - etag: BwWWja0YfJA=
|
|
1102
|
+
# - version: 3
|
|
1069
1103
|
# For a description of IAM and its features, see the
|
|
1070
|
-
# [IAM
|
|
1104
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
1071
1105
|
# Corresponds to the JSON property `policy`
|
|
1072
1106
|
# @return [Google::Apis::CloudiotV1::Policy]
|
|
1073
1107
|
attr_accessor :policy
|