<?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\ServiceConsumerManagement;

class V1DefaultIdentity extends \Google\Model
{
  /**
   * The email address of the default identity. Calling GenerateDefaultIdentity
   * with a deleted or purged default identity should expect
   * does_not_exist@invalid-project.iam.gserviceaccount.com placeholder email.
   *
   * @var string
   */
  public $email;
  /**
   * Default identity resource name. An example name would be: `services/service
   * consumermanagement.googleapis.com/projects/123/defaultIdentity`
   *
   * @var string
   */
  public $name;
  /**
   * The Default Identity tag. If specified when creating the account, the tag
   * must be present in activation_grants. If not specified when creating the
   * account, the tag is set to the tag specified in activation_grants.
   *
   * @var string
   */
  public $tag;
  /**
   * The unique and stable id of the default identity.
   *
   * @var string
   */
  public $uniqueId;

  /**
   * The email address of the default identity. Calling GenerateDefaultIdentity
   * with a deleted or purged default identity should expect
   * does_not_exist@invalid-project.iam.gserviceaccount.com placeholder email.
   *
   * @param string $email
   */
  public function setEmail($email)
  {
    $this->email = $email;
  }
  /**
   * @return string
   */
  public function getEmail()
  {
    return $this->email;
  }
  /**
   * Default identity resource name. An example name would be: `services/service
   * consumermanagement.googleapis.com/projects/123/defaultIdentity`
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * The Default Identity tag. If specified when creating the account, the tag
   * must be present in activation_grants. If not specified when creating the
   * account, the tag is set to the tag specified in activation_grants.
   *
   * @param string $tag
   */
  public function setTag($tag)
  {
    $this->tag = $tag;
  }
  /**
   * @return string
   */
  public function getTag()
  {
    return $this->tag;
  }
  /**
   * The unique and stable id of the default identity.
   *
   * @param string $uniqueId
   */
  public function setUniqueId($uniqueId)
  {
    $this->uniqueId = $uniqueId;
  }
  /**
   * @return string
   */
  public function getUniqueId()
  {
    return $this->uniqueId;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V1DefaultIdentity::class, 'Google_Service_ServiceConsumerManagement_V1DefaultIdentity');
