<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/gkemulticloud/v1/azure_resources.proto

namespace Google\Cloud\GkeMultiCloud\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * SSH configuration for Azure resources.
 *
 * Generated from protobuf message <code>google.cloud.gkemulticloud.v1.AzureSshConfig</code>
 */
class AzureSshConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The SSH public key data for VMs managed by Anthos. This accepts
     * the authorized_keys file format used in OpenSSH according to the sshd(8)
     * manual page.
     *
     * Generated from protobuf field <code>string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $authorized_key = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $authorized_key
     *           Required. The SSH public key data for VMs managed by Anthos. This accepts
     *           the authorized_keys file format used in OpenSSH according to the sshd(8)
     *           manual page.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gkemulticloud\V1\AzureResources::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The SSH public key data for VMs managed by Anthos. This accepts
     * the authorized_keys file format used in OpenSSH according to the sshd(8)
     * manual page.
     *
     * Generated from protobuf field <code>string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getAuthorizedKey()
    {
        return $this->authorized_key;
    }

    /**
     * Required. The SSH public key data for VMs managed by Anthos. This accepts
     * the authorized_keys file format used in OpenSSH according to the sshd(8)
     * manual page.
     *
     * Generated from protobuf field <code>string authorized_key = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setAuthorizedKey($var)
    {
        GPBUtil::checkString($var, True);
        $this->authorized_key = $var;

        return $this;
    }

}

