Network Services v1 API - Class ServiceBinding (1.1.0)

public sealed class ServiceBinding : IMessage<ServiceBinding>, IEquatable<ServiceBinding>, IDeepCloneable<ServiceBinding>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Services v1 API class ServiceBinding.

ServiceBinding can be used to:

  • Bind a Service Directory Service to be used in a BackendService resource. This feature will be deprecated soon.
  • Bind a Private Service Connect producer service to be used in consumer Cloud Service Mesh or Application Load Balancers.
  • Bind a Cloud Run service to be used in consumer Cloud Service Mesh or Application Load Balancers.

Inheritance

object > ServiceBinding

Namespace

Google.Cloud.NetworkServices.V1

Assembly

Google.Cloud.NetworkServices.V1.dll

Constructors

ServiceBinding()

public ServiceBinding()

ServiceBinding(ServiceBinding)

public ServiceBinding(ServiceBinding other)
Parameter
Name Description
other ServiceBinding

Properties

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The timestamp when the resource was created.

Property Value
Type Description
Timestamp

Description

public string Description { get; set; }

Optional. A free-text description of the resource. Max length 1024 characters.

Property Value
Type Description
string

Labels

public MapField<string, string> Labels { get; }

Optional. Set of label tags associated with the ServiceBinding resource.

Property Value
Type Description
MapFieldstringstring

Name

public string Name { get; set; }

Identifier. Name of the ServiceBinding resource. It matches pattern projects/*/locations/*/serviceBindings/<service_binding_name>.

Property Value
Type Description
string

Service

[Obsolete]
public string Service { get; set; }

Optional. The full Service Directory Service name of the format projects/*/locations/*/namespaces/*/services/*. This field is for Service Directory integration which will be deprecated soon.

Property Value
Type Description
string

ServiceAsServiceName

[Obsolete]
public ServiceName ServiceAsServiceName { get; set; }

ServiceName-typed view over the Service resource name property.

Property Value
Type Description
ServiceName

ServiceBindingName

public ServiceBindingName ServiceBindingName { get; set; }

ServiceBindingName-typed view over the Name resource name property.

Property Value
Type Description
ServiceBindingName

ServiceId

[Obsolete]
public string ServiceId { get; set; }

Output only. The unique identifier of the Service Directory Service against which the ServiceBinding resource is validated. This is populated when the Service Binding resource is used in another resource (like Backend Service). This is of the UUID4 format. This field is for Service Directory integration which will be deprecated soon.

Property Value
Type Description
string

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. The timestamp when the resource was updated.

Property Value
Type Description
Timestamp