Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class GenericHTTPEndpointConfig.
Defines the configuration for connections to an HTTP service provider.
Generated from protobuf message google.cloud.developerconnect.v1.GenericHTTPEndpointConfig
Namespace
Google \ Cloud \ DeveloperConnect \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ basic_authentication |
GenericHTTPEndpointConfig\BasicAuthentication
Optional. Basic authentication with username and password. |
↳ bearer_token_authentication |
GenericHTTPEndpointConfig\BearerTokenAuthentication
Optional. Bearer token authentication with a token. |
↳ host_uri |
string
Required. Immutable. The service provider's https endpoint. |
↳ service_directory_config |
ServiceDirectoryConfig
Optional. Configuration for using Service Directory to privately connect to a HTTP service provider. This should only be set if the Http service provider is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the HTTP service provider will be made over the public internet. |
↳ ssl_ca_certificate |
string
Optional. The SSL certificate to use for requests to the HTTP service provider. |
getBasicAuthentication
Optional. Basic authentication with username and password.
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig\BasicAuthentication|null |
|
hasBasicAuthentication
setBasicAuthentication
Optional. Basic authentication with username and password.
| Parameter | |
|---|---|
| Name | Description |
var |
GenericHTTPEndpointConfig\BasicAuthentication
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBearerTokenAuthentication
Optional. Bearer token authentication with a token.
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig\BearerTokenAuthentication|null |
|
hasBearerTokenAuthentication
setBearerTokenAuthentication
Optional. Bearer token authentication with a token.
| Parameter | |
|---|---|
| Name | Description |
var |
GenericHTTPEndpointConfig\BearerTokenAuthentication
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getHostUri
Required. Immutable. The service provider's https endpoint.
| Returns | |
|---|---|
| Type | Description |
string |
|
setHostUri
Required. Immutable. The service provider's https endpoint.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getServiceDirectoryConfig
Optional. Configuration for using Service Directory to privately connect to a HTTP service provider. This should only be set if the Http service provider is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the HTTP service provider will be made over the public internet.
| Returns | |
|---|---|
| Type | Description |
ServiceDirectoryConfig|null |
|
hasServiceDirectoryConfig
clearServiceDirectoryConfig
setServiceDirectoryConfig
Optional. Configuration for using Service Directory to privately connect to a HTTP service provider. This should only be set if the Http service provider is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the HTTP service provider will be made over the public internet.
| Parameter | |
|---|---|
| Name | Description |
var |
ServiceDirectoryConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSslCaCertificate
Optional. The SSL certificate to use for requests to the HTTP service provider.
| Returns | |
|---|---|
| Type | Description |
string |
|
setSslCaCertificate
Optional. The SSL certificate to use for requests to the HTTP service provider.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAuthentication
| Returns | |
|---|---|
| Type | Description |
string |
|