source: vendor/google/apiclient-services/src/ChromePolicy/Resource/CustomersPoliciesNetworks.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 4.8 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\ChromePolicy\Resource;
19
20use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1DefineCertificateRequest;
21use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1DefineCertificateResponse;
22use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1DefineNetworkRequest;
23use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1DefineNetworkResponse;
24use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1RemoveCertificateRequest;
25use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1RemoveCertificateResponse;
26use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1RemoveNetworkRequest;
27use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1RemoveNetworkResponse;
28
29/**
30 * The "networks" collection of methods.
31 * Typical usage is:
32 * <code>
33 * $chromepolicyService = new Google\Service\ChromePolicy(...);
34 * $networks = $chromepolicyService->customers_policies_networks;
35 * </code>
36 */
37class CustomersPoliciesNetworks extends \Google\Service\Resource
38{
39 /**
40 * Creates a certificate at a specified OU for a customer.
41 * (networks.defineCertificate)
42 *
43 * @param string $customer Required. The customer for which the certificate will
44 * apply.
45 * @param GoogleChromePolicyVersionsV1DefineCertificateRequest $postBody
46 * @param array $optParams Optional parameters.
47 * @return GoogleChromePolicyVersionsV1DefineCertificateResponse
48 * @throws \Google\Service\Exception
49 */
50 public function defineCertificate($customer, GoogleChromePolicyVersionsV1DefineCertificateRequest $postBody, $optParams = [])
51 {
52 $params = ['customer' => $customer, 'postBody' => $postBody];
53 $params = array_merge($params, $optParams);
54 return $this->call('defineCertificate', [$params], GoogleChromePolicyVersionsV1DefineCertificateResponse::class);
55 }
56 /**
57 * Define a new network. (networks.defineNetwork)
58 *
59 * @param string $customer Required. The customer who will own this new network.
60 * @param GoogleChromePolicyVersionsV1DefineNetworkRequest $postBody
61 * @param array $optParams Optional parameters.
62 * @return GoogleChromePolicyVersionsV1DefineNetworkResponse
63 * @throws \Google\Service\Exception
64 */
65 public function defineNetwork($customer, GoogleChromePolicyVersionsV1DefineNetworkRequest $postBody, $optParams = [])
66 {
67 $params = ['customer' => $customer, 'postBody' => $postBody];
68 $params = array_merge($params, $optParams);
69 return $this->call('defineNetwork', [$params], GoogleChromePolicyVersionsV1DefineNetworkResponse::class);
70 }
71 /**
72 * Remove an existing certificate by guid. (networks.removeCertificate)
73 *
74 * @param string $customer Required. The customer whose certificate will be
75 * removed.
76 * @param GoogleChromePolicyVersionsV1RemoveCertificateRequest $postBody
77 * @param array $optParams Optional parameters.
78 * @return GoogleChromePolicyVersionsV1RemoveCertificateResponse
79 * @throws \Google\Service\Exception
80 */
81 public function removeCertificate($customer, GoogleChromePolicyVersionsV1RemoveCertificateRequest $postBody, $optParams = [])
82 {
83 $params = ['customer' => $customer, 'postBody' => $postBody];
84 $params = array_merge($params, $optParams);
85 return $this->call('removeCertificate', [$params], GoogleChromePolicyVersionsV1RemoveCertificateResponse::class);
86 }
87 /**
88 * Remove an existing network by guid. (networks.removeNetwork)
89 *
90 * @param string $customer Required. The customer whose network will be removed.
91 * @param GoogleChromePolicyVersionsV1RemoveNetworkRequest $postBody
92 * @param array $optParams Optional parameters.
93 * @return GoogleChromePolicyVersionsV1RemoveNetworkResponse
94 * @throws \Google\Service\Exception
95 */
96 public function removeNetwork($customer, GoogleChromePolicyVersionsV1RemoveNetworkRequest $postBody, $optParams = [])
97 {
98 $params = ['customer' => $customer, 'postBody' => $postBody];
99 $params = array_merge($params, $optParams);
100 return $this->call('removeNetwork', [$params], GoogleChromePolicyVersionsV1RemoveNetworkResponse::class);
101 }
102}
103
104// Adding a class alias for backwards compatibility with the previous class name.
105class_alias(CustomersPoliciesNetworks::class, 'Google_Service_ChromePolicy_Resource_CustomersPoliciesNetworks');
Note: See TracBrowser for help on using the repository browser.