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

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

Upload project files

  • Property mode set to 100644
File size: 4.0 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\GoogleCloudApigeeV1ComputeEnvironmentScoresRequest;
21use Google\Service\Apigee\GoogleCloudApigeeV1ComputeEnvironmentScoresResponse;
22use Google\Service\Apigee\GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation;
23use Google\Service\Apigee\GoogleProtobufEmpty;
24
25/**
26 * The "environments" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $apigeeService = new Google\Service\Apigee(...);
30 * $environments = $apigeeService->organizations_securityProfiles_environments;
31 * </code>
32 */
33class OrganizationsSecurityProfilesEnvironments extends \Google\Service\Resource
34{
35 /**
36 * ComputeEnvironmentScores calculates scores for requested time range for the
37 * specified security profile and environment.
38 * (environments.computeEnvironmentScores)
39 *
40 * @param string $profileEnvironment Required. Name of organization and
41 * environment and profile id for which score needs to be computed. Format:
42 * organizations/{org}/securityProfiles/{profile}/environments/{env}
43 * @param GoogleCloudApigeeV1ComputeEnvironmentScoresRequest $postBody
44 * @param array $optParams Optional parameters.
45 * @return GoogleCloudApigeeV1ComputeEnvironmentScoresResponse
46 * @throws \Google\Service\Exception
47 */
48 public function computeEnvironmentScores($profileEnvironment, GoogleCloudApigeeV1ComputeEnvironmentScoresRequest $postBody, $optParams = [])
49 {
50 $params = ['profileEnvironment' => $profileEnvironment, 'postBody' => $postBody];
51 $params = array_merge($params, $optParams);
52 return $this->call('computeEnvironmentScores', [$params], GoogleCloudApigeeV1ComputeEnvironmentScoresResponse::class);
53 }
54 /**
55 * CreateSecurityProfileEnvironmentAssociation creates profile environment
56 * association i.e. attaches environment to security profile.
57 * (environments.create)
58 *
59 * @param string $parent Required. Name of organization and security profile ID.
60 * Format: organizations/{org}/securityProfiles/{profile}
61 * @param GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation $postBody
62 * @param array $optParams Optional parameters.
63 * @return GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation
64 * @throws \Google\Service\Exception
65 */
66 public function create($parent, GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation $postBody, $optParams = [])
67 {
68 $params = ['parent' => $parent, 'postBody' => $postBody];
69 $params = array_merge($params, $optParams);
70 return $this->call('create', [$params], GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation::class);
71 }
72 /**
73 * DeleteSecurityProfileEnvironmentAssociation removes profile environment
74 * association i.e. detaches environment from security profile.
75 * (environments.delete)
76 *
77 * @param string $name Required. The name of the environment attachment to
78 * delete. Format:
79 * organizations/{org}/securityProfiles/{profile}/environments/{env}
80 * @param array $optParams Optional parameters.
81 * @return GoogleProtobufEmpty
82 * @throws \Google\Service\Exception
83 */
84 public function delete($name, $optParams = [])
85 {
86 $params = ['name' => $name];
87 $params = array_merge($params, $optParams);
88 return $this->call('delete', [$params], GoogleProtobufEmpty::class);
89 }
90}
91
92// Adding a class alias for backwards compatibility with the previous class name.
93class_alias(OrganizationsSecurityProfilesEnvironments::class, 'Google_Service_Apigee_Resource_OrganizationsSecurityProfilesEnvironments');
Note: See TracBrowser for help on using the repository browser.