source: vendor/google/apiclient-services/src/OSConfig/Resource/ProjectsLocationsInstancesOsPolicyAssignmentsReports.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: 4.5 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\OSConfig\Resource;
19
20use Google\Service\OSConfig\ListOSPolicyAssignmentReportsResponse;
21use Google\Service\OSConfig\OSPolicyAssignmentReport;
22
23/**
24 * The "reports" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $osconfigService = new Google\Service\OSConfig(...);
28 * $reports = $osconfigService->projects_locations_instances_osPolicyAssignments_reports;
29 * </code>
30 */
31class ProjectsLocationsInstancesOsPolicyAssignmentsReports extends \Google\Service\Resource
32{
33 /**
34 * Get the OS policy assignment report for the specified Compute Engine VM
35 * instance. (reports.get)
36 *
37 * @param string $name Required. API resource name for OS policy assignment
38 * report. Format: `/projects/{project}/locations/{location}/instances/{instance
39 * }/osPolicyAssignments/{assignment}/report` For `{project}`, either `project-
40 * number` or `project-id` can be provided. For `{instance_id}`, either Compute
41 * Engine `instance-id` or `instance-name` can be provided. For
42 * `{assignment_id}`, the OSPolicyAssignment id must be provided.
43 * @param array $optParams Optional parameters.
44 * @return OSPolicyAssignmentReport
45 * @throws \Google\Service\Exception
46 */
47 public function get($name, $optParams = [])
48 {
49 $params = ['name' => $name];
50 $params = array_merge($params, $optParams);
51 return $this->call('get', [$params], OSPolicyAssignmentReport::class);
52 }
53 /**
54 * List OS policy assignment reports for all Compute Engine VM instances in the
55 * specified zone.
56 * (reports.listProjectsLocationsInstancesOsPolicyAssignmentsReports)
57 *
58 * @param string $parent Required. The parent resource name. Format: `projects/{
59 * project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assig
60 * nment}/reports` For `{project}`, either `project-number` or `project-id` can
61 * be provided. For `{instance}`, either `instance-name`, `instance-id`, or `-`
62 * can be provided. If '-' is provided, the response will include
63 * OSPolicyAssignmentReports for all instances in the project/location. For
64 * `{assignment}`, either `assignment-id` or `-` can be provided. If '-' is
65 * provided, the response will include OSPolicyAssignmentReports for all
66 * OSPolicyAssignments in the project/location. Either {instance} or
67 * {assignment} must be `-`. For example: `projects/{project}/locations/{locatio
68 * n}/instances/{instance}/osPolicyAssignments/-/reports` returns all reports
69 * for the instance `projects/{project}/locations/{location}/instances/-
70 * /osPolicyAssignments/{assignment-id}/reports` returns all the reports for the
71 * given assignment across all instances. `projects/{project}/locations/{locatio
72 * n}/instances/-/osPolicyAssignments/-/reports` returns all the reports for all
73 * assignments across all instances.
74 * @param array $optParams Optional parameters.
75 *
76 * @opt_param string filter If provided, this field specifies the criteria that
77 * must be met by the `OSPolicyAssignmentReport` API resource that is included
78 * in the response.
79 * @opt_param int pageSize The maximum number of results to return.
80 * @opt_param string pageToken A pagination token returned from a previous call
81 * to the `ListOSPolicyAssignmentReports` method that indicates where this
82 * listing should continue from.
83 * @return ListOSPolicyAssignmentReportsResponse
84 * @throws \Google\Service\Exception
85 */
86 public function listProjectsLocationsInstancesOsPolicyAssignmentsReports($parent, $optParams = [])
87 {
88 $params = ['parent' => $parent];
89 $params = array_merge($params, $optParams);
90 return $this->call('list', [$params], ListOSPolicyAssignmentReportsResponse::class);
91 }
92}
93
94// Adding a class alias for backwards compatibility with the previous class name.
95class_alias(ProjectsLocationsInstancesOsPolicyAssignmentsReports::class, 'Google_Service_OSConfig_Resource_ProjectsLocationsInstancesOsPolicyAssignmentsReports');
Note: See TracBrowser for help on using the repository browser.