Files
IQ-Dynamic-Google-Pricing/vendor/google/apiclient-services/src/NetworkServices/TlsRouteRouteMatch.php

86 lines
2.7 KiB
PHP

<?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\NetworkServices;
class TlsRouteRouteMatch extends \Google\Collection
{
protected $collection_key = 'sniHost';
/**
* Optional. ALPN (Application-Layer Protocol Negotiation) to match against.
* Examples: "http/1.1", "h2". At least one of sni_host and alpn is required.
* Up to 5 alpns across all matches can be set.
*
* @var string[]
*/
public $alpn;
/**
* Optional. SNI (server name indicator) to match against. SNI will be matched
* against all wildcard domains, i.e. `www.example.com` will be first matched
* against `www.example.com`, then `*.example.com`, then `*.com.` Partial
* wildcards are not supported, and values like *w.example.com are invalid. At
* least one of sni_host and alpn is required. Up to 100 sni hosts across all
* matches can be set.
*
* @var string[]
*/
public $sniHost;
/**
* Optional. ALPN (Application-Layer Protocol Negotiation) to match against.
* Examples: "http/1.1", "h2". At least one of sni_host and alpn is required.
* Up to 5 alpns across all matches can be set.
*
* @param string[] $alpn
*/
public function setAlpn($alpn)
{
$this->alpn = $alpn;
}
/**
* @return string[]
*/
public function getAlpn()
{
return $this->alpn;
}
/**
* Optional. SNI (server name indicator) to match against. SNI will be matched
* against all wildcard domains, i.e. `www.example.com` will be first matched
* against `www.example.com`, then `*.example.com`, then `*.com.` Partial
* wildcards are not supported, and values like *w.example.com are invalid. At
* least one of sni_host and alpn is required. Up to 100 sni hosts across all
* matches can be set.
*
* @param string[] $sniHost
*/
public function setSniHost($sniHost)
{
$this->sniHost = $sniHost;
}
/**
* @return string[]
*/
public function getSniHost()
{
return $this->sniHost;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TlsRouteRouteMatch::class, 'Google_Service_NetworkServices_TlsRouteRouteMatch');