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

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

Upload project files

  • Property mode set to 100644
File size: 3.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\SecurityCommandCenter\Resource;
19
20use Google\Service\SecurityCommandCenter\ListValuedResourcesResponse;
21use Google\Service\SecurityCommandCenter\ValuedResource;
22
23/**
24 * The "valuedResources" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $securitycenterService = new Google\Service\SecurityCommandCenter(...);
28 * $valuedResources = $securitycenterService->organizations_simulations_valuedResources;
29 * </code>
30 */
31class OrganizationsSimulationsValuedResources extends \Google\Service\Resource
32{
33 /**
34 * Get the valued resource by name (valuedResources.get)
35 *
36 * @param string $name Required. The name of this valued resource Valid format:
37 * `organizations/{organization}/simulations/{simulation}/valuedResources/{value
38 * d_resource}`
39 * @param array $optParams Optional parameters.
40 * @return ValuedResource
41 * @throws \Google\Service\Exception
42 */
43 public function get($name, $optParams = [])
44 {
45 $params = ['name' => $name];
46 $params = array_merge($params, $optParams);
47 return $this->call('get', [$params], ValuedResource::class);
48 }
49 /**
50 * Lists the valued resources for a set of simulation results and filter.
51 * (valuedResources.listOrganizationsSimulationsValuedResources)
52 *
53 * @param string $parent Required. Name of parent to list valued resources.
54 * Valid formats: `organizations/{organization}`,
55 * `organizations/{organization}/simulations/{simulation}` `organizations/{organ
56 * ization}/simulations/{simulation}/attackExposureResults/{attack_exposure_resu
57 * lt_v2}`
58 * @param array $optParams Optional parameters.
59 *
60 * @opt_param string filter The filter expression that filters the valued
61 * resources in the response. Supported fields: * `resource_value` supports = *
62 * `resource_type` supports =
63 * @opt_param string orderBy Optional. The fields by which to order the valued
64 * resources response. Supported fields: * `exposed_score` * `resource_value` *
65 * `resource_type` * `resource` * `display_name` Values should be a comma
66 * separated list of fields. For example: `exposed_score,resource_value`. The
67 * default sorting order is descending. To specify ascending or descending order
68 * for a field, append a ` ASC` or a ` DESC` suffix, respectively; for example:
69 * `exposed_score DESC`.
70 * @opt_param int pageSize The maximum number of results to return in a single
71 * response. Default is 10, minimum is 1, maximum is 1000.
72 * @opt_param string pageToken The value returned by the last
73 * `ListValuedResourcesResponse`; indicates that this is a continuation of a
74 * prior `ListValuedResources` call, and that the system should return the next
75 * page of data.
76 * @return ListValuedResourcesResponse
77 * @throws \Google\Service\Exception
78 */
79 public function listOrganizationsSimulationsValuedResources($parent, $optParams = [])
80 {
81 $params = ['parent' => $parent];
82 $params = array_merge($params, $optParams);
83 return $this->call('list', [$params], ListValuedResourcesResponse::class);
84 }
85}
86
87// Adding a class alias for backwards compatibility with the previous class name.
88class_alias(OrganizationsSimulationsValuedResources::class, 'Google_Service_SecurityCommandCenter_Resource_OrganizationsSimulationsValuedResources');
Note: See TracBrowser for help on using the repository browser.