Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $projects = $connectorsService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Connectors_Resource_Projects');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $locations = $connectorsService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_Connectors_Resource_ProjectsLocations');
@@ -0,0 +1,129 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
use Google\Service\Connectors\CheckReadinessResponse;
use Google\Service\Connectors\CheckStatusResponse;
use Google\Service\Connectors\ExchangeAuthCodeRequest;
use Google\Service\Connectors\ExchangeAuthCodeResponse;
use Google\Service\Connectors\ExecuteSqlQueryRequest;
use Google\Service\Connectors\ExecuteSqlQueryResponse;
use Google\Service\Connectors\RefreshAccessTokenRequest;
use Google\Service\Connectors\RefreshAccessTokenResponse;
/**
* The "connections" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $connections = $connectorsService->projects_locations_connections;
* </code>
*/
class ProjectsLocationsConnections extends \Google\Service\Resource
{
/**
* Reports readiness status of the connector. Similar logic to GetStatus but
* modified for kubernetes health check to understand.
* (connections.checkReadiness)
*
* @param string $name
* @param array $optParams Optional parameters.
* @return CheckReadinessResponse
* @throws \Google\Service\Exception
*/
public function checkReadiness($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('checkReadiness', [$params], CheckReadinessResponse::class);
}
/**
* 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. (connections.checkStatus)
*
* @param string $name
* @param array $optParams Optional parameters.
* @return CheckStatusResponse
* @throws \Google\Service\Exception
*/
public function checkStatus($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('checkStatus', [$params], CheckStatusResponse::class);
}
/**
* ExchangeAuthCode exchanges the OAuth authorization code (and other necessary
* data) for an access token (and associated credentials).
* (connections.exchangeAuthCode)
*
* @param string $name
* @param ExchangeAuthCodeRequest $postBody
* @param array $optParams Optional parameters.
* @return ExchangeAuthCodeResponse
* @throws \Google\Service\Exception
*/
public function exchangeAuthCode($name, ExchangeAuthCodeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('exchangeAuthCode', [$params], ExchangeAuthCodeResponse::class);
}
/**
* 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'.
* (connections.executeSqlQuery)
*
* @param string $connection Required. Resource name of the Connection. Format:
* projects/{project}/locations/{location}/connections/{connection}
* @param ExecuteSqlQueryRequest $postBody
* @param array $optParams Optional parameters.
* @return ExecuteSqlQueryResponse
* @throws \Google\Service\Exception
*/
public function executeSqlQuery($connection, ExecuteSqlQueryRequest $postBody, $optParams = [])
{
$params = ['connection' => $connection, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('executeSqlQuery', [$params], ExecuteSqlQueryResponse::class);
}
/**
* RefreshAccessToken exchanges the OAuth refresh token (and other necessary
* data) for a new access token (and new associated credentials).
* (connections.refreshAccessToken)
*
* @param string $name
* @param RefreshAccessTokenRequest $postBody
* @param array $optParams Optional parameters.
* @return RefreshAccessTokenResponse
* @throws \Google\Service\Exception
*/
public function refreshAccessToken($name, RefreshAccessTokenRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('refreshAccessToken', [$params], RefreshAccessTokenResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnections::class, 'Google_Service_Connectors_Resource_ProjectsLocationsConnections');
@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
use Google\Service\Connectors\Action;
use Google\Service\Connectors\ExecuteActionRequest;
use Google\Service\Connectors\ExecuteActionResponse;
use Google\Service\Connectors\ListActionsResponse;
/**
* The "actions" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $actions = $connectorsService->projects_locations_connections_actions;
* </code>
*/
class ProjectsLocationsConnectionsActions extends \Google\Service\Resource
{
/**
* 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. (actions.execute)
*
* @param string $name Required. Resource name of the Action. Format: projects/{
* project}/locations/{location}/connections/{connection}/actions/{action}
* @param ExecuteActionRequest $postBody
* @param array $optParams Optional parameters.
* @return ExecuteActionResponse
* @throws \Google\Service\Exception
*/
public function execute($name, ExecuteActionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('execute', [$params], ExecuteActionResponse::class);
}
/**
* Gets the schema of the given action. (actions.get)
*
* @param string $name Required. Resource name of the Action. Format: projects/{
* project}/locations/{location}/connections/{connection}/actions/{action}
* @param array $optParams Optional parameters.
* @return Action
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Action::class);
}
/**
* Gets the schema of all the actions supported by the connector.
* (actions.listProjectsLocationsConnectionsActions)
*
* @param string $parent Required. Parent resource name of the Action. Format:
* projects/{project}/locations/{location}/connections/{connection}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Number of Actions to return. Defaults to 25.
* @opt_param string pageToken Page token, return from a previous ListActions
* call, that can be used retrieve the next page of content. If unspecified, the
* request returns the first page of actions.
* @opt_param string view Specifies which fields of the Action are returned in
* the response.
* @return ListActionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsConnectionsActions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListActionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnectionsActions::class, 'Google_Service_Connectors_Resource_ProjectsLocationsConnectionsActions');
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
use Google\Service\Connectors\EntityType;
use Google\Service\Connectors\ListEntityTypesResponse;
/**
* The "entityTypes" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $entityTypes = $connectorsService->projects_locations_connections_entityTypes;
* </code>
*/
class ProjectsLocationsConnectionsEntityTypes extends \Google\Service\Resource
{
/**
* Gets metadata of given entity type (entityTypes.get)
*
* @param string $name Required. Resource name of the Entity Type. Format: proje
* cts/{project}/locations/{location}/connections/{connection}/entityTypes/{enti
* tyType}
* @param array $optParams Optional parameters.
* @return EntityType
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], EntityType::class);
}
/**
* Lists metadata related to all entity types present in the external system.
* (entityTypes.listProjectsLocationsConnectionsEntityTypes)
*
* @param string $parent Required. Resource name of the Entity Type. Format:
* projects/{project}/locations/{location}/connections/{connection}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Number of entity types to return. Defaults to 25.
* @opt_param string pageToken Page token, return from a previous
* ListEntityTypes call, that can be used retrieve the next page of content. If
* unspecified, the request returns the first page of entity types.
* @opt_param string view Specifies which fields of the Entity Type are returned
* in the response.
* @return ListEntityTypesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsConnectionsEntityTypes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListEntityTypesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnectionsEntityTypes::class, 'Google_Service_Connectors_Resource_ProjectsLocationsConnectionsEntityTypes');
@@ -0,0 +1,200 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
use Google\Service\Connectors\ConnectorsEmpty;
use Google\Service\Connectors\Entity;
use Google\Service\Connectors\ListEntitiesResponse;
use Google\Service\Connectors\UpdateEntitiesWithConditionsResponse;
/**
* The "entities" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $entities = $connectorsService->projects_locations_connections_entityTypes_entities;
* </code>
*/
class ProjectsLocationsConnectionsEntityTypesEntities extends \Google\Service\Resource
{
/**
* 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. (entities.create)
*
* @param string $parent Required. Resource name of the Entity Type. Format: pro
* jects/{project}/locations/{location}/connections/{connection}/entityTypes/{ty
* pe}
* @param Entity $postBody
* @param array $optParams Optional parameters.
* @return Entity
* @throws \Google\Service\Exception
*/
public function create($parent, Entity $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Entity::class);
}
/**
* Deletes an existing entity row matching the entity type and entity id
* specified in the request. (entities.delete)
*
* @param string $name Required. Resource name of the Entity Type. Format: proje
* cts/{project}/locations/{location}/connections/{connection}/entityTypes/{type
* }/entities/{id}
* @param array $optParams Optional parameters.
* @return ConnectorsEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ConnectorsEmpty::class);
}
/**
* Deletes entities based on conditions specified in the request and not on
* entity id. (entities.deleteEntitiesWithConditions)
*
* @param string $entityType Required. Resource name of the Entity Type. Format:
* projects/{project}/locations/{location}/connections/{connection}/entityTypes/
* {type}
* @param array $optParams Optional parameters.
*
* @opt_param string conditions Required. Conditions to be used when deleting
* entities. From a proto standpoint, There are no restrictions on what can be
* passed using this field. The connector documentation should have information
* about what format of filters/conditions are supported. Note: If this
* conditions field is left empty, an exception is thrown. We don't want to
* consider 'empty conditions' to be a match-all case. Connector developers can
* determine and document what a match-all case constraint would be.
* @return ConnectorsEmpty
* @throws \Google\Service\Exception
*/
public function deleteEntitiesWithConditions($entityType, $optParams = [])
{
$params = ['entityType' => $entityType];
$params = array_merge($params, $optParams);
return $this->call('deleteEntitiesWithConditions', [$params], ConnectorsEmpty::class);
}
/**
* Gets a single entity row matching the entity type and entity id specified in
* the request. (entities.get)
*
* @param string $name Required. Resource name of the Entity Type. Format: proje
* cts/{project}/locations/{location}/connections/{connection}/entityTypes/{type
* }/entities/{id}
* @param array $optParams Optional parameters.
* @return Entity
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Entity::class);
}
/**
* Lists entity rows of a particular entity type contained in the request. Note:
* 1. 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.
* (entities.listProjectsLocationsConnectionsEntityTypesEntities)
*
* @param string $parent Required. Resource name of the Entity Type. Format: pro
* jects/{project}/locations/{location}/connections/{connection}/entityTypes/{ty
* pe}
* @param array $optParams Optional parameters.
*
* @opt_param string conditions Conditions to be used when listing entities.
* From a proto standpoint, There are no restrictions on what can be passed
* using this field. The connector documentation should have information about
* what format of filters/conditions are supported.
* @opt_param int pageSize Number of entity rows to return. Defaults page size =
* 25. Max page size = 200.
* @opt_param string pageToken Page token value if available from a previous
* request.
* @opt_param string sortBy List of 'sort_by' columns to use when returning the
* results.
* @return ListEntitiesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsConnectionsEntityTypesEntities($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListEntitiesResponse::class);
}
/**
* 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. (entities.patch)
*
* @param string $name Output only. Resource name of the Entity. Format: project
* s/{project}/locations/{location}/connections/{connection}/entityTypes/{type}/
* entities/{id}
* @param Entity $postBody
* @param array $optParams Optional parameters.
* @return Entity
* @throws \Google\Service\Exception
*/
public function patch($name, Entity $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Entity::class);
}
/**
* Updates entities based on conditions specified in the request and not on
* entity id. (entities.updateEntitiesWithConditions)
*
* @param string $entityType Required. Resource name of the Entity Type. Format:
* projects/{project}/locations/{location}/connections/{connection}/entityTypes/
* {type}
* @param Entity $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string conditions Required. Conditions to be used when updating
* entities. From a proto standpoint, There are no restrictions on what can be
* passed using this field. The connector documentation should have information
* about what format of filters/conditions are supported. Note: If this
* conditions field is left empty, an exception is thrown. We don't want to
* consider 'empty conditions' to be a match-all case. Connector developers can
* determine and document what a match-all case constraint would be.
* @return UpdateEntitiesWithConditionsResponse
* @throws \Google\Service\Exception
*/
public function updateEntitiesWithConditions($entityType, Entity $postBody, $optParams = [])
{
$params = ['entityType' => $entityType, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateEntitiesWithConditions', [$params], UpdateEntitiesWithConditionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnectionsEntityTypesEntities::class, 'Google_Service_Connectors_Resource_ProjectsLocationsConnectionsEntityTypesEntities');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
use Google\Service\Connectors\Operation;
/**
* The "entitieswithacls" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $entitieswithacls = $connectorsService->projects_locations_connections_entityTypes_entitieswithacls;
* </code>
*/
class ProjectsLocationsConnectionsEntityTypesEntitieswithacls extends \Google\Service\Resource
{
/**
* Lists entity rows with ACLs of a particular entity type contained in the
* request. Note: 1. 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. (entitieswithacls.listProjectsLocationsConnectionsEntityTypesEntit
* ieswithacls)
*
* @param string $parent Required. Resource name of the Entity Type. Format: pro
* jects/{project}/locations/{location}/connections/{connection}/entityTypes/{ty
* pe}
* @param array $optParams Optional parameters.
*
* @opt_param string conditions Conditions to be used when listing entities.
* From a proto standpoint, There are no restrictions on what can be passed
* using this field. The connector documentation should have information about
* what format of filters/conditions are supported.
* @opt_param string gsutilUri Format: gs://object_path
* @return Operation
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsConnectionsEntityTypesEntitieswithacls($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnectionsEntityTypesEntitieswithacls::class, 'Google_Service_Connectors_Resource_ProjectsLocationsConnectionsEntityTypesEntitieswithacls');
@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
use Google\Service\Connectors\ListRuntimeActionSchemasResponse;
/**
* The "runtimeActionSchemas" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $runtimeActionSchemas = $connectorsService->runtimeActionSchemas;
* </code>
*/
class ProjectsLocationsConnectionsRuntimeActionSchemas extends \Google\Service\Resource
{
/**
* List schema of a runtime actions filtered by action name.
* (runtimeActionSchemas.listProjectsLocationsConnectionsRuntimeActionSchemas)
*
* @param string $parent Required. Parent resource of RuntimeActionSchema
* Format: projects/{project}/locations/{location}/connections/{connection}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Required. Filter Format: action="{actionId}" Only
* action field is supported with literal equality operator. Accepted filter
* example: action="CancelOrder" Wildcards are not supported in the filter
* currently.
* @opt_param int pageSize Page size.
* @opt_param string pageToken Page token.
* @return ListRuntimeActionSchemasResponse
*/
public function listProjectsLocationsConnectionsRuntimeActionSchemas($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRuntimeActionSchemasResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnectionsRuntimeActionSchemas::class, 'Google_Service_Connectors_Resource_ProjectsLocationsConnectionsRuntimeActionSchemas');
@@ -0,0 +1,56 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
use Google\Service\Connectors\ListRuntimeEntitySchemasResponse;
/**
* The "runtimeEntitySchemas" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $runtimeEntitySchemas = $connectorsService->runtimeEntitySchemas;
* </code>
*/
class ProjectsLocationsConnectionsRuntimeEntitySchemas extends \Google\Service\Resource
{
/**
* List schema of a runtime entities filtered by entity name.
* (runtimeEntitySchemas.listProjectsLocationsConnectionsRuntimeEntitySchemas)
*
* @param string $parent Required. Parent resource of RuntimeEntitySchema
* Format: projects/{project}/locations/{location}/connections/{connection}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Required. Filter Format: entity="{entityId}" Only
* entity field is supported with literal equality operator. Accepted filter
* example: entity="Order" Wildcards are not supported in the filter currently.
* @opt_param int pageSize Page size.
* @opt_param string pageToken Page token.
* @return ListRuntimeEntitySchemasResponse
*/
public function listProjectsLocationsConnectionsRuntimeEntitySchemas($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRuntimeEntitySchemasResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnectionsRuntimeEntitySchemas::class, 'Google_Service_Connectors_Resource_ProjectsLocationsConnectionsRuntimeEntitySchemas');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
/**
* The "global" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $global = $connectorsService->global;
* </code>
*/
class ProjectsLocationsConnectorsGlobal extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnectorsGlobal::class, 'Google_Service_Connectors_Resource_ProjectsLocationsConnectorsGlobal');
@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
use Google\Service\Connectors\ListProvidersResponse;
use Google\Service\Connectors\Provider;
/**
* The "providers" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $providers = $connectorsService->providers;
* </code>
*/
class ProjectsLocationsConnectorsGlobalProviders extends \Google\Service\Resource
{
/**
* Gets details of a single Provider. (providers.get)
*
* @param string $name Required. Resource name of the form:
* `projects/locations/providers`
* @param array $optParams Optional parameters.
* @return Provider
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Provider::class);
}
/**
* Lists Providers in a given project and location.
* (providers.listProjectsLocationsConnectorsGlobalProviders)
*
* @param string $parent Required. Parent resource of the API, of the form:
* `projects/locations`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Page size.
* @opt_param string pageToken Page token.
* @return ListProvidersResponse
*/
public function listProjectsLocationsConnectorsGlobalProviders($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListProvidersResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnectorsGlobalProviders::class, 'Google_Service_Connectors_Resource_ProjectsLocationsConnectorsGlobalProviders');
@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
use Google\Service\Connectors\Connector;
use Google\Service\Connectors\ListConnectorsResponse;
/**
* The "connectors" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $connectors = $connectorsService->connectors;
* </code>
*/
class ProjectsLocationsConnectorsGlobalProvidersConnectors extends \Google\Service\Resource
{
/**
* Gets details of a single Connector. (connectors.get)
*
* @param string $name Required. Resource name of the form:
* `projects/locations/providers/connectors`
* @param array $optParams Optional parameters.
* @return Connector
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Connector::class);
}
/**
* Lists Connectors in a given project and location.
* (connectors.listProjectsLocationsConnectorsGlobalProvidersConnectors)
*
* @param string $parent Required. Parent resource of the connectors, of the
* form: `projects/locations/providers`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Page size.
* @opt_param string pageToken Page token.
* @return ListConnectorsResponse
*/
public function listProjectsLocationsConnectorsGlobalProvidersConnectors($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListConnectorsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnectorsGlobalProvidersConnectors::class, 'Google_Service_Connectors_Resource_ProjectsLocationsConnectorsGlobalProvidersConnectors');
@@ -0,0 +1,73 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
use Google\Service\Connectors\ConnectorVersion;
use Google\Service\Connectors\ListConnectorVersionsResponse;
/**
* The "versions" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $versions = $connectorsService->versions;
* </code>
*/
class ProjectsLocationsConnectorsGlobalProvidersConnectorsVersions extends \Google\Service\Resource
{
/**
* Gets details of a single connector version. (versions.get)
*
* @param string $name Required. Resource name of the form:
* `projects/locations/providers/connectors/versions`
* @param array $optParams Optional parameters.
*
* @opt_param string view Specifies which fields of the ConnectorVersion are
* returned in the response. Defaults to `CUSTOMER` view.
* @return ConnectorVersion
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ConnectorVersion::class);
}
/**
* Lists Connector Versions in a given project and location.
* (versions.listProjectsLocationsConnectorsGlobalProvidersConnectorsVersions)
*
* @param string $parent Required. Parent resource of the connectors, of the
* form: `projects/locations/providers/connectors`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Page size.
* @opt_param string pageToken Page token.
* @opt_param string view Specifies which fields of the ConnectorVersion are
* returned in the response. Defaults to `CUSTOMER` view.
* @return ListConnectorVersionsResponse
*/
public function listProjectsLocationsConnectorsGlobalProvidersConnectorsVersions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListConnectorVersionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnectorsGlobalProvidersConnectorsVersions::class, 'Google_Service_Connectors_Resource_ProjectsLocationsConnectorsGlobalProvidersConnectorsVersions');
@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
use Google\Service\Connectors\CancelOperationRequest;
use Google\Service\Connectors\ConnectorsEmpty;
use Google\Service\Connectors\ListOperationsResponse;
use Google\Service\Connectors\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $operations = $connectorsService->operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return ConnectorsEmpty
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], ConnectorsEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return ConnectorsEmpty
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ConnectorsEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the
* `name` binding allows API services to override the binding to use different
* resource name schemes, such as `users/operations`. To override the binding,
* API services can add a binding such as `"/v1/{name=users}/operations"` to
* their service configuration. For backwards compatibility, the default name
* includes the operations collection id, however overriding users must ensure
* the name binding is the parent resource, without the operations collection
* id. (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return ListOperationsResponse
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_Connectors_Resource_ProjectsLocationsOperations');
@@ -0,0 +1,109 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Connectors\Resource;
use Google\Service\Connectors\Policy;
use Google\Service\Connectors\SetIamPolicyRequest;
use Google\Service\Connectors\TestIamPermissionsRequest;
use Google\Service\Connectors\TestIamPermissionsResponse;
/**
* The "providers" collection of methods.
* Typical usage is:
* <code>
* $connectorsService = new Google\Service\Connectors(...);
* $providers = $connectorsService->providers;
* </code>
*/
class ProjectsLocationsProviders extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (providers.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (providers.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* 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.
* (providers.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProviders::class, 'Google_Service_Connectors_Resource_ProjectsLocationsProviders');