source: vendor/google/apiclient-services/src/Apigee/Resource/OrganizationsAppgroups.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 6.1 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\GoogleCloudApigeeV1AppGroup;
21use Google\Service\Apigee\GoogleCloudApigeeV1ListAppGroupsResponse;
22
23/**
24 * The "appgroups" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $apigeeService = new Google\Service\Apigee(...);
28 * $appgroups = $apigeeService->organizations_appgroups;
29 * </code>
30 */
31class OrganizationsAppgroups extends \Google\Service\Resource
32{
33 /**
34 * Creates an AppGroup. Once created, user can register apps under the AppGroup
35 * to obtain secret key and password. At creation time, the AppGroup's state is
36 * set as `active`. (appgroups.create)
37 *
38 * @param string $parent Required. Name of the Apigee organization in which the
39 * AppGroup is created. Use the following structure in your request:
40 * `organizations/{org}`.
41 * @param GoogleCloudApigeeV1AppGroup $postBody
42 * @param array $optParams Optional parameters.
43 * @return GoogleCloudApigeeV1AppGroup
44 * @throws \Google\Service\Exception
45 */
46 public function create($parent, GoogleCloudApigeeV1AppGroup $postBody, $optParams = [])
47 {
48 $params = ['parent' => $parent, 'postBody' => $postBody];
49 $params = array_merge($params, $optParams);
50 return $this->call('create', [$params], GoogleCloudApigeeV1AppGroup::class);
51 }
52 /**
53 * Deletes an AppGroup. All app and API keys associations with the AppGroup are
54 * also removed. **Warning**: This API will permanently delete the AppGroup and
55 * related artifacts. **Note**: The delete operation is asynchronous. The
56 * AppGroup app is deleted immediately, but its associated resources, such as
57 * apps and API keys, may take anywhere from a few seconds to a few minutes to
58 * be deleted. (appgroups.delete)
59 *
60 * @param string $name Required. Name of the AppGroup. Use the following
61 * structure in your request: `organizations/{org}/appgroups/{app_group_name}`
62 * @param array $optParams Optional parameters.
63 * @return GoogleCloudApigeeV1AppGroup
64 * @throws \Google\Service\Exception
65 */
66 public function delete($name, $optParams = [])
67 {
68 $params = ['name' => $name];
69 $params = array_merge($params, $optParams);
70 return $this->call('delete', [$params], GoogleCloudApigeeV1AppGroup::class);
71 }
72 /**
73 * Returns the AppGroup details for the provided AppGroup name in the request
74 * URI. (appgroups.get)
75 *
76 * @param string $name Required. Name of the AppGroup. Use the following
77 * structure in your request: `organizations/{org}/appgroups/{app_group_name}`
78 * @param array $optParams Optional parameters.
79 * @return GoogleCloudApigeeV1AppGroup
80 * @throws \Google\Service\Exception
81 */
82 public function get($name, $optParams = [])
83 {
84 $params = ['name' => $name];
85 $params = array_merge($params, $optParams);
86 return $this->call('get', [$params], GoogleCloudApigeeV1AppGroup::class);
87 }
88 /**
89 * Lists all AppGroups in an organization. A maximum of 1000 AppGroups are
90 * returned in the response if PageSize is not specified, or if the PageSize is
91 * greater than 1000. (appgroups.listOrganizationsAppgroups)
92 *
93 * @param string $parent Required. Name of the Apigee organization. Use the
94 * following structure in your request: `organizations/{org}`.
95 * @param array $optParams Optional parameters.
96 *
97 * @opt_param string filter The filter expression to be used to get the list of
98 * AppGroups, where filtering can be done on status, channelId or channelUri of
99 * the app group. Examples: filter=status=active", filter=channelId=,
100 * filter=channelUri=
101 * @opt_param int pageSize Count of AppGroups a single page can have in the
102 * response. If unspecified, at most 1000 AppGroups will be returned. The
103 * maximum value is 1000; values above 1000 will be coerced to 1000.
104 * @opt_param string pageToken The starting index record for listing the
105 * AppGroups.
106 * @return GoogleCloudApigeeV1ListAppGroupsResponse
107 * @throws \Google\Service\Exception
108 */
109 public function listOrganizationsAppgroups($parent, $optParams = [])
110 {
111 $params = ['parent' => $parent];
112 $params = array_merge($params, $optParams);
113 return $this->call('list', [$params], GoogleCloudApigeeV1ListAppGroupsResponse::class);
114 }
115 /**
116 * Updates an AppGroup. This API replaces the existing AppGroup details with
117 * those specified in the request. Include or exclude any existing details that
118 * you want to retain or delete, respectively. Note that the state of the
119 * AppGroup should be updated using `action`, and not via AppGroup.
120 * (appgroups.update)
121 *
122 * @param string $name Required. Name of the AppGroup. Use the following
123 * structure in your request: `organizations/{org}/appgroups/{app_group_name}`
124 * @param GoogleCloudApigeeV1AppGroup $postBody
125 * @param array $optParams Optional parameters.
126 *
127 * @opt_param string action Activate or de-activate the AppGroup by setting the
128 * action as `active` or `inactive`. The `Content-Type` header must be set to
129 * `application/octet-stream`, with empty body.
130 * @return GoogleCloudApigeeV1AppGroup
131 * @throws \Google\Service\Exception
132 */
133 public function update($name, GoogleCloudApigeeV1AppGroup $postBody, $optParams = [])
134 {
135 $params = ['name' => $name, 'postBody' => $postBody];
136 $params = array_merge($params, $optParams);
137 return $this->call('update', [$params], GoogleCloudApigeeV1AppGroup::class);
138 }
139}
140
141// Adding a class alias for backwards compatibility with the previous class name.
142class_alias(OrganizationsAppgroups::class, 'Google_Service_Apigee_Resource_OrganizationsAppgroups');
Note: See TracBrowser for help on using the repository browser.