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