public sealed class ServiceConnectionPolicy.Types.PscConfig : IMessage<ServiceConnectionPolicy.Types.PscConfig>, IEquatable<ServiceConnectionPolicy.Types.PscConfig>, IDeepCloneable<ServiceConnectionPolicy.Types.PscConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Connectivity v1 API class ServiceConnectionPolicy.Types.PscConfig.
Configuration used for Private Service Connect connections. Used when
Infrastructure is PSC.
public RepeatedField<string> AllowedGoogleProducersResourceHierarchyLevel { get; }
Optional. List of Projects, Folders, or Organizations from where the
Producer instance can be within. For example, a network administrator can
provide both 'organizations/foo' and 'projects/bar' as
allowed_google_producers_resource_hierarchy_levels. This allowlists this
network to connect with any Producer instance within the 'foo'
organization or the 'bar' project. By default,
allowed_google_producers_resource_hierarchy_level is empty. The format
for each allowed_google_producers_resource_hierarchy_level is <resource
type>/<id> where <resource type> is one of 'projects', 'folders', or
'organizations' and <id> is either the ID or the number of the resource
type. Format for each allowed_google_producers_resource_hierarchy_level
value: 'projects/<project_id_or_number>' or 'folders/<folder_id>' or
'organizations/<organization_id>'
Eg. [projects/my-project-id, projects/567, folders/891,
organizations/123]
public ServiceConnectionPolicy.Types.PscConfig.Types.ProducerInstanceLocation ProducerInstanceLocation { get; set; }
Required. ProducerInstanceLocation is used to specify which authorization
mechanism to use to determine which projects the Producer instance can be
within.
[[["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.Types.PscConfig (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.Types.PscConfig)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.10.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.9.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.8.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.7.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.6.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.5.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.4.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.3.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.2.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.1.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/2.0.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.2.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.1.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/1.0.0/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig) \n\n public sealed class ServiceConnectionPolicy.Types.PscConfig : IMessage\u003cServiceConnectionPolicy.Types.PscConfig\u003e, IEquatable\u003cServiceConnectionPolicy.Types.PscConfig\u003e, IDeepCloneable\u003cServiceConnectionPolicy.Types.PscConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Network Connectivity v1 API class ServiceConnectionPolicy.Types.PscConfig.\n\nConfiguration used for Private Service Connect connections. Used when\nInfrastructure is PSC. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ServiceConnectionPolicy.Types.PscConfig \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)[Types](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types)[PscConfig](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ServiceConnectionPolicy](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy)[Types](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types)[PscConfig](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig), [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)[Types](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types)[PscConfig](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig), [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### PscConfig()\n\n public PscConfig()\n\n### PscConfig(PscConfig)\n\n public PscConfig(ServiceConnectionPolicy.Types.PscConfig other)\n\nProperties\n----------\n\n### AllowedGoogleProducersResourceHierarchyLevel\n\n public RepeatedField\u003cstring\u003e AllowedGoogleProducersResourceHierarchyLevel { get; }\n\nOptional. List of Projects, Folders, or Organizations from where the\nProducer instance can be within. For example, a network administrator can\nprovide both 'organizations/foo' and 'projects/bar' as\nallowed_google_producers_resource_hierarchy_levels. This allowlists this\nnetwork to connect with any Producer instance within the 'foo'\norganization or the 'bar' project. By default,\nallowed_google_producers_resource_hierarchy_level is empty. The format\nfor each allowed_google_producers_resource_hierarchy_level is \\\u003cresource\ntype\\\u003e/\\\u003cid\\\u003e where \\\u003cresource type\\\u003e is one of 'projects', 'folders', or\n'organizations' and \\\u003cid\\\u003e is either the ID or the number of the resource\ntype. Format for each allowed_google_producers_resource_hierarchy_level\nvalue: 'projects/\\\u003cproject_id_or_number\\\u003e' or 'folders/\\\u003cfolder_id\\\u003e' or\n'organizations/\\\u003corganization_id\\\u003e'\nEg. \\[projects/my-project-id, projects/567, folders/891,\norganizations/123\\]\n\n### HasLimit\n\n public bool HasLimit { get; }\n\nGets whether the \"limit\" field is set\n\n### Limit\n\n public long Limit { get; set; }\n\nOptional. Max number of PSC connections for this policy.\n\n### ProducerInstanceLocation\n\n public ServiceConnectionPolicy.Types.PscConfig.Types.ProducerInstanceLocation ProducerInstanceLocation { get; set; }\n\nRequired. ProducerInstanceLocation is used to specify which authorization\nmechanism to use to determine which projects the Producer instance can be\nwithin.\n\n### Subnetworks\n\n public RepeatedField\u003cstring\u003e Subnetworks { get; }\n\nThe resource paths of subnetworks to use for IP address management.\nExample:\nprojects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.\n\n### SubnetworksAsSubnetworkNames\n\n public ResourceNameList\u003cSubnetworkName\u003e SubnetworksAsSubnetworkNames { get; }\n\n[SubnetworkName](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.SubnetworkName)-typed view over the [Subnetworks](/dotnet/docs/reference/Google.Cloud.NetworkConnectivity.V1/latest/Google.Cloud.NetworkConnectivity.V1.ServiceConnectionPolicy.Types.PscConfig#Google_Cloud_NetworkConnectivity_V1_ServiceConnectionPolicy_Types_PscConfig_Subnetworks) resource name property."]]