source: vendor/google/apiclient-services/src/SecurityCommandCenter/Resource/OrganizationsLocationsMuteConfigs.php

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

Upload project files

  • Property mode set to 100644
File size: 4.2 KB
RevLine 
[e3d4e0a]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\SecurityCommandCenter\Resource;
19
20use Google\Service\SecurityCommandCenter\GoogleCloudSecuritycenterV1MuteConfig;
21use Google\Service\SecurityCommandCenter\SecuritycenterEmpty;
22
23/**
24 * The "muteConfigs" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $securitycenterService = new Google\Service\SecurityCommandCenter(...);
28 * $muteConfigs = $securitycenterService->organizations_locations_muteConfigs;
29 * </code>
30 */
31class OrganizationsLocationsMuteConfigs extends \Google\Service\Resource
32{
33 /**
34 * Deletes an existing mute config. (muteConfigs.delete)
35 *
36 * @param string $name Required. Name of the mute config to delete. Its format
37 * is `organizations/{organization}/muteConfigs/{config_id}`,
38 * `folders/{folder}/muteConfigs/{config_id}`,
39 * `projects/{project}/muteConfigs/{config_id}`,
40 * `organizations/{organization}/locations/global/muteConfigs/{config_id}`,
41 * `folders/{folder}/locations/global/muteConfigs/{config_id}`, or
42 * `projects/{project}/locations/global/muteConfigs/{config_id}`.
43 * @param array $optParams Optional parameters.
44 * @return SecuritycenterEmpty
45 * @throws \Google\Service\Exception
46 */
47 public function delete($name, $optParams = [])
48 {
49 $params = ['name' => $name];
50 $params = array_merge($params, $optParams);
51 return $this->call('delete', [$params], SecuritycenterEmpty::class);
52 }
53 /**
54 * Gets a mute config. (muteConfigs.get)
55 *
56 * @param string $name Required. Name of the mute config to retrieve. Its format
57 * is `organizations/{organization}/muteConfigs/{config_id}`,
58 * `folders/{folder}/muteConfigs/{config_id}`,
59 * `projects/{project}/muteConfigs/{config_id}`,
60 * `organizations/{organization}/locations/global/muteConfigs/{config_id}`,
61 * `folders/{folder}/locations/global/muteConfigs/{config_id}`, or
62 * `projects/{project}/locations/global/muteConfigs/{config_id}`.
63 * @param array $optParams Optional parameters.
64 * @return GoogleCloudSecuritycenterV1MuteConfig
65 * @throws \Google\Service\Exception
66 */
67 public function get($name, $optParams = [])
68 {
69 $params = ['name' => $name];
70 $params = array_merge($params, $optParams);
71 return $this->call('get', [$params], GoogleCloudSecuritycenterV1MuteConfig::class);
72 }
73 /**
74 * Updates a mute config. (muteConfigs.patch)
75 *
76 * @param string $name This field will be ignored if provided on config
77 * creation. Format `organizations/{organization}/muteConfigs/{mute_config}`
78 * `folders/{folder}/muteConfigs/{mute_config}`
79 * `projects/{project}/muteConfigs/{mute_config}`
80 * `organizations/{organization}/locations/global/muteConfigs/{mute_config}`
81 * `folders/{folder}/locations/global/muteConfigs/{mute_config}`
82 * `projects/{project}/locations/global/muteConfigs/{mute_config}`
83 * @param GoogleCloudSecuritycenterV1MuteConfig $postBody
84 * @param array $optParams Optional parameters.
85 *
86 * @opt_param string updateMask The list of fields to be updated. If empty all
87 * mutable fields will be updated.
88 * @return GoogleCloudSecuritycenterV1MuteConfig
89 * @throws \Google\Service\Exception
90 */
91 public function patch($name, GoogleCloudSecuritycenterV1MuteConfig $postBody, $optParams = [])
92 {
93 $params = ['name' => $name, 'postBody' => $postBody];
94 $params = array_merge($params, $optParams);
95 return $this->call('patch', [$params], GoogleCloudSecuritycenterV1MuteConfig::class);
96 }
97}
98
99// Adding a class alias for backwards compatibility with the previous class name.
100class_alias(OrganizationsLocationsMuteConfigs::class, 'Google_Service_SecurityCommandCenter_Resource_OrganizationsLocationsMuteConfigs');
Note: See TracBrowser for help on using the repository browser.