source: vendor/google/apiclient-services/src/Apigee/Resource/OrganizationsEnvironmentsSecurityReports.php

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

Upload project files

  • Property mode set to 100644
File size: 6.3 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\Apigee\Resource;
19
20use Google\Service\Apigee\GoogleApiHttpBody;
21use Google\Service\Apigee\GoogleCloudApigeeV1ListSecurityReportsResponse;
22use Google\Service\Apigee\GoogleCloudApigeeV1SecurityReport;
23use Google\Service\Apigee\GoogleCloudApigeeV1SecurityReportQuery;
24use Google\Service\Apigee\GoogleCloudApigeeV1SecurityReportResultView;
25
26/**
27 * The "securityReports" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $apigeeService = new Google\Service\Apigee(...);
31 * $securityReports = $apigeeService->organizations_environments_securityReports;
32 * </code>
33 */
34class OrganizationsEnvironmentsSecurityReports extends \Google\Service\Resource
35{
36 /**
37 * Submit a report request to be processed in the background. If the submission
38 * succeeds, the API returns a 200 status and an ID that refer to the report
39 * request. In addition to the HTTP status 200, the `state` of "enqueued" means
40 * that the request succeeded. (securityReports.create)
41 *
42 * @param string $parent Required. The parent resource name. Must be of the form
43 * `organizations/{org}/environments/{env}`.
44 * @param GoogleCloudApigeeV1SecurityReportQuery $postBody
45 * @param array $optParams Optional parameters.
46 * @return GoogleCloudApigeeV1SecurityReport
47 * @throws \Google\Service\Exception
48 */
49 public function create($parent, GoogleCloudApigeeV1SecurityReportQuery $postBody, $optParams = [])
50 {
51 $params = ['parent' => $parent, 'postBody' => $postBody];
52 $params = array_merge($params, $optParams);
53 return $this->call('create', [$params], GoogleCloudApigeeV1SecurityReport::class);
54 }
55 /**
56 * Get security report status If the query is still in progress, the `state` is
57 * set to "running" After the query has completed successfully, `state` is set
58 * to "completed" (securityReports.get)
59 *
60 * @param string $name Required. Name of the security report to get. Must be of
61 * the form `organizations/{org}/environments/{env}/securityReports/{reportId}`.
62 * @param array $optParams Optional parameters.
63 * @return GoogleCloudApigeeV1SecurityReport
64 * @throws \Google\Service\Exception
65 */
66 public function get($name, $optParams = [])
67 {
68 $params = ['name' => $name];
69 $params = array_merge($params, $optParams);
70 return $this->call('get', [$params], GoogleCloudApigeeV1SecurityReport::class);
71 }
72 /**
73 * After the query is completed, use this API to retrieve the results as file.
74 * If the request succeeds, and there is a non-zero result set, the result is
75 * downloaded to the client as a zipped JSON file. The name of the downloaded
76 * file will be: OfflineQueryResult-.zip Example:
77 * `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
78 * (securityReports.getResult)
79 *
80 * @param string $name Required. Name of the security report result to get. Must
81 * be of the form
82 * `organizations/{org}/environments/{env}/securityReports/{reportId}/result`.
83 * @param array $optParams Optional parameters.
84 * @return GoogleApiHttpBody
85 * @throws \Google\Service\Exception
86 */
87 public function getResult($name, $optParams = [])
88 {
89 $params = ['name' => $name];
90 $params = array_merge($params, $optParams);
91 return $this->call('getResult', [$params], GoogleApiHttpBody::class);
92 }
93 /**
94 * After the query is completed, use this API to view the query result when
95 * result size is small. (securityReports.getResultView)
96 *
97 * @param string $name Required. Name of the security report result view to get.
98 * Must be of the form `organizations/{org}/environments/{env}/securityReports/{
99 * reportId}/resultView`.
100 * @param array $optParams Optional parameters.
101 * @return GoogleCloudApigeeV1SecurityReportResultView
102 * @throws \Google\Service\Exception
103 */
104 public function getResultView($name, $optParams = [])
105 {
106 $params = ['name' => $name];
107 $params = array_merge($params, $optParams);
108 return $this->call('getResultView', [$params], GoogleCloudApigeeV1SecurityReportResultView::class);
109 }
110 /**
111 * Return a list of Security Reports
112 * (securityReports.listOrganizationsEnvironmentsSecurityReports)
113 *
114 * @param string $parent Required. The parent resource name. Must be of the form
115 * `organizations/{org}/environments/{env}`.
116 * @param array $optParams Optional parameters.
117 *
118 * @opt_param string dataset Filter response list by dataset. Example: `api`,
119 * `mint`
120 * @opt_param string from Filter response list by returning security reports
121 * that created after this date time. Time must be in ISO date-time format like
122 * '2011-12-03T10:15:30Z'.
123 * @opt_param int pageSize The maximum number of security report to return in
124 * the list response.
125 * @opt_param string pageToken Token returned from the previous list response to
126 * fetch the next page.
127 * @opt_param string status Filter response list by security reports status.
128 * @opt_param string submittedBy Filter response list by user who submitted
129 * queries.
130 * @opt_param string to Filter response list by returning security reports that
131 * created before this date time. Time must be in ISO date-time format like
132 * '2011-12-03T10:16:30Z'.
133 * @return GoogleCloudApigeeV1ListSecurityReportsResponse
134 * @throws \Google\Service\Exception
135 */
136 public function listOrganizationsEnvironmentsSecurityReports($parent, $optParams = [])
137 {
138 $params = ['parent' => $parent];
139 $params = array_merge($params, $optParams);
140 return $this->call('list', [$params], GoogleCloudApigeeV1ListSecurityReportsResponse::class);
141 }
142}
143
144// Adding a class alias for backwards compatibility with the previous class name.
145class_alias(OrganizationsEnvironmentsSecurityReports::class, 'Google_Service_Apigee_Resource_OrganizationsEnvironmentsSecurityReports');
Note: See TracBrowser for help on using the repository browser.