source: vendor/google/apiclient-services/src/Apigee/Resource/OrganizationsEnvgroupsAttachments.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.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\Apigee\Resource;
19
20use Google\Service\Apigee\GoogleCloudApigeeV1EnvironmentGroupAttachment;
21use Google\Service\Apigee\GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse;
22use Google\Service\Apigee\GoogleLongrunningOperation;
23
24/**
25 * The "attachments" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $apigeeService = new Google\Service\Apigee(...);
29 * $attachments = $apigeeService->organizations_envgroups_attachments;
30 * </code>
31 */
32class OrganizationsEnvgroupsAttachments extends \Google\Service\Resource
33{
34 /**
35 * Creates a new attachment of an environment to an environment group.
36 * (attachments.create)
37 *
38 * @param string $parent Required. EnvironmentGroup under which to create the
39 * attachment in the following format:
40 * `organizations/{org}/envgroups/{envgroup}`.
41 * @param GoogleCloudApigeeV1EnvironmentGroupAttachment $postBody
42 * @param array $optParams Optional parameters.
43 * @return GoogleLongrunningOperation
44 * @throws \Google\Service\Exception
45 */
46 public function create($parent, GoogleCloudApigeeV1EnvironmentGroupAttachment $postBody, $optParams = [])
47 {
48 $params = ['parent' => $parent, 'postBody' => $postBody];
49 $params = array_merge($params, $optParams);
50 return $this->call('create', [$params], GoogleLongrunningOperation::class);
51 }
52 /**
53 * Deletes an environment group attachment. (attachments.delete)
54 *
55 * @param string $name Required. Name of the environment group attachment to
56 * delete in the following format:
57 * `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`.
58 * @param array $optParams Optional parameters.
59 * @return GoogleLongrunningOperation
60 * @throws \Google\Service\Exception
61 */
62 public function delete($name, $optParams = [])
63 {
64 $params = ['name' => $name];
65 $params = array_merge($params, $optParams);
66 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
67 }
68 /**
69 * Gets an environment group attachment. (attachments.get)
70 *
71 * @param string $name Required. Name of the environment group attachment in the
72 * following format:
73 * `organizations/{org}/envgroups/{envgroup}/attachments/{attachment}`
74 * @param array $optParams Optional parameters.
75 * @return GoogleCloudApigeeV1EnvironmentGroupAttachment
76 * @throws \Google\Service\Exception
77 */
78 public function get($name, $optParams = [])
79 {
80 $params = ['name' => $name];
81 $params = array_merge($params, $optParams);
82 return $this->call('get', [$params], GoogleCloudApigeeV1EnvironmentGroupAttachment::class);
83 }
84 /**
85 * Lists all attachments of an environment group.
86 * (attachments.listOrganizationsEnvgroupsAttachments)
87 *
88 * @param string $parent Required. Name of the environment group in the
89 * following format: `organizations/{org}/envgroups/{envgroup}`.
90 * @param array $optParams Optional parameters.
91 *
92 * @opt_param int pageSize Maximum number of environment group attachments to
93 * return. The page size defaults to 25.
94 * @opt_param string pageToken Page token, returned by a previous
95 * ListEnvironmentGroupAttachments call, that you can use to retrieve the next
96 * page.
97 * @return GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse
98 * @throws \Google\Service\Exception
99 */
100 public function listOrganizationsEnvgroupsAttachments($parent, $optParams = [])
101 {
102 $params = ['parent' => $parent];
103 $params = array_merge($params, $optParams);
104 return $this->call('list', [$params], GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse::class);
105 }
106}
107
108// Adding a class alias for backwards compatibility with the previous class name.
109class_alias(OrganizationsEnvgroupsAttachments::class, 'Google_Service_Apigee_Resource_OrganizationsEnvgroupsAttachments');
Note: See TracBrowser for help on using the repository browser.