Class: Google::Apis::ConnectorsV2::ConnectorsService
- Inherits:
-
Google::Apis::Core::BaseService
- Object
- Google::Apis::Core::BaseService
- Google::Apis::ConnectorsV2::ConnectorsService
- Defined in:
- lib/google/apis/connectors_v2/service.rb
Overview
Connectors API
Enables users to create and manage connections to Google Cloud services and third-party business applications using the Connectors interface.
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
-
#check_project_location_connection_readiness(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::CheckReadinessResponse
Reports readiness status of the connector.
-
#check_project_location_connection_status(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::CheckStatusResponse
Reports the status of the connection.
-
#create_project_location_connection_entity_type_entity(parent, entity_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::Entity
Creates a new entity row of the specified entity type in the external system.
-
#delete_project_location_connection_entity_type_entity(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::Empty
Deletes an existing entity row matching the entity type and entity id specified in the request.
-
#delete_project_location_connection_entity_type_entity_entities_with_conditions(entity_type, conditions: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::Empty
Deletes entities based on conditions specified in the request and not on entity id.
-
#exchange_connection_auth_code(name, exchange_auth_code_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::ExchangeAuthCodeResponse
ExchangeAuthCode exchanges the OAuth authorization code (and other necessary data) for an access token (and associated credentials).
-
#execute_action(name, execute_action_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::ExecuteActionResponse
Executes an action with the name specified in the request.
-
#execute_connection_sql_query(connection, execute_sql_query_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::ExecuteSqlQueryResponse
Executes a SQL statement specified in the body of the request.
-
#get_project_location_connection_action(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::Action
Gets the schema of the given action.
-
#get_project_location_connection_entity_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::EntityType
Gets metadata of given entity type.
-
#get_project_location_connection_entity_type_entity(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::Entity
Gets a single entity row matching the entity type and entity id specified in the request.
-
#initialize ⇒ ConnectorsService
constructor
A new instance of ConnectorsService.
-
#list_project_location_connection_actions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::ListActionsResponse
Gets the schema of all the actions supported by the connector.
-
#list_project_location_connection_entity_type_entities(parent, conditions: nil, page_size: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::ListEntitiesResponse
Lists entity rows of a particular entity type contained in the request.
-
#list_project_location_connection_entity_types(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::ListEntityTypesResponse
Lists metadata related to all entity types present in the external system.
-
#patch_project_location_connection_entity_type_entity(name, entity_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::Entity
Updates an existing entity row matching the entity type and entity id specified in the request.
-
#refresh_connection_access_token(name, refresh_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::RefreshAccessTokenResponse
RefreshAccessToken exchanges the OAuth refresh token (and other necessary data) for a new access token (and new associated credentials).
-
#update_project_location_connection_entity_type_entity_entities_with_conditions(entity_type, entity_object = nil, conditions: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::UpdateEntitiesWithConditionsResponse
Updates entities based on conditions specified in the request and not on entity id.
Constructor Details
#initialize ⇒ ConnectorsService
Returns a new instance of ConnectorsService.
46 47 48 49 50 51 |
# File 'lib/google/apis/connectors_v2/service.rb', line 46 def initialize super('https://connectors.googleapis.com/', '', client_name: 'google-apis-connectors_v2', client_version: Google::Apis::ConnectorsV2::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.
39 40 41 |
# File 'lib/google/apis/connectors_v2/service.rb', line 39 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.
44 45 46 |
# File 'lib/google/apis/connectors_v2/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#check_project_location_connection_readiness(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::CheckReadinessResponse
Reports readiness status of the connector. Similar logic to GetStatus but modified for kubernetes health check to understand.
73 74 75 76 77 78 79 80 81 |
# File 'lib/google/apis/connectors_v2/service.rb', line 73 def check_project_location_connection_readiness(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}:checkReadiness', ) command.response_representation = Google::Apis::ConnectorsV2::CheckReadinessResponse::Representation command.response_class = Google::Apis::ConnectorsV2::CheckReadinessResponse 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 |
#check_project_location_connection_status(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::CheckStatusResponse
Reports the status of the connection. Note that when the connection is in a state that is not ACTIVE, the implementation of this RPC method must return a Status with the corresponding State instead of returning a gRPC status code that is not "OK", which indicates that ConnectionStatus itself, not the connection, failed.
106 107 108 109 110 111 112 113 114 |
# File 'lib/google/apis/connectors_v2/service.rb', line 106 def check_project_location_connection_status(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}:checkStatus', ) command.response_representation = Google::Apis::ConnectorsV2::CheckStatusResponse::Representation command.response_class = Google::Apis::ConnectorsV2::CheckStatusResponse 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 |
#create_project_location_connection_entity_type_entity(parent, entity_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::Entity
Creates a new entity row of the specified entity type in the external system.
The field values for creating the row are contained in the body of the request.
The response message contains a Entity message object returned as a
response by the external system.
425 426 427 428 429 430 431 432 433 434 435 |
# File 'lib/google/apis/connectors_v2/service.rb', line 425 def create_project_location_connection_entity_type_entity(parent, entity_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+parent}/entities', ) command.request_representation = Google::Apis::ConnectorsV2::Entity::Representation command.request_object = entity_object command.response_representation = Google::Apis::ConnectorsV2::Entity::Representation command.response_class = Google::Apis::ConnectorsV2::Entity command.params['parent'] = parent unless parent.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_entity_type_entity(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::Empty
Deletes an existing entity row matching the entity type and entity id specified in the request.
459 460 461 462 463 464 465 466 467 |
# File 'lib/google/apis/connectors_v2/service.rb', line 459 def delete_project_location_connection_entity_type_entity(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v2/{+name}', ) command.response_representation = Google::Apis::ConnectorsV2::Empty::Representation command.response_class = Google::Apis::ConnectorsV2::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 |
#delete_project_location_connection_entity_type_entity_entities_with_conditions(entity_type, conditions: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::Empty
Deletes entities based on conditions specified in the request and not on entity id.
499 500 501 502 503 504 505 506 507 508 |
# File 'lib/google/apis/connectors_v2/service.rb', line 499 def delete_project_location_connection_entity_type_entity_entities_with_conditions(entity_type, conditions: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+entityType}/entities:deleteEntitiesWithConditions', ) command.response_representation = Google::Apis::ConnectorsV2::Empty::Representation command.response_class = Google::Apis::ConnectorsV2::Empty command.params['entityType'] = entity_type unless entity_type.nil? command.query['conditions'] = conditions unless conditions.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#exchange_connection_auth_code(name, exchange_auth_code_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::ExchangeAuthCodeResponse
ExchangeAuthCode exchanges the OAuth authorization code (and other necessary data) for an access token (and associated credentials).
137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/google/apis/connectors_v2/service.rb', line 137 def exchange_connection_auth_code(name, exchange_auth_code_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:exchangeAuthCode', ) command.request_representation = Google::Apis::ConnectorsV2::ExchangeAuthCodeRequest::Representation command.request_object = exchange_auth_code_request_object command.response_representation = Google::Apis::ConnectorsV2::ExchangeAuthCodeResponse::Representation command.response_class = Google::Apis::ConnectorsV2::ExchangeAuthCodeResponse 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 |
#execute_action(name, execute_action_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::ExecuteActionResponse
Executes an action with the name specified in the request. The input parameters for executing the action are passed through the body of the ExecuteAction request.
242 243 244 245 246 247 248 249 250 251 252 |
# File 'lib/google/apis/connectors_v2/service.rb', line 242 def execute_action(name, execute_action_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:execute', ) command.request_representation = Google::Apis::ConnectorsV2::ExecuteActionRequest::Representation command.request_object = execute_action_request_object command.response_representation = Google::Apis::ConnectorsV2::ExecuteActionResponse::Representation command.response_class = Google::Apis::ConnectorsV2::ExecuteActionResponse 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 |
#execute_connection_sql_query(connection, execute_sql_query_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::ExecuteSqlQueryResponse
Executes a SQL statement specified in the body of the request. An example of this SQL statement in the case of Salesforce connector would be 'select * from Account a, Order o where a.Id = o.AccountId'.
173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/google/apis/connectors_v2/service.rb', line 173 def execute_connection_sql_query(connection, execute_sql_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+connection}:executeSqlQuery', ) command.request_representation = Google::Apis::ConnectorsV2::ExecuteSqlQueryRequest::Representation command.request_object = execute_sql_query_request_object command.response_representation = Google::Apis::ConnectorsV2::ExecuteSqlQueryResponse::Representation command.response_class = Google::Apis::ConnectorsV2::ExecuteSqlQueryResponse command.params['connection'] = connection unless connection.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_action(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::Action
Gets the schema of the given action.
275 276 277 278 279 280 281 282 283 |
# File 'lib/google/apis/connectors_v2/service.rb', line 275 def get_project_location_connection_action(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::ConnectorsV2::Action::Representation command.response_class = Google::Apis::ConnectorsV2::Action 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_project_location_connection_entity_type(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::EntityType
Gets metadata of given entity type
348 349 350 351 352 353 354 355 356 |
# File 'lib/google/apis/connectors_v2/service.rb', line 348 def get_project_location_connection_entity_type(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::ConnectorsV2::EntityType::Representation command.response_class = Google::Apis::ConnectorsV2::EntityType 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_project_location_connection_entity_type_entity(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::Entity
Gets a single entity row matching the entity type and entity id specified in the request.
532 533 534 535 536 537 538 539 540 |
# File 'lib/google/apis/connectors_v2/service.rb', line 532 def get_project_location_connection_entity_type_entity(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+name}', ) command.response_representation = Google::Apis::ConnectorsV2::Entity::Representation command.response_class = Google::Apis::ConnectorsV2::Entity 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_connection_actions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::ListActionsResponse
Gets the schema of all the actions supported by the connector.
314 315 316 317 318 319 320 321 322 323 324 325 |
# File 'lib/google/apis/connectors_v2/service.rb', line 314 def list_project_location_connection_actions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/actions', ) command.response_representation = Google::Apis::ConnectorsV2::ListActionsResponse::Representation command.response_class = Google::Apis::ConnectorsV2::ListActionsResponse 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['view'] = view unless view.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_connection_entity_type_entities(parent, conditions: nil, page_size: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::ListEntitiesResponse
Lists entity rows of a particular entity type contained in the request. Note:
- Currently, only max of one 'sort_by' column is supported. 2. If no 'sort_by' column is provided, the primary key of the table is used. If zero or more than one primary key is available, we default to the unpaginated list entities logic which only returns the first page. 3. The values of the 'sort_by' columns must uniquely identify an entity row, otherwise undefined behaviors may be observed during pagination. 4. Since transactions are not supported, any updates, inserts or deletes during pagination can lead to stale data being returned or other unexpected behaviors.
582 583 584 585 586 587 588 589 590 591 592 593 594 |
# File 'lib/google/apis/connectors_v2/service.rb', line 582 def list_project_location_connection_entity_type_entities(parent, conditions: nil, page_size: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/entities', ) command.response_representation = Google::Apis::ConnectorsV2::ListEntitiesResponse::Representation command.response_class = Google::Apis::ConnectorsV2::ListEntitiesResponse command.params['parent'] = parent unless parent.nil? command.query['conditions'] = conditions unless conditions.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['sortBy'] = sort_by unless sort_by.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_connection_entity_types(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::ListEntityTypesResponse
Lists metadata related to all entity types present in the external system.
387 388 389 390 391 392 393 394 395 396 397 398 |
# File 'lib/google/apis/connectors_v2/service.rb', line 387 def list_project_location_connection_entity_types(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v2/{+parent}/entityTypes', ) command.response_representation = Google::Apis::ConnectorsV2::ListEntityTypesResponse::Representation command.response_class = Google::Apis::ConnectorsV2::ListEntityTypesResponse 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['view'] = view unless view.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_entity_type_entity(name, entity_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::Entity
Updates an existing entity row matching the entity type and entity id
specified in the request. The fields in the entity row that need to be
modified are contained in the body of the request. All unspecified fields are
left unchanged. The response message contains a Entity message object
returned as a response by the external system.
622 623 624 625 626 627 628 629 630 631 632 |
# File 'lib/google/apis/connectors_v2/service.rb', line 622 def patch_project_location_connection_entity_type_entity(name, entity_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v2/{+name}', ) command.request_representation = Google::Apis::ConnectorsV2::Entity::Representation command.request_object = entity_object command.response_representation = Google::Apis::ConnectorsV2::Entity::Representation command.response_class = Google::Apis::ConnectorsV2::Entity 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 |
#refresh_connection_access_token(name, refresh_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::RefreshAccessTokenResponse
RefreshAccessToken exchanges the OAuth refresh token (and other necessary data) for a new access token (and new associated credentials).
206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/google/apis/connectors_v2/service.rb', line 206 def refresh_connection_access_token(name, refresh_access_token_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+name}:refreshAccessToken', ) command.request_representation = Google::Apis::ConnectorsV2::RefreshAccessTokenRequest::Representation command.request_object = refresh_access_token_request_object command.response_representation = Google::Apis::ConnectorsV2::RefreshAccessTokenResponse::Representation command.response_class = Google::Apis::ConnectorsV2::RefreshAccessTokenResponse 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 |
#update_project_location_connection_entity_type_entity_entities_with_conditions(entity_type, entity_object = nil, conditions: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ConnectorsV2::UpdateEntitiesWithConditionsResponse
Updates entities based on conditions specified in the request and not on entity id.
665 666 667 668 669 670 671 672 673 674 675 676 |
# File 'lib/google/apis/connectors_v2/service.rb', line 665 def update_project_location_connection_entity_type_entity_entities_with_conditions(entity_type, entity_object = nil, conditions: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v2/{+entityType}/entities:updateEntitiesWithConditions', ) command.request_representation = Google::Apis::ConnectorsV2::Entity::Representation command.request_object = entity_object command.response_representation = Google::Apis::ConnectorsV2::UpdateEntitiesWithConditionsResponse::Representation command.response_class = Google::Apis::ConnectorsV2::UpdateEntitiesWithConditionsResponse command.params['entityType'] = entity_type unless entity_type.nil? command.query['conditions'] = conditions unless conditions.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |