source: vendor/google/apiclient-services/src/CloudControlsPartnerService/Resource/OrganizationsLocationsCustomersWorkloadsViolations.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: 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\CloudControlsPartnerService\Resource;
19
20use Google\Service\CloudControlsPartnerService\ListViolationsResponse;
21use Google\Service\CloudControlsPartnerService\Violation;
22
23/**
24 * The "violations" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $cloudcontrolspartnerService = new Google\Service\CloudControlsPartnerService(...);
28 * $violations = $cloudcontrolspartnerService->organizations_locations_customers_workloads_violations;
29 * </code>
30 */
31class OrganizationsLocationsCustomersWorkloadsViolations extends \Google\Service\Resource
32{
33 /**
34 * Gets details of a single Violation. (violations.get)
35 *
36 * @param string $name Required. Format: `organizations/{organization}/locations
37 * /{location}/customers/{customer}/workloads/{workload}/violations/{violation}`
38 * @param array $optParams Optional parameters.
39 * @return Violation
40 * @throws \Google\Service\Exception
41 */
42 public function get($name, $optParams = [])
43 {
44 $params = ['name' => $name];
45 $params = array_merge($params, $optParams);
46 return $this->call('get', [$params], Violation::class);
47 }
48 /**
49 * Lists Violations for a workload Callers may also choose to read across
50 * multiple Customers or for a single customer as per
51 * [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash
52 * character) as a wildcard character instead of {customer} & {workload}.
53 * Format: `organizations/{organization}/locations/{location}/customers/{custome
54 * r}/workloads/{workload}`
55 * (violations.listOrganizationsLocationsCustomersWorkloadsViolations)
56 *
57 * @param string $parent Required. Parent resource Format `organizations/{organi
58 * zation}/locations/{location}/customers/{customer}/workloads/{workload}`
59 * @param array $optParams Optional parameters.
60 *
61 * @opt_param string filter Optional. Filtering results
62 * @opt_param string interval.endTime Optional. Exclusive end of the interval.
63 * If specified, a Timestamp matching this interval will have to be before the
64 * end.
65 * @opt_param string interval.startTime Optional. Inclusive start of the
66 * interval. If specified, a Timestamp matching this interval will have to be
67 * the same or after the start.
68 * @opt_param string orderBy Optional. Hint for how to order the results
69 * @opt_param int pageSize Optional. The maximum number of customers row to
70 * return. The service may return fewer than this value. If unspecified, at most
71 * 10 customers will be returned.
72 * @opt_param string pageToken Optional. A page token, received from a previous
73 * `ListViolations` call. Provide this to retrieve the subsequent page.
74 * @return ListViolationsResponse
75 * @throws \Google\Service\Exception
76 */
77 public function listOrganizationsLocationsCustomersWorkloadsViolations($parent, $optParams = [])
78 {
79 $params = ['parent' => $parent];
80 $params = array_merge($params, $optParams);
81 return $this->call('list', [$params], ListViolationsResponse::class);
82 }
83}
84
85// Adding a class alias for backwards compatibility with the previous class name.
86class_alias(OrganizationsLocationsCustomersWorkloadsViolations::class, 'Google_Service_CloudControlsPartnerService_Resource_OrganizationsLocationsCustomersWorkloadsViolations');
Note: See TracBrowser for help on using the repository browser.