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

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

Upload project files

  • Property mode set to 100644
File size: 3.9 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\GoogleCloudApigeeV1Reference;
21
22/**
23 * The "references" collection of methods.
24 * Typical usage is:
25 * <code>
26 * $apigeeService = new Google\Service\Apigee(...);
27 * $references = $apigeeService->organizations_environments_references;
28 * </code>
29 */
30class OrganizationsEnvironmentsReferences extends \Google\Service\Resource
31{
32 /**
33 * Creates a Reference in the specified environment. (references.create)
34 *
35 * @param string $parent Required. The parent environment name under which the
36 * Reference will be created. Must be of the form
37 * `organizations/{org}/environments/{env}`.
38 * @param GoogleCloudApigeeV1Reference $postBody
39 * @param array $optParams Optional parameters.
40 * @return GoogleCloudApigeeV1Reference
41 * @throws \Google\Service\Exception
42 */
43 public function create($parent, GoogleCloudApigeeV1Reference $postBody, $optParams = [])
44 {
45 $params = ['parent' => $parent, 'postBody' => $postBody];
46 $params = array_merge($params, $optParams);
47 return $this->call('create', [$params], GoogleCloudApigeeV1Reference::class);
48 }
49 /**
50 * Deletes a Reference from an environment. Returns the deleted Reference
51 * resource. (references.delete)
52 *
53 * @param string $name Required. The name of the Reference to delete. Must be of
54 * the form `organizations/{org}/environments/{env}/references/{ref}`.
55 * @param array $optParams Optional parameters.
56 * @return GoogleCloudApigeeV1Reference
57 * @throws \Google\Service\Exception
58 */
59 public function delete($name, $optParams = [])
60 {
61 $params = ['name' => $name];
62 $params = array_merge($params, $optParams);
63 return $this->call('delete', [$params], GoogleCloudApigeeV1Reference::class);
64 }
65 /**
66 * Gets a Reference resource. (references.get)
67 *
68 * @param string $name Required. The name of the Reference to get. Must be of
69 * the form `organizations/{org}/environments/{env}/references/{ref}`.
70 * @param array $optParams Optional parameters.
71 * @return GoogleCloudApigeeV1Reference
72 * @throws \Google\Service\Exception
73 */
74 public function get($name, $optParams = [])
75 {
76 $params = ['name' => $name];
77 $params = array_merge($params, $optParams);
78 return $this->call('get', [$params], GoogleCloudApigeeV1Reference::class);
79 }
80 /**
81 * Updates an existing Reference. Note that this operation has PUT semantics; it
82 * will replace the entirety of the existing Reference with the resource in the
83 * request body. (references.update)
84 *
85 * @param string $name Required. The name of the Reference to update. Must be of
86 * the form `organizations/{org}/environments/{env}/references/{ref}`.
87 * @param GoogleCloudApigeeV1Reference $postBody
88 * @param array $optParams Optional parameters.
89 * @return GoogleCloudApigeeV1Reference
90 * @throws \Google\Service\Exception
91 */
92 public function update($name, GoogleCloudApigeeV1Reference $postBody, $optParams = [])
93 {
94 $params = ['name' => $name, 'postBody' => $postBody];
95 $params = array_merge($params, $optParams);
96 return $this->call('update', [$params], GoogleCloudApigeeV1Reference::class);
97 }
98}
99
100// Adding a class alias for backwards compatibility with the previous class name.
101class_alias(OrganizationsEnvironmentsReferences::class, 'Google_Service_Apigee_Resource_OrganizationsEnvironmentsReferences');
Note: See TracBrowser for help on using the repository browser.