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

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

Upload project files

  • Property mode set to 100644
File size: 5.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\GoogleCloudApigeeV1ActivateNatAddressRequest;
21use Google\Service\Apigee\GoogleCloudApigeeV1ListNatAddressesResponse;
22use Google\Service\Apigee\GoogleCloudApigeeV1NatAddress;
23use Google\Service\Apigee\GoogleLongrunningOperation;
24
25/**
26 * The "natAddresses" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $apigeeService = new Google\Service\Apigee(...);
30 * $natAddresses = $apigeeService->organizations_instances_natAddresses;
31 * </code>
32 */
33class OrganizationsInstancesNatAddresses extends \Google\Service\Resource
34{
35 /**
36 * Activates the NAT address. The Apigee instance can now use this for Internet
37 * egress traffic. **Note:** Not supported for Apigee hybrid.
38 * (natAddresses.activate)
39 *
40 * @param string $name Required. Name of the nat address. Use the following
41 * structure in your request:
42 * `organizations/{org}/instances/{instances}/natAddresses/{nataddress}``
43 * @param GoogleCloudApigeeV1ActivateNatAddressRequest $postBody
44 * @param array $optParams Optional parameters.
45 * @return GoogleLongrunningOperation
46 * @throws \Google\Service\Exception
47 */
48 public function activate($name, GoogleCloudApigeeV1ActivateNatAddressRequest $postBody, $optParams = [])
49 {
50 $params = ['name' => $name, 'postBody' => $postBody];
51 $params = array_merge($params, $optParams);
52 return $this->call('activate', [$params], GoogleLongrunningOperation::class);
53 }
54 /**
55 * Creates a NAT address. The address is created in the RESERVED state and a
56 * static external IP address will be provisioned. At this time, the instance
57 * will not use this IP address for Internet egress traffic. The address can be
58 * activated for use once any required firewall IP whitelisting has been
59 * completed. **Note:** Not supported for Apigee hybrid. (natAddresses.create)
60 *
61 * @param string $parent Required. Name of the instance. Use the following
62 * structure in your request: `organizations/{org}/instances/{instance}`
63 * @param GoogleCloudApigeeV1NatAddress $postBody
64 * @param array $optParams Optional parameters.
65 * @return GoogleLongrunningOperation
66 * @throws \Google\Service\Exception
67 */
68 public function create($parent, GoogleCloudApigeeV1NatAddress $postBody, $optParams = [])
69 {
70 $params = ['parent' => $parent, 'postBody' => $postBody];
71 $params = array_merge($params, $optParams);
72 return $this->call('create', [$params], GoogleLongrunningOperation::class);
73 }
74 /**
75 * Deletes the NAT address. Connections that are actively using the address are
76 * drained before it is removed. **Note:** Not supported for Apigee hybrid.
77 * (natAddresses.delete)
78 *
79 * @param string $name Required. Name of the nat address. Use the following
80 * structure in your request:
81 * `organizations/{org}/instances/{instances}/natAddresses/{nataddress}``
82 * @param array $optParams Optional parameters.
83 * @return GoogleLongrunningOperation
84 * @throws \Google\Service\Exception
85 */
86 public function delete($name, $optParams = [])
87 {
88 $params = ['name' => $name];
89 $params = array_merge($params, $optParams);
90 return $this->call('delete', [$params], GoogleLongrunningOperation::class);
91 }
92 /**
93 * Gets the details of a NAT address. **Note:** Not supported for Apigee hybrid.
94 * (natAddresses.get)
95 *
96 * @param string $name Required. Name of the nat address. Use the following
97 * structure in your request:
98 * `organizations/{org}/instances/{instances}/natAddresses/{nataddress}`
99 * @param array $optParams Optional parameters.
100 * @return GoogleCloudApigeeV1NatAddress
101 * @throws \Google\Service\Exception
102 */
103 public function get($name, $optParams = [])
104 {
105 $params = ['name' => $name];
106 $params = array_merge($params, $optParams);
107 return $this->call('get', [$params], GoogleCloudApigeeV1NatAddress::class);
108 }
109 /**
110 * Lists the NAT addresses for an Apigee instance. **Note:** Not supported for
111 * Apigee hybrid. (natAddresses.listOrganizationsInstancesNatAddresses)
112 *
113 * @param string $parent Required. Name of the instance. Use the following
114 * structure in your request: `organizations/{org}/instances/{instance}`
115 * @param array $optParams Optional parameters.
116 *
117 * @opt_param int pageSize Maximum number of natAddresses to return. Defaults to
118 * 25.
119 * @opt_param string pageToken Page token, returned from a previous
120 * ListNatAddresses call, that you can use to retrieve the next page of content.
121 * @return GoogleCloudApigeeV1ListNatAddressesResponse
122 * @throws \Google\Service\Exception
123 */
124 public function listOrganizationsInstancesNatAddresses($parent, $optParams = [])
125 {
126 $params = ['parent' => $parent];
127 $params = array_merge($params, $optParams);
128 return $this->call('list', [$params], GoogleCloudApigeeV1ListNatAddressesResponse::class);
129 }
130}
131
132// Adding a class alias for backwards compatibility with the previous class name.
133class_alias(OrganizationsInstancesNatAddresses::class, 'Google_Service_Apigee_Resource_OrganizationsInstancesNatAddresses');
Note: See TracBrowser for help on using the repository browser.