Skip to content

Commit d29f0f3

Browse files
1 parent 4bbc19a commit d29f0f3

11 files changed

Lines changed: 913 additions & 2 deletions

src/CloudRedis.php

Lines changed: 149 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,20 @@ class CloudRedis extends \Google\Service
3737
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
3838
const CLOUD_PLATFORM =
3939
"https://www.googleapis.com/auth/cloud-platform";
40+
/** See your Google Cloud Memorystore for Redis data and the email address of your Google Account. */
41+
const REDIS_READ_ONLY =
42+
"https://www.googleapis.com/auth/redis.read-only";
43+
/** See, edit, configure, and delete your Google Cloud Memorystore for Redis data and see the email address for your Google Account. */
44+
const REDIS_READ_WRITE =
45+
"https://www.googleapis.com/auth/redis.read-write";
4046

4147
public $projects_locations;
4248
public $projects_locations_aclPolicies;
4349
public $projects_locations_backupCollections;
4450
public $projects_locations_backupCollections_backups;
4551
public $projects_locations_clusters;
52+
public $projects_locations_clusters_tokenAuthUsers;
53+
public $projects_locations_clusters_tokenAuthUsers_authTokens;
4654
public $projects_locations_instances;
4755
public $projects_locations_operations;
4856
public $rootUrlTemplate;
@@ -319,7 +327,17 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
319327
'clusters',
320328
[
321329
'methods' => [
322-
'backup' => [
330+
'addTokenAuthUser' => [
331+
'path' => 'v1/{+cluster}:addTokenAuthUser',
332+
'httpMethod' => 'POST',
333+
'parameters' => [
334+
'cluster' => [
335+
'location' => 'path',
336+
'type' => 'string',
337+
'required' => true,
338+
],
339+
],
340+
],'backup' => [
323341
'path' => 'v1/{+name}:backup',
324342
'httpMethod' => 'POST',
325343
'parameters' => [
@@ -431,6 +449,136 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
431449
]
432450
]
433451
);
452+
$this->projects_locations_clusters_tokenAuthUsers = new CloudRedis\Resource\ProjectsLocationsClustersTokenAuthUsers(
453+
$this,
454+
$this->serviceName,
455+
'tokenAuthUsers',
456+
[
457+
'methods' => [
458+
'addAuthToken' => [
459+
'path' => 'v1/{+tokenAuthUser}:addAuthToken',
460+
'httpMethod' => 'POST',
461+
'parameters' => [
462+
'tokenAuthUser' => [
463+
'location' => 'path',
464+
'type' => 'string',
465+
'required' => true,
466+
],
467+
],
468+
],'delete' => [
469+
'path' => 'v1/{+name}',
470+
'httpMethod' => 'DELETE',
471+
'parameters' => [
472+
'name' => [
473+
'location' => 'path',
474+
'type' => 'string',
475+
'required' => true,
476+
],
477+
'force' => [
478+
'location' => 'query',
479+
'type' => 'boolean',
480+
],
481+
'requestId' => [
482+
'location' => 'query',
483+
'type' => 'string',
484+
],
485+
],
486+
],'get' => [
487+
'path' => 'v1/{+name}',
488+
'httpMethod' => 'GET',
489+
'parameters' => [
490+
'name' => [
491+
'location' => 'path',
492+
'type' => 'string',
493+
'required' => true,
494+
],
495+
],
496+
],'list' => [
497+
'path' => 'v1/{+parent}/tokenAuthUsers',
498+
'httpMethod' => 'GET',
499+
'parameters' => [
500+
'parent' => [
501+
'location' => 'path',
502+
'type' => 'string',
503+
'required' => true,
504+
],
505+
'filter' => [
506+
'location' => 'query',
507+
'type' => 'string',
508+
],
509+
'orderBy' => [
510+
'location' => 'query',
511+
'type' => 'string',
512+
],
513+
'pageSize' => [
514+
'location' => 'query',
515+
'type' => 'integer',
516+
],
517+
'pageToken' => [
518+
'location' => 'query',
519+
'type' => 'string',
520+
],
521+
],
522+
],
523+
]
524+
]
525+
);
526+
$this->projects_locations_clusters_tokenAuthUsers_authTokens = new CloudRedis\Resource\ProjectsLocationsClustersTokenAuthUsersAuthTokens(
527+
$this,
528+
$this->serviceName,
529+
'authTokens',
530+
[
531+
'methods' => [
532+
'delete' => [
533+
'path' => 'v1/{+name}',
534+
'httpMethod' => 'DELETE',
535+
'parameters' => [
536+
'name' => [
537+
'location' => 'path',
538+
'type' => 'string',
539+
'required' => true,
540+
],
541+
],
542+
],'get' => [
543+
'path' => 'v1/{+name}',
544+
'httpMethod' => 'GET',
545+
'parameters' => [
546+
'name' => [
547+
'location' => 'path',
548+
'type' => 'string',
549+
'required' => true,
550+
],
551+
],
552+
],'list' => [
553+
'path' => 'v1/{+parent}/authTokens',
554+
'httpMethod' => 'GET',
555+
'parameters' => [
556+
'parent' => [
557+
'location' => 'path',
558+
'type' => 'string',
559+
'required' => true,
560+
],
561+
'filter' => [
562+
'location' => 'query',
563+
'type' => 'string',
564+
],
565+
'orderBy' => [
566+
'location' => 'query',
567+
'type' => 'string',
568+
],
569+
'pageSize' => [
570+
'location' => 'query',
571+
'type' => 'integer',
572+
],
573+
'pageToken' => [
574+
'location' => 'query',
575+
'type' => 'string',
576+
],
577+
],
578+
],
579+
]
580+
]
581+
);
434582
$this->projects_locations_instances = new CloudRedis\Resource\ProjectsLocationsInstances(
435583
$this,
436584
$this->serviceName,
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
18+
namespace Google\Service\CloudRedis;
19+
20+
class AddAuthTokenRequest extends \Google\Model
21+
{
22+
protected $authTokenType = AuthToken::class;
23+
protected $authTokenDataType = '';
24+
25+
/**
26+
* Required. The auth token to add.
27+
*
28+
* @param AuthToken $authToken
29+
*/
30+
public function setAuthToken(AuthToken $authToken)
31+
{
32+
$this->authToken = $authToken;
33+
}
34+
/**
35+
* @return AuthToken
36+
*/
37+
public function getAuthToken()
38+
{
39+
return $this->authToken;
40+
}
41+
}
42+
43+
// Adding a class alias for backwards compatibility with the previous class name.
44+
class_alias(AddAuthTokenRequest::class, 'Google_Service_CloudRedis_AddAuthTokenRequest');
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
18+
namespace Google\Service\CloudRedis;
19+
20+
class AddTokenAuthUserRequest extends \Google\Model
21+
{
22+
/**
23+
* Required. The id of the token auth user to add.
24+
*
25+
* @var string
26+
*/
27+
public $tokenAuthUser;
28+
29+
/**
30+
* Required. The id of the token auth user to add.
31+
*
32+
* @param string $tokenAuthUser
33+
*/
34+
public function setTokenAuthUser($tokenAuthUser)
35+
{
36+
$this->tokenAuthUser = $tokenAuthUser;
37+
}
38+
/**
39+
* @return string
40+
*/
41+
public function getTokenAuthUser()
42+
{
43+
return $this->tokenAuthUser;
44+
}
45+
}
46+
47+
// Adding a class alias for backwards compatibility with the previous class name.
48+
class_alias(AddTokenAuthUserRequest::class, 'Google_Service_CloudRedis_AddTokenAuthUserRequest');

0 commit comments

Comments
 (0)