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

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

Upload project files

  • Property mode set to 100644
File size: 4.6 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\GoogleCloudApigeeV1ApiCategory;
21use Google\Service\Apigee\GoogleCloudApigeeV1ApiCategoryResponse;
22use Google\Service\Apigee\GoogleCloudApigeeV1DeleteResponse;
23use Google\Service\Apigee\GoogleCloudApigeeV1ListApiCategoriesResponse;
24
25/**
26 * The "apicategories" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $apigeeService = new Google\Service\Apigee(...);
30 * $apicategories = $apigeeService->organizations_sites_apicategories;
31 * </code>
32 */
33class OrganizationsSitesApicategories extends \Google\Service\Resource
34{
35 /**
36 * Creates a new API category. (apicategories.create)
37 *
38 * @param string $parent Required. Name of the portal. Use the following
39 * structure in your request: `organizations/{org}/sites/{site}`
40 * @param GoogleCloudApigeeV1ApiCategory $postBody
41 * @param array $optParams Optional parameters.
42 * @return GoogleCloudApigeeV1ApiCategoryResponse
43 * @throws \Google\Service\Exception
44 */
45 public function create($parent, GoogleCloudApigeeV1ApiCategory $postBody, $optParams = [])
46 {
47 $params = ['parent' => $parent, 'postBody' => $postBody];
48 $params = array_merge($params, $optParams);
49 return $this->call('create', [$params], GoogleCloudApigeeV1ApiCategoryResponse::class);
50 }
51 /**
52 * Deletes an API category. (apicategories.delete)
53 *
54 * @param string $name Required. Name of the category. Use the following
55 * structure in your request:
56 * `organizations/{org}/sites/{site}/apicategories/{apicategory}`
57 * @param array $optParams Optional parameters.
58 * @return GoogleCloudApigeeV1DeleteResponse
59 * @throws \Google\Service\Exception
60 */
61 public function delete($name, $optParams = [])
62 {
63 $params = ['name' => $name];
64 $params = array_merge($params, $optParams);
65 return $this->call('delete', [$params], GoogleCloudApigeeV1DeleteResponse::class);
66 }
67 /**
68 * Gets an API category. (apicategories.get)
69 *
70 * @param string $name Required. Name of the category. Use the following
71 * structure in your request:
72 * `organizations/{org}/sites/{site}/apicategories/{apicategory}`
73 * @param array $optParams Optional parameters.
74 * @return GoogleCloudApigeeV1ApiCategoryResponse
75 * @throws \Google\Service\Exception
76 */
77 public function get($name, $optParams = [])
78 {
79 $params = ['name' => $name];
80 $params = array_merge($params, $optParams);
81 return $this->call('get', [$params], GoogleCloudApigeeV1ApiCategoryResponse::class);
82 }
83 /**
84 * Returns the API categories associated with a portal.
85 * (apicategories.listOrganizationsSitesApicategories)
86 *
87 * @param string $parent Required. Name of the portal. Use the following
88 * structure in your request: `organizations/{org}/sites/{site}`
89 * @param array $optParams Optional parameters.
90 * @return GoogleCloudApigeeV1ListApiCategoriesResponse
91 * @throws \Google\Service\Exception
92 */
93 public function listOrganizationsSitesApicategories($parent, $optParams = [])
94 {
95 $params = ['parent' => $parent];
96 $params = array_merge($params, $optParams);
97 return $this->call('list', [$params], GoogleCloudApigeeV1ListApiCategoriesResponse::class);
98 }
99 /**
100 * Updates an API category. (apicategories.patch)
101 *
102 * @param string $name Required. Name of the category. Use the following
103 * structure in your request:
104 * `organizations/{org}/sites/{site}/apicategories/{apicategory}`
105 * @param GoogleCloudApigeeV1ApiCategory $postBody
106 * @param array $optParams Optional parameters.
107 * @return GoogleCloudApigeeV1ApiCategoryResponse
108 * @throws \Google\Service\Exception
109 */
110 public function patch($name, GoogleCloudApigeeV1ApiCategory $postBody, $optParams = [])
111 {
112 $params = ['name' => $name, 'postBody' => $postBody];
113 $params = array_merge($params, $optParams);
114 return $this->call('patch', [$params], GoogleCloudApigeeV1ApiCategoryResponse::class);
115 }
116}
117
118// Adding a class alias for backwards compatibility with the previous class name.
119class_alias(OrganizationsSitesApicategories::class, 'Google_Service_Apigee_Resource_OrganizationsSitesApicategories');
Note: See TracBrowser for help on using the repository browser.