google-apis-bigqueryconnection_v1beta1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-bigqueryconnection_v1beta1.rb +15 -0
- data/lib/google/apis/bigqueryconnection_v1beta1.rb +39 -0
- data/lib/google/apis/bigqueryconnection_v1beta1/classes.rb +636 -0
- data/lib/google/apis/bigqueryconnection_v1beta1/gem_version.rb +28 -0
- data/lib/google/apis/bigqueryconnection_v1beta1/representations.rb +266 -0
- data/lib/google/apis/bigqueryconnection_v1beta1/service.rb +378 -0
- metadata +76 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
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
|
+
module Google
|
16
|
+
module Apis
|
17
|
+
module BigqueryconnectionV1beta1
|
18
|
+
# Version of the google-apis-bigqueryconnection_v1beta1 gem
|
19
|
+
GEM_VERSION = "0.1.0"
|
20
|
+
|
21
|
+
# Version of the code generator used to generate this client
|
22
|
+
GENERATOR_VERSION = "0.1.1"
|
23
|
+
|
24
|
+
# Revision of the discovery document this client was generated from
|
25
|
+
REVISION = "20201031"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,266 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module BigqueryconnectionV1beta1
|
24
|
+
|
25
|
+
class AuditConfig
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class AuditLogConfig
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Binding
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class CloudSqlCredential
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class CloudSqlProperties
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class Connection
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class ConnectionCredential
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class Empty
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class Expr
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class GetIamPolicyRequest
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class GetPolicyOptions
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class ListConnectionsResponse
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class Policy
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class SetIamPolicyRequest
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class TestIamPermissionsRequest
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class TestIamPermissionsResponse
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class AuditConfig
|
122
|
+
# @private
|
123
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
124
|
+
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::BigqueryconnectionV1beta1::AuditLogConfig, decorator: Google::Apis::BigqueryconnectionV1beta1::AuditLogConfig::Representation
|
125
|
+
|
126
|
+
property :service, as: 'service'
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
class AuditLogConfig
|
131
|
+
# @private
|
132
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
133
|
+
collection :exempted_members, as: 'exemptedMembers'
|
134
|
+
property :log_type, as: 'logType'
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
class Binding
|
139
|
+
# @private
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
141
|
+
property :binding_id, as: 'bindingId'
|
142
|
+
property :condition, as: 'condition', class: Google::Apis::BigqueryconnectionV1beta1::Expr, decorator: Google::Apis::BigqueryconnectionV1beta1::Expr::Representation
|
143
|
+
|
144
|
+
collection :members, as: 'members'
|
145
|
+
property :role, as: 'role'
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
class CloudSqlCredential
|
150
|
+
# @private
|
151
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
152
|
+
property :password, as: 'password'
|
153
|
+
property :username, as: 'username'
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
class CloudSqlProperties
|
158
|
+
# @private
|
159
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
160
|
+
property :credential, as: 'credential', class: Google::Apis::BigqueryconnectionV1beta1::CloudSqlCredential, decorator: Google::Apis::BigqueryconnectionV1beta1::CloudSqlCredential::Representation
|
161
|
+
|
162
|
+
property :database, as: 'database'
|
163
|
+
property :instance_id, as: 'instanceId'
|
164
|
+
property :type, as: 'type'
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class Connection
|
169
|
+
# @private
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
171
|
+
property :cloud_sql, as: 'cloudSql', class: Google::Apis::BigqueryconnectionV1beta1::CloudSqlProperties, decorator: Google::Apis::BigqueryconnectionV1beta1::CloudSqlProperties::Representation
|
172
|
+
|
173
|
+
property :creation_time, :numeric_string => true, as: 'creationTime'
|
174
|
+
property :description, as: 'description'
|
175
|
+
property :friendly_name, as: 'friendlyName'
|
176
|
+
property :has_credential, as: 'hasCredential'
|
177
|
+
property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime'
|
178
|
+
property :name, as: 'name'
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
class ConnectionCredential
|
183
|
+
# @private
|
184
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
185
|
+
property :cloud_sql, as: 'cloudSql', class: Google::Apis::BigqueryconnectionV1beta1::CloudSqlCredential, decorator: Google::Apis::BigqueryconnectionV1beta1::CloudSqlCredential::Representation
|
186
|
+
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
class Empty
|
191
|
+
# @private
|
192
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class Expr
|
197
|
+
# @private
|
198
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
199
|
+
property :description, as: 'description'
|
200
|
+
property :expression, as: 'expression'
|
201
|
+
property :location, as: 'location'
|
202
|
+
property :title, as: 'title'
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
class GetIamPolicyRequest
|
207
|
+
# @private
|
208
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
209
|
+
property :options, as: 'options', class: Google::Apis::BigqueryconnectionV1beta1::GetPolicyOptions, decorator: Google::Apis::BigqueryconnectionV1beta1::GetPolicyOptions::Representation
|
210
|
+
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
class GetPolicyOptions
|
215
|
+
# @private
|
216
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
217
|
+
property :requested_policy_version, as: 'requestedPolicyVersion'
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
class ListConnectionsResponse
|
222
|
+
# @private
|
223
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
224
|
+
collection :connections, as: 'connections', class: Google::Apis::BigqueryconnectionV1beta1::Connection, decorator: Google::Apis::BigqueryconnectionV1beta1::Connection::Representation
|
225
|
+
|
226
|
+
property :next_page_token, as: 'nextPageToken'
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
class Policy
|
231
|
+
# @private
|
232
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
233
|
+
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::BigqueryconnectionV1beta1::AuditConfig, decorator: Google::Apis::BigqueryconnectionV1beta1::AuditConfig::Representation
|
234
|
+
|
235
|
+
collection :bindings, as: 'bindings', class: Google::Apis::BigqueryconnectionV1beta1::Binding, decorator: Google::Apis::BigqueryconnectionV1beta1::Binding::Representation
|
236
|
+
|
237
|
+
property :etag, :base64 => true, as: 'etag'
|
238
|
+
property :version, as: 'version'
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
class SetIamPolicyRequest
|
243
|
+
# @private
|
244
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
245
|
+
property :policy, as: 'policy', class: Google::Apis::BigqueryconnectionV1beta1::Policy, decorator: Google::Apis::BigqueryconnectionV1beta1::Policy::Representation
|
246
|
+
|
247
|
+
property :update_mask, as: 'updateMask'
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
class TestIamPermissionsRequest
|
252
|
+
# @private
|
253
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
254
|
+
collection :permissions, as: 'permissions'
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
class TestIamPermissionsResponse
|
259
|
+
# @private
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
261
|
+
collection :permissions, as: 'permissions'
|
262
|
+
end
|
263
|
+
end
|
264
|
+
end
|
265
|
+
end
|
266
|
+
end
|
@@ -0,0 +1,378 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
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 BigqueryconnectionV1beta1
|
23
|
+
# BigQuery Connection API
|
24
|
+
#
|
25
|
+
# Allows users to manage BigQuery connections to external data sources.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/bigqueryconnection_v1beta1'
|
29
|
+
#
|
30
|
+
# Bigqueryconnection = Google::Apis::BigqueryconnectionV1beta1 # Alias the module
|
31
|
+
# service = Bigqueryconnection::BigQueryConnectionServiceService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/bigquery/
|
34
|
+
class BigQueryConnectionServiceService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://bigqueryconnection.googleapis.com/', '',
|
47
|
+
client_name: 'google-apis-bigqueryconnection_v1beta1',
|
48
|
+
client_version: Google::Apis::BigqueryconnectionV1beta1::GEM_VERSION)
|
49
|
+
@batch_path = 'batch'
|
50
|
+
end
|
51
|
+
|
52
|
+
# Creates a new connection.
|
53
|
+
# @param [String] parent
|
54
|
+
# Required. Parent resource name. Must be in the format `projects/`project_id`/
|
55
|
+
# locations/`location_id``
|
56
|
+
# @param [Google::Apis::BigqueryconnectionV1beta1::Connection] connection_object
|
57
|
+
# @param [String] connection_id
|
58
|
+
# Optional. Connection id that should be assigned to the created connection.
|
59
|
+
# @param [String] fields
|
60
|
+
# Selector specifying which fields to include in a partial response.
|
61
|
+
# @param [String] quota_user
|
62
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
63
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
64
|
+
# @param [Google::Apis::RequestOptions] options
|
65
|
+
# Request-specific options
|
66
|
+
#
|
67
|
+
# @yield [result, err] Result & error if block supplied
|
68
|
+
# @yieldparam result [Google::Apis::BigqueryconnectionV1beta1::Connection] parsed result object
|
69
|
+
# @yieldparam err [StandardError] error object if request failed
|
70
|
+
#
|
71
|
+
# @return [Google::Apis::BigqueryconnectionV1beta1::Connection]
|
72
|
+
#
|
73
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
74
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
75
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
76
|
+
def create_project_location_connection(parent, connection_object = nil, connection_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
77
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/connections', options)
|
78
|
+
command.request_representation = Google::Apis::BigqueryconnectionV1beta1::Connection::Representation
|
79
|
+
command.request_object = connection_object
|
80
|
+
command.response_representation = Google::Apis::BigqueryconnectionV1beta1::Connection::Representation
|
81
|
+
command.response_class = Google::Apis::BigqueryconnectionV1beta1::Connection
|
82
|
+
command.params['parent'] = parent unless parent.nil?
|
83
|
+
command.query['connectionId'] = connection_id unless connection_id.nil?
|
84
|
+
command.query['fields'] = fields unless fields.nil?
|
85
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
86
|
+
execute_or_queue_command(command, &block)
|
87
|
+
end
|
88
|
+
|
89
|
+
# Deletes connection and associated credential.
|
90
|
+
# @param [String] name
|
91
|
+
# Required. Name of the deleted connection, for example: `projects/`project_id`/
|
92
|
+
# locations/`location_id`/connections/`connection_id``
|
93
|
+
# @param [String] fields
|
94
|
+
# Selector specifying which fields to include in a partial response.
|
95
|
+
# @param [String] quota_user
|
96
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
97
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
98
|
+
# @param [Google::Apis::RequestOptions] options
|
99
|
+
# Request-specific options
|
100
|
+
#
|
101
|
+
# @yield [result, err] Result & error if block supplied
|
102
|
+
# @yieldparam result [Google::Apis::BigqueryconnectionV1beta1::Empty] parsed result object
|
103
|
+
# @yieldparam err [StandardError] error object if request failed
|
104
|
+
#
|
105
|
+
# @return [Google::Apis::BigqueryconnectionV1beta1::Empty]
|
106
|
+
#
|
107
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
108
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
109
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
110
|
+
def delete_project_location_connection(name, fields: nil, quota_user: nil, options: nil, &block)
|
111
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
112
|
+
command.response_representation = Google::Apis::BigqueryconnectionV1beta1::Empty::Representation
|
113
|
+
command.response_class = Google::Apis::BigqueryconnectionV1beta1::Empty
|
114
|
+
command.params['name'] = name unless name.nil?
|
115
|
+
command.query['fields'] = fields unless fields.nil?
|
116
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
117
|
+
execute_or_queue_command(command, &block)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Returns specified connection.
|
121
|
+
# @param [String] name
|
122
|
+
# Required. Name of the requested connection, for example: `projects/`project_id`
|
123
|
+
# /locations/`location_id`/connections/`connection_id``
|
124
|
+
# @param [String] fields
|
125
|
+
# Selector specifying which fields to include in a partial response.
|
126
|
+
# @param [String] quota_user
|
127
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
128
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
129
|
+
# @param [Google::Apis::RequestOptions] options
|
130
|
+
# Request-specific options
|
131
|
+
#
|
132
|
+
# @yield [result, err] Result & error if block supplied
|
133
|
+
# @yieldparam result [Google::Apis::BigqueryconnectionV1beta1::Connection] parsed result object
|
134
|
+
# @yieldparam err [StandardError] error object if request failed
|
135
|
+
#
|
136
|
+
# @return [Google::Apis::BigqueryconnectionV1beta1::Connection]
|
137
|
+
#
|
138
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
139
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
140
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
141
|
+
def get_project_location_connection(name, fields: nil, quota_user: nil, options: nil, &block)
|
142
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
143
|
+
command.response_representation = Google::Apis::BigqueryconnectionV1beta1::Connection::Representation
|
144
|
+
command.response_class = Google::Apis::BigqueryconnectionV1beta1::Connection
|
145
|
+
command.params['name'] = name unless name.nil?
|
146
|
+
command.query['fields'] = fields unless fields.nil?
|
147
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
148
|
+
execute_or_queue_command(command, &block)
|
149
|
+
end
|
150
|
+
|
151
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
152
|
+
# resource exists and does not have a policy set.
|
153
|
+
# @param [String] resource
|
154
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
155
|
+
# operation documentation for the appropriate value for this field.
|
156
|
+
# @param [Google::Apis::BigqueryconnectionV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
157
|
+
# @param [String] fields
|
158
|
+
# Selector specifying which fields to include in a partial response.
|
159
|
+
# @param [String] quota_user
|
160
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
161
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
162
|
+
# @param [Google::Apis::RequestOptions] options
|
163
|
+
# Request-specific options
|
164
|
+
#
|
165
|
+
# @yield [result, err] Result & error if block supplied
|
166
|
+
# @yieldparam result [Google::Apis::BigqueryconnectionV1beta1::Policy] parsed result object
|
167
|
+
# @yieldparam err [StandardError] error object if request failed
|
168
|
+
#
|
169
|
+
# @return [Google::Apis::BigqueryconnectionV1beta1::Policy]
|
170
|
+
#
|
171
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
172
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
173
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
174
|
+
def get_connection_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
175
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
|
176
|
+
command.request_representation = Google::Apis::BigqueryconnectionV1beta1::GetIamPolicyRequest::Representation
|
177
|
+
command.request_object = get_iam_policy_request_object
|
178
|
+
command.response_representation = Google::Apis::BigqueryconnectionV1beta1::Policy::Representation
|
179
|
+
command.response_class = Google::Apis::BigqueryconnectionV1beta1::Policy
|
180
|
+
command.params['resource'] = resource unless resource.nil?
|
181
|
+
command.query['fields'] = fields unless fields.nil?
|
182
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
183
|
+
execute_or_queue_command(command, &block)
|
184
|
+
end
|
185
|
+
|
186
|
+
# Returns a list of connections in the given project.
|
187
|
+
# @param [String] parent
|
188
|
+
# Required. Parent resource name. Must be in the form: `projects/`project_id`/
|
189
|
+
# locations/`location_id``
|
190
|
+
# @param [Fixnum] max_results
|
191
|
+
# Required. Maximum number of results per page.
|
192
|
+
# @param [String] page_token
|
193
|
+
# Page token.
|
194
|
+
# @param [String] fields
|
195
|
+
# Selector specifying which fields to include in a partial response.
|
196
|
+
# @param [String] quota_user
|
197
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
198
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
199
|
+
# @param [Google::Apis::RequestOptions] options
|
200
|
+
# Request-specific options
|
201
|
+
#
|
202
|
+
# @yield [result, err] Result & error if block supplied
|
203
|
+
# @yieldparam result [Google::Apis::BigqueryconnectionV1beta1::ListConnectionsResponse] parsed result object
|
204
|
+
# @yieldparam err [StandardError] error object if request failed
|
205
|
+
#
|
206
|
+
# @return [Google::Apis::BigqueryconnectionV1beta1::ListConnectionsResponse]
|
207
|
+
#
|
208
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
209
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
210
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
211
|
+
def list_project_location_connections(parent, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
212
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/connections', options)
|
213
|
+
command.response_representation = Google::Apis::BigqueryconnectionV1beta1::ListConnectionsResponse::Representation
|
214
|
+
command.response_class = Google::Apis::BigqueryconnectionV1beta1::ListConnectionsResponse
|
215
|
+
command.params['parent'] = parent unless parent.nil?
|
216
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
217
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
218
|
+
command.query['fields'] = fields unless fields.nil?
|
219
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
220
|
+
execute_or_queue_command(command, &block)
|
221
|
+
end
|
222
|
+
|
223
|
+
# Updates the specified connection. For security reasons, also resets credential
|
224
|
+
# if connection properties are in the update field mask.
|
225
|
+
# @param [String] name
|
226
|
+
# Required. Name of the connection to update, for example: `projects/`project_id`
|
227
|
+
# /locations/`location_id`/connections/`connection_id``
|
228
|
+
# @param [Google::Apis::BigqueryconnectionV1beta1::Connection] connection_object
|
229
|
+
# @param [String] update_mask
|
230
|
+
# Required. Update mask for the connection fields to be updated.
|
231
|
+
# @param [String] fields
|
232
|
+
# Selector specifying which fields to include in a partial response.
|
233
|
+
# @param [String] quota_user
|
234
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
235
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
236
|
+
# @param [Google::Apis::RequestOptions] options
|
237
|
+
# Request-specific options
|
238
|
+
#
|
239
|
+
# @yield [result, err] Result & error if block supplied
|
240
|
+
# @yieldparam result [Google::Apis::BigqueryconnectionV1beta1::Connection] parsed result object
|
241
|
+
# @yieldparam err [StandardError] error object if request failed
|
242
|
+
#
|
243
|
+
# @return [Google::Apis::BigqueryconnectionV1beta1::Connection]
|
244
|
+
#
|
245
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
246
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
247
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
248
|
+
def patch_project_location_connection(name, connection_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
249
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
250
|
+
command.request_representation = Google::Apis::BigqueryconnectionV1beta1::Connection::Representation
|
251
|
+
command.request_object = connection_object
|
252
|
+
command.response_representation = Google::Apis::BigqueryconnectionV1beta1::Connection::Representation
|
253
|
+
command.response_class = Google::Apis::BigqueryconnectionV1beta1::Connection
|
254
|
+
command.params['name'] = name unless name.nil?
|
255
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
256
|
+
command.query['fields'] = fields unless fields.nil?
|
257
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
258
|
+
execute_or_queue_command(command, &block)
|
259
|
+
end
|
260
|
+
|
261
|
+
# Sets the access control policy on the specified resource. Replaces any
|
262
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
263
|
+
# PERMISSION_DENIED` errors.
|
264
|
+
# @param [String] resource
|
265
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
266
|
+
# operation documentation for the appropriate value for this field.
|
267
|
+
# @param [Google::Apis::BigqueryconnectionV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
268
|
+
# @param [String] fields
|
269
|
+
# Selector specifying which fields to include in a partial response.
|
270
|
+
# @param [String] quota_user
|
271
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
272
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
273
|
+
# @param [Google::Apis::RequestOptions] options
|
274
|
+
# Request-specific options
|
275
|
+
#
|
276
|
+
# @yield [result, err] Result & error if block supplied
|
277
|
+
# @yieldparam result [Google::Apis::BigqueryconnectionV1beta1::Policy] parsed result object
|
278
|
+
# @yieldparam err [StandardError] error object if request failed
|
279
|
+
#
|
280
|
+
# @return [Google::Apis::BigqueryconnectionV1beta1::Policy]
|
281
|
+
#
|
282
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
283
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
284
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
285
|
+
def set_connection_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
286
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
287
|
+
command.request_representation = Google::Apis::BigqueryconnectionV1beta1::SetIamPolicyRequest::Representation
|
288
|
+
command.request_object = set_iam_policy_request_object
|
289
|
+
command.response_representation = Google::Apis::BigqueryconnectionV1beta1::Policy::Representation
|
290
|
+
command.response_class = Google::Apis::BigqueryconnectionV1beta1::Policy
|
291
|
+
command.params['resource'] = resource unless resource.nil?
|
292
|
+
command.query['fields'] = fields unless fields.nil?
|
293
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
294
|
+
execute_or_queue_command(command, &block)
|
295
|
+
end
|
296
|
+
|
297
|
+
# Returns permissions that a caller has on the specified resource. If the
|
298
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
299
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
300
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
301
|
+
# This operation may "fail open" without warning.
|
302
|
+
# @param [String] resource
|
303
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
304
|
+
# operation documentation for the appropriate value for this field.
|
305
|
+
# @param [Google::Apis::BigqueryconnectionV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
306
|
+
# @param [String] fields
|
307
|
+
# Selector specifying which fields to include in a partial response.
|
308
|
+
# @param [String] quota_user
|
309
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
310
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
311
|
+
# @param [Google::Apis::RequestOptions] options
|
312
|
+
# Request-specific options
|
313
|
+
#
|
314
|
+
# @yield [result, err] Result & error if block supplied
|
315
|
+
# @yieldparam result [Google::Apis::BigqueryconnectionV1beta1::TestIamPermissionsResponse] parsed result object
|
316
|
+
# @yieldparam err [StandardError] error object if request failed
|
317
|
+
#
|
318
|
+
# @return [Google::Apis::BigqueryconnectionV1beta1::TestIamPermissionsResponse]
|
319
|
+
#
|
320
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
321
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
322
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
323
|
+
def test_connection_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
324
|
+
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
325
|
+
command.request_representation = Google::Apis::BigqueryconnectionV1beta1::TestIamPermissionsRequest::Representation
|
326
|
+
command.request_object = test_iam_permissions_request_object
|
327
|
+
command.response_representation = Google::Apis::BigqueryconnectionV1beta1::TestIamPermissionsResponse::Representation
|
328
|
+
command.response_class = Google::Apis::BigqueryconnectionV1beta1::TestIamPermissionsResponse
|
329
|
+
command.params['resource'] = resource unless resource.nil?
|
330
|
+
command.query['fields'] = fields unless fields.nil?
|
331
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
332
|
+
execute_or_queue_command(command, &block)
|
333
|
+
end
|
334
|
+
|
335
|
+
# Sets the credential for the specified connection.
|
336
|
+
# @param [String] name
|
337
|
+
# Required. Name of the connection, for example: `projects/`project_id`/
|
338
|
+
# locations/`location_id`/connections/`connection_id`/credential`
|
339
|
+
# @param [Google::Apis::BigqueryconnectionV1beta1::ConnectionCredential] connection_credential_object
|
340
|
+
# @param [String] fields
|
341
|
+
# Selector specifying which fields to include in a partial response.
|
342
|
+
# @param [String] quota_user
|
343
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
344
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
345
|
+
# @param [Google::Apis::RequestOptions] options
|
346
|
+
# Request-specific options
|
347
|
+
#
|
348
|
+
# @yield [result, err] Result & error if block supplied
|
349
|
+
# @yieldparam result [Google::Apis::BigqueryconnectionV1beta1::Empty] parsed result object
|
350
|
+
# @yieldparam err [StandardError] error object if request failed
|
351
|
+
#
|
352
|
+
# @return [Google::Apis::BigqueryconnectionV1beta1::Empty]
|
353
|
+
#
|
354
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
355
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
356
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
357
|
+
def update_project_location_connection_credential(name, connection_credential_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
358
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
359
|
+
command.request_representation = Google::Apis::BigqueryconnectionV1beta1::ConnectionCredential::Representation
|
360
|
+
command.request_object = connection_credential_object
|
361
|
+
command.response_representation = Google::Apis::BigqueryconnectionV1beta1::Empty::Representation
|
362
|
+
command.response_class = Google::Apis::BigqueryconnectionV1beta1::Empty
|
363
|
+
command.params['name'] = name unless name.nil?
|
364
|
+
command.query['fields'] = fields unless fields.nil?
|
365
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
366
|
+
execute_or_queue_command(command, &block)
|
367
|
+
end
|
368
|
+
|
369
|
+
protected
|
370
|
+
|
371
|
+
def apply_command_defaults(command)
|
372
|
+
command.query['key'] = key unless key.nil?
|
373
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
374
|
+
end
|
375
|
+
end
|
376
|
+
end
|
377
|
+
end
|
378
|
+
end
|