google-api-client 0.30.5 → 0.30.6
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 +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
|
@@ -0,0 +1,99 @@
|
|
|
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/core/base_service'
|
|
16
|
+
require 'google/apis/core/json_representation'
|
|
17
|
+
require 'google/apis/core/hashable'
|
|
18
|
+
require 'google/apis/errors'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
module RunV1beta1
|
|
23
|
+
# Cloud Run API
|
|
24
|
+
#
|
|
25
|
+
# Deploy and manage user provided container images that scale automatically
|
|
26
|
+
# based on HTTP traffic.
|
|
27
|
+
#
|
|
28
|
+
# @example
|
|
29
|
+
# require 'google/apis/run_v1beta1'
|
|
30
|
+
#
|
|
31
|
+
# Run = Google::Apis::RunV1beta1 # Alias the module
|
|
32
|
+
# service = Run::CloudRunService.new
|
|
33
|
+
#
|
|
34
|
+
# @see https://cloud.google.com/run/
|
|
35
|
+
class CloudRunService < Google::Apis::Core::BaseService
|
|
36
|
+
# @return [String]
|
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
39
|
+
attr_accessor :key
|
|
40
|
+
|
|
41
|
+
# @return [String]
|
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
44
|
+
attr_accessor :quota_user
|
|
45
|
+
|
|
46
|
+
def initialize
|
|
47
|
+
super('https://run.googleapis.com/', '')
|
|
48
|
+
@batch_path = 'batch'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Lists information about the supported locations for this service.
|
|
52
|
+
# @param [String] name
|
|
53
|
+
# The resource that owns the locations collection, if applicable.
|
|
54
|
+
# @param [String] filter
|
|
55
|
+
# The standard list filter.
|
|
56
|
+
# @param [Fixnum] page_size
|
|
57
|
+
# The standard list page size.
|
|
58
|
+
# @param [String] page_token
|
|
59
|
+
# The standard list page token.
|
|
60
|
+
# @param [String] fields
|
|
61
|
+
# Selector specifying which fields to include in a partial response.
|
|
62
|
+
# @param [String] quota_user
|
|
63
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
64
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
65
|
+
# @param [Google::Apis::RequestOptions] options
|
|
66
|
+
# Request-specific options
|
|
67
|
+
#
|
|
68
|
+
# @yield [result, err] Result & error if block supplied
|
|
69
|
+
# @yieldparam result [Google::Apis::RunV1beta1::ListLocationsResponse] parsed result object
|
|
70
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
71
|
+
#
|
|
72
|
+
# @return [Google::Apis::RunV1beta1::ListLocationsResponse]
|
|
73
|
+
#
|
|
74
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
75
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
76
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
77
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
78
|
+
command = make_simple_command(:get, 'v1beta1/{+name}/locations', options)
|
|
79
|
+
command.response_representation = Google::Apis::RunV1beta1::ListLocationsResponse::Representation
|
|
80
|
+
command.response_class = Google::Apis::RunV1beta1::ListLocationsResponse
|
|
81
|
+
command.params['name'] = name unless name.nil?
|
|
82
|
+
command.query['filter'] = filter unless filter.nil?
|
|
83
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
84
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
85
|
+
command.query['fields'] = fields unless fields.nil?
|
|
86
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
87
|
+
execute_or_queue_command(command, &block)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
protected
|
|
91
|
+
|
|
92
|
+
def apply_command_defaults(command)
|
|
93
|
+
command.query['key'] = key unless key.nil?
|
|
94
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
@@ -28,7 +28,7 @@ module Google
|
|
|
28
28
|
# @see https://cloud.google.com/deployment-manager/runtime-configurator/
|
|
29
29
|
module RuntimeconfigV1beta1
|
|
30
30
|
VERSION = 'V1beta1'
|
|
31
|
-
REVISION = '
|
|
31
|
+
REVISION = '20190708'
|
|
32
32
|
|
|
33
33
|
# View and manage your data across Google Cloud Platform services
|
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -41,7 +41,7 @@ module Google
|
|
|
41
41
|
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
|
42
42
|
# who is authenticated with a Google account or a service account.
|
|
43
43
|
# * `user:`emailid``: An email address that represents a specific Google
|
|
44
|
-
# account. For example, `alice@
|
|
44
|
+
# account. For example, `alice@example.com` .
|
|
45
45
|
# * `serviceAccount:`emailid``: An email address that represents a service
|
|
46
46
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
|
47
47
|
# * `group:`emailid``: An email address that represents a Google group.
|
|
@@ -412,7 +412,7 @@ module Google
|
|
|
412
412
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
|
413
413
|
# ensure that their change will be applied to the same version of the policy.
|
|
414
414
|
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
|
415
|
-
# policy is overwritten
|
|
415
|
+
# policy is overwritten.
|
|
416
416
|
# Corresponds to the JSON property `etag`
|
|
417
417
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
418
418
|
# @return [String]
|
|
@@ -164,6 +164,11 @@ module Google
|
|
|
164
164
|
# @param [String] resource
|
|
165
165
|
# REQUIRED: The resource for which the policy is being requested.
|
|
166
166
|
# See the operation documentation for the appropriate value for this field.
|
|
167
|
+
# @param [Fixnum] options_requested_policy_version
|
|
168
|
+
# Optional. The policy format version to be returned.
|
|
169
|
+
# Acceptable values are 0 and 1.
|
|
170
|
+
# If the value is 0, or the field is omitted, policy format version 1 will be
|
|
171
|
+
# returned.
|
|
167
172
|
# @param [String] fields
|
|
168
173
|
# Selector specifying which fields to include in a partial response.
|
|
169
174
|
# @param [String] quota_user
|
|
@@ -181,11 +186,12 @@ module Google
|
|
|
181
186
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
182
187
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
183
188
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
184
|
-
def get_project_config_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
|
189
|
+
def get_project_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
185
190
|
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
|
186
191
|
command.response_representation = Google::Apis::RuntimeconfigV1beta1::Policy::Representation
|
|
187
192
|
command.response_class = Google::Apis::RuntimeconfigV1beta1::Policy
|
|
188
193
|
command.params['resource'] = resource unless resource.nil?
|
|
194
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
189
195
|
command.query['fields'] = fields unless fields.nil?
|
|
190
196
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
191
197
|
execute_or_queue_command(command, &block)
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
|
|
27
27
|
module SecuritycenterV1
|
|
28
28
|
VERSION = 'V1'
|
|
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'
|
|
@@ -134,7 +134,7 @@ module Google
|
|
|
134
134
|
# `
|
|
135
135
|
# "log_type": "DATA_READ",
|
|
136
136
|
# "exempted_members": [
|
|
137
|
-
# "user:
|
|
137
|
+
# "user:jose@example.com"
|
|
138
138
|
# ]
|
|
139
139
|
# `,
|
|
140
140
|
# `
|
|
@@ -146,7 +146,7 @@ module Google
|
|
|
146
146
|
# ]
|
|
147
147
|
# `,
|
|
148
148
|
# `
|
|
149
|
-
# "service": "
|
|
149
|
+
# "service": "sampleservice.googleapis.com"
|
|
150
150
|
# "audit_log_configs": [
|
|
151
151
|
# `
|
|
152
152
|
# "log_type": "DATA_READ",
|
|
@@ -154,16 +154,16 @@ module Google
|
|
|
154
154
|
# `
|
|
155
155
|
# "log_type": "DATA_WRITE",
|
|
156
156
|
# "exempted_members": [
|
|
157
|
-
# "user:
|
|
157
|
+
# "user:aliya@example.com"
|
|
158
158
|
# ]
|
|
159
159
|
# `
|
|
160
160
|
# ]
|
|
161
161
|
# `
|
|
162
162
|
# ]
|
|
163
163
|
# `
|
|
164
|
-
# For
|
|
165
|
-
# logging. It also exempts
|
|
166
|
-
#
|
|
164
|
+
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
|
165
|
+
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
|
166
|
+
# aliya@example.com from DATA_WRITE logging.
|
|
167
167
|
class AuditConfig
|
|
168
168
|
include Google::Apis::Core::Hashable
|
|
169
169
|
|
|
@@ -197,7 +197,7 @@ module Google
|
|
|
197
197
|
# `
|
|
198
198
|
# "log_type": "DATA_READ",
|
|
199
199
|
# "exempted_members": [
|
|
200
|
-
# "user:
|
|
200
|
+
# "user:jose@example.com"
|
|
201
201
|
# ]
|
|
202
202
|
# `,
|
|
203
203
|
# `
|
|
@@ -206,7 +206,7 @@ module Google
|
|
|
206
206
|
# ]
|
|
207
207
|
# `
|
|
208
208
|
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
|
209
|
-
#
|
|
209
|
+
# jose@example.com from DATA_READ logging.
|
|
210
210
|
class AuditLogConfig
|
|
211
211
|
include Google::Apis::Core::Hashable
|
|
212
212
|
|
|
@@ -217,6 +217,14 @@ module Google
|
|
|
217
217
|
# @return [Array<String>]
|
|
218
218
|
attr_accessor :exempted_members
|
|
219
219
|
|
|
220
|
+
# Specifies whether principals can be exempted for the same LogType in
|
|
221
|
+
# lower-level resource policies. If true, any lower-level exemptions will
|
|
222
|
+
# be ignored.
|
|
223
|
+
# Corresponds to the JSON property `ignoreChildExemptions`
|
|
224
|
+
# @return [Boolean]
|
|
225
|
+
attr_accessor :ignore_child_exemptions
|
|
226
|
+
alias_method :ignore_child_exemptions?, :ignore_child_exemptions
|
|
227
|
+
|
|
220
228
|
# The log type that this config enables.
|
|
221
229
|
# Corresponds to the JSON property `logType`
|
|
222
230
|
# @return [String]
|
|
@@ -229,6 +237,7 @@ module Google
|
|
|
229
237
|
# Update properties of this object
|
|
230
238
|
def update!(**args)
|
|
231
239
|
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
|
240
|
+
@ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions)
|
|
232
241
|
@log_type = args[:log_type] if args.key?(:log_type)
|
|
233
242
|
end
|
|
234
243
|
end
|
|
@@ -252,7 +261,7 @@ module Google
|
|
|
252
261
|
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
|
253
262
|
# who is authenticated with a Google account or a service account.
|
|
254
263
|
# * `user:`emailid``: An email address that represents a specific Google
|
|
255
|
-
# account. For example, `alice@
|
|
264
|
+
# account. For example, `alice@example.com` .
|
|
256
265
|
# * `serviceAccount:`emailid``: An email address that represents a service
|
|
257
266
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
|
258
267
|
# * `group:`emailid``: An email address that represents a Google group.
|
|
@@ -1240,7 +1249,7 @@ module Google
|
|
|
1240
1249
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
|
1241
1250
|
# ensure that their change will be applied to the same version of the policy.
|
|
1242
1251
|
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
|
1243
|
-
# policy is overwritten
|
|
1252
|
+
# policy is overwritten.
|
|
1244
1253
|
# Corresponds to the JSON property `etag`
|
|
1245
1254
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1246
1255
|
# @return [String]
|
|
@@ -275,6 +275,7 @@ module Google
|
|
|
275
275
|
# @private
|
|
276
276
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
277
277
|
collection :exempted_members, as: 'exemptedMembers'
|
|
278
|
+
property :ignore_child_exemptions, as: 'ignoreChildExemptions'
|
|
278
279
|
property :log_type, as: 'logType'
|
|
279
280
|
end
|
|
280
281
|
end
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
|
|
27
27
|
module SecuritycenterV1beta1
|
|
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'
|
|
@@ -126,7 +126,7 @@ module Google
|
|
|
126
126
|
# `
|
|
127
127
|
# "log_type": "DATA_READ",
|
|
128
128
|
# "exempted_members": [
|
|
129
|
-
# "user:
|
|
129
|
+
# "user:jose@example.com"
|
|
130
130
|
# ]
|
|
131
131
|
# `,
|
|
132
132
|
# `
|
|
@@ -138,7 +138,7 @@ module Google
|
|
|
138
138
|
# ]
|
|
139
139
|
# `,
|
|
140
140
|
# `
|
|
141
|
-
# "service": "
|
|
141
|
+
# "service": "sampleservice.googleapis.com"
|
|
142
142
|
# "audit_log_configs": [
|
|
143
143
|
# `
|
|
144
144
|
# "log_type": "DATA_READ",
|
|
@@ -146,16 +146,16 @@ module Google
|
|
|
146
146
|
# `
|
|
147
147
|
# "log_type": "DATA_WRITE",
|
|
148
148
|
# "exempted_members": [
|
|
149
|
-
# "user:
|
|
149
|
+
# "user:aliya@example.com"
|
|
150
150
|
# ]
|
|
151
151
|
# `
|
|
152
152
|
# ]
|
|
153
153
|
# `
|
|
154
154
|
# ]
|
|
155
155
|
# `
|
|
156
|
-
# For
|
|
157
|
-
# logging. It also exempts
|
|
158
|
-
#
|
|
156
|
+
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
|
157
|
+
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
|
158
|
+
# aliya@example.com from DATA_WRITE logging.
|
|
159
159
|
class AuditConfig
|
|
160
160
|
include Google::Apis::Core::Hashable
|
|
161
161
|
|
|
@@ -189,7 +189,7 @@ module Google
|
|
|
189
189
|
# `
|
|
190
190
|
# "log_type": "DATA_READ",
|
|
191
191
|
# "exempted_members": [
|
|
192
|
-
# "user:
|
|
192
|
+
# "user:jose@example.com"
|
|
193
193
|
# ]
|
|
194
194
|
# `,
|
|
195
195
|
# `
|
|
@@ -198,7 +198,7 @@ module Google
|
|
|
198
198
|
# ]
|
|
199
199
|
# `
|
|
200
200
|
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
|
201
|
-
#
|
|
201
|
+
# jose@example.com from DATA_READ logging.
|
|
202
202
|
class AuditLogConfig
|
|
203
203
|
include Google::Apis::Core::Hashable
|
|
204
204
|
|
|
@@ -209,6 +209,14 @@ module Google
|
|
|
209
209
|
# @return [Array<String>]
|
|
210
210
|
attr_accessor :exempted_members
|
|
211
211
|
|
|
212
|
+
# Specifies whether principals can be exempted for the same LogType in
|
|
213
|
+
# lower-level resource policies. If true, any lower-level exemptions will
|
|
214
|
+
# be ignored.
|
|
215
|
+
# Corresponds to the JSON property `ignoreChildExemptions`
|
|
216
|
+
# @return [Boolean]
|
|
217
|
+
attr_accessor :ignore_child_exemptions
|
|
218
|
+
alias_method :ignore_child_exemptions?, :ignore_child_exemptions
|
|
219
|
+
|
|
212
220
|
# The log type that this config enables.
|
|
213
221
|
# Corresponds to the JSON property `logType`
|
|
214
222
|
# @return [String]
|
|
@@ -221,6 +229,7 @@ module Google
|
|
|
221
229
|
# Update properties of this object
|
|
222
230
|
def update!(**args)
|
|
223
231
|
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
|
232
|
+
@ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions)
|
|
224
233
|
@log_type = args[:log_type] if args.key?(:log_type)
|
|
225
234
|
end
|
|
226
235
|
end
|
|
@@ -244,7 +253,7 @@ module Google
|
|
|
244
253
|
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
|
245
254
|
# who is authenticated with a Google account or a service account.
|
|
246
255
|
# * `user:`emailid``: An email address that represents a specific Google
|
|
247
|
-
# account. For example, `alice@
|
|
256
|
+
# account. For example, `alice@example.com` .
|
|
248
257
|
# * `serviceAccount:`emailid``: An email address that represents a service
|
|
249
258
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
|
250
259
|
# * `group:`emailid``: An email address that represents a Google group.
|
|
@@ -1127,7 +1136,7 @@ module Google
|
|
|
1127
1136
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
|
1128
1137
|
# ensure that their change will be applied to the same version of the policy.
|
|
1129
1138
|
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
|
1130
|
-
# policy is overwritten
|
|
1139
|
+
# policy is overwritten.
|
|
1131
1140
|
# Corresponds to the JSON property `etag`
|
|
1132
1141
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
1133
1142
|
# @return [String]
|
|
@@ -267,6 +267,7 @@ module Google
|
|
|
267
267
|
# @private
|
|
268
268
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
269
269
|
collection :exempted_members, as: 'exemptedMembers'
|
|
270
|
+
property :ignore_child_exemptions, as: 'ignoreChildExemptions'
|
|
270
271
|
property :log_type, as: 'logType'
|
|
271
272
|
end
|
|
272
273
|
end
|
|
@@ -27,7 +27,7 @@ module Google
|
|
|
27
27
|
# @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker
|
|
28
28
|
module ServicebrokerV1
|
|
29
29
|
VERSION = 'V1'
|
|
30
|
-
REVISION = '
|
|
30
|
+
REVISION = '20190708'
|
|
31
31
|
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -41,7 +41,7 @@ module Google
|
|
|
41
41
|
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
|
42
42
|
# who is authenticated with a Google account or a service account.
|
|
43
43
|
# * `user:`emailid``: An email address that represents a specific Google
|
|
44
|
-
# account. For example, `alice@
|
|
44
|
+
# account. For example, `alice@example.com` .
|
|
45
45
|
# * `serviceAccount:`emailid``: An email address that represents a service
|
|
46
46
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
|
47
47
|
# * `group:`emailid``: An email address that represents a Google group.
|
|
@@ -124,7 +124,7 @@ module Google
|
|
|
124
124
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
|
125
125
|
# ensure that their change will be applied to the same version of the policy.
|
|
126
126
|
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
|
127
|
-
# policy is overwritten
|
|
127
|
+
# policy is overwritten.
|
|
128
128
|
# Corresponds to the JSON property `etag`
|
|
129
129
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
130
130
|
# @return [String]
|
|
@@ -55,6 +55,11 @@ module Google
|
|
|
55
55
|
# @param [String] resource
|
|
56
56
|
# REQUIRED: The resource for which the policy is being requested.
|
|
57
57
|
# See the operation documentation for the appropriate value for this field.
|
|
58
|
+
# @param [Fixnum] options_requested_policy_version
|
|
59
|
+
# Optional. The policy format version to be returned.
|
|
60
|
+
# Acceptable values are 0 and 1.
|
|
61
|
+
# If the value is 0, or the field is omitted, policy format version 1 will be
|
|
62
|
+
# returned.
|
|
58
63
|
# @param [String] fields
|
|
59
64
|
# Selector specifying which fields to include in a partial response.
|
|
60
65
|
# @param [String] quota_user
|
|
@@ -72,11 +77,12 @@ module Google
|
|
|
72
77
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
73
78
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
74
79
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
75
|
-
def get_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
|
80
|
+
def get_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
76
81
|
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
|
77
82
|
command.response_representation = Google::Apis::ServicebrokerV1::GoogleIamV1Policy::Representation
|
|
78
83
|
command.response_class = Google::Apis::ServicebrokerV1::GoogleIamV1Policy
|
|
79
84
|
command.params['resource'] = resource unless resource.nil?
|
|
85
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
80
86
|
command.query['fields'] = fields unless fields.nil?
|
|
81
87
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
82
88
|
execute_or_queue_command(command, &block)
|
|
@@ -27,7 +27,7 @@ module Google
|
|
|
27
27
|
# @see https://cloud.google.com/kubernetes-engine/docs/concepts/add-on/service-broker
|
|
28
28
|
module ServicebrokerV1alpha1
|
|
29
29
|
VERSION = 'V1alpha1'
|
|
30
|
-
REVISION = '
|
|
30
|
+
REVISION = '20190708'
|
|
31
31
|
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -39,8 +39,7 @@ module Google
|
|
|
39
39
|
# @return [String]
|
|
40
40
|
attr_accessor :binding_id
|
|
41
41
|
|
|
42
|
-
# Output only.
|
|
43
|
-
# Timestamp for when the binding was created.
|
|
42
|
+
# Output only. Timestamp for when the binding was created.
|
|
44
43
|
# Corresponds to the JSON property `createTime`
|
|
45
44
|
# @return [String]
|
|
46
45
|
attr_accessor :create_time
|
|
@@ -613,14 +612,13 @@ module Google
|
|
|
613
612
|
# @return [Hash<String,Object>]
|
|
614
613
|
attr_accessor :context
|
|
615
614
|
|
|
616
|
-
# Output only.
|
|
617
|
-
# Timestamp for when the instance was created.
|
|
615
|
+
# Output only. Timestamp for when the instance was created.
|
|
618
616
|
# Corresponds to the JSON property `createTime`
|
|
619
617
|
# @return [String]
|
|
620
618
|
attr_accessor :create_time
|
|
621
619
|
|
|
622
|
-
# Output only.
|
|
623
|
-
#
|
|
620
|
+
# Output only. Name of the Deployment Manager deployment used for provisioning
|
|
621
|
+
# of this
|
|
624
622
|
# service instance.
|
|
625
623
|
# Corresponds to the JSON property `deploymentName`
|
|
626
624
|
# @return [String]
|
|
@@ -659,8 +657,7 @@ module Google
|
|
|
659
657
|
# @return [Hash<String,Object>]
|
|
660
658
|
attr_accessor :previous_values
|
|
661
659
|
|
|
662
|
-
# Output only.
|
|
663
|
-
# The resource name of the instance, e.g.
|
|
660
|
+
# Output only. The resource name of the instance, e.g.
|
|
664
661
|
# projects/project_id/brokers/broker_id/service_instances/instance_id
|
|
665
662
|
# Corresponds to the JSON property `resourceName`
|
|
666
663
|
# @return [String]
|
|
@@ -748,7 +745,7 @@ module Google
|
|
|
748
745
|
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
|
749
746
|
# who is authenticated with a Google account or a service account.
|
|
750
747
|
# * `user:`emailid``: An email address that represents a specific Google
|
|
751
|
-
# account. For example, `alice@
|
|
748
|
+
# account. For example, `alice@example.com` .
|
|
752
749
|
# * `serviceAccount:`emailid``: An email address that represents a service
|
|
753
750
|
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
|
754
751
|
# * `group:`emailid``: An email address that represents a Google group.
|
|
@@ -831,7 +828,7 @@ module Google
|
|
|
831
828
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
|
832
829
|
# ensure that their change will be applied to the same version of the policy.
|
|
833
830
|
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
|
834
|
-
# policy is overwritten
|
|
831
|
+
# policy is overwritten.
|
|
835
832
|
# Corresponds to the JSON property `etag`
|
|
836
833
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
|
837
834
|
# @return [String]
|