Network Connectivity v1 API - Class ServiceConnectionPolicy (2.10.0)

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

Reference documentation and code samples for the Network Connectivity v1 API class ServiceConnectionPolicy.

The ServiceConnectionPolicy resource.

Inheritance

object > ServiceConnectionPolicy

Namespace

Google.Cloud.NetworkConnectivity.V1

Assembly

Google.Cloud.NetworkConnectivity.V1.dll

Constructors

ServiceConnectionPolicy()

public ServiceConnectionPolicy()

ServiceConnectionPolicy(ServiceConnectionPolicy)

public ServiceConnectionPolicy(ServiceConnectionPolicy other)
Parameter
Name Description
other ServiceConnectionPolicy

Properties

CreateTime

public Timestamp CreateTime { get; set; }

Output only. Time when the ServiceConnectionPolicy was created.

Property Value
Type Description
Timestamp

Description

public string Description { get; set; }

A description of this resource.

Property Value
Type Description
string

Etag

public string Etag { get; set; }

Optional. The etag is computed by the server, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

Property Value
Type Description
string

HasEtag

public bool HasEtag { get; }

Gets whether the "etag" field is set

Property Value
Type Description
bool

Infrastructure

public Infrastructure Infrastructure { get; set; }

Output only. The type of underlying resources used to create the connection.

Property Value
Type Description
Infrastructure

Labels

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

User-defined labels.

Property Value
Type Description
MapFieldstringstring

Name

public string Name { get; set; }

Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names

Property Value
Type Description
string

Network

public string Network { get; set; }

The resource path of the consumer network. Example:

  • projects/{projectNumOrId}/global/networks/{resourceId}.
Property Value
Type Description
string

NetworkAsNetworkName

public NetworkName NetworkAsNetworkName { get; set; }

NetworkName-typed view over the Network resource name property.

Property Value
Type Description
NetworkName

PscConfig

public ServiceConnectionPolicy.Types.PscConfig PscConfig { get; set; }

Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.

Property Value
Type Description
ServiceConnectionPolicyTypesPscConfig

PscConnections

public RepeatedField<ServiceConnectionPolicy.Types.PscConnection> PscConnections { get; }

Output only. [Output only] Information about each Private Service Connect connection.

Property Value
Type Description
RepeatedFieldServiceConnectionPolicyTypesPscConnection

ServiceClass

public string ServiceClass { get; set; }

The service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp or google-cloud. For example, gcp-memorystore-redis or google-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.

Property Value
Type Description
string

ServiceConnectionPolicyName

public ServiceConnectionPolicyName ServiceConnectionPolicyName { get; set; }

ServiceConnectionPolicyName-typed view over the Name resource name property.

Property Value
Type Description
ServiceConnectionPolicyName

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. Time when the ServiceConnectionPolicy was updated.

Property Value
Type Description
Timestamp