source: vendor/google/apiclient-services/src/Apigee/Resource/OrganizationsEndpointAttachments.php

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

Upload project files

  • Property mode set to 100644
File size: 4.5 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\Apigee\Resource;
19
20use Google\Service\Apigee\GoogleCloudApigeeV1EndpointAttachment;
21use Google\Service\Apigee\GoogleCloudApigeeV1ListEndpointAttachmentsResponse;
22use Google\Service\Apigee\GoogleLongrunningOperation;
23
24/**
25 * The "endpointAttachments" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $apigeeService = new Google\Service\Apigee(...);
29 * $endpointAttachments = $apigeeService->organizations_endpointAttachments;
30 * </code>
31 */
32class OrganizationsEndpointAttachments extends \Google\Service\Resource
33{
34 /**
35 * Creates an endpoint attachment. **Note:** Not supported for Apigee hybrid.
36 * (endpointAttachments.create)
37 *
38 * @param string $parent Required. Organization the endpoint attachment will be
39 * created in.
40 * @param GoogleCloudApigeeV1EndpointAttachment $postBody
41 * @param array $optParams Optional parameters.
42 *
43 * @opt_param string endpointAttachmentId ID to use for the endpoint attachment.
44 * ID must start with a lowercase letter followed by up to 31 lowercase letters,
45 * numbers, or hyphens, and cannot end with a hyphen. The minimum length is 2.
46 * @return GoogleLongrunningOperation
47 * @throws \Google\Service\Exception
48 */
49 public function create($parent, GoogleCloudApigeeV1EndpointAttachment $postBody, $optParams = [])
50 {
51 $params = ['parent' => $parent, 'postBody' => $postBody];
52 $params = array_merge($params, $optParams);
53 return $this->call('create', [$params], GoogleLongrunningOperation::class);
54 }
55 /**
56 * Deletes an endpoint attachment. (endpointAttachments.delete)
57 *
58 * @param string $name Required. Name of the endpoint attachment. Use the
59 * following structure in your request:
60 * `organizations/{org}/endpointAttachments/{endpoint_attachment}`
61 * @param array $optParams Optional parameters.
62 * @return GoogleLongrunningOperation
63 * @throws \Google\Service\Exception
64 */
65 public function delete($name, $optParams = [])
66 {
67 $params = ['name' => $name];
68 $params = array_merge($params, $optParams);
69 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
70 }
71 /**
72 * Gets the endpoint attachment. (endpointAttachments.get)
73 *
74 * @param string $name Required. Name of the endpoint attachment. Use the
75 * following structure in your request:
76 * `organizations/{org}/endpointAttachments/{endpoint_attachment}`
77 * @param array $optParams Optional parameters.
78 * @return GoogleCloudApigeeV1EndpointAttachment
79 * @throws \Google\Service\Exception
80 */
81 public function get($name, $optParams = [])
82 {
83 $params = ['name' => $name];
84 $params = array_merge($params, $optParams);
85 return $this->call('get', [$params], GoogleCloudApigeeV1EndpointAttachment::class);
86 }
87 /**
88 * Lists the endpoint attachments in an organization.
89 * (endpointAttachments.listOrganizationsEndpointAttachments)
90 *
91 * @param string $parent Required. Name of the organization for which to list
92 * endpoint attachments. Use the following structure in your request:
93 * `organizations/{org}`
94 * @param array $optParams Optional parameters.
95 *
96 * @opt_param int pageSize Optional. Maximum number of endpoint attachments to
97 * return. If unspecified, at most 25 attachments will be returned.
98 * @opt_param string pageToken Optional. Page token, returned from a previous
99 * `ListEndpointAttachments` call, that you can use to retrieve the next page.
100 * @return GoogleCloudApigeeV1ListEndpointAttachmentsResponse
101 * @throws \Google\Service\Exception
102 */
103 public function listOrganizationsEndpointAttachments($parent, $optParams = [])
104 {
105 $params = ['parent' => $parent];
106 $params = array_merge($params, $optParams);
107 return $this->call('list', [$params], GoogleCloudApigeeV1ListEndpointAttachmentsResponse::class);
108 }
109}
110
111// Adding a class alias for backwards compatibility with the previous class name.
112class_alias(OrganizationsEndpointAttachments::class, 'Google_Service_Apigee_Resource_OrganizationsEndpointAttachments');
Note: See TracBrowser for help on using the repository browser.