source: vendor/google/apiclient-services/src/SecurityCommandCenter/Resource/ProjectsSecurityHealthAnalyticsSettingsEffectiveCustomModules.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: 3.8 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\GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule;
21use Google\Service\SecurityCommandCenter\ListEffectiveSecurityHealthAnalyticsCustomModulesResponse;
22
23/**
24 * The "effectiveCustomModules" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $securitycenterService = new Google\Service\SecurityCommandCenter(...);
28 * $effectiveCustomModules = $securitycenterService->projects_securityHealthAnalyticsSettings_effectiveCustomModules;
29 * </code>
30 */
31class ProjectsSecurityHealthAnalyticsSettingsEffectiveCustomModules extends \Google\Service\Resource
32{
33 /**
34 * Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.
35 * (effectiveCustomModules.get)
36 *
37 * @param string $name Required. Name of the effective custom module to get. Its
38 * format is `organizations/{organization}/securityHealthAnalyticsSettings/effec
39 * tiveCustomModules/{customModule}`, `folders/{folder}/securityHealthAnalyticsS
40 * ettings/effectiveCustomModules/{customModule}`, or `projects/{project}/securi
41 * tyHealthAnalyticsSettings/effectiveCustomModules/{customModule}`
42 * @param array $optParams Optional parameters.
43 * @return GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule
44 * @throws \Google\Service\Exception
45 */
46 public function get($name, $optParams = [])
47 {
48 $params = ['name' => $name];
49 $params = array_merge($params, $optParams);
50 return $this->call('get', [$params], GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule::class);
51 }
52 /**
53 * Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the
54 * given parent. This includes resident modules defined at the scope of the
55 * parent, and inherited modules, inherited from CRM ancestors. (effectiveCustom
56 * Modules.listProjectsSecurityHealthAnalyticsSettingsEffectiveCustomModules)
57 *
58 * @param string $parent Required. Name of parent to list effective custom
59 * modules. Its format is
60 * `organizations/{organization}/securityHealthAnalyticsSettings`,
61 * `folders/{folder}/securityHealthAnalyticsSettings`, or
62 * `projects/{project}/securityHealthAnalyticsSettings`
63 * @param array $optParams Optional parameters.
64 *
65 * @opt_param int pageSize The maximum number of results to return in a single
66 * response. Default is 10, minimum is 1, maximum is 1000.
67 * @opt_param string pageToken The value returned by the last call indicating a
68 * continuation
69 * @return ListEffectiveSecurityHealthAnalyticsCustomModulesResponse
70 * @throws \Google\Service\Exception
71 */
72 public function listProjectsSecurityHealthAnalyticsSettingsEffectiveCustomModules($parent, $optParams = [])
73 {
74 $params = ['parent' => $parent];
75 $params = array_merge($params, $optParams);
76 return $this->call('list', [$params], ListEffectiveSecurityHealthAnalyticsCustomModulesResponse::class);
77 }
78}
79
80// Adding a class alias for backwards compatibility with the previous class name.
81class_alias(ProjectsSecurityHealthAnalyticsSettingsEffectiveCustomModules::class, 'Google_Service_SecurityCommandCenter_Resource_ProjectsSecurityHealthAnalyticsSettingsEffectiveCustomModules');
Note: See TracBrowser for help on using the repository browser.