source: vendor/google/apiclient-services/src/Kmsinventory.php

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

Upload project files

  • Property mode set to 100644
File size: 4.7 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 Kmsinventory (v1).
24 *
25 * <p>
26</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/kms/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class Kmsinventory 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 $organizations_protectedResources;
42 public $projects_cryptoKeys;
43 public $projects_locations_keyRings_cryptoKeys;
44 public $rootUrlTemplate;
45
46 /**
47 * Constructs the internal representation of the Kmsinventory 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://kmsinventory.googleapis.com/';
57 $this->rootUrlTemplate = $rootUrl ?: 'https://kmsinventory.UNIVERSE_DOMAIN/';
58 $this->servicePath = '';
59 $this->batchPath = 'batch';
60 $this->version = 'v1';
61 $this->serviceName = 'kmsinventory';
62
63 $this->organizations_protectedResources = new Kmsinventory\Resource\OrganizationsProtectedResources(
64 $this,
65 $this->serviceName,
66 'protectedResources',
67 [
68 'methods' => [
69 'search' => [
70 'path' => 'v1/{+scope}/protectedResources:search',
71 'httpMethod' => 'GET',
72 'parameters' => [
73 'scope' => [
74 'location' => 'path',
75 'type' => 'string',
76 'required' => true,
77 ],
78 'cryptoKey' => [
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 'resourceTypes' => [
91 'location' => 'query',
92 'type' => 'string',
93 'repeated' => true,
94 ],
95 ],
96 ],
97 ]
98 ]
99 );
100 $this->projects_cryptoKeys = new Kmsinventory\Resource\ProjectsCryptoKeys(
101 $this,
102 $this->serviceName,
103 'cryptoKeys',
104 [
105 'methods' => [
106 'list' => [
107 'path' => 'v1/{+parent}/cryptoKeys',
108 'httpMethod' => 'GET',
109 'parameters' => [
110 'parent' => [
111 'location' => 'path',
112 'type' => 'string',
113 'required' => true,
114 ],
115 'pageSize' => [
116 'location' => 'query',
117 'type' => 'integer',
118 ],
119 'pageToken' => [
120 'location' => 'query',
121 'type' => 'string',
122 ],
123 ],
124 ],
125 ]
126 ]
127 );
128 $this->projects_locations_keyRings_cryptoKeys = new Kmsinventory\Resource\ProjectsLocationsKeyRingsCryptoKeys(
129 $this,
130 $this->serviceName,
131 'cryptoKeys',
132 [
133 'methods' => [
134 'getProtectedResourcesSummary' => [
135 'path' => 'v1/{+name}/protectedResourcesSummary',
136 'httpMethod' => 'GET',
137 'parameters' => [
138 'name' => [
139 'location' => 'path',
140 'type' => 'string',
141 'required' => true,
142 ],
143 ],
144 ],
145 ]
146 ]
147 );
148 }
149}
150
151// Adding a class alias for backwards compatibility with the previous class name.
152class_alias(Kmsinventory::class, 'Google_Service_Kmsinventory');
Note: See TracBrowser for help on using the repository browser.