Class: Google::Apis::BigqueryconnectionV1::BigQueryConnectionServiceService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::BigqueryconnectionV1::BigQueryConnectionServiceService
- Defined in:
- lib/google/apis/bigqueryconnection_v1/service.rb
Overview
BigQuery Connection API
Allows users to manage BigQuery connections to external data sources.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://bigqueryconnection.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#create_project_location_connection(parent, connection_object = nil, connection_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::Connection
Creates a new connection.
-
#delete_project_location_connection(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::Empty
Deletes connection and associated credential.
-
#get_connection_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::Policy
Gets the access control policy for a resource.
-
#get_project_location_connection(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::Connection
Returns specified connection.
-
#initialize ⇒ BigQueryConnectionServiceService
constructor
A new instance of BigQueryConnectionServiceService.
-
#list_project_location_connections(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::ListConnectionsResponse
Returns a list of connections in the given project.
-
#patch_project_location_connection(name, connection_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::Connection
Updates the specified connection.
-
#set_connection_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::Policy
Sets the access control policy on the specified resource.
-
#test_connection_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
Constructor Details
#initialize ⇒ BigQueryConnectionServiceService
Returns a new instance of BigQueryConnectionServiceService.
47 48 49 50 51 52 |
# File 'lib/google/apis/bigqueryconnection_v1/service.rb', line 47 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-bigqueryconnection_v1', client_version: Google::Apis::BigqueryconnectionV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
40 41 42 |
# File 'lib/google/apis/bigqueryconnection_v1/service.rb', line 40 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
45 46 47 |
# File 'lib/google/apis/bigqueryconnection_v1/service.rb', line 45 def quota_user @quota_user end |
Instance Method Details
#create_project_location_connection(parent, connection_object = nil, connection_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::Connection
Creates a new connection.
78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/google/apis/bigqueryconnection_v1/service.rb', line 78 def create_project_location_connection(parent, connection_object = nil, connection_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/connections', ) command.request_representation = Google::Apis::BigqueryconnectionV1::Connection::Representation command.request_object = connection_object command.response_representation = Google::Apis::BigqueryconnectionV1::Connection::Representation command.response_class = Google::Apis::BigqueryconnectionV1::Connection command.params['parent'] = parent unless parent.nil? command.query['connectionId'] = connection_id unless connection_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_connection(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::Empty
Deletes connection and associated credential.
112 113 114 115 116 117 118 119 120 |
# File 'lib/google/apis/bigqueryconnection_v1/service.rb', line 112 def delete_project_location_connection(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::BigqueryconnectionV1::Empty::Representation command.response_class = Google::Apis::BigqueryconnectionV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_connection_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/google/apis/bigqueryconnection_v1/service.rb', line 177 def get_connection_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', ) command.request_representation = Google::Apis::BigqueryconnectionV1::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::BigqueryconnectionV1::Policy::Representation command.response_class = Google::Apis::BigqueryconnectionV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_connection(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::Connection
Returns specified connection.
143 144 145 146 147 148 149 150 151 |
# File 'lib/google/apis/bigqueryconnection_v1/service.rb', line 143 def get_project_location_connection(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::BigqueryconnectionV1::Connection::Representation command.response_class = Google::Apis::BigqueryconnectionV1::Connection command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_connections(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::ListConnectionsResponse
Returns a list of connections in the given project.
214 215 216 217 218 219 220 221 222 223 224 |
# File 'lib/google/apis/bigqueryconnection_v1/service.rb', line 214 def list_project_location_connections(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/connections', ) command.response_representation = Google::Apis::BigqueryconnectionV1::ListConnectionsResponse::Representation command.response_class = Google::Apis::BigqueryconnectionV1::ListConnectionsResponse command.params['parent'] = parent unless parent.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_connection(name, connection_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::Connection
Updates the specified connection. For security reasons, also resets credential if connection properties are in the update field mask.
251 252 253 254 255 256 257 258 259 260 261 262 |
# File 'lib/google/apis/bigqueryconnection_v1/service.rb', line 251 def patch_project_location_connection(name, connection_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::BigqueryconnectionV1::Connection::Representation command.request_object = connection_object command.response_representation = Google::Apis::BigqueryconnectionV1::Connection::Representation command.response_class = Google::Apis::BigqueryconnectionV1::Connection command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_connection_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::Policy
Sets the access control policy on the specified resource. Replaces any
existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and
PERMISSION_DENIED
errors.
289 290 291 292 293 294 295 296 297 298 299 |
# File 'lib/google/apis/bigqueryconnection_v1/service.rb', line 289 def set_connection_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::BigqueryconnectionV1::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::BigqueryconnectionV1::Policy::Representation command.response_class = Google::Apis::BigqueryconnectionV1::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_connection_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::BigqueryconnectionV1::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of permissions, not a
NOT_FOUND
error. Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization checking.
This operation may "fail open" without warning.
328 329 330 331 332 333 334 335 336 337 338 |
# File 'lib/google/apis/bigqueryconnection_v1/service.rb', line 328 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::BigqueryconnectionV1::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::BigqueryconnectionV1::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::BigqueryconnectionV1::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |