Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 94 additions & 0 deletions src/SecretManager/CloudSqlSingleUserCredentials.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 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.
*/

namespace Google\Service\SecretManager;

class CloudSqlSingleUserCredentials extends \Google\Model
{
/**
* Required. Instance ID of the Cloud SQL instance.
*
* @var string
*/
public $instanceId;
/**
* Optional. Password of the Cloud SQL instance. If this is not provided, a
* random password will be generated.
*
* @var string
*/
public $password;
/**
* Required. Username of the Cloud SQL instance.
*
* @var string
*/
public $username;

/**
* Required. Instance ID of the Cloud SQL instance.
*
* @param string $instanceId
*/
public function setInstanceId($instanceId)
{
$this->instanceId = $instanceId;
}
/**
* @return string
*/
public function getInstanceId()
{
return $this->instanceId;
}
/**
* Optional. Password of the Cloud SQL instance. If this is not provided, a
* random password will be generated.
*
* @param string $password
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* Required. Username of the Cloud SQL instance.
*
* @param string $username
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudSqlSingleUserCredentials::class, 'Google_Service_SecretManager_CloudSqlSingleUserCredentials');
8 changes: 4 additions & 4 deletions src/SecretManager/EnableManagedRotationRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@

class EnableManagedRotationRequest extends \Google\Model
{
protected $cloudSqlSingleUserCredentialsType = CloudSQLSingleUserCredentials::class;
protected $cloudSqlSingleUserCredentialsType = CloudSqlSingleUserCredentials::class;
protected $cloudSqlSingleUserCredentialsDataType = '';

/**
* Credentials required for Cloud SQL DB for Single user Managed Rotation.
*
* @param CloudSQLSingleUserCredentials $cloudSqlSingleUserCredentials
* @param CloudSqlSingleUserCredentials $cloudSqlSingleUserCredentials
*/
public function setCloudSqlSingleUserCredentials(CloudSQLSingleUserCredentials $cloudSqlSingleUserCredentials)
public function setCloudSqlSingleUserCredentials(CloudSqlSingleUserCredentials $cloudSqlSingleUserCredentials)
{
$this->cloudSqlSingleUserCredentials = $cloudSqlSingleUserCredentials;
}
/**
* @return CloudSQLSingleUserCredentials
* @return CloudSqlSingleUserCredentials
*/
public function getCloudSqlSingleUserCredentials()
{
Expand Down
Loading