google-api-client 0.30.5 → 0.30.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +63 -0
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/service.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/service.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +11 -7
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +1 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +2 -2
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +19 -10
- data/generated/google/apis/cloudasset_v1/representations.rb +1 -0
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +19 -10
- data/generated/google/apis/cloudasset_v1beta1/representations.rb +1 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +19 -10
- data/generated/google/apis/cloudbilling_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +7 -1
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +28 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +15 -0
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +19 -10
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +1 -0
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +7 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +10 -10
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +4 -6
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +10 -10
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +10 -10
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +10 -10
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +261 -145
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +261 -145
- data/generated/google/apis/compute_beta/service.rb +1 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +242 -125
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +43 -0
- data/generated/google/apis/container_v1/representations.rb +19 -0
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +28 -0
- data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +15 -0
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +28 -0
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +15 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +0 -6
- data/generated/google/apis/content_v2/representations.rb +0 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +1 -1
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +27 -0
- data/generated/google/apis/dataproc_v1/representations.rb +15 -0
- data/generated/google/apis/dataproc_v1/service.rb +0 -216
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +27 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +15 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +42 -7
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +146 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +75 -0
- data/generated/google/apis/dialogflow_v2/service.rb +47 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +146 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +75 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +47 -0
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/fcm_v1/classes.rb +29 -0
- data/generated/google/apis/fcm_v1/representations.rb +3 -0
- data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
- data/generated/google/apis/healthcare_v1alpha2/classes.rb +19 -10
- data/generated/google/apis/healthcare_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/healthcare_v1alpha2/service.rb +12 -10
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +19 -10
- data/generated/google/apis/healthcare_v1beta1/representations.rb +1 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +12 -12
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/classes.rb +0 -97
- data/generated/google/apis/iamcredentials_v1/representations.rb +0 -28
- data/generated/google/apis/iamcredentials_v1/service.rb +0 -36
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +2 -2
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +2 -2
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +11 -11
- data/generated/google/apis/ml_v1/service.rb +14 -2
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/service.rb +21 -3
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/service.rb +14 -2
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +24 -19
- data/generated/google/apis/run_v1alpha1/representations.rb +4 -3
- data/generated/google/apis/run_v1alpha1/service.rb +7 -1
- data/generated/google/apis/run_v1beta1.rb +35 -0
- data/generated/google/apis/run_v1beta1/classes.rb +98 -0
- data/generated/google/apis/run_v1beta1/representations.rb +58 -0
- data/generated/google/apis/run_v1beta1/service.rb +99 -0
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +7 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +19 -10
- data/generated/google/apis/securitycenter_v1/representations.rb +1 -0
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +19 -10
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +1 -0
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +2 -2
- data/generated/google/apis/servicebroker_v1/service.rb +7 -1
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +7 -10
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +7 -1
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +13 -20
- data/generated/google/apis/servicebroker_v1beta1/service.rb +7 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +10 -2
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +18 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +2 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +13 -4
- data/generated/google/apis/servicenetworking_v1/representations.rb +1 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +13 -4
- 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 +9 -0
- 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 +9 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/service.rb +0 -104
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1995 -0
- data/generated/google/apis/vision_v1/representations.rb +1711 -843
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1995 -0
- data/generated/google/apis/vision_v1p1beta1/representations.rb +1782 -914
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +1995 -0
- data/generated/google/apis/vision_v1p2beta1/representations.rb +1832 -964
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -2
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/billing/
|
27
27
|
module CloudbillingV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20190709'
|
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'
|
@@ -72,7 +72,7 @@ module Google
|
|
72
72
|
# `
|
73
73
|
# "log_type": "DATA_READ",
|
74
74
|
# "exempted_members": [
|
75
|
-
# "user:
|
75
|
+
# "user:jose@example.com"
|
76
76
|
# ]
|
77
77
|
# `,
|
78
78
|
# `
|
@@ -84,7 +84,7 @@ module Google
|
|
84
84
|
# ]
|
85
85
|
# `,
|
86
86
|
# `
|
87
|
-
# "service": "
|
87
|
+
# "service": "sampleservice.googleapis.com"
|
88
88
|
# "audit_log_configs": [
|
89
89
|
# `
|
90
90
|
# "log_type": "DATA_READ",
|
@@ -92,16 +92,16 @@ module Google
|
|
92
92
|
# `
|
93
93
|
# "log_type": "DATA_WRITE",
|
94
94
|
# "exempted_members": [
|
95
|
-
# "user:
|
95
|
+
# "user:aliya@example.com"
|
96
96
|
# ]
|
97
97
|
# `
|
98
98
|
# ]
|
99
99
|
# `
|
100
100
|
# ]
|
101
101
|
# `
|
102
|
-
# For
|
103
|
-
# logging. It also exempts
|
104
|
-
#
|
102
|
+
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
103
|
+
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
104
|
+
# aliya@example.com from DATA_WRITE logging.
|
105
105
|
class AuditConfig
|
106
106
|
include Google::Apis::Core::Hashable
|
107
107
|
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
# `
|
136
136
|
# "log_type": "DATA_READ",
|
137
137
|
# "exempted_members": [
|
138
|
-
# "user:
|
138
|
+
# "user:jose@example.com"
|
139
139
|
# ]
|
140
140
|
# `,
|
141
141
|
# `
|
@@ -144,7 +144,7 @@ module Google
|
|
144
144
|
# ]
|
145
145
|
# `
|
146
146
|
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
147
|
-
#
|
147
|
+
# jose@example.com from DATA_READ logging.
|
148
148
|
class AuditLogConfig
|
149
149
|
include Google::Apis::Core::Hashable
|
150
150
|
|
@@ -155,6 +155,14 @@ module Google
|
|
155
155
|
# @return [Array<String>]
|
156
156
|
attr_accessor :exempted_members
|
157
157
|
|
158
|
+
# Specifies whether principals can be exempted for the same LogType in
|
159
|
+
# lower-level resource policies. If true, any lower-level exemptions will
|
160
|
+
# be ignored.
|
161
|
+
# Corresponds to the JSON property `ignoreChildExemptions`
|
162
|
+
# @return [Boolean]
|
163
|
+
attr_accessor :ignore_child_exemptions
|
164
|
+
alias_method :ignore_child_exemptions?, :ignore_child_exemptions
|
165
|
+
|
158
166
|
# The log type that this config enables.
|
159
167
|
# Corresponds to the JSON property `logType`
|
160
168
|
# @return [String]
|
@@ -167,6 +175,7 @@ module Google
|
|
167
175
|
# Update properties of this object
|
168
176
|
def update!(**args)
|
169
177
|
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
178
|
+
@ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions)
|
170
179
|
@log_type = args[:log_type] if args.key?(:log_type)
|
171
180
|
end
|
172
181
|
end
|
@@ -239,7 +248,7 @@ module Google
|
|
239
248
|
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
240
249
|
# who is authenticated with a Google account or a service account.
|
241
250
|
# * `user:`emailid``: An email address that represents a specific Google
|
242
|
-
# account. For example, `alice@
|
251
|
+
# account. For example, `alice@example.com` .
|
243
252
|
# * `serviceAccount:`emailid``: An email address that represents a service
|
244
253
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
245
254
|
# * `group:`emailid``: An email address that represents a Google group.
|
@@ -560,7 +569,7 @@ module Google
|
|
560
569
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
561
570
|
# ensure that their change will be applied to the same version of the policy.
|
562
571
|
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
563
|
-
# policy is overwritten
|
572
|
+
# policy is overwritten.
|
564
573
|
# Corresponds to the JSON property `etag`
|
565
574
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
566
575
|
# @return [String]
|
@@ -176,6 +176,7 @@ module Google
|
|
176
176
|
# @private
|
177
177
|
class Representation < Google::Apis::Core::JsonRepresentation
|
178
178
|
collection :exempted_members, as: 'exemptedMembers'
|
179
|
+
property :ignore_child_exemptions, as: 'ignoreChildExemptions'
|
179
180
|
property :log_type, as: 'logType'
|
180
181
|
end
|
181
182
|
end
|
@@ -127,6 +127,11 @@ module Google
|
|
127
127
|
# @param [String] resource
|
128
128
|
# REQUIRED: The resource for which the policy is being requested.
|
129
129
|
# See the operation documentation for the appropriate value for this field.
|
130
|
+
# @param [Fixnum] options_requested_policy_version
|
131
|
+
# Optional. The policy format version to be returned.
|
132
|
+
# Acceptable values are 0 and 1.
|
133
|
+
# If the value is 0, or the field is omitted, policy format version 1 will be
|
134
|
+
# returned.
|
130
135
|
# @param [String] fields
|
131
136
|
# Selector specifying which fields to include in a partial response.
|
132
137
|
# @param [String] quota_user
|
@@ -144,11 +149,12 @@ module Google
|
|
144
149
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
145
150
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
146
151
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
147
|
-
def get_billing_account_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
152
|
+
def get_billing_account_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
148
153
|
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
149
154
|
command.response_representation = Google::Apis::CloudbillingV1::Policy::Representation
|
150
155
|
command.response_class = Google::Apis::CloudbillingV1::Policy
|
151
156
|
command.params['resource'] = resource unless resource.nil?
|
157
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
152
158
|
command.query['fields'] = fields unless fields.nil?
|
153
159
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
154
160
|
execute_or_queue_command(command, &block)
|
@@ -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 = '20190702'
|
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'
|
@@ -591,12 +591,40 @@ module Google
|
|
591
591
|
class GetIamPolicyRequest
|
592
592
|
include Google::Apis::Core::Hashable
|
593
593
|
|
594
|
+
# Encapsulates settings provided to GetIamPolicy.
|
595
|
+
# Corresponds to the JSON property `options`
|
596
|
+
# @return [Google::Apis::CloudiotV1::GetPolicyOptions]
|
597
|
+
attr_accessor :options
|
598
|
+
|
599
|
+
def initialize(**args)
|
600
|
+
update!(**args)
|
601
|
+
end
|
602
|
+
|
603
|
+
# Update properties of this object
|
604
|
+
def update!(**args)
|
605
|
+
@options = args[:options] if args.key?(:options)
|
606
|
+
end
|
607
|
+
end
|
608
|
+
|
609
|
+
# Encapsulates settings provided to GetIamPolicy.
|
610
|
+
class GetPolicyOptions
|
611
|
+
include Google::Apis::Core::Hashable
|
612
|
+
|
613
|
+
# Optional. The policy format version to be returned.
|
614
|
+
# Acceptable values are 0 and 1.
|
615
|
+
# If the value is 0, or the field is omitted, policy format version 1 will be
|
616
|
+
# returned.
|
617
|
+
# Corresponds to the JSON property `requestedPolicyVersion`
|
618
|
+
# @return [Fixnum]
|
619
|
+
attr_accessor :requested_policy_version
|
620
|
+
|
594
621
|
def initialize(**args)
|
595
622
|
update!(**args)
|
596
623
|
end
|
597
624
|
|
598
625
|
# Update properties of this object
|
599
626
|
def update!(**args)
|
627
|
+
@requested_policy_version = args[:requested_policy_version] if args.key?(:requested_policy_version)
|
600
628
|
end
|
601
629
|
end
|
602
630
|
|
@@ -100,6 +100,12 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class GetPolicyOptions
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
103
109
|
class HttpConfig
|
104
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
111
|
|
@@ -361,6 +367,15 @@ module Google
|
|
361
367
|
class GetIamPolicyRequest
|
362
368
|
# @private
|
363
369
|
class Representation < Google::Apis::Core::JsonRepresentation
|
370
|
+
property :options, as: 'options', class: Google::Apis::CloudiotV1::GetPolicyOptions, decorator: Google::Apis::CloudiotV1::GetPolicyOptions::Representation
|
371
|
+
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
375
|
+
class GetPolicyOptions
|
376
|
+
# @private
|
377
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
378
|
+
property :requested_policy_version, as: 'requestedPolicyVersion'
|
364
379
|
end
|
365
380
|
end
|
366
381
|
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/private-catalog/
|
27
27
|
module CloudprivatecatalogproducerV1beta1
|
28
28
|
VERSION = 'V1beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20190704'
|
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'
|
@@ -598,7 +598,7 @@ module Google
|
|
598
598
|
# `
|
599
599
|
# "log_type": "DATA_READ",
|
600
600
|
# "exempted_members": [
|
601
|
-
# "user:
|
601
|
+
# "user:jose@example.com"
|
602
602
|
# ]
|
603
603
|
# `,
|
604
604
|
# `
|
@@ -610,7 +610,7 @@ module Google
|
|
610
610
|
# ]
|
611
611
|
# `,
|
612
612
|
# `
|
613
|
-
# "service": "
|
613
|
+
# "service": "sampleservice.googleapis.com"
|
614
614
|
# "audit_log_configs": [
|
615
615
|
# `
|
616
616
|
# "log_type": "DATA_READ",
|
@@ -618,16 +618,16 @@ module Google
|
|
618
618
|
# `
|
619
619
|
# "log_type": "DATA_WRITE",
|
620
620
|
# "exempted_members": [
|
621
|
-
# "user:
|
621
|
+
# "user:aliya@example.com"
|
622
622
|
# ]
|
623
623
|
# `
|
624
624
|
# ]
|
625
625
|
# `
|
626
626
|
# ]
|
627
627
|
# `
|
628
|
-
# For
|
629
|
-
# logging. It also exempts
|
630
|
-
#
|
628
|
+
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
629
|
+
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
630
|
+
# aliya@example.com from DATA_WRITE logging.
|
631
631
|
class GoogleIamV1AuditConfig
|
632
632
|
include Google::Apis::Core::Hashable
|
633
633
|
|
@@ -661,7 +661,7 @@ module Google
|
|
661
661
|
# `
|
662
662
|
# "log_type": "DATA_READ",
|
663
663
|
# "exempted_members": [
|
664
|
-
# "user:
|
664
|
+
# "user:jose@example.com"
|
665
665
|
# ]
|
666
666
|
# `,
|
667
667
|
# `
|
@@ -670,7 +670,7 @@ module Google
|
|
670
670
|
# ]
|
671
671
|
# `
|
672
672
|
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
673
|
-
#
|
673
|
+
# jose@example.com from DATA_READ logging.
|
674
674
|
class GoogleIamV1AuditLogConfig
|
675
675
|
include Google::Apis::Core::Hashable
|
676
676
|
|
@@ -681,6 +681,14 @@ module Google
|
|
681
681
|
# @return [Array<String>]
|
682
682
|
attr_accessor :exempted_members
|
683
683
|
|
684
|
+
# Specifies whether principals can be exempted for the same LogType in
|
685
|
+
# lower-level resource policies. If true, any lower-level exemptions will
|
686
|
+
# be ignored.
|
687
|
+
# Corresponds to the JSON property `ignoreChildExemptions`
|
688
|
+
# @return [Boolean]
|
689
|
+
attr_accessor :ignore_child_exemptions
|
690
|
+
alias_method :ignore_child_exemptions?, :ignore_child_exemptions
|
691
|
+
|
684
692
|
# The log type that this config enables.
|
685
693
|
# Corresponds to the JSON property `logType`
|
686
694
|
# @return [String]
|
@@ -693,6 +701,7 @@ module Google
|
|
693
701
|
# Update properties of this object
|
694
702
|
def update!(**args)
|
695
703
|
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
704
|
+
@ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions)
|
696
705
|
@log_type = args[:log_type] if args.key?(:log_type)
|
697
706
|
end
|
698
707
|
end
|
@@ -716,7 +725,7 @@ module Google
|
|
716
725
|
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
717
726
|
# who is authenticated with a Google account or a service account.
|
718
727
|
# * `user:`emailid``: An email address that represents a specific Google
|
719
|
-
# account. For example, `alice@
|
728
|
+
# account. For example, `alice@example.com` .
|
720
729
|
# * `serviceAccount:`emailid``: An email address that represents a service
|
721
730
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
722
731
|
# * `group:`emailid``: An email address that represents a Google group.
|
@@ -804,7 +813,7 @@ module Google
|
|
804
813
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
805
814
|
# ensure that their change will be applied to the same version of the policy.
|
806
815
|
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
807
|
-
# policy is overwritten
|
816
|
+
# policy is overwritten.
|
808
817
|
# Corresponds to the JSON property `etag`
|
809
818
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
810
819
|
# @return [String]
|
@@ -294,6 +294,7 @@ module Google
|
|
294
294
|
# @private
|
295
295
|
class Representation < Google::Apis::Core::JsonRepresentation
|
296
296
|
collection :exempted_members, as: 'exemptedMembers'
|
297
|
+
property :ignore_child_exemptions, as: 'ignoreChildExemptions'
|
297
298
|
property :log_type, as: 'logType'
|
298
299
|
end
|
299
300
|
end
|
@@ -151,6 +151,11 @@ module Google
|
|
151
151
|
# @param [String] resource
|
152
152
|
# REQUIRED: The resource for which the policy is being requested.
|
153
153
|
# See the operation documentation for the appropriate value for this field.
|
154
|
+
# @param [Fixnum] options_requested_policy_version
|
155
|
+
# Optional. The policy format version to be returned.
|
156
|
+
# Acceptable values are 0 and 1.
|
157
|
+
# If the value is 0, or the field is omitted, policy format version 1 will be
|
158
|
+
# returned.
|
154
159
|
# @param [String] fields
|
155
160
|
# Selector specifying which fields to include in a partial response.
|
156
161
|
# @param [String] quota_user
|
@@ -168,11 +173,12 @@ module Google
|
|
168
173
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
169
174
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
170
175
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
171
|
-
def get_catalog_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
176
|
+
def get_catalog_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
172
177
|
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
173
178
|
command.response_representation = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy::Representation
|
174
179
|
command.response_class = Google::Apis::CloudprivatecatalogproducerV1beta1::GoogleIamV1Policy
|
175
180
|
command.params['resource'] = resource unless resource.nil?
|
181
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
176
182
|
command.query['fields'] = fields unless fields.nil?
|
177
183
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
178
184
|
execute_or_queue_command(command, &block)
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/resource-manager
|
27
27
|
module CloudresourcemanagerV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20190708'
|
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'
|
@@ -61,7 +61,7 @@ module Google
|
|
61
61
|
# `
|
62
62
|
# "log_type": "DATA_READ",
|
63
63
|
# "exempted_members": [
|
64
|
-
# "user:
|
64
|
+
# "user:jose@example.com"
|
65
65
|
# ]
|
66
66
|
# `,
|
67
67
|
# `
|
@@ -73,7 +73,7 @@ module Google
|
|
73
73
|
# ]
|
74
74
|
# `,
|
75
75
|
# `
|
76
|
-
# "service": "
|
76
|
+
# "service": "sampleservice.googleapis.com"
|
77
77
|
# "audit_log_configs": [
|
78
78
|
# `
|
79
79
|
# "log_type": "DATA_READ",
|
@@ -81,16 +81,16 @@ module Google
|
|
81
81
|
# `
|
82
82
|
# "log_type": "DATA_WRITE",
|
83
83
|
# "exempted_members": [
|
84
|
-
# "user:
|
84
|
+
# "user:aliya@example.com"
|
85
85
|
# ]
|
86
86
|
# `
|
87
87
|
# ]
|
88
88
|
# `
|
89
89
|
# ]
|
90
90
|
# `
|
91
|
-
# For
|
92
|
-
# logging. It also exempts
|
93
|
-
#
|
91
|
+
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
92
|
+
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
93
|
+
# aliya@example.com from DATA_WRITE logging.
|
94
94
|
class AuditConfig
|
95
95
|
include Google::Apis::Core::Hashable
|
96
96
|
|
@@ -124,7 +124,7 @@ module Google
|
|
124
124
|
# `
|
125
125
|
# "log_type": "DATA_READ",
|
126
126
|
# "exempted_members": [
|
127
|
-
# "user:
|
127
|
+
# "user:jose@example.com"
|
128
128
|
# ]
|
129
129
|
# `,
|
130
130
|
# `
|
@@ -133,7 +133,7 @@ module Google
|
|
133
133
|
# ]
|
134
134
|
# `
|
135
135
|
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
136
|
-
#
|
136
|
+
# jose@example.com from DATA_READ logging.
|
137
137
|
class AuditLogConfig
|
138
138
|
include Google::Apis::Core::Hashable
|
139
139
|
|
@@ -179,7 +179,7 @@ module Google
|
|
179
179
|
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
180
180
|
# who is authenticated with a Google account or a service account.
|
181
181
|
# * `user:`emailid``: An email address that represents a specific Google
|
182
|
-
# account. For example, `alice@
|
182
|
+
# account. For example, `alice@example.com` .
|
183
183
|
# * `serviceAccount:`emailid``: An email address that represents a service
|
184
184
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
185
185
|
# * `group:`emailid``: An email address that represents a Google group.
|
@@ -1349,7 +1349,7 @@ module Google
|
|
1349
1349
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
1350
1350
|
# ensure that their change will be applied to the same version of the policy.
|
1351
1351
|
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
1352
|
-
# policy is overwritten
|
1352
|
+
# policy is overwritten.
|
1353
1353
|
# Corresponds to the JSON property `etag`
|
1354
1354
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1355
1355
|
# @return [String]
|
@@ -853,12 +853,10 @@ module Google
|
|
853
853
|
end
|
854
854
|
|
855
855
|
# Request that a new Project be created. The result is an Operation which
|
856
|
-
# can be used to track the creation process.
|
857
|
-
#
|
858
|
-
#
|
859
|
-
#
|
860
|
-
# latency. 95th percentile latency is around 11 seconds. We recommend
|
861
|
-
# polling at the 5th second with an exponential backoff.
|
856
|
+
# can be used to track the creation process. This process usually takes a few
|
857
|
+
# seconds, but can sometimes take much longer. The tracking Operation is
|
858
|
+
# automatically deleted after a few hours, so there is no need to call
|
859
|
+
# DeleteOperation.
|
862
860
|
# Authorization requires the Google IAM permission
|
863
861
|
# `resourcemanager.projects.create` on the specified parent for the new
|
864
862
|
# project. The parent is identified by a specified ResourceId,
|