Authentication rules for the service.
By default, if a method has any authentication requirements, every request must include a valid credential matching one of the requirements. It's an error to include more than one kind of credential in a single request. If a method doesn't have any auth requirements, request credentials will be ignored.
Generated from protobuf message google.api.AuthenticationRule
Methods |
public __construct( $data = NULL) Constructor.
|
public clearOauth() |
public getAllowWithoutCredential() If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests. Generated from protobuf field bool allow_without_credential = 5;
|
public getOauth() The requirements for OAuth credentials. Generated from protobuf field .google.api.OAuthRequirements oauth = 2;
|
public getRequirements() Requirements for additional authentication providers. Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7;
|
public getSelector() Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details. Generated from protobuf field string selector = 1;
|
public hasOauth() |
public setAllowWithoutCredential( $var) If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests. Generated from protobuf field bool allow_without_credential = 5;
|
public setOauth( $var) The requirements for OAuth credentials. Generated from protobuf field .google.api.OAuthRequirements oauth = 2;
|
public setRequirements( $var) Requirements for additional authentication providers. Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7;
|
public setSelector( $var) Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details. Generated from protobuf field string selector = 1;
|
Properties |
protected $allow_without_credential = false If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests. Generated from protobuf field bool allow_without_credential = 5; |
protected $oauth = NULL The requirements for OAuth credentials. Generated from protobuf field .google.api.OAuthRequirements oauth = 2; |
protected $selector = '' Selects the methods to which this rule applies. Refer to [selector][google.api.DocumentationRule.selector] for syntax details. Generated from protobuf field string selector = 1; |
Methods |
Properties |
private $requirements = NULL Requirements for additional authentication providers. Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; |