source: vendor/google/apiclient-services/src/PolicyAnalyzer.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 5.1 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;
19
20use Google\Client;
21
22/**
23 * Service definition for PolicyAnalyzer (v1).
24 *
25 * <p>
26</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://www.google.com" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class PolicyAnalyzer extends \Google\Service
36{
37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40
41 public $folders_locations_activityTypes_activities;
42 public $organizations_locations_activityTypes_activities;
43 public $projects_locations_activityTypes_activities;
44 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the PolicyAnalyzer service.
48 *
49 * @param Client|array $clientOrConfig The client used to deliver requests, or a
50 * config array to pass to a new Client instance.
51 * @param string $rootUrl The root URL used for requests to the service.
52 */
53 public function __construct($clientOrConfig = [], $rootUrl = null)
54 {
55 parent::__construct($clientOrConfig);
56 $this->rootUrl = $rootUrl ?: 'https://policyanalyzer.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://policyanalyzer.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1';
61 $this->serviceName = 'policyanalyzer';
62
63 $this->folders_locations_activityTypes_activities = new PolicyAnalyzer\Resource\FoldersLocationsActivityTypesActivities(
64 $this,
65 $this->serviceName,
66 'activities',
67 [
68 'methods' => [
69 'query' => [
70 'path' => 'v1/{+parent}/activities:query',
71 'httpMethod' => 'GET',
72 'parameters' => [
73 'parent' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 'filter' => [
79 'location' => 'query',
80 'type' => 'string',
81 ],
82 'pageSize' => [
83 'location' => 'query',
84 'type' => 'integer',
85 ],
86 'pageToken' => [
87 'location' => 'query',
88 'type' => 'string',
89 ],
90 ],
91 ],
92 ]
93 ]
94 );
95 $this->organizations_locations_activityTypes_activities = new PolicyAnalyzer\Resource\OrganizationsLocationsActivityTypesActivities(
96 $this,
97 $this->serviceName,
98 'activities',
99 [
100 'methods' => [
101 'query' => [
102 'path' => 'v1/{+parent}/activities:query',
103 'httpMethod' => 'GET',
104 'parameters' => [
105 'parent' => [
106 'location' => 'path',
107 'type' => 'string',
108 'required' => true,
109 ],
110 'filter' => [
111 'location' => 'query',
112 'type' => 'string',
113 ],
114 'pageSize' => [
115 'location' => 'query',
116 'type' => 'integer',
117 ],
118 'pageToken' => [
119 'location' => 'query',
120 'type' => 'string',
121 ],
122 ],
123 ],
124 ]
125 ]
126 );
127 $this->projects_locations_activityTypes_activities = new PolicyAnalyzer\Resource\ProjectsLocationsActivityTypesActivities(
128 $this,
129 $this->serviceName,
130 'activities',
131 [
132 'methods' => [
133 'query' => [
134 'path' => 'v1/{+parent}/activities:query',
135 'httpMethod' => 'GET',
136 'parameters' => [
137 'parent' => [
138 'location' => 'path',
139 'type' => 'string',
140 'required' => true,
141 ],
142 'filter' => [
143 'location' => 'query',
144 'type' => 'string',
145 ],
146 'pageSize' => [
147 'location' => 'query',
148 'type' => 'integer',
149 ],
150 'pageToken' => [
151 'location' => 'query',
152 'type' => 'string',
153 ],
154 ],
155 ],
156 ]
157 ]
158 );
159 }
160}
161
162// Adding a class alias for backwards compatibility with the previous class name.
163class_alias(PolicyAnalyzer::class, 'Google_Service_PolicyAnalyzer');
Note: See TracBrowser for help on using the repository browser.