google-api-client 0.45.0 → 0.45.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +56 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
- data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
- data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
- data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2135 -0
- data/generated/google/apis/apigateway_v1alpha2.rb +34 -0
- data/generated/google/apis/apigateway_v1alpha2/classes.rb +633 -0
- data/generated/google/apis/apigateway_v1alpha2/representations.rb +250 -0
- data/generated/google/apis/apigateway_v1alpha2/service.rb +623 -0
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +0 -6
- data/generated/google/apis/apigee_v1/representations.rb +0 -1
- data/generated/google/apis/apigee_v1/service.rb +1 -5
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +22 -0
- data/generated/google/apis/bigquery_v2/representations.rb +1 -0
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +187 -0
- data/generated/google/apis/binaryauthorization_v1/representations.rb +74 -0
- data/generated/google/apis/binaryauthorization_v1/service.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +187 -0
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +74 -0
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +35 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +2 -1
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +76 -2
- data/generated/google/apis/chat_v1/representations.rb +35 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +0 -34
- data/generated/google/apis/cloudbuild_v1/representations.rb +0 -15
- data/generated/google/apis/cloudbuild_v1/service.rb +7 -4
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -1
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +0 -34
- data/generated/google/apis/cloudidentity_v1/representations.rb +0 -17
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +185 -0
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +94 -0
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +164 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/service.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +20 -8
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +0 -164
- data/generated/google/apis/dfareporting_v3_3/representations.rb +0 -42
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -164
- data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -42
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +73 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +51 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +73 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +51 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +6 -6
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +142 -0
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +83 -0
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +8 -0
- data/generated/google/apis/displayvideo_v1/representations.rb +1 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +26 -0
- data/generated/google/apis/dlp_v2/representations.rb +16 -0
- data/generated/google/apis/dlp_v2/service.rb +328 -328
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +1 -1
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +3 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +1014 -16
- data/generated/google/apis/healthcare_v1beta1/representations.rb +453 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +1226 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +98 -55
- data/generated/google/apis/logging_v2/representations.rb +32 -0
- data/generated/google/apis/logging_v2/service.rb +1214 -264
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -2
- data/generated/google/apis/oslogin_v1alpha/service.rb +13 -13
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/service.rb +8 -6
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/realtimebidding_v1/classes.rb +4 -4
- data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +0 -124
- data/generated/google/apis/run_v1/representations.rb +0 -61
- data/generated/google/apis/run_v1/service.rb +0 -342
- data/generated/google/apis/searchconsole_v1.rb +7 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
- data/generated/google/apis/searchconsole_v1/service.rb +287 -0
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +5 -199
- data/generated/google/apis/securitycenter_v1/representations.rb +0 -72
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -196
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -72
- data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta2/classes.rb +2 -196
- data/generated/google/apis/securitycenter_v1beta2/representations.rb +0 -72
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1 -2
- data/generated/google/apis/servicecontrol_v2.rb +1 -1
- data/generated/google/apis/servicecontrol_v2/classes.rb +1 -2
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +0 -22
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
- data/generated/google/apis/servicemanagement_v1/service.rb +0 -36
- data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
- data/generated/google/apis/smartdevicemanagement_v1/classes.rb +313 -0
- data/generated/google/apis/smartdevicemanagement_v1/representations.rb +174 -0
- data/generated/google/apis/smartdevicemanagement_v1/service.rb +312 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
- data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +83 -52
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +33 -17
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/sts_v1beta.rb +1 -1
- data/generated/google/apis/sts_v1beta/classes.rb +4 -1
- data/generated/google/apis/websecurityscanner_v1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/workflowexecutions_v1beta.rb +2 -2
- data/generated/google/apis/workflowexecutions_v1beta/service.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -134
- data/generated/google/apis/youtube_v3/representations.rb +0 -55
- data/generated/google/apis/youtube_v3/service.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -3
@@ -0,0 +1,312 @@
|
|
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 SmartdevicemanagementV1
|
23
|
+
# Smart Device Management API
|
24
|
+
#
|
25
|
+
# Allow select enterprise partners to access, control, and manage Google and
|
26
|
+
# Nest devices programmatically.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/smartdevicemanagement_v1'
|
30
|
+
#
|
31
|
+
# Smartdevicemanagement = Google::Apis::SmartdevicemanagementV1 # Alias the module
|
32
|
+
# service = Smartdevicemanagement::SmartDeviceManagementService.new
|
33
|
+
#
|
34
|
+
# @see https://developers.google.com/nest/device-access
|
35
|
+
class SmartDeviceManagementService < 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://smartdevicemanagement.googleapis.com/', '')
|
48
|
+
@batch_path = 'batch'
|
49
|
+
end
|
50
|
+
|
51
|
+
# Executes a command to device managed by the enterprise.
|
52
|
+
# @param [String] name
|
53
|
+
# The name of the device requested. For example: "enterprises/XYZ/devices/123"
|
54
|
+
# @param [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest] google_home_enterprise_sdm_v1_execute_device_command_request_object
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
57
|
+
# @param [String] quota_user
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
61
|
+
# Request-specific options
|
62
|
+
#
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
64
|
+
# @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse] parsed result object
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
66
|
+
#
|
67
|
+
# @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse]
|
68
|
+
#
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
+
def execute_enterprise_device_command(name, google_home_enterprise_sdm_v1_execute_device_command_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:post, 'v1/{+name}:executeCommand', options)
|
74
|
+
command.request_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest::Representation
|
75
|
+
command.request_object = google_home_enterprise_sdm_v1_execute_device_command_request_object
|
76
|
+
command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse::Representation
|
77
|
+
command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse
|
78
|
+
command.params['name'] = name unless name.nil?
|
79
|
+
command.query['fields'] = fields unless fields.nil?
|
80
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
81
|
+
execute_or_queue_command(command, &block)
|
82
|
+
end
|
83
|
+
|
84
|
+
# Gets a device managed by the enterprise.
|
85
|
+
# @param [String] name
|
86
|
+
# The name of the device requested. For example: "enterprises/XYZ/devices/123"
|
87
|
+
# @param [String] fields
|
88
|
+
# Selector specifying which fields to include in a partial response.
|
89
|
+
# @param [String] quota_user
|
90
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
91
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
92
|
+
# @param [Google::Apis::RequestOptions] options
|
93
|
+
# Request-specific options
|
94
|
+
#
|
95
|
+
# @yield [result, err] Result & error if block supplied
|
96
|
+
# @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device] parsed result object
|
97
|
+
# @yieldparam err [StandardError] error object if request failed
|
98
|
+
#
|
99
|
+
# @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device]
|
100
|
+
#
|
101
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
102
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
103
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
104
|
+
def get_enterprise_device(name, fields: nil, quota_user: nil, options: nil, &block)
|
105
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
106
|
+
command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device::Representation
|
107
|
+
command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device
|
108
|
+
command.params['name'] = name unless name.nil?
|
109
|
+
command.query['fields'] = fields unless fields.nil?
|
110
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
111
|
+
execute_or_queue_command(command, &block)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Lists devices managed by the enterprise.
|
115
|
+
# @param [String] parent
|
116
|
+
# The parent enterprise to list devices under. E.g. "enterprises/XYZ".
|
117
|
+
# @param [String] filter
|
118
|
+
# Optional filter to list devices. Filters can match the exact assignee (could
|
119
|
+
# be a structure or a room). E.g. 'assignee=enterprises/XYZ/structures/abc' Also
|
120
|
+
# could filter by parent (group): 'parent=enterprises/XYZ/groups/jkl' or filter
|
121
|
+
# by device custom name (substring match): 'customName=wing'
|
122
|
+
# @param [Fixnum] page_size
|
123
|
+
# Optional requested page size. Server may return fewer devices than requested.
|
124
|
+
# If unspecified, server will pick an appropriate default.
|
125
|
+
# @param [String] page_token
|
126
|
+
# Optional token of the page to retrieve.
|
127
|
+
# @param [String] view
|
128
|
+
# Additional details that need to be provided for the device.
|
129
|
+
# @param [String] fields
|
130
|
+
# Selector specifying which fields to include in a partial response.
|
131
|
+
# @param [String] quota_user
|
132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
134
|
+
# @param [Google::Apis::RequestOptions] options
|
135
|
+
# Request-specific options
|
136
|
+
#
|
137
|
+
# @yield [result, err] Result & error if block supplied
|
138
|
+
# @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListDevicesResponse] parsed result object
|
139
|
+
# @yieldparam err [StandardError] error object if request failed
|
140
|
+
#
|
141
|
+
# @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListDevicesResponse]
|
142
|
+
#
|
143
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
144
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
145
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
146
|
+
def list_enterprise_devices(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
147
|
+
command = make_simple_command(:get, 'v1/{+parent}/devices', options)
|
148
|
+
command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListDevicesResponse::Representation
|
149
|
+
command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListDevicesResponse
|
150
|
+
command.params['parent'] = parent unless parent.nil?
|
151
|
+
command.query['filter'] = filter unless filter.nil?
|
152
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
153
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
154
|
+
command.query['view'] = view unless view.nil?
|
155
|
+
command.query['fields'] = fields unless fields.nil?
|
156
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
157
|
+
execute_or_queue_command(command, &block)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Gets a structure managed by the enterprise.
|
161
|
+
# @param [String] name
|
162
|
+
# The name of the structure requested. For example: "enterprises/XYZ/structures/
|
163
|
+
# ABC".
|
164
|
+
# @param [String] fields
|
165
|
+
# Selector specifying which fields to include in a partial response.
|
166
|
+
# @param [String] quota_user
|
167
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
168
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
169
|
+
# @param [Google::Apis::RequestOptions] options
|
170
|
+
# Request-specific options
|
171
|
+
#
|
172
|
+
# @yield [result, err] Result & error if block supplied
|
173
|
+
# @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure] parsed result object
|
174
|
+
# @yieldparam err [StandardError] error object if request failed
|
175
|
+
#
|
176
|
+
# @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure]
|
177
|
+
#
|
178
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
179
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
180
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
181
|
+
def get_enterprise_structure(name, fields: nil, quota_user: nil, options: nil, &block)
|
182
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
183
|
+
command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure::Representation
|
184
|
+
command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure
|
185
|
+
command.params['name'] = name unless name.nil?
|
186
|
+
command.query['fields'] = fields unless fields.nil?
|
187
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
188
|
+
execute_or_queue_command(command, &block)
|
189
|
+
end
|
190
|
+
|
191
|
+
# Lists structures managed by the enterprise.
|
192
|
+
# @param [String] parent
|
193
|
+
# The parent enterprise to list structures under. E.g. "enterprises/XYZ".
|
194
|
+
# @param [String] filter
|
195
|
+
# Optional filter to list structures. Filters can match the exact album assigned
|
196
|
+
# to the structure. E.g. 'album=enterprises/XYZ/albums/abc' It also support
|
197
|
+
# filtering by parent (only groups for now): E.g. 'parent=enterprises/XYZ/groups/
|
198
|
+
# 124'
|
199
|
+
# @param [Fixnum] page_size
|
200
|
+
# Requested page size. Server may return fewer structures than requested. If
|
201
|
+
# unspecified, server will pick an appropriate default.
|
202
|
+
# @param [String] page_token
|
203
|
+
# The token of the page to retrieve.
|
204
|
+
# @param [String] fields
|
205
|
+
# Selector specifying which fields to include in a partial response.
|
206
|
+
# @param [String] quota_user
|
207
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
208
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
209
|
+
# @param [Google::Apis::RequestOptions] options
|
210
|
+
# Request-specific options
|
211
|
+
#
|
212
|
+
# @yield [result, err] Result & error if block supplied
|
213
|
+
# @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListStructuresResponse] parsed result object
|
214
|
+
# @yieldparam err [StandardError] error object if request failed
|
215
|
+
#
|
216
|
+
# @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListStructuresResponse]
|
217
|
+
#
|
218
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
219
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
220
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
221
|
+
def list_enterprise_structures(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
222
|
+
command = make_simple_command(:get, 'v1/{+parent}/structures', options)
|
223
|
+
command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListStructuresResponse::Representation
|
224
|
+
command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListStructuresResponse
|
225
|
+
command.params['parent'] = parent unless parent.nil?
|
226
|
+
command.query['filter'] = filter unless filter.nil?
|
227
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
228
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
229
|
+
command.query['fields'] = fields unless fields.nil?
|
230
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
231
|
+
execute_or_queue_command(command, &block)
|
232
|
+
end
|
233
|
+
|
234
|
+
# Gets a room managed by the enterprise.
|
235
|
+
# @param [String] name
|
236
|
+
# The name of the room requested. For example: "enterprises/XYZ/structures/ABC/
|
237
|
+
# rooms/123".
|
238
|
+
# @param [String] fields
|
239
|
+
# Selector specifying which fields to include in a partial response.
|
240
|
+
# @param [String] quota_user
|
241
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
242
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
243
|
+
# @param [Google::Apis::RequestOptions] options
|
244
|
+
# Request-specific options
|
245
|
+
#
|
246
|
+
# @yield [result, err] Result & error if block supplied
|
247
|
+
# @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room] parsed result object
|
248
|
+
# @yieldparam err [StandardError] error object if request failed
|
249
|
+
#
|
250
|
+
# @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room]
|
251
|
+
#
|
252
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
253
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
254
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
255
|
+
def get_enterprise_structure_room(name, fields: nil, quota_user: nil, options: nil, &block)
|
256
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
257
|
+
command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room::Representation
|
258
|
+
command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room
|
259
|
+
command.params['name'] = name unless name.nil?
|
260
|
+
command.query['fields'] = fields unless fields.nil?
|
261
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
262
|
+
execute_or_queue_command(command, &block)
|
263
|
+
end
|
264
|
+
|
265
|
+
# Lists rooms managed by the enterprise.
|
266
|
+
# @param [String] parent
|
267
|
+
# The parent resource name of the rooms requested. For example: "enterprises/XYZ/
|
268
|
+
# structures/ABC".
|
269
|
+
# @param [Fixnum] page_size
|
270
|
+
# Requested page size. Server may return fewer rooms than requested. If
|
271
|
+
# unspecified, server will pick an appropriate default.
|
272
|
+
# @param [String] page_token
|
273
|
+
# The token of the page to retrieve.
|
274
|
+
# @param [String] fields
|
275
|
+
# Selector specifying which fields to include in a partial response.
|
276
|
+
# @param [String] quota_user
|
277
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
278
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
279
|
+
# @param [Google::Apis::RequestOptions] options
|
280
|
+
# Request-specific options
|
281
|
+
#
|
282
|
+
# @yield [result, err] Result & error if block supplied
|
283
|
+
# @yieldparam result [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListRoomsResponse] parsed result object
|
284
|
+
# @yieldparam err [StandardError] error object if request failed
|
285
|
+
#
|
286
|
+
# @return [Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListRoomsResponse]
|
287
|
+
#
|
288
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
289
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
290
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
291
|
+
def list_enterprise_structure_rooms(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
292
|
+
command = make_simple_command(:get, 'v1/{+parent}/rooms', options)
|
293
|
+
command.response_representation = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListRoomsResponse::Representation
|
294
|
+
command.response_class = Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ListRoomsResponse
|
295
|
+
command.params['parent'] = parent unless parent.nil?
|
296
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
297
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
298
|
+
command.query['fields'] = fields unless fields.nil?
|
299
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
300
|
+
execute_or_queue_command(command, &block)
|
301
|
+
end
|
302
|
+
|
303
|
+
protected
|
304
|
+
|
305
|
+
def apply_command_defaults(command)
|
306
|
+
command.query['key'] = key unless key.nil?
|
307
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
308
|
+
end
|
309
|
+
end
|
310
|
+
end
|
311
|
+
end
|
312
|
+
end
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/source-repositories/docs/apis
|
26
26
|
module SourcerepoV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20200914'
|
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'
|
@@ -22,53 +22,21 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module SourcerepoV1
|
24
24
|
|
25
|
-
# Specifies the audit configuration for a service.
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
33
|
-
#
|
34
|
-
# `
|
35
|
-
# "
|
36
|
-
# `
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
# "log_type": "DATA_READ",
|
41
|
-
# "exempted_members": [
|
42
|
-
# "user:jose@example.com"
|
43
|
-
# ]
|
44
|
-
# `,
|
45
|
-
# `
|
46
|
-
# "log_type": "DATA_WRITE"
|
47
|
-
# `,
|
48
|
-
# `
|
49
|
-
# "log_type": "ADMIN_READ"
|
50
|
-
# `
|
51
|
-
# ]
|
52
|
-
# `,
|
53
|
-
# `
|
54
|
-
# "service": "sampleservice.googleapis.com",
|
55
|
-
# "audit_log_configs": [
|
56
|
-
# `
|
57
|
-
# "log_type": "DATA_READ"
|
58
|
-
# `,
|
59
|
-
# `
|
60
|
-
# "log_type": "DATA_WRITE",
|
61
|
-
# "exempted_members": [
|
62
|
-
# "user:aliya@example.com"
|
63
|
-
# ]
|
64
|
-
# `
|
65
|
-
# ]
|
66
|
-
# `
|
67
|
-
# ]
|
68
|
-
# `
|
69
|
-
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
70
|
-
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
71
|
-
# aliya@example.com from DATA_WRITE logging.
|
25
|
+
# Specifies the audit configuration for a service. The configuration determines
|
26
|
+
# which permission types are logged, and what identities, if any, are exempted
|
27
|
+
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
|
28
|
+
# are AuditConfigs for both `allServices` and a specific service, the union of
|
29
|
+
# the two AuditConfigs is used for that service: the log_types specified in each
|
30
|
+
# AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
|
31
|
+
# exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
|
32
|
+
# service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
|
33
|
+
# exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
|
34
|
+
# ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
|
35
|
+
# "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
|
36
|
+
# , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
|
37
|
+
# this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
|
38
|
+
# exempts jose@example.com from DATA_READ logging, and aliya@example.com from
|
39
|
+
# DATA_WRITE logging.
|
72
40
|
class AuditConfig
|
73
41
|
include Google::Apis::Core::Hashable
|
74
42
|
|
@@ -77,9 +45,9 @@ module Google
|
|
77
45
|
# @return [Array<Google::Apis::SourcerepoV1::AuditLogConfig>]
|
78
46
|
attr_accessor :audit_log_configs
|
79
47
|
|
80
|
-
# Specifies a service that will be enabled for audit logging.
|
81
|
-
#
|
82
|
-
#
|
48
|
+
# Specifies a service that will be enabled for audit logging. For example, `
|
49
|
+
# storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
|
50
|
+
# value that covers all services.
|
83
51
|
# Corresponds to the JSON property `service`
|
84
52
|
# @return [String]
|
85
53
|
attr_accessor :service
|
@@ -95,28 +63,15 @@ module Google
|
|
95
63
|
end
|
96
64
|
end
|
97
65
|
|
98
|
-
# Provides the configuration for logging a type of permissions.
|
99
|
-
#
|
100
|
-
# `
|
101
|
-
#
|
102
|
-
#
|
103
|
-
# "log_type": "DATA_READ",
|
104
|
-
# "exempted_members": [
|
105
|
-
# "user:jose@example.com"
|
106
|
-
# ]
|
107
|
-
# `,
|
108
|
-
# `
|
109
|
-
# "log_type": "DATA_WRITE"
|
110
|
-
# `
|
111
|
-
# ]
|
112
|
-
# `
|
113
|
-
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
114
|
-
# jose@example.com from DATA_READ logging.
|
66
|
+
# Provides the configuration for logging a type of permissions. Example: ` "
|
67
|
+
# audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
|
68
|
+
# jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
|
69
|
+
# DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
|
70
|
+
# DATA_READ logging.
|
115
71
|
class AuditLogConfig
|
116
72
|
include Google::Apis::Core::Hashable
|
117
73
|
|
118
|
-
# Specifies the identities that do not cause logging for this type of
|
119
|
-
# permission.
|
74
|
+
# Specifies the identities that do not cause logging for this type of permission.
|
120
75
|
# Follows the same format of Binding.members.
|
121
76
|
# Corresponds to the JSON property `exemptedMembers`
|
122
77
|
# @return [Array<String>]
|
@@ -142,69 +97,57 @@ module Google
|
|
142
97
|
class Binding
|
143
98
|
include Google::Apis::Core::Hashable
|
144
99
|
|
145
|
-
# Represents a textual expression in the Common Expression Language (CEL)
|
146
|
-
#
|
147
|
-
#
|
148
|
-
#
|
149
|
-
#
|
150
|
-
# description: "Determines if
|
151
|
-
# expression: "document.
|
152
|
-
#
|
153
|
-
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
#
|
157
|
-
#
|
158
|
-
#
|
159
|
-
#
|
160
|
-
# Example (Data Manipulation):
|
161
|
-
# title: "Notification string"
|
162
|
-
# description: "Create a notification string with a timestamp."
|
163
|
-
# expression: "'New message received at ' + string(document.create_time)"
|
164
|
-
# The exact variables and functions that may be referenced within an expression
|
165
|
-
# are determined by the service that evaluates it. See the service
|
166
|
-
# documentation for additional information.
|
100
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
101
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
102
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
103
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
104
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
105
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
106
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
107
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
108
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
109
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
110
|
+
# string" description: "Create a notification string with a timestamp."
|
111
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
112
|
+
# exact variables and functions that may be referenced within an expression are
|
113
|
+
# determined by the service that evaluates it. See the service documentation for
|
114
|
+
# additional information.
|
167
115
|
# Corresponds to the JSON property `condition`
|
168
116
|
# @return [Google::Apis::SourcerepoV1::Expr]
|
169
117
|
attr_accessor :condition
|
170
118
|
|
171
|
-
# Specifies the identities requesting access for a Cloud Platform resource.
|
172
|
-
#
|
173
|
-
#
|
174
|
-
#
|
175
|
-
#
|
176
|
-
#
|
177
|
-
# * `
|
178
|
-
# account. For example, `
|
179
|
-
# * `
|
180
|
-
#
|
181
|
-
#
|
182
|
-
# For example, `
|
183
|
-
#
|
184
|
-
#
|
185
|
-
#
|
186
|
-
#
|
187
|
-
#
|
188
|
-
#
|
189
|
-
#
|
190
|
-
# deleted
|
191
|
-
#
|
192
|
-
# If the
|
193
|
-
# `
|
194
|
-
# role in the binding.
|
195
|
-
#
|
196
|
-
#
|
197
|
-
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
198
|
-
# the group is recovered, this value reverts to `group:`emailid`` and the
|
199
|
-
# recovered group retains the role in the binding.
|
200
|
-
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
201
|
-
# users of that domain. For example, `google.com` or `example.com`.
|
119
|
+
# Specifies the identities requesting access for a Cloud Platform resource. `
|
120
|
+
# members` can have the following values: * `allUsers`: A special identifier
|
121
|
+
# that represents anyone who is on the internet; with or without a Google
|
122
|
+
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
123
|
+
# anyone who is authenticated with a Google account or a service account. * `
|
124
|
+
# user:`emailid``: An email address that represents a specific Google account.
|
125
|
+
# For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
|
126
|
+
# address that represents a service account. For example, `my-other-app@appspot.
|
127
|
+
# gserviceaccount.com`. * `group:`emailid``: An email address that represents a
|
128
|
+
# Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
|
129
|
+
# `uniqueid``: An email address (plus unique identifier) representing a user
|
130
|
+
# that has been recently deleted. For example, `alice@example.com?uid=
|
131
|
+
# 123456789012345678901`. If the user is recovered, this value reverts to `user:`
|
132
|
+
# emailid`` and the recovered user retains the role in the binding. * `deleted:
|
133
|
+
# serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
|
134
|
+
# identifier) representing a service account that has been recently deleted. For
|
135
|
+
# example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
136
|
+
# If the service account is undeleted, this value reverts to `serviceAccount:`
|
137
|
+
# emailid`` and the undeleted service account retains the role in the binding. *
|
138
|
+
# `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
139
|
+
# identifier) representing a Google group that has been recently deleted. For
|
140
|
+
# example, `admins@example.com?uid=123456789012345678901`. If the group is
|
141
|
+
# recovered, this value reverts to `group:`emailid`` and the recovered group
|
142
|
+
# retains the role in the binding. * `domain:`domain``: The G Suite domain (
|
143
|
+
# primary) that represents all the users of that domain. For example, `google.
|
144
|
+
# com` or `example.com`.
|
202
145
|
# Corresponds to the JSON property `members`
|
203
146
|
# @return [Array<String>]
|
204
147
|
attr_accessor :members
|
205
148
|
|
206
|
-
# Role that is assigned to `members`.
|
207
|
-
#
|
149
|
+
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
|
150
|
+
# , or `roles/owner`.
|
208
151
|
# Corresponds to the JSON property `role`
|
209
152
|
# @return [String]
|
210
153
|
attr_accessor :role
|
@@ -221,13 +164,11 @@ module Google
|
|
221
164
|
end
|
222
165
|
end
|
223
166
|
|
224
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
225
|
-
#
|
226
|
-
#
|
227
|
-
#
|
228
|
-
#
|
229
|
-
# `
|
230
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
167
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
168
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
169
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
170
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
171
|
+
# `Empty` is empty JSON object ````.
|
231
172
|
class Empty
|
232
173
|
include Google::Apis::Core::Hashable
|
233
174
|
|
@@ -240,52 +181,43 @@ module Google
|
|
240
181
|
end
|
241
182
|
end
|
242
183
|
|
243
|
-
# Represents a textual expression in the Common Expression Language (CEL)
|
244
|
-
#
|
245
|
-
#
|
246
|
-
#
|
247
|
-
#
|
248
|
-
# description: "Determines if
|
249
|
-
# expression: "document.
|
250
|
-
#
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
#
|
256
|
-
#
|
257
|
-
#
|
258
|
-
# Example (Data Manipulation):
|
259
|
-
# title: "Notification string"
|
260
|
-
# description: "Create a notification string with a timestamp."
|
261
|
-
# expression: "'New message received at ' + string(document.create_time)"
|
262
|
-
# The exact variables and functions that may be referenced within an expression
|
263
|
-
# are determined by the service that evaluates it. See the service
|
264
|
-
# documentation for additional information.
|
184
|
+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
185
|
+
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
186
|
+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
187
|
+
# "Summary size limit" description: "Determines if a summary is less than 100
|
188
|
+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
189
|
+
# Requestor is owner" description: "Determines if requestor is the document
|
190
|
+
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
191
|
+
# Logic): title: "Public documents" description: "Determine whether the document
|
192
|
+
# should be publicly visible" expression: "document.type != 'private' &&
|
193
|
+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
194
|
+
# string" description: "Create a notification string with a timestamp."
|
195
|
+
# expression: "'New message received at ' + string(document.create_time)" The
|
196
|
+
# exact variables and functions that may be referenced within an expression are
|
197
|
+
# determined by the service that evaluates it. See the service documentation for
|
198
|
+
# additional information.
|
265
199
|
class Expr
|
266
200
|
include Google::Apis::Core::Hashable
|
267
201
|
|
268
|
-
# Optional. Description of the expression. This is a longer text which
|
269
|
-
#
|
202
|
+
# Optional. Description of the expression. This is a longer text which describes
|
203
|
+
# the expression, e.g. when hovered over it in a UI.
|
270
204
|
# Corresponds to the JSON property `description`
|
271
205
|
# @return [String]
|
272
206
|
attr_accessor :description
|
273
207
|
|
274
|
-
# Textual representation of an expression in Common Expression Language
|
275
|
-
# syntax.
|
208
|
+
# Textual representation of an expression in Common Expression Language syntax.
|
276
209
|
# Corresponds to the JSON property `expression`
|
277
210
|
# @return [String]
|
278
211
|
attr_accessor :expression
|
279
212
|
|
280
|
-
# Optional. String indicating the location of the expression for error
|
281
|
-
#
|
213
|
+
# Optional. String indicating the location of the expression for error reporting,
|
214
|
+
# e.g. a file name and a position in the file.
|
282
215
|
# Corresponds to the JSON property `location`
|
283
216
|
# @return [String]
|
284
217
|
attr_accessor :location
|
285
218
|
|
286
|
-
# Optional. Title for the expression, i.e. a short string describing
|
287
|
-
#
|
288
|
-
# expression.
|
219
|
+
# Optional. Title for the expression, i.e. a short string describing its purpose.
|
220
|
+
# This can be used e.g. in UIs which allow to enter the expression.
|
289
221
|
# Corresponds to the JSON property `title`
|
290
222
|
# @return [String]
|
291
223
|
attr_accessor :title
|
@@ -303,13 +235,13 @@ module Google
|
|
303
235
|
end
|
304
236
|
end
|
305
237
|
|
306
|
-
# Response for ListRepos.
|
238
|
+
# Response for ListRepos. The size is not set in the returned repositories.
|
307
239
|
class ListReposResponse
|
308
240
|
include Google::Apis::Core::Hashable
|
309
241
|
|
310
|
-
# If non-empty, additional repositories exist within the project. These
|
311
|
-
#
|
312
|
-
#
|
242
|
+
# If non-empty, additional repositories exist within the project. These can be
|
243
|
+
# retrieved by including this value in the next ListReposRequest's page_token
|
244
|
+
# field.
|
313
245
|
# Corresponds to the JSON property `nextPageToken`
|
314
246
|
# @return [String]
|
315
247
|
attr_accessor :next_page_token
|
@@ -330,14 +262,14 @@ module Google
|
|
330
262
|
end
|
331
263
|
end
|
332
264
|
|
333
|
-
# Configuration to automatically mirror a repository from another
|
334
|
-
#
|
265
|
+
# Configuration to automatically mirror a repository from another hosting
|
266
|
+
# service, for example GitHub or Bitbucket.
|
335
267
|
class MirrorConfig
|
336
268
|
include Google::Apis::Core::Hashable
|
337
269
|
|
338
|
-
# ID of the SSH deploy key at the other hosting service.
|
339
|
-
#
|
340
|
-
#
|
270
|
+
# ID of the SSH deploy key at the other hosting service. Removing this key from
|
271
|
+
# the other service would deauthorize Google Cloud Source Repositories from
|
272
|
+
# mirroring.
|
341
273
|
# Corresponds to the JSON property `deployKeyId`
|
342
274
|
# @return [String]
|
343
275
|
attr_accessor :deploy_key_id
|
@@ -347,10 +279,9 @@ module Google
|
|
347
279
|
# @return [String]
|
348
280
|
attr_accessor :url
|
349
281
|
|
350
|
-
# ID of the webhook listening to updates to trigger mirroring.
|
351
|
-
#
|
352
|
-
#
|
353
|
-
# and thereby disabling mirroring.
|
282
|
+
# ID of the webhook listening to updates to trigger mirroring. Removing this
|
283
|
+
# webhook from the other hosting service will stop Google Cloud Source
|
284
|
+
# Repositories from receiving notifications, and thereby disabling mirroring.
|
354
285
|
# Corresponds to the JSON property `webhookId`
|
355
286
|
# @return [String]
|
356
287
|
attr_accessor :webhook_id
|
@@ -372,47 +303,45 @@ module Google
|
|
372
303
|
class Operation
|
373
304
|
include Google::Apis::Core::Hashable
|
374
305
|
|
375
|
-
# If the value is `false`, it means the operation is still in progress.
|
376
|
-
#
|
377
|
-
# available.
|
306
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
307
|
+
# , the operation is completed, and either `error` or `response` is available.
|
378
308
|
# Corresponds to the JSON property `done`
|
379
309
|
# @return [Boolean]
|
380
310
|
attr_accessor :done
|
381
311
|
alias_method :done?, :done
|
382
312
|
|
383
|
-
# The `Status` type defines a logical error model that is suitable for
|
384
|
-
#
|
385
|
-
#
|
386
|
-
#
|
387
|
-
#
|
388
|
-
#
|
313
|
+
# The `Status` type defines a logical error model that is suitable for different
|
314
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
315
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
316
|
+
# data: error code, error message, and error details. You can find out more
|
317
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
318
|
+
# //cloud.google.com/apis/design/errors).
|
389
319
|
# Corresponds to the JSON property `error`
|
390
320
|
# @return [Google::Apis::SourcerepoV1::Status]
|
391
321
|
attr_accessor :error
|
392
322
|
|
393
|
-
# Service-specific metadata associated with the operation.
|
394
|
-
#
|
395
|
-
#
|
396
|
-
#
|
323
|
+
# Service-specific metadata associated with the operation. It typically contains
|
324
|
+
# progress information and common metadata such as create time. Some services
|
325
|
+
# might not provide such metadata. Any method that returns a long-running
|
326
|
+
# operation should document the metadata type, if any.
|
397
327
|
# Corresponds to the JSON property `metadata`
|
398
328
|
# @return [Hash<String,Object>]
|
399
329
|
attr_accessor :metadata
|
400
330
|
|
401
331
|
# The server-assigned name, which is only unique within the same service that
|
402
|
-
# originally returns it. If you use the default HTTP mapping, the
|
403
|
-
#
|
332
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
333
|
+
# be a resource name ending with `operations/`unique_id``.
|
404
334
|
# Corresponds to the JSON property `name`
|
405
335
|
# @return [String]
|
406
336
|
attr_accessor :name
|
407
337
|
|
408
|
-
# The normal response of the operation in case of success.
|
409
|
-
# method returns no data on success, such as `Delete`, the response is
|
410
|
-
#
|
411
|
-
#
|
412
|
-
#
|
413
|
-
#
|
414
|
-
#
|
415
|
-
# `TakeSnapshotResponse`.
|
338
|
+
# The normal response of the operation in case of success. If the original
|
339
|
+
# method returns no data on success, such as `Delete`, the response is `google.
|
340
|
+
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
341
|
+
# the response should be the resource. For other methods, the response should
|
342
|
+
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
343
|
+
# example, if the original method name is `TakeSnapshot()`, the inferred
|
344
|
+
# response type is `TakeSnapshotResponse`.
|
416
345
|
# Corresponds to the JSON property `response`
|
417
346
|
# @return [Hash<String,Object>]
|
418
347
|
attr_accessor :response
|
@@ -432,66 +361,32 @@ module Google
|
|
432
361
|
end
|
433
362
|
|
434
363
|
# An Identity and Access Management (IAM) policy, which specifies access
|
435
|
-
# controls for Google Cloud resources.
|
436
|
-
# A `
|
437
|
-
#
|
438
|
-
#
|
439
|
-
#
|
440
|
-
#
|
441
|
-
#
|
442
|
-
#
|
443
|
-
#
|
444
|
-
#
|
445
|
-
#
|
446
|
-
# [
|
447
|
-
#
|
448
|
-
#
|
449
|
-
# `
|
450
|
-
# "
|
451
|
-
# `
|
452
|
-
# "
|
453
|
-
#
|
454
|
-
#
|
455
|
-
#
|
456
|
-
#
|
457
|
-
#
|
458
|
-
#
|
459
|
-
#
|
460
|
-
#
|
461
|
-
# "role": "roles/resourcemanager.organizationViewer",
|
462
|
-
# "members": [
|
463
|
-
# "user:eve@example.com"
|
464
|
-
# ],
|
465
|
-
# "condition": `
|
466
|
-
# "title": "expirable access",
|
467
|
-
# "description": "Does not grant access after Sep 2020",
|
468
|
-
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
469
|
-
# ",
|
470
|
-
# `
|
471
|
-
# `
|
472
|
-
# ],
|
473
|
-
# "etag": "BwWWja0YfJA=",
|
474
|
-
# "version": 3
|
475
|
-
# `
|
476
|
-
# **YAML example:**
|
477
|
-
# bindings:
|
478
|
-
# - members:
|
479
|
-
# - user:mike@example.com
|
480
|
-
# - group:admins@example.com
|
481
|
-
# - domain:google.com
|
482
|
-
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
483
|
-
# role: roles/resourcemanager.organizationAdmin
|
484
|
-
# - members:
|
485
|
-
# - user:eve@example.com
|
486
|
-
# role: roles/resourcemanager.organizationViewer
|
487
|
-
# condition:
|
488
|
-
# title: expirable access
|
489
|
-
# description: Does not grant access after Sep 2020
|
490
|
-
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
491
|
-
# - etag: BwWWja0YfJA=
|
492
|
-
# - version: 3
|
493
|
-
# For a description of IAM and its features, see the
|
494
|
-
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
364
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
365
|
+
# A `binding` binds one or more `members` to a single `role`. Members can be
|
366
|
+
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
367
|
+
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
368
|
+
# role or a user-created custom role. For some types of Google Cloud resources,
|
369
|
+
# a `binding` can also specify a `condition`, which is a logical expression that
|
370
|
+
# allows access to a resource only if the expression evaluates to `true`. A
|
371
|
+
# condition can add constraints based on attributes of the request, the resource,
|
372
|
+
# or both. To learn which resources support conditions in their IAM policies,
|
373
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
374
|
+
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
375
|
+
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
376
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
377
|
+
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
378
|
+
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
379
|
+
# title": "expirable access", "description": "Does not grant access after Sep
|
380
|
+
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
381
|
+
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
382
|
+
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
383
|
+
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
384
|
+
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
385
|
+
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
386
|
+
# description: Does not grant access after Sep 2020 expression: request.time <
|
387
|
+
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
388
|
+
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
389
|
+
# google.com/iam/docs/).
|
495
390
|
class Policy
|
496
391
|
include Google::Apis::Core::Hashable
|
497
392
|
|
@@ -500,48 +395,44 @@ module Google
|
|
500
395
|
# @return [Array<Google::Apis::SourcerepoV1::AuditConfig>]
|
501
396
|
attr_accessor :audit_configs
|
502
397
|
|
503
|
-
# Associates a list of `members` to a `role`. Optionally, may specify a
|
504
|
-
#
|
505
|
-
#
|
398
|
+
# Associates a list of `members` to a `role`. Optionally, may specify a `
|
399
|
+
# condition` that determines how and when the `bindings` are applied. Each of
|
400
|
+
# the `bindings` must contain at least one member.
|
506
401
|
# Corresponds to the JSON property `bindings`
|
507
402
|
# @return [Array<Google::Apis::SourcerepoV1::Binding>]
|
508
403
|
attr_accessor :bindings
|
509
404
|
|
510
|
-
# `etag` is used for optimistic concurrency control as a way to help
|
511
|
-
#
|
512
|
-
#
|
513
|
-
#
|
514
|
-
#
|
515
|
-
#
|
516
|
-
#
|
517
|
-
#
|
518
|
-
#
|
519
|
-
#
|
520
|
-
#
|
405
|
+
# `etag` is used for optimistic concurrency control as a way to help prevent
|
406
|
+
# simultaneous updates of a policy from overwriting each other. It is strongly
|
407
|
+
# suggested that systems make use of the `etag` in the read-modify-write cycle
|
408
|
+
# to perform policy updates in order to avoid race conditions: An `etag` is
|
409
|
+
# returned in the response to `getIamPolicy`, and systems are expected to put
|
410
|
+
# that etag in the request to `setIamPolicy` to ensure that their change will be
|
411
|
+
# applied to the same version of the policy. **Important:** If you use IAM
|
412
|
+
# Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
|
413
|
+
# If you omit this field, then IAM allows you to overwrite a version `3` policy
|
414
|
+
# with a version `1` policy, and all of the conditions in the version `3` policy
|
415
|
+
# are lost.
|
521
416
|
# Corresponds to the JSON property `etag`
|
522
417
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
523
418
|
# @return [String]
|
524
419
|
attr_accessor :etag
|
525
420
|
|
526
|
-
# Specifies the format of the policy.
|
527
|
-
#
|
528
|
-
#
|
529
|
-
#
|
530
|
-
#
|
531
|
-
#
|
532
|
-
#
|
533
|
-
#
|
534
|
-
#
|
535
|
-
#
|
536
|
-
#
|
537
|
-
#
|
538
|
-
#
|
539
|
-
#
|
540
|
-
#
|
541
|
-
# specify any valid version or leave the field unset.
|
542
|
-
# To learn which resources support conditions in their IAM policies, see the
|
543
|
-
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
544
|
-
# policies).
|
421
|
+
# Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
|
422
|
+
# Requests that specify an invalid value are rejected. Any operation that
|
423
|
+
# affects conditional role bindings must specify version `3`. This requirement
|
424
|
+
# applies to the following operations: * Getting a policy that includes a
|
425
|
+
# conditional role binding * Adding a conditional role binding to a policy *
|
426
|
+
# Changing a conditional role binding in a policy * Removing any role binding,
|
427
|
+
# with or without a condition, from a policy that includes conditions **
|
428
|
+
# Important:** If you use IAM Conditions, you must include the `etag` field
|
429
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
|
430
|
+
# to overwrite a version `3` policy with a version `1` policy, and all of the
|
431
|
+
# conditions in the version `3` policy are lost. If a policy does not include
|
432
|
+
# any conditions, operations on that policy may specify any valid version or
|
433
|
+
# leave the field unset. To learn which resources support conditions in their
|
434
|
+
# IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
|
435
|
+
# conditions/resource-policies).
|
545
436
|
# Corresponds to the JSON property `version`
|
546
437
|
# @return [Fixnum]
|
547
438
|
attr_accessor :version
|
@@ -569,13 +460,13 @@ module Google
|
|
569
460
|
attr_accessor :enable_private_key_check
|
570
461
|
alias_method :enable_private_key_check?, :enable_private_key_check
|
571
462
|
|
572
|
-
# The name of the project. Values are of the form `projects
|
463
|
+
# The name of the project. Values are of the form `projects/`.
|
573
464
|
# Corresponds to the JSON property `name`
|
574
465
|
# @return [String]
|
575
466
|
attr_accessor :name
|
576
467
|
|
577
|
-
# How this project publishes a change in the repositories through Cloud
|
578
|
-
#
|
468
|
+
# How this project publishes a change in the repositories through Cloud Pub/Sub.
|
469
|
+
# Keyed by the topic names.
|
579
470
|
# Corresponds to the JSON property `pubsubConfigs`
|
580
471
|
# @return [Hash<String,Google::Apis::SourcerepoV1::PubsubConfig>]
|
581
472
|
attr_accessor :pubsub_configs
|
@@ -603,16 +494,15 @@ module Google
|
|
603
494
|
|
604
495
|
# Email address of the service account used for publishing Cloud Pub/Sub
|
605
496
|
# messages. This service account needs to be in the same project as the
|
606
|
-
# PubsubConfig. When added, the caller needs to have
|
607
|
-
#
|
608
|
-
#
|
497
|
+
# PubsubConfig. When added, the caller needs to have iam.serviceAccounts.actAs
|
498
|
+
# permission on this service account. If unspecified, it defaults to the compute
|
499
|
+
# engine default service account.
|
609
500
|
# Corresponds to the JSON property `serviceAccountEmail`
|
610
501
|
# @return [String]
|
611
502
|
attr_accessor :service_account_email
|
612
503
|
|
613
|
-
# A topic of Cloud Pub/Sub. Values are of the form
|
614
|
-
#
|
615
|
-
# project as this config is in.
|
504
|
+
# A topic of Cloud Pub/Sub. Values are of the form `projects//topics/`. The
|
505
|
+
# project needs to be the same project as this config is in.
|
616
506
|
# Corresponds to the JSON property `topic`
|
617
507
|
# @return [String]
|
618
508
|
attr_accessor :topic
|
@@ -633,33 +523,32 @@ module Google
|
|
633
523
|
class Repo
|
634
524
|
include Google::Apis::Core::Hashable
|
635
525
|
|
636
|
-
# Configuration to automatically mirror a repository from another
|
637
|
-
#
|
526
|
+
# Configuration to automatically mirror a repository from another hosting
|
527
|
+
# service, for example GitHub or Bitbucket.
|
638
528
|
# Corresponds to the JSON property `mirrorConfig`
|
639
529
|
# @return [Google::Apis::SourcerepoV1::MirrorConfig]
|
640
530
|
attr_accessor :mirror_config
|
641
531
|
|
642
|
-
# Resource name of the repository, of the form
|
643
|
-
#
|
644
|
-
# eg, `projects/myproject/repos/name/with/slash`
|
532
|
+
# Resource name of the repository, of the form `projects//repos/`. The repo name
|
533
|
+
# may contain slashes. eg, `projects/myproject/repos/name/with/slash`
|
645
534
|
# Corresponds to the JSON property `name`
|
646
535
|
# @return [String]
|
647
536
|
attr_accessor :name
|
648
537
|
|
649
|
-
# How this repository publishes a change in the repository through Cloud
|
650
|
-
#
|
538
|
+
# How this repository publishes a change in the repository through Cloud Pub/Sub.
|
539
|
+
# Keyed by the topic names.
|
651
540
|
# Corresponds to the JSON property `pubsubConfigs`
|
652
541
|
# @return [Hash<String,Google::Apis::SourcerepoV1::PubsubConfig>]
|
653
542
|
attr_accessor :pubsub_configs
|
654
543
|
|
655
|
-
# The disk usage of the repo, in bytes. Read-only field. Size is only
|
656
|
-
#
|
544
|
+
# The disk usage of the repo, in bytes. Read-only field. Size is only returned
|
545
|
+
# by GetRepo.
|
657
546
|
# Corresponds to the JSON property `size`
|
658
547
|
# @return [Fixnum]
|
659
548
|
attr_accessor :size
|
660
549
|
|
661
|
-
# URL to clone the repository from Google Cloud Source Repositories.
|
662
|
-
#
|
550
|
+
# URL to clone the repository from Google Cloud Source Repositories. Read-only
|
551
|
+
# field.
|
663
552
|
# Corresponds to the JSON property `url`
|
664
553
|
# @return [String]
|
665
554
|
attr_accessor :url
|
@@ -683,74 +572,39 @@ module Google
|
|
683
572
|
include Google::Apis::Core::Hashable
|
684
573
|
|
685
574
|
# An Identity and Access Management (IAM) policy, which specifies access
|
686
|
-
# controls for Google Cloud resources.
|
687
|
-
# A `
|
688
|
-
#
|
689
|
-
#
|
690
|
-
#
|
691
|
-
#
|
692
|
-
#
|
693
|
-
#
|
694
|
-
#
|
695
|
-
#
|
696
|
-
#
|
697
|
-
# [
|
698
|
-
#
|
699
|
-
#
|
700
|
-
# `
|
701
|
-
# "
|
702
|
-
# `
|
703
|
-
# "
|
704
|
-
#
|
705
|
-
#
|
706
|
-
#
|
707
|
-
#
|
708
|
-
#
|
709
|
-
#
|
710
|
-
#
|
711
|
-
#
|
712
|
-
# "role": "roles/resourcemanager.organizationViewer",
|
713
|
-
# "members": [
|
714
|
-
# "user:eve@example.com"
|
715
|
-
# ],
|
716
|
-
# "condition": `
|
717
|
-
# "title": "expirable access",
|
718
|
-
# "description": "Does not grant access after Sep 2020",
|
719
|
-
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
720
|
-
# ",
|
721
|
-
# `
|
722
|
-
# `
|
723
|
-
# ],
|
724
|
-
# "etag": "BwWWja0YfJA=",
|
725
|
-
# "version": 3
|
726
|
-
# `
|
727
|
-
# **YAML example:**
|
728
|
-
# bindings:
|
729
|
-
# - members:
|
730
|
-
# - user:mike@example.com
|
731
|
-
# - group:admins@example.com
|
732
|
-
# - domain:google.com
|
733
|
-
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
734
|
-
# role: roles/resourcemanager.organizationAdmin
|
735
|
-
# - members:
|
736
|
-
# - user:eve@example.com
|
737
|
-
# role: roles/resourcemanager.organizationViewer
|
738
|
-
# condition:
|
739
|
-
# title: expirable access
|
740
|
-
# description: Does not grant access after Sep 2020
|
741
|
-
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
742
|
-
# - etag: BwWWja0YfJA=
|
743
|
-
# - version: 3
|
744
|
-
# For a description of IAM and its features, see the
|
745
|
-
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
575
|
+
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
576
|
+
# A `binding` binds one or more `members` to a single `role`. Members can be
|
577
|
+
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
578
|
+
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
579
|
+
# role or a user-created custom role. For some types of Google Cloud resources,
|
580
|
+
# a `binding` can also specify a `condition`, which is a logical expression that
|
581
|
+
# allows access to a resource only if the expression evaluates to `true`. A
|
582
|
+
# condition can add constraints based on attributes of the request, the resource,
|
583
|
+
# or both. To learn which resources support conditions in their IAM policies,
|
584
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
585
|
+
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
586
|
+
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
587
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
588
|
+
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
589
|
+
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
590
|
+
# title": "expirable access", "description": "Does not grant access after Sep
|
591
|
+
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
592
|
+
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
593
|
+
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
594
|
+
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
595
|
+
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
596
|
+
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
597
|
+
# description: Does not grant access after Sep 2020 expression: request.time <
|
598
|
+
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
599
|
+
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
600
|
+
# google.com/iam/docs/).
|
746
601
|
# Corresponds to the JSON property `policy`
|
747
602
|
# @return [Google::Apis::SourcerepoV1::Policy]
|
748
603
|
attr_accessor :policy
|
749
604
|
|
750
605
|
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
751
|
-
# the fields in the mask will be modified. If no mask is provided, the
|
752
|
-
#
|
753
|
-
# `paths: "bindings, etag"`
|
606
|
+
# the fields in the mask will be modified. If no mask is provided, the following
|
607
|
+
# default mask is used: `paths: "bindings, etag"`
|
754
608
|
# Corresponds to the JSON property `updateMask`
|
755
609
|
# @return [String]
|
756
610
|
attr_accessor :update_mask
|
@@ -766,12 +620,12 @@ module Google
|
|
766
620
|
end
|
767
621
|
end
|
768
622
|
|
769
|
-
# The `Status` type defines a logical error model that is suitable for
|
770
|
-
#
|
771
|
-
#
|
772
|
-
#
|
773
|
-
#
|
774
|
-
#
|
623
|
+
# The `Status` type defines a logical error model that is suitable for different
|
624
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
625
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
626
|
+
# data: error code, error message, and error details. You can find out more
|
627
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
628
|
+
# //cloud.google.com/apis/design/errors).
|
775
629
|
class Status
|
776
630
|
include Google::Apis::Core::Hashable
|
777
631
|
|
@@ -780,15 +634,15 @@ module Google
|
|
780
634
|
# @return [Fixnum]
|
781
635
|
attr_accessor :code
|
782
636
|
|
783
|
-
# A list of messages that carry the error details.
|
637
|
+
# A list of messages that carry the error details. There is a common set of
|
784
638
|
# message types for APIs to use.
|
785
639
|
# Corresponds to the JSON property `details`
|
786
640
|
# @return [Array<Hash<String,Object>>]
|
787
641
|
attr_accessor :details
|
788
642
|
|
789
|
-
# A developer-facing error message, which should be in English. Any
|
790
|
-
#
|
791
|
-
#
|
643
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
644
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
645
|
+
# field, or localized by the client.
|
792
646
|
# Corresponds to the JSON property `message`
|
793
647
|
# @return [String]
|
794
648
|
attr_accessor :message
|
@@ -805,13 +659,12 @@ module Google
|
|
805
659
|
end
|
806
660
|
end
|
807
661
|
|
808
|
-
# Metadata of SyncRepo.
|
809
|
-
# This message is in the metadata field of Operation.
|
662
|
+
# Metadata of SyncRepo. This message is in the metadata field of Operation.
|
810
663
|
class SyncRepoMetadata
|
811
664
|
include Google::Apis::Core::Hashable
|
812
665
|
|
813
|
-
# The name of the repo being synchronized. Values are of the form
|
814
|
-
#
|
666
|
+
# The name of the repo being synchronized. Values are of the form `projects//
|
667
|
+
# repos/`.
|
815
668
|
# Corresponds to the JSON property `name`
|
816
669
|
# @return [String]
|
817
670
|
attr_accessor :name
|
@@ -861,10 +714,9 @@ module Google
|
|
861
714
|
class TestIamPermissionsRequest
|
862
715
|
include Google::Apis::Core::Hashable
|
863
716
|
|
864
|
-
# The set of permissions to check for the `resource`. Permissions with
|
865
|
-
#
|
866
|
-
#
|
867
|
-
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
717
|
+
# The set of permissions to check for the `resource`. Permissions with wildcards
|
718
|
+
# (such as '*' or 'storage.*') are not allowed. For more information see [IAM
|
719
|
+
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
868
720
|
# Corresponds to the JSON property `permissions`
|
869
721
|
# @return [Array<String>]
|
870
722
|
attr_accessor :permissions
|
@@ -883,8 +735,7 @@ module Google
|
|
883
735
|
class TestIamPermissionsResponse
|
884
736
|
include Google::Apis::Core::Hashable
|
885
737
|
|
886
|
-
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
887
|
-
# allowed.
|
738
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
888
739
|
# Corresponds to the JSON property `permissions`
|
889
740
|
# @return [Array<String>]
|
890
741
|
attr_accessor :permissions
|
@@ -908,9 +759,9 @@ module Google
|
|
908
759
|
# @return [Google::Apis::SourcerepoV1::ProjectConfig]
|
909
760
|
attr_accessor :project_config
|
910
761
|
|
911
|
-
# A FieldMask specifying which fields of the project_config to modify. Only
|
912
|
-
#
|
913
|
-
#
|
762
|
+
# A FieldMask specifying which fields of the project_config to modify. Only the
|
763
|
+
# fields in the mask will be modified. If no mask is provided, this request is
|
764
|
+
# no-op.
|
914
765
|
# Corresponds to the JSON property `updateMask`
|
915
766
|
# @return [String]
|
916
767
|
attr_accessor :update_mask
|
@@ -935,9 +786,8 @@ module Google
|
|
935
786
|
# @return [Google::Apis::SourcerepoV1::Repo]
|
936
787
|
attr_accessor :repo
|
937
788
|
|
938
|
-
# A FieldMask specifying which fields of the repo to modify. Only the fields
|
939
|
-
#
|
940
|
-
# no-op.
|
789
|
+
# A FieldMask specifying which fields of the repo to modify. Only the fields in
|
790
|
+
# the mask will be modified. If no mask is provided, this request is no-op.
|
941
791
|
# Corresponds to the JSON property `updateMask`
|
942
792
|
# @return [String]
|
943
793
|
attr_accessor :update_mask
|