source: vendor/google/apiclient-services/src/Apigee/Resource/OrganizationsEnvironmentsSecurityIncidents.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 5.6 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\GoogleCloudApigeeV1BatchUpdateSecurityIncidentsRequest;
21use Google\Service\Apigee\GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse;
22use Google\Service\Apigee\GoogleCloudApigeeV1ListSecurityIncidentsResponse;
23use Google\Service\Apigee\GoogleCloudApigeeV1SecurityIncident;
24
25/**
26 * The "securityIncidents" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $apigeeService = new Google\Service\Apigee(...);
30 * $securityIncidents = $apigeeService->organizations_environments_securityIncidents;
31 * </code>
32 */
33class OrganizationsEnvironmentsSecurityIncidents extends \Google\Service\Resource
34{
35 /**
36 * BatchUpdateSecurityIncident updates multiple existing security incidents.
37 * (securityIncidents.batchUpdate)
38 *
39 * @param string $parent Optional. The parent resource shared by all security
40 * incidents being updated. If this is set, the parent field in the
41 * UpdateSecurityIncidentRequest messages must either be empty or match this
42 * field.
43 * @param GoogleCloudApigeeV1BatchUpdateSecurityIncidentsRequest $postBody
44 * @param array $optParams Optional parameters.
45 * @return GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse
46 * @throws \Google\Service\Exception
47 */
48 public function batchUpdate($parent, GoogleCloudApigeeV1BatchUpdateSecurityIncidentsRequest $postBody, $optParams = [])
49 {
50 $params = ['parent' => $parent, 'postBody' => $postBody];
51 $params = array_merge($params, $optParams);
52 return $this->call('batchUpdate', [$params], GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse::class);
53 }
54 /**
55 * GetSecurityIncident gets the specified security incident. Returns NOT_FOUND
56 * if security incident is not present for the specified organization and
57 * environment. (securityIncidents.get)
58 *
59 * @param string $name Required. Security incident in the following format: `org
60 * anizations/{org}/environments/{environment}/securityIncidents/{incident}'.
61 * Example: organizations/testOrg/environments/testEnv/securityIncidents/1234-
62 * 4567-890-111
63 * @param array $optParams Optional parameters.
64 * @return GoogleCloudApigeeV1SecurityIncident
65 * @throws \Google\Service\Exception
66 */
67 public function get($name, $optParams = [])
68 {
69 $params = ['name' => $name];
70 $params = array_merge($params, $optParams);
71 return $this->call('get', [$params], GoogleCloudApigeeV1SecurityIncident::class);
72 }
73 /**
74 * ListSecurityIncidents lists all the security incident associated with the
75 * environment.
76 * (securityIncidents.listOrganizationsEnvironmentsSecurityIncidents)
77 *
78 * @param string $parent Required. For a specific organization, list of all the
79 * security incidents. Format: `organizations/{org}/environments/{environment}`
80 * @param array $optParams Optional parameters.
81 *
82 * @opt_param string filter The filter expression to be used to get the list of
83 * security incidents, where filtering can be done on API Proxies. Example:
84 * filter = "api_proxy = /", "first_detected_time >", "last_detected_time <"
85 * @opt_param int pageSize Optional. The maximum number of incidents to return.
86 * The service may return fewer than this value. If unspecified, at most 50
87 * incidents will be returned.
88 * @opt_param string pageToken Optional. A page token, received from a previous
89 * `ListSecurityIncident` call. Provide this to retrieve the subsequent page.
90 * @return GoogleCloudApigeeV1ListSecurityIncidentsResponse
91 * @throws \Google\Service\Exception
92 */
93 public function listOrganizationsEnvironmentsSecurityIncidents($parent, $optParams = [])
94 {
95 $params = ['parent' => $parent];
96 $params = array_merge($params, $optParams);
97 return $this->call('list', [$params], GoogleCloudApigeeV1ListSecurityIncidentsResponse::class);
98 }
99 /**
100 * UpdateSecurityIncidents updates an existing security incident.
101 * (securityIncidents.patch)
102 *
103 * @param string $name Immutable. Name of the security incident resource.
104 * Format:
105 * organizations/{org}/environments/{environment}/securityIncidents/{incident}
106 * Example: organizations/apigee-
107 * org/environments/dev/securityIncidents/1234-5678-9101-1111
108 * @param GoogleCloudApigeeV1SecurityIncident $postBody
109 * @param array $optParams Optional parameters.
110 *
111 * @opt_param string updateMask Required. The list of fields to update. Allowed
112 * fields are: LINT.IfChange(allowed_update_fields_comment) - observability
113 * LINT.ThenChange()
114 * @return GoogleCloudApigeeV1SecurityIncident
115 * @throws \Google\Service\Exception
116 */
117 public function patch($name, GoogleCloudApigeeV1SecurityIncident $postBody, $optParams = [])
118 {
119 $params = ['name' => $name, 'postBody' => $postBody];
120 $params = array_merge($params, $optParams);
121 return $this->call('patch', [$params], GoogleCloudApigeeV1SecurityIncident::class);
122 }
123}
124
125// Adding a class alias for backwards compatibility with the previous class name.
126class_alias(OrganizationsEnvironmentsSecurityIncidents::class, 'Google_Service_Apigee_Resource_OrganizationsEnvironmentsSecurityIncidents');
Note: See TracBrowser for help on using the repository browser.