source: vendor/google/apiclient-services/src/Integrations/Resource/ProjectsLocationsSfdcInstancesSfdcChannels.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload new project files

  • Property mode set to 100644
File size: 5.3 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Integrations\Resource;
19
20use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse;
21use Google\Service\Integrations\GoogleCloudIntegrationsV1alphaSfdcChannel;
22use Google\Service\Integrations\GoogleProtobufEmpty;
23
24/**
25 * The "sfdcChannels" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $integrationsService = new Google\Service\Integrations(...);
29 * $sfdcChannels = $integrationsService->projects_locations_sfdcInstances_sfdcChannels;
30 * </code>
31 */
32class ProjectsLocationsSfdcInstancesSfdcChannels extends \Google\Service\Resource
33{
34 /**
35 * Creates an sfdc channel record. Store the sfdc channel in Spanner. Returns
36 * the sfdc channel. (sfdcChannels.create)
37 *
38 * @param string $parent Required. "projects/{project}/locations/{location}"
39 * format.
40 * @param GoogleCloudIntegrationsV1alphaSfdcChannel $postBody
41 * @param array $optParams Optional parameters.
42 * @return GoogleCloudIntegrationsV1alphaSfdcChannel
43 * @throws \Google\Service\Exception
44 */
45 public function create($parent, GoogleCloudIntegrationsV1alphaSfdcChannel $postBody, $optParams = [])
46 {
47 $params = ['parent' => $parent, 'postBody' => $postBody];
48 $params = array_merge($params, $optParams);
49 return $this->call('create', [$params], GoogleCloudIntegrationsV1alphaSfdcChannel::class);
50 }
51 /**
52 * Deletes an sfdc channel. (sfdcChannels.delete)
53 *
54 * @param string $name Required. The name that is associated with the
55 * SfdcChannel.
56 * @param array $optParams Optional parameters.
57 * @return GoogleProtobufEmpty
58 * @throws \Google\Service\Exception
59 */
60 public function delete($name, $optParams = [])
61 {
62 $params = ['name' => $name];
63 $params = array_merge($params, $optParams);
64 return $this->call('delete', [$params], GoogleProtobufEmpty::class);
65 }
66 /**
67 * Gets an sfdc channel. If the channel doesn't exist, Code.NOT_FOUND exception
68 * will be thrown. (sfdcChannels.get)
69 *
70 * @param string $name Required. The name that is associated with the
71 * SfdcChannel.
72 * @param array $optParams Optional parameters.
73 * @return GoogleCloudIntegrationsV1alphaSfdcChannel
74 * @throws \Google\Service\Exception
75 */
76 public function get($name, $optParams = [])
77 {
78 $params = ['name' => $name];
79 $params = array_merge($params, $optParams);
80 return $this->call('get', [$params], GoogleCloudIntegrationsV1alphaSfdcChannel::class);
81 }
82 /**
83 * Lists all sfdc channels that match the filter. Restrict to sfdc channels
84 * belonging to the current client only.
85 * (sfdcChannels.listProjectsLocationsSfdcInstancesSfdcChannels)
86 *
87 * @param string $parent Required. The client, which owns this collection of
88 * SfdcChannels.
89 * @param array $optParams Optional parameters.
90 *
91 * @opt_param string filter Filtering as supported in
92 * https://developers.google.com/authorized-buyers/apis/guides/list-filters.
93 * @opt_param int pageSize The size of entries in the response. If unspecified,
94 * defaults to 100.
95 * @opt_param string pageToken The token returned in the previous response.
96 * @opt_param string readMask The mask which specifies fields that need to be
97 * returned in the SfdcChannel's response.
98 * @return GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse
99 * @throws \Google\Service\Exception
100 */
101 public function listProjectsLocationsSfdcInstancesSfdcChannels($parent, $optParams = [])
102 {
103 $params = ['parent' => $parent];
104 $params = array_merge($params, $optParams);
105 return $this->call('list', [$params], GoogleCloudIntegrationsV1alphaListSfdcChannelsResponse::class);
106 }
107 /**
108 * Updates an sfdc channel. Updates the sfdc channel in spanner. Returns the
109 * sfdc channel. (sfdcChannels.patch)
110 *
111 * @param string $name Resource name of the SFDC channel projects/{project}/loca
112 * tions/{location}/sfdcInstances/{sfdc_instance}/sfdcChannels/{sfdc_channel}.
113 * @param GoogleCloudIntegrationsV1alphaSfdcChannel $postBody
114 * @param array $optParams Optional parameters.
115 *
116 * @opt_param string updateMask Field mask specifying the fields in the above
117 * SfdcChannel that have been modified and need to be updated.
118 * @return GoogleCloudIntegrationsV1alphaSfdcChannel
119 * @throws \Google\Service\Exception
120 */
121 public function patch($name, GoogleCloudIntegrationsV1alphaSfdcChannel $postBody, $optParams = [])
122 {
123 $params = ['name' => $name, 'postBody' => $postBody];
124 $params = array_merge($params, $optParams);
125 return $this->call('patch', [$params], GoogleCloudIntegrationsV1alphaSfdcChannel::class);
126 }
127}
128
129// Adding a class alias for backwards compatibility with the previous class name.
130class_alias(ProjectsLocationsSfdcInstancesSfdcChannels::class, 'Google_Service_Integrations_Resource_ProjectsLocationsSfdcInstancesSfdcChannels');
Note: See TracBrowser for help on using the repository browser.