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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Network Connectivity v1 API - Class ServiceConnectionPolicy (2.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.11.0 (latest)](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.10.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.9.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.8.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.7.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.6.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.5.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.4.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.3.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.2.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.1.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.0.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.2.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.1.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.0.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy) \n\n public sealed class ServiceConnectionPolicy : IMessage\u003cServiceConnectionPolicy\u003e, IEquatable\u003cServiceConnectionPolicy\u003e, IDeepCloneable\u003cServiceConnectionPolicy\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Network Connectivity v1 API class ServiceConnectionPolicy.\n\nThe ServiceConnectionPolicy resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ServiceConnectionPolicy \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ServiceConnectionPolicy](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ServiceConnectionPolicy](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ServiceConnectionPolicy](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.NetworkConnectivity.V1](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.NetworkConnectivity.V1.dll\n\nConstructors\n------------\n\n### ServiceConnectionPolicy()\n\n public ServiceConnectionPolicy()\n\n### ServiceConnectionPolicy(ServiceConnectionPolicy)\n\n public ServiceConnectionPolicy(ServiceConnectionPolicy other)\n\nProperties\n----------\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. Time when the ServiceConnectionPolicy was created.\n\n### Description\n\n public string Description { get; set; }\n\nA description of this resource.\n\n### Etag\n\n public string Etag { get; set; }\n\nOptional. The etag is computed by the server, and may be sent on update and\ndelete requests to ensure the client has an up-to-date value before\nproceeding.\n\n### HasEtag\n\n public bool HasEtag { get; }\n\nGets whether the \"etag\" field is set\n\n### Infrastructure\n\n public Infrastructure Infrastructure { get; set; }\n\nOutput only. The type of underlying resources used to create the\nconnection.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nUser-defined labels.\n\n### Name\n\n public string Name { get; set; }\n\nImmutable. The name of a ServiceConnectionPolicy.\nFormat:\nprojects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy}\nSee: \u003chttps://google.aip.dev/122#fields-representing-resource-names\u003e\n\n### Network\n\n public string Network { get; set; }\n\nThe resource path of the consumer network.\nExample:\n\n- projects/{projectNumOrId}/global/networks/{resourceId}.\n\n### NetworkAsNetworkName\n\n public NetworkName NetworkAsNetworkName { get; set; }\n\n[NetworkName](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.NetworkName)-typed view over the [Network](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy#Google_Cloud_NetworkConnectivity_V1_ServiceConnectionPolicy_Network) resource name property.\n\n### PscConfig\n\n public ServiceConnectionPolicy.Types.PscConfig PscConfig { get; set; }\n\nConfiguration used for Private Service Connect connections. Used when\nInfrastructure is PSC.\n\n### PscConnections\n\n public RepeatedField\u003cServiceConnectionPolicy.Types.PscConnection\u003e PscConnections { get; }\n\nOutput only. \\[Output only\\] Information about each Private Service Connect\nconnection.\n\n### ServiceClass\n\n public string ServiceClass { get; set; }\n\nThe service class identifier for which this ServiceConnectionPolicy is for.\nThe service class identifier is a unique, symbolic representation of a\nServiceClass. It is provided by the Service Producer. Google services have\na prefix of gcp or google-cloud. For example, gcp-memorystore-redis or\ngoogle-cloud-sql. 3rd party services do not. For example,\ntest-service-a3dfcx.\n\n### ServiceConnectionPolicyName\n\n public ServiceConnectionPolicyName ServiceConnectionPolicyName { get; set; }\n\n[ServiceConnectionPolicyName](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicyName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy#Google_Cloud_NetworkConnectivity_V1_ServiceConnectionPolicy_Name) resource name\nproperty.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. Time when the ServiceConnectionPolicy was updated."]]