📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/Integrations/Resource
☀️ Light Mode
🎯 Quick Launch:

📁 Directories

📄 Files

🐘 Callback.php
▶ Open 📄 View Source
🐘 ConnectorPlatformRegions.php
▶ Open 📄 View Source
🐘 Projects.php
▶ Open 📄 View Source
🐘 ProjectsLocations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsAppsScriptProjects.php
▶ Open 📄 View Source
🐘 ProjectsLocationsAuthConfigs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCertificates.php
▶ Open 📄 View Source
🐘 ProjectsLocationsClients.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCloudFunctions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollections.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEngines.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesAssistants.php
▶ Open 📄 View Source
🐘 ProjectsLocationsCollectionsEnginesAssistantsAgentFlows.php
▶ Open 📄 View Source
🐘 ProjectsLocationsConnections.php
▶ Open 📄 View Source
🐘 ProjectsLocationsConnectionsRuntimeActionSchemas.php
▶ Open 📄 View Source
🐘 ProjectsLocationsConnectionsRuntimeEntitySchemas.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIntegrations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIntegrationsExecutions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIntegrationsExecutionsSuspensions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIntegrationsExecutionsnapshots.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIntegrationsVersions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsIntegrationsVersionsTestCases.php
▶ Open 📄 View Source
🐘 ProjectsLocationsProducts.php
▶ Open 📄 View Source
🐘 ProjectsLocationsProductsAuthConfigs.php
▶ Open 📄 View Source
🐘 ProjectsLocationsProductsCertificates.php
▶ Open 📄 View Source
🐘 ProjectsLocationsProductsCloudFunctions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsProductsIntegrations.php
▶ Open 📄 View Source
🐘 ProjectsLocationsProductsIntegrationsExecutions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsProductsIntegrationsExecutionsSuspensions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsProductsIntegrationsExecutionsnapshots.php
▶ Open 📄 View Source
🐘 ProjectsLocationsProductsIntegrationsVersions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsProductsIntegrationsVersionsTestCases.php
▶ Open 📄 View Source
🐘 ProjectsLocationsProductsIntegrationtemplates.php
▶ Open 📄 View Source
🐘 ProjectsLocationsProductsIntegrationtemplatesVersions.php
▶ Open 📄 View Source
🐘 ProjectsLocationsProductsSfdcInstances.php
▶ Open 📄 View Source
🐘 ProjectsLocationsProductsSfdcInstancesSfdcChannels.php
▶ Open 📄 View Source
🐘 ProjectsLocationsSfdcInstances.php
▶ Open 📄 View Source
🐘 ProjectsLocationsSfdcInstancesSfdcChannels.php
▶ Open 📄 View Source
🐘 ProjectsLocationsTemplates.php
▶ Open 📄 View Source

📄 Source: ProjectsLocationsSfdcInstances.php

<?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');
← Back