googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Api
/
Authentication.php
googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Api
Last commit date
BackendRule
3 years ago
Billing
3 years ago
Distribution
3 years ago
Expr
3 years ago
LabelDescriptor
3 years ago
Logging
3 years ago
MetricDescriptor
3 years ago
Monitoring
3 years ago
Property
3 years ago
ResourceDescriptor
3 years ago
Advice.php
3 years ago
AuthProvider.php
3 years ago
AuthRequirement.php
3 years ago
Authentication.php
3 years ago
AuthenticationRule.php
3 years ago
Backend.php
3 years ago
BackendRule.php
3 years ago
BackendRule_PathTranslation.php
3 years ago
Billing.php
3 years ago
Billing_BillingDestination.php
3 years ago
ChangeType.php
3 years ago
ConfigChange.php
3 years ago
Context.php
3 years ago
ContextRule.php
3 years ago
Control.php
3 years ago
CustomHttpPattern.php
3 years ago
Distribution.php
3 years ago
Distribution_BucketOptions.php
3 years ago
Distribution_BucketOptions_Explicit.php
3 years ago
Distribution_BucketOptions_Exponential.php
3 years ago
Distribution_BucketOptions_Linear.php
3 years ago
Distribution_Exemplar.php
3 years ago
Distribution_Range.php
3 years ago
Documentation.php
3 years ago
DocumentationRule.php
3 years ago
Endpoint.php
3 years ago
FieldBehavior.php
3 years ago
Http.php
3 years ago
HttpBody.php
3 years ago
HttpRule.php
3 years ago
LabelDescriptor.php
3 years ago
LabelDescriptor_ValueType.php
3 years ago
LaunchStage.php
3 years ago
LogDescriptor.php
3 years ago
Logging.php
3 years ago
Logging_LoggingDestination.php
3 years ago
Metric.php
3 years ago
MetricDescriptor.php
3 years ago
MetricDescriptor_MetricDescriptorMetadata.php
3 years ago
MetricDescriptor_MetricKind.php
3 years ago
MetricDescriptor_ValueType.php
3 years ago
MetricRule.php
3 years ago
MonitoredResource.php
3 years ago
MonitoredResourceDescriptor.php
3 years ago
MonitoredResourceMetadata.php
3 years ago
Monitoring.php
3 years ago
Monitoring_MonitoringDestination.php
3 years ago
OAuthRequirements.php
3 years ago
Page.php
3 years ago
ProjectProperties.php
3 years ago
Property.php
3 years ago
Property_PropertyType.php
3 years ago
Quota.php
3 years ago
QuotaLimit.php
3 years ago
ResourceDescriptor.php
3 years ago
ResourceDescriptor_History.php
3 years ago
ResourceReference.php
3 years ago
RoutingParameter.php
3 years ago
RoutingRule.php
3 years ago
Service.php
3 years ago
SourceInfo.php
3 years ago
SystemParameter.php
3 years ago
SystemParameterRule.php
3 years ago
SystemParameters.php
3 years ago
Usage.php
3 years ago
UsageRule.php
3 years ago
Authentication.php
117 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/api/auth.proto |
| 4 | |
| 5 | namespace Google\Api; |
| 6 | |
| 7 | use Google\Protobuf\Internal\GPBType; |
| 8 | use Google\Protobuf\Internal\RepeatedField; |
| 9 | use Google\Protobuf\Internal\GPBUtil; |
| 10 | |
| 11 | /** |
| 12 | * `Authentication` defines the authentication configuration for an API. |
| 13 | * Example for an API targeted for external use: |
| 14 | * name: calendar.googleapis.com |
| 15 | * authentication: |
| 16 | * providers: |
| 17 | * - id: google_calendar_auth |
| 18 | * jwks_uri: https://www.googleapis.com/oauth2/v1/certs |
| 19 | * issuer: https://securetoken.google.com |
| 20 | * rules: |
| 21 | * - selector: "*" |
| 22 | * requirements: |
| 23 | * provider_id: google_calendar_auth |
| 24 | * |
| 25 | * Generated from protobuf message <code>google.api.Authentication</code> |
| 26 | */ |
| 27 | class Authentication extends \Google\Protobuf\Internal\Message |
| 28 | { |
| 29 | /** |
| 30 | * A list of authentication rules that apply to individual API methods. |
| 31 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 32 | * |
| 33 | * Generated from protobuf field <code>repeated .google.api.AuthenticationRule rules = 3;</code> |
| 34 | */ |
| 35 | private $rules; |
| 36 | /** |
| 37 | * Defines a set of authentication providers that a service supports. |
| 38 | * |
| 39 | * Generated from protobuf field <code>repeated .google.api.AuthProvider providers = 4;</code> |
| 40 | */ |
| 41 | private $providers; |
| 42 | |
| 43 | /** |
| 44 | * Constructor. |
| 45 | * |
| 46 | * @param array $data { |
| 47 | * Optional. Data for populating the Message object. |
| 48 | * |
| 49 | * @type \Google\Api\AuthenticationRule[]|\Google\Protobuf\Internal\RepeatedField $rules |
| 50 | * A list of authentication rules that apply to individual API methods. |
| 51 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 52 | * @type \Google\Api\AuthProvider[]|\Google\Protobuf\Internal\RepeatedField $providers |
| 53 | * Defines a set of authentication providers that a service supports. |
| 54 | * } |
| 55 | */ |
| 56 | public function __construct($data = NULL) { |
| 57 | \GPBMetadata\Google\Api\Auth::initOnce(); |
| 58 | parent::__construct($data); |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * A list of authentication rules that apply to individual API methods. |
| 63 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 64 | * |
| 65 | * Generated from protobuf field <code>repeated .google.api.AuthenticationRule rules = 3;</code> |
| 66 | * @return \Google\Protobuf\Internal\RepeatedField |
| 67 | */ |
| 68 | public function getRules() |
| 69 | { |
| 70 | return $this->rules; |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * A list of authentication rules that apply to individual API methods. |
| 75 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 76 | * |
| 77 | * Generated from protobuf field <code>repeated .google.api.AuthenticationRule rules = 3;</code> |
| 78 | * @param \Google\Api\AuthenticationRule[]|\Google\Protobuf\Internal\RepeatedField $var |
| 79 | * @return $this |
| 80 | */ |
| 81 | public function setRules($var) |
| 82 | { |
| 83 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthenticationRule::class); |
| 84 | $this->rules = $arr; |
| 85 | |
| 86 | return $this; |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Defines a set of authentication providers that a service supports. |
| 91 | * |
| 92 | * Generated from protobuf field <code>repeated .google.api.AuthProvider providers = 4;</code> |
| 93 | * @return \Google\Protobuf\Internal\RepeatedField |
| 94 | */ |
| 95 | public function getProviders() |
| 96 | { |
| 97 | return $this->providers; |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Defines a set of authentication providers that a service supports. |
| 102 | * |
| 103 | * Generated from protobuf field <code>repeated .google.api.AuthProvider providers = 4;</code> |
| 104 | * @param \Google\Api\AuthProvider[]|\Google\Protobuf\Internal\RepeatedField $var |
| 105 | * @return $this |
| 106 | */ |
| 107 | public function setProviders($var) |
| 108 | { |
| 109 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthProvider::class); |
| 110 | $this->providers = $arr; |
| 111 | |
| 112 | return $this; |
| 113 | } |
| 114 | |
| 115 | } |
| 116 | |
| 117 |