source: vendor/google/apiclient-services/src/SecurityCommandCenter/Resource/ProjectsMuteConfigs.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 6.4 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\SecurityCommandCenter\Resource;
19
20use Google\Service\SecurityCommandCenter\GoogleCloudSecuritycenterV1MuteConfig;
21use Google\Service\SecurityCommandCenter\ListMuteConfigsResponse;
22use Google\Service\SecurityCommandCenter\SecuritycenterEmpty;
23
24/**
25 * The "muteConfigs" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $securitycenterService = new Google\Service\SecurityCommandCenter(...);
29 * $muteConfigs = $securitycenterService->projects_muteConfigs;
30 * </code>
31 */
32class ProjectsMuteConfigs extends \Google\Service\Resource
33{
34 /**
35 * Creates a mute config. (muteConfigs.create)
36 *
37 * @param string $parent Required. Resource name of the new mute configs's
38 * parent. Its format is `organizations/[organization_id]`,
39 * `folders/[folder_id]`, or `projects/[project_id]`.
40 * @param GoogleCloudSecuritycenterV1MuteConfig $postBody
41 * @param array $optParams Optional parameters.
42 *
43 * @opt_param string muteConfigId Required. Unique identifier provided by the
44 * client within the parent scope. It must consist of only lowercase letters,
45 * numbers, and hyphens, must start with a letter, must end with either a letter
46 * or a number, and must be 63 characters or less.
47 * @return GoogleCloudSecuritycenterV1MuteConfig
48 * @throws \Google\Service\Exception
49 */
50 public function create($parent, GoogleCloudSecuritycenterV1MuteConfig $postBody, $optParams = [])
51 {
52 $params = ['parent' => $parent, 'postBody' => $postBody];
53 $params = array_merge($params, $optParams);
54 return $this->call('create', [$params], GoogleCloudSecuritycenterV1MuteConfig::class);
55 }
56 /**
57 * Deletes an existing mute config. (muteConfigs.delete)
58 *
59 * @param string $name Required. Name of the mute config to delete. Its format
60 * is `organizations/{organization}/muteConfigs/{config_id}`,
61 * `folders/{folder}/muteConfigs/{config_id}`,
62 * `projects/{project}/muteConfigs/{config_id}`,
63 * `organizations/{organization}/locations/global/muteConfigs/{config_id}`,
64 * `folders/{folder}/locations/global/muteConfigs/{config_id}`, or
65 * `projects/{project}/locations/global/muteConfigs/{config_id}`.
66 * @param array $optParams Optional parameters.
67 * @return SecuritycenterEmpty
68 * @throws \Google\Service\Exception
69 */
70 public function delete($name, $optParams = [])
71 {
72 $params = ['name' => $name];
73 $params = array_merge($params, $optParams);
74 return $this->call('delete', [$params], SecuritycenterEmpty::class);
75 }
76 /**
77 * Gets a mute config. (muteConfigs.get)
78 *
79 * @param string $name Required. Name of the mute config to retrieve. Its format
80 * is `organizations/{organization}/muteConfigs/{config_id}`,
81 * `folders/{folder}/muteConfigs/{config_id}`,
82 * `projects/{project}/muteConfigs/{config_id}`,
83 * `organizations/{organization}/locations/global/muteConfigs/{config_id}`,
84 * `folders/{folder}/locations/global/muteConfigs/{config_id}`, or
85 * `projects/{project}/locations/global/muteConfigs/{config_id}`.
86 * @param array $optParams Optional parameters.
87 * @return GoogleCloudSecuritycenterV1MuteConfig
88 * @throws \Google\Service\Exception
89 */
90 public function get($name, $optParams = [])
91 {
92 $params = ['name' => $name];
93 $params = array_merge($params, $optParams);
94 return $this->call('get', [$params], GoogleCloudSecuritycenterV1MuteConfig::class);
95 }
96 /**
97 * Lists mute configs. (muteConfigs.listProjectsMuteConfigs)
98 *
99 * @param string $parent Required. The parent, which owns the collection of mute
100 * configs. Its format is `organizations/[organization_id]`,
101 * `folders/[folder_id]`, `projects/[project_id]`.
102 * @param array $optParams Optional parameters.
103 *
104 * @opt_param int pageSize The maximum number of configs to return. The service
105 * may return fewer than this value. If unspecified, at most 10 configs will be
106 * returned. The maximum value is 1000; values above 1000 will be coerced to
107 * 1000.
108 * @opt_param string pageToken A page token, received from a previous
109 * `ListMuteConfigs` call. Provide this to retrieve the subsequent page. When
110 * paginating, all other parameters provided to `ListMuteConfigs` must match the
111 * call that provided the page token.
112 * @return ListMuteConfigsResponse
113 * @throws \Google\Service\Exception
114 */
115 public function listProjectsMuteConfigs($parent, $optParams = [])
116 {
117 $params = ['parent' => $parent];
118 $params = array_merge($params, $optParams);
119 return $this->call('list', [$params], ListMuteConfigsResponse::class);
120 }
121 /**
122 * Updates a mute config. (muteConfigs.patch)
123 *
124 * @param string $name This field will be ignored if provided on config
125 * creation. Format `organizations/{organization}/muteConfigs/{mute_config}`
126 * `folders/{folder}/muteConfigs/{mute_config}`
127 * `projects/{project}/muteConfigs/{mute_config}`
128 * `organizations/{organization}/locations/global/muteConfigs/{mute_config}`
129 * `folders/{folder}/locations/global/muteConfigs/{mute_config}`
130 * `projects/{project}/locations/global/muteConfigs/{mute_config}`
131 * @param GoogleCloudSecuritycenterV1MuteConfig $postBody
132 * @param array $optParams Optional parameters.
133 *
134 * @opt_param string updateMask The list of fields to be updated. If empty all
135 * mutable fields will be updated.
136 * @return GoogleCloudSecuritycenterV1MuteConfig
137 * @throws \Google\Service\Exception
138 */
139 public function patch($name, GoogleCloudSecuritycenterV1MuteConfig $postBody, $optParams = [])
140 {
141 $params = ['name' => $name, 'postBody' => $postBody];
142 $params = array_merge($params, $optParams);
143 return $this->call('patch', [$params], GoogleCloudSecuritycenterV1MuteConfig::class);
144 }
145}
146
147// Adding a class alias for backwards compatibility with the previous class name.
148class_alias(ProjectsMuteConfigs::class, 'Google_Service_SecurityCommandCenter_Resource_ProjectsMuteConfigs');
Note: See TracBrowser for help on using the repository browser.