Network Connectivity V1 API - Class Google::Cloud::NetworkConnectivity::V1::ServiceConnectionPolicy (v1.10.0)

Reference documentation and code samples for the Network Connectivity V1 API class Google::Cloud::NetworkConnectivity::V1::ServiceConnectionPolicy.

The ServiceConnectionPolicy resource.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_time

defcreate_time()->::Google::Protobuf::Timestamp
Returns

#description

defdescription()->::String
Returns
  • (::String) — A description of this resource.

#description=

defdescription=(value)->::String
Parameter
  • value (::String) — A description of this resource.
Returns
  • (::String) — A description of this resource.

#etag

defetag()->::String
Returns
  • (::String) — 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.

#etag=

defetag=(value)->::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#infrastructure

definfrastructure()->::Google::Cloud::NetworkConnectivity::V1::Infrastructure
Returns

#labels

deflabels()->::Google::Protobuf::Map{::String=>::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — User-defined labels.

#labels=

deflabels=(value)->::Google::Protobuf::Map{::String=>::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — User-defined labels.
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — User-defined labels.

#name

defname()->::String
Returns
  • (::String) — 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

#name=

defname=(value)->::String
Parameter
  • value (::String) — 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
Returns
  • (::String) — 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

#network

defnetwork()->::String
Returns
  • (::String) —

    The resource path of the consumer network. Example:

    • projects/{projectNumOrId}/global/networks/{resourceId}.

#network=

defnetwork=(value)->::String
Parameter
  • value (::String) —

    The resource path of the consumer network. Example:

    • projects/{projectNumOrId}/global/networks/{resourceId}.
Returns
  • (::String) —

    The resource path of the consumer network. Example:

    • projects/{projectNumOrId}/global/networks/{resourceId}.

#psc_config

defpsc_config()->::Google::Cloud::NetworkConnectivity::V1::ServiceConnectionPolicy::PscConfig
Returns

#psc_config=

defpsc_config=(value)->::Google::Cloud::NetworkConnectivity::V1::ServiceConnectionPolicy::PscConfig
Parameter
Returns

#psc_connections

defpsc_connections()->::Array<::Google::Cloud::NetworkConnectivity::V1::ServiceConnectionPolicy::PscConnection>
Returns

#service_class

defservice_class()->::String
Returns
  • (::String) — 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.

#service_class=

defservice_class=(value)->::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#update_time

defupdate_time()->::Google::Protobuf::Timestamp
Returns

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.