Skip to content

Commit

Permalink
Autogenerated update for cloudkms version v1beta1 (2017-01-11)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Jan 11, 2017
1 parent fa2dcbe commit c400c65
Show file tree
Hide file tree
Showing 34 changed files with 2,200 additions and 0 deletions.
388 changes: 388 additions & 0 deletions src/Google/Service/CloudKMS.php
@@ -0,0 +1,388 @@
<?php
/*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/

/**
* Service definition for CloudKMS (v1beta1).
*
* <p>
</p>
*
* <p>
* For more information about this service, see the API
* <a href="https://cloud.google.com/kms/" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class Google_Service_CloudKMS extends Google_Service
{
/** View and manage your data across Google Cloud Platform services. */
const CLOUD_PLATFORM =
"https://www.googleapis.com/auth/cloud-platform";

public $projects_locations;
public $projects_locations_keyRings;
public $projects_locations_keyRings_cryptoKeys;
public $projects_locations_keyRings_cryptoKeys_cryptoKeyVersions;

/**
* Constructs the internal representation of the CloudKMS service.
*
* @param Google_Client $client
*/
public function __construct(Google_Client $client)
{
parent::__construct($client);
$this->rootUrl = 'https://cloudkms.googleapis.com/';
$this->servicePath = '';
$this->version = 'v1beta1';
$this->serviceName = 'cloudkms';

$this->projects_locations = new Google_Service_CloudKMS_Resource_ProjectsLocations(
$this,
$this->serviceName,
'locations',
array(
'methods' => array(
'get' => array(
'path' => 'v1beta1/{+name}',
'httpMethod' => 'GET',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'list' => array(
'path' => 'v1beta1/{+name}/locations',
'httpMethod' => 'GET',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'filter' => array(
'location' => 'query',
'type' => 'string',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
),
),
)
)
);
$this->projects_locations_keyRings = new Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRings(
$this,
$this->serviceName,
'keyRings',
array(
'methods' => array(
'create' => array(
'path' => 'v1beta1/{+parent}/keyRings',
'httpMethod' => 'POST',
'parameters' => array(
'parent' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'keyRingId' => array(
'location' => 'query',
'type' => 'string',
),
),
),'get' => array(
'path' => 'v1beta1/{+name}',
'httpMethod' => 'GET',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'getIamPolicy' => array(
'path' => 'v1beta1/{+resource}:getIamPolicy',
'httpMethod' => 'GET',
'parameters' => array(
'resource' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'list' => array(
'path' => 'v1beta1/{+parent}/keyRings',
'httpMethod' => 'GET',
'parameters' => array(
'parent' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
),
),'setIamPolicy' => array(
'path' => 'v1beta1/{+resource}:setIamPolicy',
'httpMethod' => 'POST',
'parameters' => array(
'resource' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'testIamPermissions' => array(
'path' => 'v1beta1/{+resource}:testIamPermissions',
'httpMethod' => 'POST',
'parameters' => array(
'resource' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
$this->projects_locations_keyRings_cryptoKeys = new Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeys(
$this,
$this->serviceName,
'cryptoKeys',
array(
'methods' => array(
'create' => array(
'path' => 'v1beta1/{+parent}/cryptoKeys',
'httpMethod' => 'POST',
'parameters' => array(
'parent' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'cryptoKeyId' => array(
'location' => 'query',
'type' => 'string',
),
),
),'decrypt' => array(
'path' => 'v1beta1/{+name}:decrypt',
'httpMethod' => 'POST',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'encrypt' => array(
'path' => 'v1beta1/{+name}:encrypt',
'httpMethod' => 'POST',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'get' => array(
'path' => 'v1beta1/{+name}',
'httpMethod' => 'GET',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'getIamPolicy' => array(
'path' => 'v1beta1/{+resource}:getIamPolicy',
'httpMethod' => 'GET',
'parameters' => array(
'resource' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'list' => array(
'path' => 'v1beta1/{+parent}/cryptoKeys',
'httpMethod' => 'GET',
'parameters' => array(
'parent' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
),
),'patch' => array(
'path' => 'v1beta1/{+name}',
'httpMethod' => 'PATCH',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'updateMask' => array(
'location' => 'query',
'type' => 'string',
),
),
),'setIamPolicy' => array(
'path' => 'v1beta1/{+resource}:setIamPolicy',
'httpMethod' => 'POST',
'parameters' => array(
'resource' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'testIamPermissions' => array(
'path' => 'v1beta1/{+resource}:testIamPermissions',
'httpMethod' => 'POST',
'parameters' => array(
'resource' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'updatePrimaryVersion' => array(
'path' => 'v1beta1/{+name}:updatePrimaryVersion',
'httpMethod' => 'POST',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
$this->projects_locations_keyRings_cryptoKeys_cryptoKeyVersions = new Google_Service_CloudKMS_Resource_ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersions(
$this,
$this->serviceName,
'cryptoKeyVersions',
array(
'methods' => array(
'create' => array(
'path' => 'v1beta1/{+parent}/cryptoKeyVersions',
'httpMethod' => 'POST',
'parameters' => array(
'parent' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'destroy' => array(
'path' => 'v1beta1/{+name}:destroy',
'httpMethod' => 'POST',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'get' => array(
'path' => 'v1beta1/{+name}',
'httpMethod' => 'GET',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'list' => array(
'path' => 'v1beta1/{+parent}/cryptoKeyVersions',
'httpMethod' => 'GET',
'parameters' => array(
'parent' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'pageSize' => array(
'location' => 'query',
'type' => 'integer',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
),
),'patch' => array(
'path' => 'v1beta1/{+name}',
'httpMethod' => 'PATCH',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'updateMask' => array(
'location' => 'query',
'type' => 'string',
),
),
),'restore' => array(
'path' => 'v1beta1/{+name}:restore',
'httpMethod' => 'POST',
'parameters' => array(
'name' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
}
}

0 comments on commit c400c65

Please sign in to comment.