source: vendor/google/apiclient-services/src/NetworkServices/Resource/ProjectsLocationsServiceBindings.php

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

Upload project files

  • Property mode set to 100644
File size: 4.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\NetworkServices\Resource;
19
20use Google\Service\NetworkServices\ListServiceBindingsResponse;
21use Google\Service\NetworkServices\Operation;
22use Google\Service\NetworkServices\ServiceBinding;
23
24/**
25 * The "serviceBindings" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $networkservicesService = new Google\Service\NetworkServices(...);
29 * $serviceBindings = $networkservicesService->projects_locations_serviceBindings;
30 * </code>
31 */
32class ProjectsLocationsServiceBindings extends \Google\Service\Resource
33{
34 /**
35 * Creates a new ServiceBinding in a given project and location.
36 * (serviceBindings.create)
37 *
38 * @param string $parent Required. The parent resource of the ServiceBinding.
39 * Must be in the format `projects/locations/global`.
40 * @param ServiceBinding $postBody
41 * @param array $optParams Optional parameters.
42 *
43 * @opt_param string serviceBindingId Required. Short name of the ServiceBinding
44 * resource to be created.
45 * @return Operation
46 * @throws \Google\Service\Exception
47 */
48 public function create($parent, ServiceBinding $postBody, $optParams = [])
49 {
50 $params = ['parent' => $parent, 'postBody' => $postBody];
51 $params = array_merge($params, $optParams);
52 return $this->call('create', [$params], Operation::class);
53 }
54 /**
55 * Deletes a single ServiceBinding. (serviceBindings.delete)
56 *
57 * @param string $name Required. A name of the ServiceBinding to delete. Must be
58 * in the format `projects/locations/global/serviceBindings`.
59 * @param array $optParams Optional parameters.
60 * @return Operation
61 * @throws \Google\Service\Exception
62 */
63 public function delete($name, $optParams = [])
64 {
65 $params = ['name' => $name];
66 $params = array_merge($params, $optParams);
67 return $this->call('delete', [$params], Operation::class);
68 }
69 /**
70 * Gets details of a single ServiceBinding. (serviceBindings.get)
71 *
72 * @param string $name Required. A name of the ServiceBinding to get. Must be in
73 * the format `projects/locations/global/serviceBindings`.
74 * @param array $optParams Optional parameters.
75 * @return ServiceBinding
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], ServiceBinding::class);
83 }
84 /**
85 * Lists ServiceBinding in a given project and location.
86 * (serviceBindings.listProjectsLocationsServiceBindings)
87 *
88 * @param string $parent Required. The project and location from which the
89 * ServiceBindings should be listed, specified in the format
90 * `projects/locations/global`.
91 * @param array $optParams Optional parameters.
92 *
93 * @opt_param int pageSize Maximum number of ServiceBindings to return per call.
94 * @opt_param string pageToken The value returned by the last
95 * `ListServiceBindingsResponse` Indicates that this is a continuation of a
96 * prior `ListRouters` call, and that the system should return the next page of
97 * data.
98 * @return ListServiceBindingsResponse
99 * @throws \Google\Service\Exception
100 */
101 public function listProjectsLocationsServiceBindings($parent, $optParams = [])
102 {
103 $params = ['parent' => $parent];
104 $params = array_merge($params, $optParams);
105 return $this->call('list', [$params], ListServiceBindingsResponse::class);
106 }
107}
108
109// Adding a class alias for backwards compatibility with the previous class name.
110class_alias(ProjectsLocationsServiceBindings::class, 'Google_Service_NetworkServices_Resource_ProjectsLocationsServiceBindings');
Note: See TracBrowser for help on using the repository browser.