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,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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaGenerateTokenResponse;
/**
* The "callback" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $callback = $integrationsService->callback;
* </code>
*/
class Callback extends \Google\Service\Resource
{
/**
* Receives the auth code and auth config id to combine that with the client id
* and secret to retrieve access tokens from the token endpoint. Returns either
* a success or error message when it's done. (callback.generateToken)
*
* @param array $optParams Optional parameters.
*
* @opt_param string code The auth code for the given request
* @opt_param string gcpProjectId The gcp project id of the request
* @opt_param string product Which product sends the request
* @opt_param string redirectUri Redirect uri of the auth code request
* @opt_param string state The auth config id for the given request
* @return GoogleCloudIntegrationsV1alphaGenerateTokenResponse
* @throws \Google\Service\Exception
*/
public function generateToken($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('generateToken', [$params], GoogleCloudIntegrationsV1alphaGenerateTokenResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Callback::class, 'Google_Service_Integrations_Resource_Callback');
@@ -0,0 +1,49 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse;
/**
* The "connectorPlatformRegions" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $connectorPlatformRegions = $integrationsService->connectorPlatformRegions;
* </code>
*/
class ConnectorPlatformRegions extends \Google\Service\Resource
{
/**
* Enumerates the regions for which Connector Platform is provisioned.
* (connectorPlatformRegions.enumerate)
*
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse
* @throws \Google\Service\Exception
*/
public function enumerate($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('enumerate', [$params], GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectorPlatformRegions::class, 'Google_Service_Integrations_Resource_ConnectorPlatformRegions');
@@ -0,0 +1,50 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaGetClientMetadataResponse;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $projects = $integrationsService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Gets the metadata info for the requested client (projects.getClientmetadata)
*
* @param string $parent Required. Required: The ID of the GCP Project to be
* provisioned.
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaGetClientMetadataResponse
* @throws \Google\Service\Exception
*/
public function getClientmetadata($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('getClientmetadata', [$params], GoogleCloudIntegrationsV1alphaGetClientMetadataResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Integrations_Resource_Projects');
@@ -0,0 +1,71 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaGetClientResponse;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $locations = $integrationsService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Generate OpenAPI spec for the requested integrations and api triggers
* (locations.generateOpenApiSpec)
*
* @param string $name Required. Project and location from which the
* integrations should be fetched. Format:
* projects/{project}/location/{location}
* @param GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponse
* @throws \Google\Service\Exception
*/
public function generateOpenApiSpec($name, GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('generateOpenApiSpec', [$params], GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponse::class);
}
/**
* Gets the client configuration for the given project and location resource
* name (locations.getClients)
*
* @param string $parent Required. Required: The ID of the GCP Project to be
* provisioned.
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaGetClientResponse
* @throws \Google\Service\Exception
*/
public function getClients($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('getClients', [$params], GoogleCloudIntegrationsV1alphaGetClientResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_Integrations_Resource_ProjectsLocations');
@@ -0,0 +1,70 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse;
/**
* The "appsScriptProjects" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $appsScriptProjects = $integrationsService->projects_locations_appsScriptProjects;
* </code>
*/
class ProjectsLocationsAppsScriptProjects extends \Google\Service\Resource
{
/**
* Creates an Apps Script project. (appsScriptProjects.create)
*
* @param string $parent Required. The project that the executed integration
* belongs to.
* @param GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectResponse::class);
}
/**
* Links a existing Apps Script project. (appsScriptProjects.link)
*
* @param string $parent Required. The project that the executed integration
* belongs to.
* @param GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse
* @throws \Google\Service\Exception
*/
public function link($parent, GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('link', [$params], GoogleCloudIntegrationsV1alphaLinkAppsScriptProjectResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsAppsScriptProjects::class, 'Google_Service_Integrations_Resource_ProjectsLocationsAppsScriptProjects');
@@ -0,0 +1,209 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaAuthConfig;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListAuthConfigsResponse;
use Google\Service\Integrations\GoogleProtobufEmpty;
/**
* The "authConfigs" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $authConfigs = $integrationsService->projects_locations_authConfigs;
* </code>
*/
class ProjectsLocationsAuthConfigs extends \Google\Service\Resource
{
/**
* Creates an auth config record. Fetch corresponding credentials for specific
* auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the
* auth config with Cloud KMS and store the encrypted credentials in Spanner.
* Returns the encrypted auth config. (authConfigs.create)
*
* @param string $parent Required. "projects/{project}/locations/{location}"
* format.
* @param GoogleCloudIntegrationsV1alphaAuthConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientCertificate.encryptedPrivateKey The ssl certificate
* encoded in PEM format. This string must include the begin header and end
* footer lines. For example, -----BEGIN CERTIFICATE-----
* MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
* BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
* MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
* MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
* vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1
* JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
* xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P
* AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
* Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
* Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
* JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
* 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
* wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
* @opt_param string clientCertificate.passphrase 'passphrase' should be left
* unset if private key is not encrypted. Note that 'passphrase' is not the
* password for web server, but an extra layer of security to protected private
* key.
* @opt_param string clientCertificate.sslCertificate The ssl certificate
* encoded in PEM format. This string must include the begin header and end
* footer lines. For example, -----BEGIN CERTIFICATE-----
* MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
* BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
* MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
* MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
* vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1
* JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
* xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P
* AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
* Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
* Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
* JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
* 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
* wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
* @return GoogleCloudIntegrationsV1alphaAuthConfig
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaAuthConfig $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaAuthConfig::class);
}
/**
* Deletes an auth config. (authConfigs.delete)
*
* @param string $name Required. The name that is associated with the
* AuthConfig.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND
* exception will be thrown. Returns the decrypted auth config.
* (authConfigs.get)
*
* @param string $name Required. The name that is associated with the
* AuthConfig.
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaAuthConfig
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaAuthConfig::class);
}
/**
* Lists all auth configs that match the filter. Restrict to auth configs belong
* to the current client only. (authConfigs.listProjectsLocationsAuthConfigs)
*
* @param string $parent Required. The client, which owns this collection of
* AuthConfigs.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering as supported in
* https://developers.google.com/authorized-buyers/apis/guides/list-filters.
* @opt_param int pageSize The size of entries in the response. If unspecified,
* defaults to 100.
* @opt_param string pageToken The token returned in the previous response.
* @opt_param string readMask The mask which specifies fields that need to be
* returned in the AuthConfig's response.
* @return GoogleCloudIntegrationsV1alphaListAuthConfigsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsAuthConfigs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListAuthConfigsResponse::class);
}
/**
* Updates an auth config. If credential is updated, fetch the encrypted auth
* config from Spanner, decrypt with Cloud KMS key, update the credential
* fields, re-encrypt with Cloud KMS key and update the Spanner record. For
* other fields, directly update the Spanner record. Returns the encrypted auth
* config. (authConfigs.patch)
*
* @param string $name Resource name of the auth config. For more information,
* see Manage authentication profiles.
* projects/{project}/locations/{location}/authConfigs/{authConfig}.
* @param GoogleCloudIntegrationsV1alphaAuthConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientCertificate.encryptedPrivateKey The ssl certificate
* encoded in PEM format. This string must include the begin header and end
* footer lines. For example, -----BEGIN CERTIFICATE-----
* MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
* BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
* MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
* MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
* vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1
* JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
* xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P
* AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
* Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
* Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
* JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
* 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
* wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
* @opt_param string clientCertificate.passphrase 'passphrase' should be left
* unset if private key is not encrypted. Note that 'passphrase' is not the
* password for web server, but an extra layer of security to protected private
* key.
* @opt_param string clientCertificate.sslCertificate The ssl certificate
* encoded in PEM format. This string must include the begin header and end
* footer lines. For example, -----BEGIN CERTIFICATE-----
* MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
* BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
* MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
* MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
* vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1
* JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
* xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P
* AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
* Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
* Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
* JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
* 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
* wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
* @opt_param string updateMask Field mask specifying the fields in the above
* AuthConfig that have been modified and need to be updated.
* @return GoogleCloudIntegrationsV1alphaAuthConfig
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudIntegrationsV1alphaAuthConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudIntegrationsV1alphaAuthConfig::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsAuthConfigs::class, 'Google_Service_Integrations_Resource_ProjectsLocationsAuthConfigs');
@@ -0,0 +1,130 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaCertificate;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListCertificatesResponse;
use Google\Service\Integrations\GoogleProtobufEmpty;
/**
* The "certificates" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $certificates = $integrationsService->projects_locations_certificates;
* </code>
*/
class ProjectsLocationsCertificates extends \Google\Service\Resource
{
/**
* Creates a new certificate. The certificate will be registered to the trawler
* service and will be encrypted using cloud KMS and stored in Spanner Returns
* the certificate. (certificates.create)
*
* @param string $parent Required. "projects/{project}/locations/{location}"
* format.
* @param GoogleCloudIntegrationsV1alphaCertificate $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaCertificate
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaCertificate $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaCertificate::class);
}
/**
* Delete a certificate (certificates.delete)
*
* @param string $name Required. The name that is associated with the
* Certificate.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Get a certificates in the specified project. (certificates.get)
*
* @param string $name Required. The certificate to retrieve. Format:
* projects/{project}/locations/{location}/certificates/{certificate}
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaCertificate
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaCertificate::class);
}
/**
* List all the certificates that match the filter. Restrict to certificate of
* current client only. (certificates.listProjectsLocationsCertificates)
*
* @param string $parent Required. The client, which owns this collection of
* Certificates.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering as supported in
* https://developers.google.com/authorized-buyers/apis/guides/list-filters.
* @opt_param int pageSize The size of entries in the response. If unspecified,
* defaults to 100.
* @opt_param string pageToken The token returned in the previous response.
* @opt_param string readMask The mask which specifies fields that need to be
* returned in the Certificate's response.
* @return GoogleCloudIntegrationsV1alphaListCertificatesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCertificates($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListCertificatesResponse::class);
}
/**
* Updates the certificate by id. If new certificate file is updated, it will
* register with the trawler service, re-encrypt with cloud KMS and update the
* Spanner record. Other fields will directly update the Spanner record. Returns
* the Certificate. (certificates.patch)
*
* @param string $name Output only. Auto generated primary key
* @param GoogleCloudIntegrationsV1alphaCertificate $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Field mask specifying the fields in the above
* Certificate that have been modified and need to be updated.
* @return GoogleCloudIntegrationsV1alphaCertificate
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudIntegrationsV1alphaCertificate $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudIntegrationsV1alphaCertificate::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCertificates::class, 'Google_Service_Integrations_Resource_ProjectsLocationsCertificates');
@@ -0,0 +1,124 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaDeprovisionClientRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaProvisionClientRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaReplaceServiceAccountRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaSwitchEncryptionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaSwitchVariableMaskingRequest;
use Google\Service\Integrations\GoogleProtobufEmpty;
/**
* The "clients" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $clients = $integrationsService->projects_locations_clients;
* </code>
*/
class ProjectsLocationsClients extends \Google\Service\Resource
{
/**
* Perform the deprovisioning steps to disable a user GCP project to use IP and
* purge all related data in a wipeout-compliant way. (clients.deprovision)
*
* @param string $parent Required. Required: The ID of the GCP Project to be
* deprovisioned.
* @param GoogleCloudIntegrationsV1alphaDeprovisionClientRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function deprovision($parent, GoogleCloudIntegrationsV1alphaDeprovisionClientRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('deprovision', [$params], GoogleProtobufEmpty::class);
}
/**
* Perform the provisioning steps to enable a user GCP project to use IP. If GCP
* project already registered on IP end via Apigee Integration, provisioning
* will fail. (clients.provision)
*
* @param string $parent Required. Required: The ID of the GCP Project to be
* provisioned.
* @param GoogleCloudIntegrationsV1alphaProvisionClientRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function provision($parent, GoogleCloudIntegrationsV1alphaProvisionClientRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('provision', [$params], GoogleProtobufEmpty::class);
}
/**
* Update run-as service account for provisioned client (clients.replace)
*
* @param string $parent Required. Required: The ID of the GCP Project to be
* provisioned.
* @param GoogleCloudIntegrationsV1alphaReplaceServiceAccountRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function replace($parent, GoogleCloudIntegrationsV1alphaReplaceServiceAccountRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('replace', [$params], GoogleProtobufEmpty::class);
}
/**
* Update client from GMEK to CMEK (clients.switchProjectsLocationsClients)
*
* @param string $parent Required. Required: The ID of the GCP Project to be
* provisioned.
* @param GoogleCloudIntegrationsV1alphaSwitchEncryptionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function switchProjectsLocationsClients($parent, GoogleCloudIntegrationsV1alphaSwitchEncryptionRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('switch', [$params], GoogleProtobufEmpty::class);
}
/**
* Update variable masking for provisioned client
* (clients.switchVariableMasking)
*
* @param string $parent Required. Required: The ID of the GCP Project to be
* provisioned.
* @param GoogleCloudIntegrationsV1alphaSwitchVariableMaskingRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function switchVariableMasking($parent, GoogleCloudIntegrationsV1alphaSwitchVariableMaskingRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('switchVariableMasking', [$params], GoogleProtobufEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsClients::class, 'Google_Service_Integrations_Resource_ProjectsLocationsClients');
@@ -0,0 +1,52 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse;
/**
* The "cloudFunctions" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $cloudFunctions = $integrationsService->projects_locations_cloudFunctions;
* </code>
*/
class ProjectsLocationsCloudFunctions extends \Google\Service\Resource
{
/**
* Creates a cloud function project. (cloudFunctions.create)
*
* @param string $parent Required. The project that the executed integration
* belongs to.
* @param GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCloudFunctions::class, 'Google_Service_Integrations_Resource_ProjectsLocationsCloudFunctions');
@@ -0,0 +1,74 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListConnectionsResponse;
/**
* The "connections" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $connections = $integrationsService->projects_locations_connections;
* </code>
*/
class ProjectsLocationsConnections extends \Google\Service\Resource
{
/**
* Lists the available entities and actions associated with a Connection.
* (connections.getConnectionSchemaMetadata)
*
* @param string $name Required. ConnectionSchemaMetadata name. Format: projects
* /{project}/locations/{location}/connections/{connection}/connectionSchemaMeta
* data
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata
* @throws \Google\Service\Exception
*/
public function getConnectionSchemaMetadata($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getConnectionSchemaMetadata', [$params], GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata::class);
}
/**
* Lists Connections in a given project and location.
* (connections.listProjectsLocationsConnections)
*
* @param string $parent Required. Parent resource of the Connection, of the
* form: `projects/locations`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter.
* @opt_param string orderBy Order by parameters.
* @opt_param int pageSize Page size.
* @opt_param string pageToken Page token.
* @return GoogleCloudIntegrationsV1alphaListConnectionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsConnections($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListConnectionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnections::class, 'Google_Service_Integrations_Resource_ProjectsLocationsConnections');
@@ -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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse;
/**
* The "runtimeActionSchemas" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $runtimeActionSchemas = $integrationsService->projects_locations_connections_runtimeActionSchemas;
* </code>
*/
class ProjectsLocationsConnectionsRuntimeActionSchemas extends \Google\Service\Resource
{
/**
* Lists the JSON schemas for the inputs and outputs of 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 Filter. Only the action field with literal equality
* operator is supported.
* @opt_param int pageSize Page size.
* @opt_param string pageToken Page token.
* @return GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsConnectionsRuntimeActionSchemas($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListRuntimeActionSchemasResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnectionsRuntimeActionSchemas::class, 'Google_Service_Integrations_Resource_ProjectsLocationsConnectionsRuntimeActionSchemas');
@@ -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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse;
/**
* The "runtimeEntitySchemas" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $runtimeEntitySchemas = $integrationsService->projects_locations_connections_runtimeEntitySchemas;
* </code>
*/
class ProjectsLocationsConnectionsRuntimeEntitySchemas extends \Google\Service\Resource
{
/**
* Lists the JSON schemas for the properties of 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 Filter. Only the entity field with literal equality
* operator is supported.
* @opt_param int pageSize Page size.
* @opt_param string pageToken Page token.
* @return GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsConnectionsRuntimeEntitySchemas($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListRuntimeEntitySchemasResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsConnectionsRuntimeEntitySchemas::class, 'Google_Service_Integrations_Resource_ProjectsLocationsConnectionsRuntimeEntitySchemas');
@@ -0,0 +1,163 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\ExecuteEventRequestContent;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaExecuteEventResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListIntegrationsResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaTestIntegrationsRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaTestIntegrationsResponse;
use Google\Service\Integrations\GoogleProtobufEmpty;
/**
* The "integrations" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $integrations = $integrationsService->projects_locations_integrations;
* </code>
*/
class ProjectsLocationsIntegrations extends \Google\Service\Resource
{
/**
* Delete the selected integration and all versions inside (integrations.delete)
*
* @param string $name Required. The location resource of the request.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Executes integrations synchronously by passing the trigger id in the request
* body. The request is not returned until the requested executions are either
* fulfilled or experienced an error. If the integration name is not specified
* (passing `-`), all of the associated integration under the given trigger_id
* will be executed. Otherwise only the specified integration for the given
* `trigger_id` is executed. This is helpful for execution the integration from
* UI. (integrations.execute)
*
* @param string $name Required. The integration resource name.
* @param GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse
* @throws \Google\Service\Exception
*/
public function execute($name, GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('execute', [$params], GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse::class);
}
/**
* Executes an integration on receiving events from Integration Connector
* triggers, Eventarc or CPS Trigger. Input data to integration is received in
* body in json format (integrations.executeEvent)
*
* @param string $name Required. The integration resource name. Format:
* projects/{gcp_project_id}/locations/{location}/integrations/{integration_id}
* @param ExecuteEventRequestContent $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string triggerId Required. Id of the integration trigger config.
* The trigger_id is in the format: `integration_connector_trigger/projects/{gcp
* _project_id}/location/{location}/connections/{connection_name}/subscriptions/
* {subscription_name}`.
* @return GoogleCloudIntegrationsV1alphaExecuteEventResponse
* @throws \Google\Service\Exception
*/
public function executeEvent($name, ExecuteEventRequestContent $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('executeEvent', [$params], GoogleCloudIntegrationsV1alphaExecuteEventResponse::class);
}
/**
* Returns the list of all integrations in the specified project.
* (integrations.listProjectsLocationsIntegrations)
*
* @param string $parent Required. Project and location from which the
* integrations should be listed. Format: projects/{project}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter on fields of IntegrationVersion. Fields can
* be compared with literal values by use of ":" (containment), "=" (equality),
* ">" (greater), "<" (less than), >=" (greater than or equal to), "<=" (less
* than or equal to), and "!=" (inequality) operators. Negation, conjunction,
* and disjunction are written using NOT, AND, and OR keywords. For example,
* organization_id=\"1\" AND state=ACTIVE AND description:"test". Filtering
* cannot be performed on repeated fields like `task_config`.
* @opt_param string orderBy The results would be returned in order you
* specified here. Supported sort keys are: Descending sort order by
* "last_modified_time", "created_time", "snapshot_number". Ascending sort order
* by the integration name.
* @opt_param int pageSize The page size for the resquest.
* @opt_param string pageToken The page token for the resquest.
* @return GoogleCloudIntegrationsV1alphaListIntegrationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsIntegrations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListIntegrationsResponse::class);
}
/**
* Schedules an integration for execution by passing the trigger id and the
* scheduled time in the request body. (integrations.schedule)
*
* @param string $name The integration resource name.
* @param GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse
* @throws \Google\Service\Exception
*/
public function schedule($name, GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('schedule', [$params], GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse::class);
}
/**
* Execute the integration in draft state (integrations.test)
*
* @param string $name Output only. Auto-generated primary key.
* @param GoogleCloudIntegrationsV1alphaTestIntegrationsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaTestIntegrationsResponse
* @throws \Google\Service\Exception
*/
public function test($name, GoogleCloudIntegrationsV1alphaTestIntegrationsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('test', [$params], GoogleCloudIntegrationsV1alphaTestIntegrationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsIntegrations::class, 'Google_Service_Integrations_Resource_ProjectsLocationsIntegrations');
@@ -0,0 +1,179 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaCancelExecutionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaCancelExecutionResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaDownloadExecutionResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaExecution;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListExecutionsResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaReplayExecutionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaReplayExecutionResponse;
/**
* The "executions" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $executions = $integrationsService->projects_locations_integrations_executions;
* </code>
*/
class ProjectsLocationsIntegrationsExecutions extends \Google\Service\Resource
{
/**
* Cancellation of an execution and associated sub-executions. This will not
* cancel an IN_PROCESS or completed(SUCCESSFUL, FAILED or CANCELLED)
* executions. (executions.cancel)
*
* @param string $name Required. The execution resource name. Format: projects/{
* gcp_project_id}/locations/{location}/products/{product}/integrations/{integra
* tion_id}/executions/{execution_id}
* @param GoogleCloudIntegrationsV1alphaCancelExecutionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaCancelExecutionResponse
* @throws \Google\Service\Exception
*/
public function cancel($name, GoogleCloudIntegrationsV1alphaCancelExecutionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], GoogleCloudIntegrationsV1alphaCancelExecutionResponse::class);
}
/**
* Download the execution. (executions.download)
*
* @param string $name Required. The execution resource name. Format: projects/{
* gcp_project_id}/locations/{location}/products/{product}/integrations/{integra
* tion_id}/executions/{execution_id}
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaDownloadExecutionResponse
* @throws \Google\Service\Exception
*/
public function download($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('download', [$params], GoogleCloudIntegrationsV1alphaDownloadExecutionResponse::class);
}
/**
* Get an execution in the specified project. (executions.get)
*
* @param string $name Required. The execution resource name. Format: projects/{
* gcp_project_id}/locations/{location}/products/{product}/integrations/{integra
* tion_id}/executions/{execution_id}
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaExecution
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaExecution::class);
}
/**
* Lists the results of all the integration executions. The response includes
* the same information as the [execution
* log](https://cloud.google.com/application-integration/docs/viewing-logs) in
* the Integration UI. (executions.listProjectsLocationsIntegrationsExecutions)
*
* @param string $parent Required. The parent resource name of the integration
* execution.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Standard filter field, we support
* filtering on following fields: workflow_name: the name of the integration.
* CreateTimestamp: the execution created time. event_execution_state: the state
* of the executions. execution_id: the id of the execution. trigger_id: the id
* of the trigger. parameter_type: the type of the parameters involved in the
* execution. All fields support for EQUALS, in additional: CreateTimestamp
* support for LESS_THAN, GREATER_THAN ParameterType support for HAS For
* example: "parameter_type" HAS \"string\" Also supports operators like AND,
* OR, NOT For example, trigger_id=\"id1\" AND workflow_name=\"testWorkflow\"
* @opt_param string filterParams.customFilter Optional user-provided custom
* filter.
* @opt_param string filterParams.endTime End timestamp.
* @opt_param string filterParams.eventStatuses List of possible event statuses.
* @opt_param string filterParams.executionId Execution id.
* @opt_param string filterParams.parameterKey Param key. DEPRECATED. User
* parameter_pair_key instead.
* @opt_param string filterParams.parameterPairKey Param key in the key value
* pair filter.
* @opt_param string filterParams.parameterPairValue Param value in the key
* value pair filter.
* @opt_param string filterParams.parameterType Param type.
* @opt_param string filterParams.parameterValue Param value. DEPRECATED. User
* parameter_pair_value instead.
* @opt_param string filterParams.startTime Start timestamp.
* @opt_param string filterParams.taskStatuses List of possible task statuses.
* @opt_param string filterParams.workflowName Workflow name.
* @opt_param string orderBy Optional. The results would be returned in order
* you specified here. Currently supporting "create_time".
* @opt_param int pageSize Optional. The size of entries in the response.
* @opt_param string pageToken Optional. The token returned in the previous
* response.
* @opt_param string readMask Optional. View mask for the response data. If set,
* only the field specified will be returned as part of the result. If not set,
* all fields in Execution will be filled and returned. Supported fields:
* trigger_id execution_method create_time update_time execution_details
* execution_details.state execution_details.execution_snapshots
* execution_details.attempt_stats
* execution_details.event_execution_snapshots_size request_parameters
* cloud_logging_details snapshot_number replay_info
* @opt_param bool refreshAcl Optional. If true, the service will use the most
* recent acl information to list event execution infos and renew the acl cache.
* Note that fetching the most recent acl is synchronous, so it will increase
* RPC call latency.
* @opt_param bool snapshotMetadataWithoutParams Optional. If true, the service
* will provide execution info with snapshot metadata only i.e. without event
* parameters.
* @opt_param bool truncateParams Optional. If true, the service will truncate
* the params to only keep the first 1000 characters of string params and empty
* the executions in order to make response smaller. Only works for UI and when
* the params fields are not filtered out.
* @return GoogleCloudIntegrationsV1alphaListExecutionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsIntegrationsExecutions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListExecutionsResponse::class);
}
/**
* Re-execute an existing execution, with same request parameters and execution
* strategy. (executions.replay)
*
* @param string $name Required. Next ID: 6 The execution resource name. Format:
* projects/{gcp_project_id}/locations/{location}/integrations/{integration}/exe
* cutions/{execution_id}
* @param GoogleCloudIntegrationsV1alphaReplayExecutionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaReplayExecutionResponse
* @throws \Google\Service\Exception
*/
public function replay($name, GoogleCloudIntegrationsV1alphaReplayExecutionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('replay', [$params], GoogleCloudIntegrationsV1alphaReplayExecutionResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsIntegrationsExecutions::class, 'Google_Service_Integrations_Resource_ProjectsLocationsIntegrationsExecutions');
@@ -0,0 +1,100 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaLiftSuspensionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaLiftSuspensionResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListSuspensionsResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaResolveSuspensionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaResolveSuspensionResponse;
/**
* The "suspensions" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $suspensions = $integrationsService->projects_locations_integrations_executions_suspensions;
* </code>
*/
class ProjectsLocationsIntegrationsExecutionsSuspensions extends \Google\Service\Resource
{
/**
* * Lifts suspension for the Suspension task. Fetch corresponding suspension
* with provided suspension Id, resolve suspension, and set up suspension result
* for the Suspension Task. (suspensions.lift)
*
* @param string $name Required. The resource that the suspension belongs to. "p
* rojects/{project}/locations/{location}/products/{product}/integrations/{integ
* ration}/executions/{execution}/suspensions/{suspenion}" format.
* @param GoogleCloudIntegrationsV1alphaLiftSuspensionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaLiftSuspensionResponse
* @throws \Google\Service\Exception
*/
public function lift($name, GoogleCloudIntegrationsV1alphaLiftSuspensionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('lift', [$params], GoogleCloudIntegrationsV1alphaLiftSuspensionResponse::class);
}
/**
* * Lists suspensions associated with a specific execution. Only those with
* permissions to resolve the relevant suspensions will be able to view them.
* (suspensions.listProjectsLocationsIntegrationsExecutionsSuspensions)
*
* @param string $parent Required. projects/{gcp_project_id}/locations/{location
* }/products/{product}/integrations/{integration_name}/executions/{execution_na
* me}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Standard filter field.
* @opt_param string orderBy Field name to order by.
* @opt_param int pageSize Maximum number of entries in the response.
* @opt_param string pageToken Token to retrieve a specific page.
* @return GoogleCloudIntegrationsV1alphaListSuspensionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsIntegrationsExecutionsSuspensions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListSuspensionsResponse::class);
}
/**
* * Resolves (lifts/rejects) any number of suspensions. If the integration is
* already running, only the status of the suspension is updated. Otherwise, the
* suspended integration will begin execution again. (suspensions.resolve)
*
* @param string $name Required. projects/{gcp_project_id}/locations/{location}/
* products/{product}/integrations/{integration_name}/executions/{execution_name
* }/suspensions/{suspension_id}
* @param GoogleCloudIntegrationsV1alphaResolveSuspensionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaResolveSuspensionResponse
* @throws \Google\Service\Exception
*/
public function resolve($name, GoogleCloudIntegrationsV1alphaResolveSuspensionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resolve', [$params], GoogleCloudIntegrationsV1alphaResolveSuspensionResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsIntegrationsExecutionsSuspensions::class, 'Google_Service_Integrations_Resource_ProjectsLocationsIntegrationsExecutionsSuspensions');
@@ -0,0 +1,59 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse;
/**
* The "executionsnapshots" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $executionsnapshots = $integrationsService->projects_locations_integrations_executionsnapshots;
* </code>
*/
class ProjectsLocationsIntegrationsExecutionsnapshots extends \Google\Service\Resource
{
/**
* Lists the snapshots of a given integration executions. This RPC is not being
* used.
* (executionsnapshots.listProjectsLocationsIntegrationsExecutionsnapshots)
*
* @param string $parent Required. The parent resource name of the integration
* execution.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Currently supports filter by `execution_info_id` or
* `execution_snapshot_id`.
* @opt_param int pageSize Number of entries to be returned in a page.
* @opt_param string pageToken The token used to retrieve the next page results.
* @opt_param string readMask View mask for the response data. If set, only the
* field specified will be returned as part of the result. If not set, all
* fields in event execution snapshot will be filled and returned.
* @return GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse
*/
public function listProjectsLocationsIntegrationsExecutionsnapshots($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsIntegrationsExecutionsnapshots::class, 'Google_Service_Integrations_Resource_ProjectsLocationsIntegrationsExecutionsnapshots');
@@ -0,0 +1,271 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaDownloadJsonPackageResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaIntegrationVersion;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse;
use Google\Service\Integrations\GoogleProtobufEmpty;
/**
* The "versions" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $versions = $integrationsService->projects_locations_integrations_versions;
* </code>
*/
class ProjectsLocationsIntegrationsVersions extends \Google\Service\Resource
{
/**
* Create a integration with a draft version in the specified project.
* (versions.create)
*
* @param string $parent Required. The parent resource where this version will
* be created. Format:
* projects/{project}/locations/{location}/integrations/{integration}
* @param GoogleCloudIntegrationsV1alphaIntegrationVersion $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool createSampleIntegrations Optional. Optional. Indicates if
* sample workflow should be created.
* @opt_param bool newIntegration Set this flag to true, if draft version is to
* be created for a brand new integration. False, if the request is for an
* existing integration. For backward compatibility reasons, even if this flag
* is set to `false` and no existing integration is found, a new draft
* integration will still be created.
* @return GoogleCloudIntegrationsV1alphaIntegrationVersion
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaIntegrationVersion $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaIntegrationVersion::class);
}
/**
* Soft-deletes the integration. Changes the status of the integration to
* ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag is
* removed from this snapshot and set to the previous non-ARCHIVED snapshot. The
* PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an
* exception if the version being deleted is DRAFT, and if the `locked_by` user
* is not the same as the user performing the Delete. Audit fields updated
* include last_modified_timestamp, last_modified_by. Any existing lock is
* released when Deleting a integration. Currently, there is no undelete
* mechanism. (versions.delete)
*
* @param string $name Required. The version to delete. Format: projects/{projec
* t}/locations/{location}/integrations/{integration}/versions/{version}
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Downloads an integration. Retrieves the `IntegrationVersion` for a given
* `integration_id` and returns the response as a string. (versions.download)
*
* @param string $name Required. The version to download. Format: projects/{proj
* ect}/locations/{location}/integrations/{integration}/versions/{version}
* @param array $optParams Optional parameters.
*
* @opt_param string fileFormat File format for download request.
* @opt_param string files Optional. Integration related file to download like
* Integration Json, Config variable, testcase etc.
* @return GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse
* @throws \Google\Service\Exception
*/
public function download($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('download', [$params], GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse::class);
}
/**
* Downloads an Integration version package like IntegrationVersion,Integration
* Config etc. Retrieves the IntegrationVersion package for a given
* `integration_id` and returns the response as a JSON.
* (versions.downloadJsonPackage)
*
* @param string $name Required. Integration version name Format: projects/{proj
* ect}/locations/{location}/integrations/{integration}/versions/{version}
* @param array $optParams Optional parameters.
*
* @opt_param string files Optional. Integration related file to download like
* Integration Version, Config variable, testcase etc.
* @return GoogleCloudIntegrationsV1alphaDownloadJsonPackageResponse
* @throws \Google\Service\Exception
*/
public function downloadJsonPackage($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('downloadJsonPackage', [$params], GoogleCloudIntegrationsV1alphaDownloadJsonPackageResponse::class);
}
/**
* Get a integration in the specified project. (versions.get)
*
* @param string $name Required. The version to retrieve. Format: projects/{proj
* ect}/locations/{location}/integrations/{integration}/versions/{version}
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaIntegrationVersion
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaIntegrationVersion::class);
}
/**
* Returns the list of all integration versions in the specified project.
* (versions.listProjectsLocationsIntegrationsVersions)
*
* @param string $parent Required. The parent resource where this version will
* be created. Format:
* projects/{project}/locations/{location}/integrations/{integration}
* Specifically, when parent equals: 1. projects//locations//integrations/,
* Meaning: "List versions (with filter) for a particular integration". 2.
* projects//locations//integrations/- Meaning: "List versions (with filter) for
* a client within a particular region".
* @param array $optParams Optional parameters.
*
* @opt_param string fieldMask The field mask which specifies the particular
* data to be returned.
* @opt_param string filter Filter on fields of IntegrationVersion. Fields can
* be compared with literal values by use of ":" (containment), "=" (equality),
* ">" (greater), "<" (less than), >=" (greater than or equal to), "<=" (less
* than or equal to), and "!=" (inequality) operators. Negation, conjunction,
* and disjunction are written using NOT, AND, and OR keywords. For example,
* organization_id=\"1\" AND state=ACTIVE AND description:"test". Filtering
* cannot be performed on repeated fields like `task_config`.
* @opt_param string orderBy The results would be returned in order you
* specified here. Currently supported sort keys are: Descending sort order for
* "last\_modified\_time", "created\_time", and "snapshot\_number". Ascending
* sort order for `name`.
* @opt_param int pageSize The maximum number of versions to return. The service
* may return fewer than this value. If unspecified, at most 50 versions will be
* returned. The maximum value is 1000; values above 1000 will be coerced to
* 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListIntegrationVersions` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListIntegrationVersions`
* must match the call that provided the page token.
* @return GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsIntegrationsVersions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse::class);
}
/**
* Update a integration with a draft version in the specified project.
* (versions.patch)
*
* @param string $name Output only. Auto-generated primary key.
* @param GoogleCloudIntegrationsV1alphaIntegrationVersion $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Field mask specifying the fields in the above
* integration that have been modified and need to be updated.
* @return GoogleCloudIntegrationsV1alphaIntegrationVersion
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudIntegrationsV1alphaIntegrationVersion $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudIntegrationsV1alphaIntegrationVersion::class);
}
/**
* This RPC throws an exception if the integration is in ARCHIVED or ACTIVE
* state. This RPC throws an exception if the version being published is DRAFT,
* and if the `locked_by` user is not the same as the user performing the
* Publish. Audit fields updated include last_published_timestamp,
* last_published_by, last_modified_timestamp, last_modified_by. Any existing
* lock is on this integration is released. (versions.publish)
*
* @param string $name Required. The version to publish. Format: projects/{proje
* ct}/locations/{location}/integrations/{integration}/versions/{version}
* @param GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse
* @throws \Google\Service\Exception
*/
public function publish($name, GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('publish', [$params], GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse::class);
}
/**
* Sets the status of the ACTIVE integration to SNAPSHOT with a new tag
* "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and
* "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception if the
* version being snapshot is not ACTIVE. Audit fields added include action,
* action_by, action_timestamp. (versions.unpublish)
*
* @param string $name Required. The version to deactivate. Format: projects/{pr
* oject}/locations/{location}/integrations/{integration}/versions/{version}
* @param GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function unpublish($name, GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('unpublish', [$params], GoogleProtobufEmpty::class);
}
/**
* Uploads an integration. The content can be a previously downloaded
* integration. Performs the same function as CreateDraftIntegrationVersion, but
* accepts input in a string format, which holds the complete representation of
* the IntegrationVersion content. (versions.upload)
*
* @param string $parent Required. The version to upload. Format:
* projects/{project}/locations/{location}/integrations/{integration}
* @param GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse
* @throws \Google\Service\Exception
*/
public function upload($parent, GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsIntegrationsVersions::class, 'Google_Service_Integrations_Resource_ProjectsLocationsIntegrationsVersions');
@@ -0,0 +1,254 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaDownloadTestCaseResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaExecuteTestCaseRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaExecuteTestCaseResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListTestCaseExecutionsResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListTestCasesResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaTakeoverTestCaseEditLockRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaTestCase;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaUploadTestCaseRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaUploadTestCaseResponse;
use Google\Service\Integrations\GoogleProtobufEmpty;
/**
* The "testCases" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $testCases = $integrationsService->projects_locations_integrations_versions_testCases;
* </code>
*/
class ProjectsLocationsIntegrationsVersionsTestCases extends \Google\Service\Resource
{
/**
* Creates a new test case (testCases.create)
*
* @param string $parent Required. The parent resource where this test case will
* be created. Format: projects/{project}/locations/{location}/integrations/{int
* egration}/versions/{integration_version}
* @param GoogleCloudIntegrationsV1alphaTestCase $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string testCaseId Required. Required
* @return GoogleCloudIntegrationsV1alphaTestCase
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaTestCase $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaTestCase::class);
}
/**
* Deletes a test case (testCases.delete)
*
* @param string $name Required. ID for the test case to be deleted
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Downloads a test case. Retrieves the `TestCase` for a given `test_case_id`
* and returns the response as a string. (testCases.download)
*
* @param string $name Required. The test case to download. Format: projects/{pr
* oject}/locations/{location}/integrations/{integration}/versions/{integration_
* version}/testCases/{test_case_id}
* @param array $optParams Optional parameters.
*
* @opt_param string fileFormat File format for download request.
* @return GoogleCloudIntegrationsV1alphaDownloadTestCaseResponse
* @throws \Google\Service\Exception
*/
public function download($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('download', [$params], GoogleCloudIntegrationsV1alphaDownloadTestCaseResponse::class);
}
/**
* Executes functional test (testCases.executeTest)
*
* @param string $testCaseName Required. Test case resource name
* @param GoogleCloudIntegrationsV1alphaExecuteTestCaseRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaExecuteTestCaseResponse
* @throws \Google\Service\Exception
*/
public function executeTest($testCaseName, GoogleCloudIntegrationsV1alphaExecuteTestCaseRequest $postBody, $optParams = [])
{
$params = ['testCaseName' => $testCaseName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('executeTest', [$params], GoogleCloudIntegrationsV1alphaExecuteTestCaseResponse::class);
}
/**
* Get a test case (testCases.get)
*
* @param string $name Required. The ID of the test case to retrieve
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaTestCase
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaTestCase::class);
}
/**
* Lists all the test cases that satisfy the filters.
* (testCases.listProjectsLocationsIntegrationsVersionsTestCases)
*
* @param string $parent Required. The parent resource where this TestCase was
* created.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Standard filter field. Filtering as
* supported in https://developers.google.com/authorized-
* buyers/apis/guides/list-filters.
* @opt_param string orderBy Optional. The results would be returned in order
* specified here. Currently supported sort keys are: Descending sort order for
* "last_modified_time", "created_time". Ascending sort order for "name".
* @opt_param int pageSize Optional. The maximum number of test cases to return.
* The service may return fewer than this value. If unspecified, at most 100
* test cases will be returned.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListTestCases` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListTestCases` must match the
* call that provided the page token.
* @opt_param string readMask Optional. The mask which specifies fields that
* need to be returned in the TestCases's response.
* @return GoogleCloudIntegrationsV1alphaListTestCasesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsIntegrationsVersionsTestCases($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListTestCasesResponse::class);
}
/**
* Lists the results of all functional test executions. The response includes
* the same information as the [execution
* log](https://cloud.google.com/application-integration/docs/viewing-logs) in
* the Integration UI. (testCases.listExecutions)
*
* @param string $parent Required. The parent resource name of the test case
* execution.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Standard filter field, we support
* filtering on following fields: test_case_id: the ID of the test case.
* CreateTimestamp: the execution created time. event_execution_state: the state
* of the executions. execution_id: the id of the execution. trigger_id: the id
* of the trigger. parameter_type: the type of the parameters involved in the
* execution. All fields support for EQUALS, in additional: CreateTimestamp
* support for LESS_THAN, GREATER_THAN ParameterType support for HAS For
* example: "parameter_type" HAS \"string\" Also supports operators like AND,
* OR, NOT For example, trigger_id=\"id1\" AND test_case_id=\"testCaseId\"
* @opt_param string orderBy Optional. The results would be returned in order
* you specified here. Currently supporting "last_modified_time" and
* "create_time".
* @opt_param int pageSize Optional. The size of entries in the response.
* @opt_param string pageToken Optional. The token returned in the previous
* response.
* @opt_param string readMask Optional. View mask for the response data. If set,
* only the field specified will be returned as part of the result. If not set,
* all fields in event execution info will be filled and returned.
* @opt_param bool truncateParams Optional. If true, the service will truncate
* the params to only keep the first 1000 characters of string params and empty
* the executions in order to make response smaller. Only works for UI and when
* the params fields are not filtered out.
* @return GoogleCloudIntegrationsV1alphaListTestCaseExecutionsResponse
* @throws \Google\Service\Exception
*/
public function listExecutions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('listExecutions', [$params], GoogleCloudIntegrationsV1alphaListTestCaseExecutionsResponse::class);
}
/**
* Updates a test case (testCases.patch)
*
* @param string $name Output only. Auto-generated primary key.
* @param GoogleCloudIntegrationsV1alphaTestCase $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask specifying the fields in
* the above integration that have been modified and need to be updated.
* @return GoogleCloudIntegrationsV1alphaTestCase
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudIntegrationsV1alphaTestCase $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudIntegrationsV1alphaTestCase::class);
}
/**
* Clear the lock fields and assign them to current user
* (testCases.takeoverEditLock)
*
* @param string $name Required. The ID of test case to takeover edit lock.
* Format: projects/{project}/locations/{location}/integrations/{integration}/ve
* rsions/{integration_version}/testCases/{test_case_id}
* @param GoogleCloudIntegrationsV1alphaTakeoverTestCaseEditLockRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaTestCase
* @throws \Google\Service\Exception
*/
public function takeoverEditLock($name, GoogleCloudIntegrationsV1alphaTakeoverTestCaseEditLockRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('takeoverEditLock', [$params], GoogleCloudIntegrationsV1alphaTestCase::class);
}
/**
* Uploads a test case. The content can be a previously downloaded test case.
* Performs the same function as CreateTestCase, but accepts input in a string
* format, which holds the complete representation of the TestCase content.
* (testCases.upload)
*
* @param string $parent Required. The test case to upload. Format: projects/{pr
* oject}/locations/{location}/integrations/{integration}/versions/{integration_
* version}
* @param GoogleCloudIntegrationsV1alphaUploadTestCaseRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaUploadTestCaseResponse
* @throws \Google\Service\Exception
*/
public function upload($parent, GoogleCloudIntegrationsV1alphaUploadTestCaseRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], GoogleCloudIntegrationsV1alphaUploadTestCaseResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsIntegrationsVersionsTestCases::class, 'Google_Service_Integrations_Resource_ProjectsLocationsIntegrationsVersionsTestCases');
@@ -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\Integrations\Resource;
/**
* The "products" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $products = $integrationsService->projects_locations_products;
* </code>
*/
class ProjectsLocationsProducts extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProducts::class, 'Google_Service_Integrations_Resource_ProjectsLocationsProducts');
@@ -0,0 +1,210 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaAuthConfig;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListAuthConfigsResponse;
use Google\Service\Integrations\GoogleProtobufEmpty;
/**
* The "authConfigs" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $authConfigs = $integrationsService->projects_locations_products_authConfigs;
* </code>
*/
class ProjectsLocationsProductsAuthConfigs extends \Google\Service\Resource
{
/**
* Creates an auth config record. Fetch corresponding credentials for specific
* auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the
* auth config with Cloud KMS and store the encrypted credentials in Spanner.
* Returns the encrypted auth config. (authConfigs.create)
*
* @param string $parent Required. "projects/{project}/locations/{location}"
* format.
* @param GoogleCloudIntegrationsV1alphaAuthConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientCertificate.encryptedPrivateKey The ssl certificate
* encoded in PEM format. This string must include the begin header and end
* footer lines. For example, -----BEGIN CERTIFICATE-----
* MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
* BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
* MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
* MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
* vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1
* JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
* xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P
* AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
* Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
* Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
* JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
* 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
* wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
* @opt_param string clientCertificate.passphrase 'passphrase' should be left
* unset if private key is not encrypted. Note that 'passphrase' is not the
* password for web server, but an extra layer of security to protected private
* key.
* @opt_param string clientCertificate.sslCertificate The ssl certificate
* encoded in PEM format. This string must include the begin header and end
* footer lines. For example, -----BEGIN CERTIFICATE-----
* MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
* BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
* MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
* MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
* vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1
* JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
* xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P
* AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
* Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
* Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
* JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
* 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
* wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
* @return GoogleCloudIntegrationsV1alphaAuthConfig
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaAuthConfig $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaAuthConfig::class);
}
/**
* Deletes an auth config. (authConfigs.delete)
*
* @param string $name Required. The name that is associated with the
* AuthConfig.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets a complete auth config. If the auth config doesn't exist, Code.NOT_FOUND
* exception will be thrown. Returns the decrypted auth config.
* (authConfigs.get)
*
* @param string $name Required. The name that is associated with the
* AuthConfig.
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaAuthConfig
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaAuthConfig::class);
}
/**
* Lists all auth configs that match the filter. Restrict to auth configs belong
* to the current client only.
* (authConfigs.listProjectsLocationsProductsAuthConfigs)
*
* @param string $parent Required. The client, which owns this collection of
* AuthConfigs.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering as supported in
* https://developers.google.com/authorized-buyers/apis/guides/list-filters.
* @opt_param int pageSize The size of entries in the response. If unspecified,
* defaults to 100.
* @opt_param string pageToken The token returned in the previous response.
* @opt_param string readMask The mask which specifies fields that need to be
* returned in the AuthConfig's response.
* @return GoogleCloudIntegrationsV1alphaListAuthConfigsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsProductsAuthConfigs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListAuthConfigsResponse::class);
}
/**
* Updates an auth config. If credential is updated, fetch the encrypted auth
* config from Spanner, decrypt with Cloud KMS key, update the credential
* fields, re-encrypt with Cloud KMS key and update the Spanner record. For
* other fields, directly update the Spanner record. Returns the encrypted auth
* config. (authConfigs.patch)
*
* @param string $name Resource name of the auth config. For more information,
* see Manage authentication profiles.
* projects/{project}/locations/{location}/authConfigs/{authConfig}.
* @param GoogleCloudIntegrationsV1alphaAuthConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string clientCertificate.encryptedPrivateKey The ssl certificate
* encoded in PEM format. This string must include the begin header and end
* footer lines. For example, -----BEGIN CERTIFICATE-----
* MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
* BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
* MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
* MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
* vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1
* JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
* xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P
* AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
* Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
* Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
* JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
* 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
* wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
* @opt_param string clientCertificate.passphrase 'passphrase' should be left
* unset if private key is not encrypted. Note that 'passphrase' is not the
* password for web server, but an extra layer of security to protected private
* key.
* @opt_param string clientCertificate.sslCertificate The ssl certificate
* encoded in PEM format. This string must include the begin header and end
* footer lines. For example, -----BEGIN CERTIFICATE-----
* MIICTTCCAbagAwIBAgIJAPT0tSKNxan/MA0GCSqGSIb3DQEBCwUAMCoxFzAVBgNV
* BAoTDkdvb2dsZSBURVNUSU5HMQ8wDQYDVQQDEwZ0ZXN0Q0EwHhcNMTUwMTAxMDAw
* MDAwWhcNMjUwMTAxMDAwMDAwWjAuMRcwFQYDVQQKEw5Hb29nbGUgVEVTVElORzET
* MBEGA1UEAwwKam9lQGJhbmFuYTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
* vDYFgMgxi5W488d9J7UpCInl0NXmZQpJDEHE4hvkaRlH7pnC71H0DLt0/3zATRP1
* JzY2+eqBmbGl4/sgZKYv8UrLnNyQNUTsNx1iZAfPUflf5FwgVsai8BM0pUciq1NB
* xD429VFcrGZNucvFLh72RuRFIKH8WUpiK/iZNFkWhZ0CAwEAAaN3MHUwDgYDVR0P
* AQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAMBgNVHRMB
* Af8EAjAAMBkGA1UdDgQSBBCVgnFBCWgL/iwCqnGrhTPQMBsGA1UdIwQUMBKAEKey
* Um2o4k2WiEVA0ldQvNYwDQYJKoZIhvcNAQELBQADgYEAYK986R4E3L1v+Q6esBtW
* JrUwA9UmJRSQr0N5w3o9XzarU37/bkjOP0Fw0k/A6Vv1n3vlciYfBFaBIam1qRHr
* 5dMsYf4CZS6w50r7hyzqyrwDoyNxkLnd2PdcHT/sym1QmflsjEs7pejtnohO6N2H
* wQW6M0H7Zt8claGRla4fKkg= -----END CERTIFICATE-----
* @opt_param string updateMask Field mask specifying the fields in the above
* AuthConfig that have been modified and need to be updated.
* @return GoogleCloudIntegrationsV1alphaAuthConfig
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudIntegrationsV1alphaAuthConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudIntegrationsV1alphaAuthConfig::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProductsAuthConfigs::class, 'Google_Service_Integrations_Resource_ProjectsLocationsProductsAuthConfigs');
@@ -0,0 +1,130 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaCertificate;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListCertificatesResponse;
use Google\Service\Integrations\GoogleProtobufEmpty;
/**
* The "certificates" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $certificates = $integrationsService->projects_locations_products_certificates;
* </code>
*/
class ProjectsLocationsProductsCertificates extends \Google\Service\Resource
{
/**
* Creates a new certificate. The certificate will be registered to the trawler
* service and will be encrypted using cloud KMS and stored in Spanner Returns
* the certificate. (certificates.create)
*
* @param string $parent Required. "projects/{project}/locations/{location}"
* format.
* @param GoogleCloudIntegrationsV1alphaCertificate $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaCertificate
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaCertificate $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaCertificate::class);
}
/**
* Delete a certificate (certificates.delete)
*
* @param string $name Required. The name that is associated with the
* Certificate.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Get a certificates in the specified project. (certificates.get)
*
* @param string $name Required. The certificate to retrieve. Format:
* projects/{project}/locations/{location}/certificates/{certificate}
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaCertificate
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaCertificate::class);
}
/**
* List all the certificates that match the filter. Restrict to certificate of
* current client only. (certificates.listProjectsLocationsProductsCertificates)
*
* @param string $parent Required. The client, which owns this collection of
* Certificates.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering as supported in
* https://developers.google.com/authorized-buyers/apis/guides/list-filters.
* @opt_param int pageSize The size of entries in the response. If unspecified,
* defaults to 100.
* @opt_param string pageToken The token returned in the previous response.
* @opt_param string readMask The mask which specifies fields that need to be
* returned in the Certificate's response.
* @return GoogleCloudIntegrationsV1alphaListCertificatesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsProductsCertificates($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListCertificatesResponse::class);
}
/**
* Updates the certificate by id. If new certificate file is updated, it will
* register with the trawler service, re-encrypt with cloud KMS and update the
* Spanner record. Other fields will directly update the Spanner record. Returns
* the Certificate. (certificates.patch)
*
* @param string $name Output only. Auto generated primary key
* @param GoogleCloudIntegrationsV1alphaCertificate $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Field mask specifying the fields in the above
* Certificate that have been modified and need to be updated.
* @return GoogleCloudIntegrationsV1alphaCertificate
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudIntegrationsV1alphaCertificate $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudIntegrationsV1alphaCertificate::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProductsCertificates::class, 'Google_Service_Integrations_Resource_ProjectsLocationsProductsCertificates');
@@ -0,0 +1,52 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse;
/**
* The "cloudFunctions" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $cloudFunctions = $integrationsService->projects_locations_products_cloudFunctions;
* </code>
*/
class ProjectsLocationsProductsCloudFunctions extends \Google\Service\Resource
{
/**
* Creates a cloud function project. (cloudFunctions.create)
*
* @param string $parent Required. The project that the executed integration
* belongs to.
* @param GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaCreateCloudFunctionRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaCreateCloudFunctionResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProductsCloudFunctions::class, 'Google_Service_Integrations_Resource_ProjectsLocationsProductsCloudFunctions');
@@ -0,0 +1,123 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListIntegrationsResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaTestIntegrationsRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaTestIntegrationsResponse;
/**
* The "integrations" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $integrations = $integrationsService->projects_locations_products_integrations;
* </code>
*/
class ProjectsLocationsProductsIntegrations extends \Google\Service\Resource
{
/**
* Executes integrations synchronously by passing the trigger id in the request
* body. The request is not returned until the requested executions are either
* fulfilled or experienced an error. If the integration name is not specified
* (passing `-`), all of the associated integration under the given trigger_id
* will be executed. Otherwise only the specified integration for the given
* `trigger_id` is executed. This is helpful for execution the integration from
* UI. (integrations.execute)
*
* @param string $name Required. The integration resource name.
* @param GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse
* @throws \Google\Service\Exception
*/
public function execute($name, GoogleCloudIntegrationsV1alphaExecuteIntegrationsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('execute', [$params], GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse::class);
}
/**
* Returns the list of all integrations in the specified project.
* (integrations.listProjectsLocationsProductsIntegrations)
*
* @param string $parent Required. Project and location from which the
* integrations should be listed. Format: projects/{project}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter on fields of IntegrationVersion. Fields can
* be compared with literal values by use of ":" (containment), "=" (equality),
* ">" (greater), "<" (less than), >=" (greater than or equal to), "<=" (less
* than or equal to), and "!=" (inequality) operators. Negation, conjunction,
* and disjunction are written using NOT, AND, and OR keywords. For example,
* organization_id=\"1\" AND state=ACTIVE AND description:"test". Filtering
* cannot be performed on repeated fields like `task_config`.
* @opt_param string orderBy The results would be returned in order you
* specified here. Supported sort keys are: Descending sort order by
* "last_modified_time", "created_time", "snapshot_number". Ascending sort order
* by the integration name.
* @opt_param int pageSize The page size for the resquest.
* @opt_param string pageToken The page token for the resquest.
* @return GoogleCloudIntegrationsV1alphaListIntegrationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsProductsIntegrations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListIntegrationsResponse::class);
}
/**
* Schedules an integration for execution by passing the trigger id and the
* scheduled time in the request body. (integrations.schedule)
*
* @param string $name The integration resource name.
* @param GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse
* @throws \Google\Service\Exception
*/
public function schedule($name, GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('schedule', [$params], GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse::class);
}
/**
* Execute the integration in draft state (integrations.test)
*
* @param string $name Output only. Auto-generated primary key.
* @param GoogleCloudIntegrationsV1alphaTestIntegrationsRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaTestIntegrationsResponse
* @throws \Google\Service\Exception
*/
public function test($name, GoogleCloudIntegrationsV1alphaTestIntegrationsRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('test', [$params], GoogleCloudIntegrationsV1alphaTestIntegrationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProductsIntegrations::class, 'Google_Service_Integrations_Resource_ProjectsLocationsProductsIntegrations');
@@ -0,0 +1,139 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaDownloadExecutionResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaExecution;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListExecutionsResponse;
/**
* The "executions" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $executions = $integrationsService->projects_locations_products_integrations_executions;
* </code>
*/
class ProjectsLocationsProductsIntegrationsExecutions extends \Google\Service\Resource
{
/**
* Download the execution. (executions.download)
*
* @param string $name Required. The execution resource name. Format: projects/{
* gcp_project_id}/locations/{location}/products/{product}/integrations/{integra
* tion_id}/executions/{execution_id}
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaDownloadExecutionResponse
* @throws \Google\Service\Exception
*/
public function download($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('download', [$params], GoogleCloudIntegrationsV1alphaDownloadExecutionResponse::class);
}
/**
* Get an execution in the specified project. (executions.get)
*
* @param string $name Required. The execution resource name. Format: projects/{
* gcp_project_id}/locations/{location}/products/{product}/integrations/{integra
* tion_id}/executions/{execution_id}
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaExecution
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaExecution::class);
}
/**
* Lists the results of all the integration executions. The response includes
* the same information as the [execution
* log](https://cloud.google.com/application-integration/docs/viewing-logs) in
* the Integration UI.
* (executions.listProjectsLocationsProductsIntegrationsExecutions)
*
* @param string $parent Required. The parent resource name of the integration
* execution.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Standard filter field, we support
* filtering on following fields: workflow_name: the name of the integration.
* CreateTimestamp: the execution created time. event_execution_state: the state
* of the executions. execution_id: the id of the execution. trigger_id: the id
* of the trigger. parameter_type: the type of the parameters involved in the
* execution. All fields support for EQUALS, in additional: CreateTimestamp
* support for LESS_THAN, GREATER_THAN ParameterType support for HAS For
* example: "parameter_type" HAS \"string\" Also supports operators like AND,
* OR, NOT For example, trigger_id=\"id1\" AND workflow_name=\"testWorkflow\"
* @opt_param string filterParams.customFilter Optional user-provided custom
* filter.
* @opt_param string filterParams.endTime End timestamp.
* @opt_param string filterParams.eventStatuses List of possible event statuses.
* @opt_param string filterParams.executionId Execution id.
* @opt_param string filterParams.parameterKey Param key. DEPRECATED. User
* parameter_pair_key instead.
* @opt_param string filterParams.parameterPairKey Param key in the key value
* pair filter.
* @opt_param string filterParams.parameterPairValue Param value in the key
* value pair filter.
* @opt_param string filterParams.parameterType Param type.
* @opt_param string filterParams.parameterValue Param value. DEPRECATED. User
* parameter_pair_value instead.
* @opt_param string filterParams.startTime Start timestamp.
* @opt_param string filterParams.taskStatuses List of possible task statuses.
* @opt_param string filterParams.workflowName Workflow name.
* @opt_param string orderBy Optional. The results would be returned in order
* you specified here. Currently supporting "create_time".
* @opt_param int pageSize Optional. The size of entries in the response.
* @opt_param string pageToken Optional. The token returned in the previous
* response.
* @opt_param string readMask Optional. View mask for the response data. If set,
* only the field specified will be returned as part of the result. If not set,
* all fields in Execution will be filled and returned. Supported fields:
* trigger_id execution_method create_time update_time execution_details
* execution_details.state execution_details.execution_snapshots
* execution_details.attempt_stats
* execution_details.event_execution_snapshots_size request_parameters
* cloud_logging_details snapshot_number replay_info
* @opt_param bool refreshAcl Optional. If true, the service will use the most
* recent acl information to list event execution infos and renew the acl cache.
* Note that fetching the most recent acl is synchronous, so it will increase
* RPC call latency.
* @opt_param bool snapshotMetadataWithoutParams Optional. If true, the service
* will provide execution info with snapshot metadata only i.e. without event
* parameters.
* @opt_param bool truncateParams Optional. If true, the service will truncate
* the params to only keep the first 1000 characters of string params and empty
* the executions in order to make response smaller. Only works for UI and when
* the params fields are not filtered out.
* @return GoogleCloudIntegrationsV1alphaListExecutionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsProductsIntegrationsExecutions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListExecutionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProductsIntegrationsExecutions::class, 'Google_Service_Integrations_Resource_ProjectsLocationsProductsIntegrationsExecutions');
@@ -0,0 +1,100 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaLiftSuspensionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaLiftSuspensionResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListSuspensionsResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaResolveSuspensionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaResolveSuspensionResponse;
/**
* The "suspensions" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $suspensions = $integrationsService->projects_locations_products_integrations_executions_suspensions;
* </code>
*/
class ProjectsLocationsProductsIntegrationsExecutionsSuspensions extends \Google\Service\Resource
{
/**
* * Lifts suspension for the Suspension task. Fetch corresponding suspension
* with provided suspension Id, resolve suspension, and set up suspension result
* for the Suspension Task. (suspensions.lift)
*
* @param string $name Required. The resource that the suspension belongs to. "p
* rojects/{project}/locations/{location}/products/{product}/integrations/{integ
* ration}/executions/{execution}/suspensions/{suspenion}" format.
* @param GoogleCloudIntegrationsV1alphaLiftSuspensionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaLiftSuspensionResponse
* @throws \Google\Service\Exception
*/
public function lift($name, GoogleCloudIntegrationsV1alphaLiftSuspensionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('lift', [$params], GoogleCloudIntegrationsV1alphaLiftSuspensionResponse::class);
}
/**
* * Lists suspensions associated with a specific execution. Only those with
* permissions to resolve the relevant suspensions will be able to view them.
* (suspensions.listProjectsLocationsProductsIntegrationsExecutionsSuspensions)
*
* @param string $parent Required. projects/{gcp_project_id}/locations/{location
* }/products/{product}/integrations/{integration_name}/executions/{execution_na
* me}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Standard filter field.
* @opt_param string orderBy Field name to order by.
* @opt_param int pageSize Maximum number of entries in the response.
* @opt_param string pageToken Token to retrieve a specific page.
* @return GoogleCloudIntegrationsV1alphaListSuspensionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsProductsIntegrationsExecutionsSuspensions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListSuspensionsResponse::class);
}
/**
* * Resolves (lifts/rejects) any number of suspensions. If the integration is
* already running, only the status of the suspension is updated. Otherwise, the
* suspended integration will begin execution again. (suspensions.resolve)
*
* @param string $name Required. projects/{gcp_project_id}/locations/{location}/
* products/{product}/integrations/{integration_name}/executions/{execution_name
* }/suspensions/{suspension_id}
* @param GoogleCloudIntegrationsV1alphaResolveSuspensionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaResolveSuspensionResponse
* @throws \Google\Service\Exception
*/
public function resolve($name, GoogleCloudIntegrationsV1alphaResolveSuspensionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resolve', [$params], GoogleCloudIntegrationsV1alphaResolveSuspensionResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProductsIntegrationsExecutionsSuspensions::class, 'Google_Service_Integrations_Resource_ProjectsLocationsProductsIntegrationsExecutionsSuspensions');
@@ -0,0 +1,59 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse;
/**
* The "executionsnapshots" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $executionsnapshots = $integrationsService->projects_locations_products_integrations_executionsnapshots;
* </code>
*/
class ProjectsLocationsProductsIntegrationsExecutionsnapshots extends \Google\Service\Resource
{
/**
* Lists the snapshots of a given integration executions. This RPC is not being
* used. (executionsnapshots.listProjectsLocationsProductsIntegrationsExecutions
* napshots)
*
* @param string $parent Required. The parent resource name of the integration
* execution.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Currently supports filter by `execution_info_id` or
* `execution_snapshot_id`.
* @opt_param int pageSize Number of entries to be returned in a page.
* @opt_param string pageToken The token used to retrieve the next page results.
* @opt_param string readMask View mask for the response data. If set, only the
* field specified will be returned as part of the result. If not set, all
* fields in event execution snapshot will be filled and returned.
* @return GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse
*/
public function listProjectsLocationsProductsIntegrationsExecutionsnapshots($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListExecutionSnapshotsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProductsIntegrationsExecutionsnapshots::class, 'Google_Service_Integrations_Resource_ProjectsLocationsProductsIntegrationsExecutionsnapshots');
@@ -0,0 +1,279 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaIntegrationVersion;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse;
use Google\Service\Integrations\GoogleProtobufEmpty;
/**
* The "versions" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $versions = $integrationsService->projects_locations_products_integrations_versions;
* </code>
*/
class ProjectsLocationsProductsIntegrationsVersions extends \Google\Service\Resource
{
/**
* Create a integration with a draft version in the specified project.
* (versions.create)
*
* @param string $parent Required. The parent resource where this version will
* be created. Format:
* projects/{project}/locations/{location}/integrations/{integration}
* @param GoogleCloudIntegrationsV1alphaIntegrationVersion $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool createSampleIntegrations Optional. Optional. Indicates if
* sample workflow should be created.
* @opt_param bool newIntegration Set this flag to true, if draft version is to
* be created for a brand new integration. False, if the request is for an
* existing integration. For backward compatibility reasons, even if this flag
* is set to `false` and no existing integration is found, a new draft
* integration will still be created.
* @return GoogleCloudIntegrationsV1alphaIntegrationVersion
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaIntegrationVersion $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaIntegrationVersion::class);
}
/**
* Soft-deletes the integration. Changes the status of the integration to
* ARCHIVED. If the integration being ARCHIVED is tagged as "HEAD", the tag is
* removed from this snapshot and set to the previous non-ARCHIVED snapshot. The
* PUBLISH_REQUESTED, DUE_FOR_DELETION tags are removed too. This RPC throws an
* exception if the version being deleted is DRAFT, and if the `locked_by` user
* is not the same as the user performing the Delete. Audit fields updated
* include last_modified_timestamp, last_modified_by. Any existing lock is
* released when Deleting a integration. Currently, there is no undelete
* mechanism. (versions.delete)
*
* @param string $name Required. The version to delete. Format: projects/{projec
* t}/locations/{location}/integrations/{integration}/versions/{version}
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Downloads an integration. Retrieves the `IntegrationVersion` for a given
* `integration_id` and returns the response as a string. (versions.download)
*
* @param string $name Required. The version to download. Format: projects/{proj
* ect}/locations/{location}/integrations/{integration}/versions/{version}
* @param array $optParams Optional parameters.
*
* @opt_param string fileFormat File format for download request.
* @opt_param string files Optional. Integration related file to download like
* Integration Json, Config variable, testcase etc.
* @return GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse
* @throws \Google\Service\Exception
*/
public function download($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('download', [$params], GoogleCloudIntegrationsV1alphaDownloadIntegrationVersionResponse::class);
}
/**
* Get a integration in the specified project. (versions.get)
*
* @param string $name Required. The version to retrieve. Format: projects/{proj
* ect}/locations/{location}/integrations/{integration}/versions/{version}
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaIntegrationVersion
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaIntegrationVersion::class);
}
/**
* Returns the list of all integration versions in the specified project.
* (versions.listProjectsLocationsProductsIntegrationsVersions)
*
* @param string $parent Required. The parent resource where this version will
* be created. Format:
* projects/{project}/locations/{location}/integrations/{integration}
* Specifically, when parent equals: 1. projects//locations//integrations/,
* Meaning: "List versions (with filter) for a particular integration". 2.
* projects//locations//integrations/- Meaning: "List versions (with filter) for
* a client within a particular region".
* @param array $optParams Optional parameters.
*
* @opt_param string fieldMask The field mask which specifies the particular
* data to be returned.
* @opt_param string filter Filter on fields of IntegrationVersion. Fields can
* be compared with literal values by use of ":" (containment), "=" (equality),
* ">" (greater), "<" (less than), >=" (greater than or equal to), "<=" (less
* than or equal to), and "!=" (inequality) operators. Negation, conjunction,
* and disjunction are written using NOT, AND, and OR keywords. For example,
* organization_id=\"1\" AND state=ACTIVE AND description:"test". Filtering
* cannot be performed on repeated fields like `task_config`.
* @opt_param string orderBy The results would be returned in order you
* specified here. Currently supported sort keys are: Descending sort order for
* "last\_modified\_time", "created\_time", and "snapshot\_number". Ascending
* sort order for `name`.
* @opt_param int pageSize The maximum number of versions to return. The service
* may return fewer than this value. If unspecified, at most 50 versions will be
* returned. The maximum value is 1000; values above 1000 will be coerced to
* 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListIntegrationVersions` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListIntegrationVersions`
* must match the call that provided the page token.
* @return GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsProductsIntegrationsVersions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListIntegrationVersionsResponse::class);
}
/**
* Update a integration with a draft version in the specified project.
* (versions.patch)
*
* @param string $name Output only. Auto-generated primary key.
* @param GoogleCloudIntegrationsV1alphaIntegrationVersion $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Field mask specifying the fields in the above
* integration that have been modified and need to be updated.
* @return GoogleCloudIntegrationsV1alphaIntegrationVersion
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudIntegrationsV1alphaIntegrationVersion $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudIntegrationsV1alphaIntegrationVersion::class);
}
/**
* This RPC throws an exception if the integration is in ARCHIVED or ACTIVE
* state. This RPC throws an exception if the version being published is DRAFT,
* and if the `locked_by` user is not the same as the user performing the
* Publish. Audit fields updated include last_published_timestamp,
* last_published_by, last_modified_timestamp, last_modified_by. Any existing
* lock is on this integration is released. (versions.publish)
*
* @param string $name Required. The version to publish. Format: projects/{proje
* ct}/locations/{location}/integrations/{integration}/versions/{version}
* @param GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse
* @throws \Google\Service\Exception
*/
public function publish($name, GoogleCloudIntegrationsV1alphaPublishIntegrationVersionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('publish', [$params], GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse::class);
}
/**
* Clears the `locked_by` and `locked_at_timestamp`in the DRAFT version of this
* integration. It then performs the same action as the
* CreateDraftIntegrationVersion (i.e., copies the DRAFT version of the
* integration as a SNAPSHOT and then creates a new DRAFT version with the
* `locked_by` set to the `user_taking_over` and the `locked_at_timestamp` set
* to the current timestamp). Both the `locked_by` and `user_taking_over` are
* notified via email about the takeover. This RPC throws an exception if the
* integration is not in DRAFT status or if the `locked_by` and
* `locked_at_timestamp` fields are not set.The TakeoverEdit lock is treated the
* same as an edit of the integration, and hence shares ACLs with edit. Audit
* fields updated include last_modified_timestamp, last_modified_by.
* (versions.takeoverEditLock)
*
* @param string $integrationVersion Required. The version to take over edit
* lock. Format: projects/{project}/locations/{location}/integrations/{integrati
* on}/versions/{version}
* @param GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse
* @throws \Google\Service\Exception
*/
public function takeoverEditLock($integrationVersion, GoogleCloudIntegrationsV1alphaTakeoverEditLockRequest $postBody, $optParams = [])
{
$params = ['integrationVersion' => $integrationVersion, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('takeoverEditLock', [$params], GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse::class);
}
/**
* Sets the status of the ACTIVE integration to SNAPSHOT with a new tag
* "PREVIOUSLY_PUBLISHED" after validating it. The "HEAD" and
* "PUBLISH_REQUESTED" tags do not change. This RPC throws an exception if the
* version being snapshot is not ACTIVE. Audit fields added include action,
* action_by, action_timestamp. (versions.unpublish)
*
* @param string $name Required. The version to deactivate. Format: projects/{pr
* oject}/locations/{location}/integrations/{integration}/versions/{version}
* @param GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function unpublish($name, GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('unpublish', [$params], GoogleProtobufEmpty::class);
}
/**
* Uploads an integration. The content can be a previously downloaded
* integration. Performs the same function as CreateDraftIntegrationVersion, but
* accepts input in a string format, which holds the complete representation of
* the IntegrationVersion content. (versions.upload)
*
* @param string $parent Required. The version to upload. Format:
* projects/{project}/locations/{location}/integrations/{integration}
* @param GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse
* @throws \Google\Service\Exception
*/
public function upload($parent, GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProductsIntegrationsVersions::class, 'Google_Service_Integrations_Resource_ProjectsLocationsProductsIntegrationsVersions');
@@ -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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListTestCasesResponse;
/**
* The "testCases" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $testCases = $integrationsService->projects_locations_products_integrations_versions_testCases;
* </code>
*/
class ProjectsLocationsProductsIntegrationsVersionsTestCases extends \Google\Service\Resource
{
/**
* Lists all the test cases that satisfy the filters.
* (testCases.listProjectsLocationsProductsIntegrationsVersionsTestCases)
*
* @param string $parent Required. The parent resource where this TestCase was
* created.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Standard filter field. Filtering as
* supported in https://developers.google.com/authorized-
* buyers/apis/guides/list-filters.
* @opt_param string orderBy Optional. The results would be returned in order
* specified here. Currently supported sort keys are: Descending sort order for
* "last_modified_time", "created_time". Ascending sort order for "name".
* @opt_param int pageSize Optional. The maximum number of test cases to return.
* The service may return fewer than this value. If unspecified, at most 100
* test cases will be returned.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListTestCases` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListTestCases` must match the
* call that provided the page token.
* @opt_param string readMask Optional. The mask which specifies fields that
* need to be returned in the TestCases's response.
* @return GoogleCloudIntegrationsV1alphaListTestCasesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsProductsIntegrationsVersionsTestCases($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListTestCasesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProductsIntegrationsVersionsTestCases::class, 'Google_Service_Integrations_Resource_ProjectsLocationsProductsIntegrationsVersionsTestCases');
@@ -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\Integrations\Resource;
/**
* The "integrationtemplates" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $integrationtemplates = $integrationsService->projects_locations_products_integrationtemplates;
* </code>
*/
class ProjectsLocationsProductsIntegrationtemplates extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProductsIntegrationtemplates::class, 'Google_Service_Integrations_Resource_ProjectsLocationsProductsIntegrationtemplates');
@@ -0,0 +1,97 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse;
/**
* The "versions" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $versions = $integrationsService->projects_locations_products_integrationtemplates_versions;
* </code>
*/
class ProjectsLocationsProductsIntegrationtemplatesVersions extends \Google\Service\Resource
{
/**
* Creates an IntegrationTemplateVersion. (versions.create)
*
* @param string $parent Required. The parent resource where this
* TemplateVersion will be created. Format: projects/{project}/location/{locatio
* n}/product/{product}/integrationtemplates/{integrationtemplate}
* @param GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion::class);
}
/**
* Returns an IntegrationTemplateVersion in the specified project.
* (versions.get)
*
* @param string $name Required. The TemplateVersion to retrieve. Format: projec
* ts/{project}/locations/{location}/products/{product}/integrationtemplates/{in
* tegrationtemplate}/versions/{version}
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaIntegrationTemplateVersion::class);
}
/**
* Returns the list of all IntegrationTemplateVersions in the specified project.
* (versions.listProjectsLocationsProductsIntegrationtemplatesVersions)
*
* @param string $parent Required. Format: projects/{project}/location/{location
* }/product/{product}/integrationtemplates/{integrationtemplate}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter syntax: defined in the EBNF grammar.
* @opt_param int pageSize The maximum number of IntegrationTemplateVersions to
* return. The service may return fewer than this value. If unspecified, at most
* 50 versions will be returned. The maximum value is 1000; values above 1000
* will be coerced to 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListIntegrationTemplateVersions` call. Provide this to retrieve the
* subsequent page. When paginating, all other parameters provided to
* `ListIntegrationTemplateVersions` must match the call that provided the page
* token.
* @return GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsProductsIntegrationtemplatesVersions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListIntegrationTemplateVersionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProductsIntegrationtemplatesVersions::class, 'Google_Service_Integrations_Resource_ProjectsLocationsProductsIntegrationtemplatesVersions');
@@ -0,0 +1,130 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaSfdcInstance;
use Google\Service\Integrations\GoogleProtobufEmpty;
/**
* The "sfdcInstances" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $sfdcInstances = $integrationsService->projects_locations_products_sfdcInstances;
* </code>
*/
class ProjectsLocationsProductsSfdcInstances extends \Google\Service\Resource
{
/**
* Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns
* the sfdc instance. (sfdcInstances.create)
*
* @param string $parent Required. "projects/{project}/locations/{location}"
* format.
* @param GoogleCloudIntegrationsV1alphaSfdcInstance $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaSfdcInstance
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaSfdcInstance $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaSfdcInstance::class);
}
/**
* Deletes an sfdc instance. (sfdcInstances.delete)
*
* @param string $name Required. The name that is associated with the
* SfdcInstance.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND
* exception will be thrown. (sfdcInstances.get)
*
* @param string $name Required. The name that is associated with the
* SfdcInstance.
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaSfdcInstance
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaSfdcInstance::class);
}
/**
* Lists all sfdc instances that match the filter. Restrict to sfdc instances
* belonging to the current client only.
* (sfdcInstances.listProjectsLocationsProductsSfdcInstances)
*
* @param string $parent Required. The client, which owns this collection of
* SfdcInstances.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering as supported in
* https://developers.google.com/authorized-buyers/apis/guides/list-filters.
* @opt_param int pageSize The size of entries in the response. If unspecified,
* defaults to 100.
* @opt_param string pageToken The token returned in the previous response.
* @opt_param string readMask The mask which specifies fields that need to be
* returned in the SfdcInstance's response.
* @return GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsProductsSfdcInstances($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse::class);
}
/**
* Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the
* sfdc instance. (sfdcInstances.patch)
*
* @param string $name Resource name of the SFDC instance
* projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}.
* @param GoogleCloudIntegrationsV1alphaSfdcInstance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Field mask specifying the fields in the above
* SfdcInstance that have been modified and need to be updated.
* @return GoogleCloudIntegrationsV1alphaSfdcInstance
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudIntegrationsV1alphaSfdcInstance $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudIntegrationsV1alphaSfdcInstance::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProductsSfdcInstances::class, 'Google_Service_Integrations_Resource_ProjectsLocationsProductsSfdcInstances');
@@ -0,0 +1,130 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaSfdcChannel;
use Google\Service\Integrations\GoogleProtobufEmpty;
/**
* The "sfdcChannels" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $sfdcChannels = $integrationsService->projects_locations_products_sfdcInstances_sfdcChannels;
* </code>
*/
class ProjectsLocationsProductsSfdcInstancesSfdcChannels extends \Google\Service\Resource
{
/**
* Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns
* the sfdc channel. (sfdcChannels.create)
*
* @param string $parent Required. "projects/{project}/locations/{location}"
* format.
* @param GoogleCloudIntegrationsV1alphaSfdcChannel $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaSfdcChannel
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaSfdcChannel $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaSfdcChannel::class);
}
/**
* Deletes an sfdc channel. (sfdcChannels.delete)
*
* @param string $name Required. The name that is associated with the
* SfdcChannel.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception
* will be thrown. (sfdcChannels.get)
*
* @param string $name Required. The name that is associated with the
* SfdcChannel.
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaSfdcChannel
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaSfdcChannel::class);
}
/**
* Lists all sfdc channels that match the filter. Restrict to sfdc channels
* belonging to the current client only.
* (sfdcChannels.listProjectsLocationsProductsSfdcInstancesSfdcChannels)
*
* @param string $parent Required. The client, which owns this collection of
* SfdcChannels.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering as supported in
* https://developers.google.com/authorized-buyers/apis/guides/list-filters.
* @opt_param int pageSize The size of entries in the response. If unspecified,
* defaults to 100.
* @opt_param string pageToken The token returned in the previous response.
* @opt_param string readMask The mask which specifies fields that need to be
* returned in the SfdcChannel's response.
* @return GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsProductsSfdcInstancesSfdcChannels($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse::class);
}
/**
* Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the
* sfdc channel. (sfdcChannels.patch)
*
* @param string $name Resource name of the SFDC channel projects/{project}/loca
* tions/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}.
* @param GoogleCloudIntegrationsV1alphaSfdcChannel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Field mask specifying the fields in the above
* SfdcChannel that have been modified and need to be updated.
* @return GoogleCloudIntegrationsV1alphaSfdcChannel
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudIntegrationsV1alphaSfdcChannel $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudIntegrationsV1alphaSfdcChannel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProductsSfdcInstancesSfdcChannels::class, 'Google_Service_Integrations_Resource_ProjectsLocationsProductsSfdcInstancesSfdcChannels');
@@ -0,0 +1,130 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaSfdcInstance;
use Google\Service\Integrations\GoogleProtobufEmpty;
/**
* The "sfdcInstances" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $sfdcInstances = $integrationsService->projects_locations_sfdcInstances;
* </code>
*/
class ProjectsLocationsSfdcInstances extends \Google\Service\Resource
{
/**
* Creates an sfdc instance record. Store the sfdc instance in Spanner. Returns
* the sfdc instance. (sfdcInstances.create)
*
* @param string $parent Required. "projects/{project}/locations/{location}"
* format.
* @param GoogleCloudIntegrationsV1alphaSfdcInstance $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaSfdcInstance
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaSfdcInstance $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaSfdcInstance::class);
}
/**
* Deletes an sfdc instance. (sfdcInstances.delete)
*
* @param string $name Required. The name that is associated with the
* SfdcInstance.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets an sfdc instance. If the instance doesn't exist, Code.NOT_FOUND
* exception will be thrown. (sfdcInstances.get)
*
* @param string $name Required. The name that is associated with the
* SfdcInstance.
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaSfdcInstance
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaSfdcInstance::class);
}
/**
* Lists all sfdc instances that match the filter. Restrict to sfdc instances
* belonging to the current client only.
* (sfdcInstances.listProjectsLocationsSfdcInstances)
*
* @param string $parent Required. The client, which owns this collection of
* SfdcInstances.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering as supported in
* https://developers.google.com/authorized-buyers/apis/guides/list-filters.
* @opt_param int pageSize The size of entries in the response. If unspecified,
* defaults to 100.
* @opt_param string pageToken The token returned in the previous response.
* @opt_param string readMask The mask which specifies fields that need to be
* returned in the SfdcInstance's response.
* @return GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsSfdcInstances($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListSfdcInstancesResponse::class);
}
/**
* Updates an sfdc instance. Updates the sfdc instance in spanner. Returns the
* sfdc instance. (sfdcInstances.patch)
*
* @param string $name Resource name of the SFDC instance
* projects/{project}/locations/{location}/sfdcInstances/{sfdcInstance}.
* @param GoogleCloudIntegrationsV1alphaSfdcInstance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Field mask specifying the fields in the above
* SfdcInstance that have been modified and need to be updated.
* @return GoogleCloudIntegrationsV1alphaSfdcInstance
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudIntegrationsV1alphaSfdcInstance $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudIntegrationsV1alphaSfdcInstance::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsSfdcInstances::class, 'Google_Service_Integrations_Resource_ProjectsLocationsSfdcInstances');
@@ -0,0 +1,130 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaSfdcChannel;
use Google\Service\Integrations\GoogleProtobufEmpty;
/**
* The "sfdcChannels" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $sfdcChannels = $integrationsService->projects_locations_sfdcInstances_sfdcChannels;
* </code>
*/
class ProjectsLocationsSfdcInstancesSfdcChannels extends \Google\Service\Resource
{
/**
* Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns
* the sfdc channel. (sfdcChannels.create)
*
* @param string $parent Required. "projects/{project}/locations/{location}"
* format.
* @param GoogleCloudIntegrationsV1alphaSfdcChannel $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaSfdcChannel
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaSfdcChannel $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaSfdcChannel::class);
}
/**
* Deletes an sfdc channel. (sfdcChannels.delete)
*
* @param string $name Required. The name that is associated with the
* SfdcChannel.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception
* will be thrown. (sfdcChannels.get)
*
* @param string $name Required. The name that is associated with the
* SfdcChannel.
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaSfdcChannel
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaSfdcChannel::class);
}
/**
* Lists all sfdc channels that match the filter. Restrict to sfdc channels
* belonging to the current client only.
* (sfdcChannels.listProjectsLocationsSfdcInstancesSfdcChannels)
*
* @param string $parent Required. The client, which owns this collection of
* SfdcChannels.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering as supported in
* https://developers.google.com/authorized-buyers/apis/guides/list-filters.
* @opt_param int pageSize The size of entries in the response. If unspecified,
* defaults to 100.
* @opt_param string pageToken The token returned in the previous response.
* @opt_param string readMask The mask which specifies fields that need to be
* returned in the SfdcChannel's response.
* @return GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsSfdcInstancesSfdcChannels($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse::class);
}
/**
* Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the
* sfdc channel. (sfdcChannels.patch)
*
* @param string $name Resource name of the SFDC channel projects/{project}/loca
* tions/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}.
* @param GoogleCloudIntegrationsV1alphaSfdcChannel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Field mask specifying the fields in the above
* SfdcChannel that have been modified and need to be updated.
* @return GoogleCloudIntegrationsV1alphaSfdcChannel
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudIntegrationsV1alphaSfdcChannel $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudIntegrationsV1alphaSfdcChannel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsSfdcInstancesSfdcChannels::class, 'Google_Service_Integrations_Resource_ProjectsLocationsSfdcInstancesSfdcChannels');
@@ -0,0 +1,279 @@
<?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\Integrations\Resource;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaDownloadTemplateResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaImportTemplateRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaImportTemplateResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListTemplatesResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaSearchTemplatesResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaShareTemplateRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaTemplate;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaUnshareTemplateRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaUploadTemplateRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaUploadTemplateResponse;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaUseTemplateRequest;
use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaUseTemplateResponse;
use Google\Service\Integrations\GoogleProtobufEmpty;
/**
* The "templates" collection of methods.
* Typical usage is:
* <code>
* $integrationsService = new Google\Service\Integrations(...);
* $templates = $integrationsService->projects_locations_templates;
* </code>
*/
class ProjectsLocationsTemplates extends \Google\Service\Resource
{
/**
* Creates a new template (templates.create)
*
* @param string $parent Required. "projects/{project}/locations/{location}"
* format.
* @param GoogleCloudIntegrationsV1alphaTemplate $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaTemplate
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudIntegrationsV1alphaTemplate $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaTemplate::class);
}
/**
* Deletes a template (templates.delete)
*
* @param string $name Required. The name that is associated with the Template.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Downloads a template. Retrieves the `Template` and returns the response as a
* string. (templates.download)
*
* @param string $name Required. The template to download. Format:
* projects/{project}/locations/{location}/template/{template_id}
* @param array $optParams Optional parameters.
*
* @opt_param string fileFormat Required. File format for download request.
* @return GoogleCloudIntegrationsV1alphaDownloadTemplateResponse
* @throws \Google\Service\Exception
*/
public function download($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('download', [$params], GoogleCloudIntegrationsV1alphaDownloadTemplateResponse::class);
}
/**
* Get a template in the specified project. (templates.get)
*
* @param string $name Required. The template to retrieve. Format:
* projects/{project}/locations/{location}/templates/{template}
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaTemplate
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaTemplate::class);
}
/**
* Import the template to an existing integration. This api would keep track of
* usage_count and last_used_time. PERMISSION_DENIED would be thrown if template
* is not accessible by client. (templates.import)
*
* @param string $name Required. The name that is associated with the Template.
* @param GoogleCloudIntegrationsV1alphaImportTemplateRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaImportTemplateResponse
* @throws \Google\Service\Exception
*/
public function import($name, GoogleCloudIntegrationsV1alphaImportTemplateRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('import', [$params], GoogleCloudIntegrationsV1alphaImportTemplateResponse::class);
}
/**
* Lists all templates matching the filter.
* (templates.listProjectsLocationsTemplates)
*
* @param string $parent Required. The client, which owns this collection of
* Templates.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Standard filter field to filter templates.
* client_id filter won't be supported and will restrict to templates belonging
* to the current client only. Return all templates of the current client if the
* filter is empty. Also supports operators like AND, OR, NOT For example,
* "status=\"ACTIVE\"
* @opt_param string orderBy Optional. The results would be returned in the
* order you specified here.
* @opt_param int pageSize Optional. The size of the response entries. If
* unspecified, defaults to 100. The maximum value is 1000; values above 1000
* will be coerced to 1000.
* @opt_param string pageToken Optional. The token returned in the previous
* response.
* @opt_param string readMask Optional. The mask which specifies fields that
* need to be returned in the template's response.
* @return GoogleCloudIntegrationsV1alphaListTemplatesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTemplates($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListTemplatesResponse::class);
}
/**
* Updates the template by given id. (templates.patch)
*
* @param string $name Identifier. Resource name of the template.
* @param GoogleCloudIntegrationsV1alphaTemplate $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask specifying the fields in
* the above template that have been modified and must be updated.
* @return GoogleCloudIntegrationsV1alphaTemplate
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudIntegrationsV1alphaTemplate $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudIntegrationsV1alphaTemplate::class);
}
/**
* Search templates based on user query and filters. This api would query the
* templates and return a list of templates based on the user filter.
* (templates.search)
*
* @param string $parent Required. The client, which owns this collection of
* Templates.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Standard filter field to filter templates.
* client_id filter won't be supported and will restrict to templates belonging
* to the current client only. Return all templates of the current client if the
* filter is empty. Also supports operators like AND, OR, NOT For example,
* "status=\"ACTIVE\"
* @opt_param string orderBy Optional. The results would be returned in the
* order you specified here.
* @opt_param int pageSize Optional. The size of the response entries. If
* unspecified, defaults to 100. The maximum value is 1000; values above 1000
* will be coerced to 1000.
* @opt_param string pageToken Optional. The token returned in the previous
* response.
* @opt_param string readMask Optional. The mask which specifies fields that
* need to be returned in the template's response.
* @return GoogleCloudIntegrationsV1alphaSearchTemplatesResponse
* @throws \Google\Service\Exception
*/
public function search($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], GoogleCloudIntegrationsV1alphaSearchTemplatesResponse::class);
}
/**
* Share a template with other clients. Only the template owner can share the
* templates with other projects. PERMISSION_DENIED would be thrown if the
* request is not from the owner. (templates.share)
*
* @param string $name Required. The name that is associated with the Template.
* @param GoogleCloudIntegrationsV1alphaShareTemplateRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function share($name, GoogleCloudIntegrationsV1alphaShareTemplateRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('share', [$params], GoogleProtobufEmpty::class);
}
/**
* Unshare a template from given clients. Owner of the template can unshare
* template with clients. Shared client can only unshare the template from
* itself. PERMISSION_DENIED would be thrown if request is not from owner or for
* unsharing itself. (templates.unshare)
*
* @param string $name Required. The name that is associated with the Template.
* @param GoogleCloudIntegrationsV1alphaUnshareTemplateRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function unshare($name, GoogleCloudIntegrationsV1alphaUnshareTemplateRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('unshare', [$params], GoogleProtobufEmpty::class);
}
/**
* Uploads a template. The content can be a previously downloaded template.
* Performs the same function as CreateTemplate, but accepts input in a string
* format, which holds the complete representation of the Template content.
* (templates.upload)
*
* @param string $parent Required. The template to upload. Format:
* projects/{project}/locations/{location}
* @param GoogleCloudIntegrationsV1alphaUploadTemplateRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaUploadTemplateResponse
* @throws \Google\Service\Exception
*/
public function upload($parent, GoogleCloudIntegrationsV1alphaUploadTemplateRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], GoogleCloudIntegrationsV1alphaUploadTemplateResponse::class);
}
/**
* Use the template to create integration. This api would keep track of
* usage_count and last_used_time. PERMISSION_DENIED would be thrown if template
* is not accessible by client. (templates.useProjectsLocationsTemplates)
*
* @param string $name Required. The name that is associated with the Template.
* @param GoogleCloudIntegrationsV1alphaUseTemplateRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudIntegrationsV1alphaUseTemplateResponse
* @throws \Google\Service\Exception
*/
public function useProjectsLocationsTemplates($name, GoogleCloudIntegrationsV1alphaUseTemplateRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('use', [$params], GoogleCloudIntegrationsV1alphaUseTemplateResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTemplates::class, 'Google_Service_Integrations_Resource_ProjectsLocationsTemplates');