[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 |
|
---|
| 18 | namespace Google\Service\OSConfig\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\OSConfig\ListPatchJobInstanceDetailsResponse;
|
---|
| 21 |
|
---|
| 22 | /**
|
---|
| 23 | * The "instanceDetails" collection of methods.
|
---|
| 24 | * Typical usage is:
|
---|
| 25 | * <code>
|
---|
| 26 | * $osconfigService = new Google\Service\OSConfig(...);
|
---|
| 27 | * $instanceDetails = $osconfigService->projects_patchJobs_instanceDetails;
|
---|
| 28 | * </code>
|
---|
| 29 | */
|
---|
| 30 | class ProjectsPatchJobsInstanceDetails extends \Google\Service\Resource
|
---|
| 31 | {
|
---|
| 32 | /**
|
---|
| 33 | * Get a list of instance details for a given patch job.
|
---|
| 34 | * (instanceDetails.listProjectsPatchJobsInstanceDetails)
|
---|
| 35 | *
|
---|
| 36 | * @param string $parent Required. The parent for the instances are in the form
|
---|
| 37 | * of `projects/patchJobs`.
|
---|
| 38 | * @param array $optParams Optional parameters.
|
---|
| 39 | *
|
---|
| 40 | * @opt_param string filter A filter expression that filters results listed in
|
---|
| 41 | * the response. This field supports filtering results by instance zone, name,
|
---|
| 42 | * state, or `failure_reason`.
|
---|
| 43 | * @opt_param int pageSize The maximum number of instance details records to
|
---|
| 44 | * return. Default is 100.
|
---|
| 45 | * @opt_param string pageToken A pagination token returned from a previous call
|
---|
| 46 | * that indicates where this listing should continue from.
|
---|
| 47 | * @return ListPatchJobInstanceDetailsResponse
|
---|
| 48 | * @throws \Google\Service\Exception
|
---|
| 49 | */
|
---|
| 50 | public function listProjectsPatchJobsInstanceDetails($parent, $optParams = [])
|
---|
| 51 | {
|
---|
| 52 | $params = ['parent' => $parent];
|
---|
| 53 | $params = array_merge($params, $optParams);
|
---|
| 54 | return $this->call('list', [$params], ListPatchJobInstanceDetailsResponse::class);
|
---|
| 55 | }
|
---|
| 56 | }
|
---|
| 57 |
|
---|
| 58 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 59 | class_alias(ProjectsPatchJobsInstanceDetails::class, 'Google_Service_OSConfig_Resource_ProjectsPatchJobsInstanceDetails');
|
---|