source: vendor/google/apiclient-services/src/SecurityCommandCenter/Resource/OrganizationsResourceValueConfigs.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: 5.7 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\BatchCreateResourceValueConfigsRequest;
21use Google\Service\SecurityCommandCenter\BatchCreateResourceValueConfigsResponse;
22use Google\Service\SecurityCommandCenter\GoogleCloudSecuritycenterV1ResourceValueConfig;
23use Google\Service\SecurityCommandCenter\ListResourceValueConfigsResponse;
24use Google\Service\SecurityCommandCenter\SecuritycenterEmpty;
25
26/**
27 * The "resourceValueConfigs" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $securitycenterService = new Google\Service\SecurityCommandCenter(...);
31 * $resourceValueConfigs = $securitycenterService->organizations_resourceValueConfigs;
32 * </code>
33 */
34class OrganizationsResourceValueConfigs extends \Google\Service\Resource
35{
36 /**
37 * Creates a ResourceValueConfig for an organization. Maps user's tags to
38 * difference resource values for use by the attack path simulation.
39 * (resourceValueConfigs.batchCreate)
40 *
41 * @param string $parent Required. Resource name of the new
42 * ResourceValueConfig's parent. The parent field in the
43 * CreateResourceValueConfigRequest messages must either be empty or match this
44 * field.
45 * @param BatchCreateResourceValueConfigsRequest $postBody
46 * @param array $optParams Optional parameters.
47 * @return BatchCreateResourceValueConfigsResponse
48 * @throws \Google\Service\Exception
49 */
50 public function batchCreate($parent, BatchCreateResourceValueConfigsRequest $postBody, $optParams = [])
51 {
52 $params = ['parent' => $parent, 'postBody' => $postBody];
53 $params = array_merge($params, $optParams);
54 return $this->call('batchCreate', [$params], BatchCreateResourceValueConfigsResponse::class);
55 }
56 /**
57 * Deletes a ResourceValueConfig. (resourceValueConfigs.delete)
58 *
59 * @param string $name Required. Name of the ResourceValueConfig to delete
60 * @param array $optParams Optional parameters.
61 * @return SecuritycenterEmpty
62 * @throws \Google\Service\Exception
63 */
64 public function delete($name, $optParams = [])
65 {
66 $params = ['name' => $name];
67 $params = array_merge($params, $optParams);
68 return $this->call('delete', [$params], SecuritycenterEmpty::class);
69 }
70 /**
71 * Gets a ResourceValueConfig. (resourceValueConfigs.get)
72 *
73 * @param string $name Required. Name of the resource value config to retrieve.
74 * Its format is
75 * `organizations/{organization}/resourceValueConfigs/{config_id}`.
76 * @param array $optParams Optional parameters.
77 * @return GoogleCloudSecuritycenterV1ResourceValueConfig
78 * @throws \Google\Service\Exception
79 */
80 public function get($name, $optParams = [])
81 {
82 $params = ['name' => $name];
83 $params = array_merge($params, $optParams);
84 return $this->call('get', [$params], GoogleCloudSecuritycenterV1ResourceValueConfig::class);
85 }
86 /**
87 * Lists all ResourceValueConfigs.
88 * (resourceValueConfigs.listOrganizationsResourceValueConfigs)
89 *
90 * @param string $parent Required. The parent, which owns the collection of
91 * resource value configs. Its format is `organizations/[organization_id]`
92 * @param array $optParams Optional parameters.
93 *
94 * @opt_param int pageSize The number of results to return. The service may
95 * return fewer than this value. If unspecified, at most 10 configs will be
96 * returned. The maximum value is 1000; values above 1000 will be coerced to
97 * 1000.
98 * @opt_param string pageToken A page token, received from a previous
99 * `ListResourceValueConfigs` call. Provide this to retrieve the subsequent
100 * page. When paginating, all other parameters provided to
101 * `ListResourceValueConfigs` must match the call that provided the page token.
102 * page_size can be specified, and the new page_size will be used.
103 * @return ListResourceValueConfigsResponse
104 * @throws \Google\Service\Exception
105 */
106 public function listOrganizationsResourceValueConfigs($parent, $optParams = [])
107 {
108 $params = ['parent' => $parent];
109 $params = array_merge($params, $optParams);
110 return $this->call('list', [$params], ListResourceValueConfigsResponse::class);
111 }
112 /**
113 * Updates an existing ResourceValueConfigs with new rules.
114 * (resourceValueConfigs.patch)
115 *
116 * @param string $name Name for the resource value configuration
117 * @param GoogleCloudSecuritycenterV1ResourceValueConfig $postBody
118 * @param array $optParams Optional parameters.
119 *
120 * @opt_param string updateMask The list of fields to be updated. If empty all
121 * mutable fields will be updated.
122 * @return GoogleCloudSecuritycenterV1ResourceValueConfig
123 * @throws \Google\Service\Exception
124 */
125 public function patch($name, GoogleCloudSecuritycenterV1ResourceValueConfig $postBody, $optParams = [])
126 {
127 $params = ['name' => $name, 'postBody' => $postBody];
128 $params = array_merge($params, $optParams);
129 return $this->call('patch', [$params], GoogleCloudSecuritycenterV1ResourceValueConfig::class);
130 }
131}
132
133// Adding a class alias for backwards compatibility with the previous class name.
134class_alias(OrganizationsResourceValueConfigs::class, 'Google_Service_SecurityCommandCenter_Resource_OrganizationsResourceValueConfigs');
Note: See TracBrowser for help on using the repository browser.