Class: Google::Cloud::NetworkConnectivity::V1::ServiceConnectionPolicy::PscConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/networkconnectivity/v1/cross_network_automation.rb

Overview

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

Defined Under Namespace

Modules: ProducerInstanceLocation

Instance Attribute Summary collapse

Instance Attribute Details

#allowed_google_producers_resource_hierarchy_level::Array<::String>

Returns 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 / where is one of 'projects', 'folders', or 'organizations' and is either the ID or the number of the resource type. Format for each allowed_google_producers_resource_hierarchy_level value: 'projects/' or 'folders/' or 'organizations/' Eg. [projects/my-project-id, projects/567, folders/891, organizations/123].

Returns:

  • (::Array<::String>)

    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 / where is one of 'projects', 'folders', or 'organizations' and is either the ID or the number of the resource type. Format for each allowed_google_producers_resource_hierarchy_level value: 'projects/' or 'folders/' or 'organizations/' Eg. [projects/my-project-id, projects/567, folders/891, organizations/123]



521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
# File 'proto_docs/google/cloud/networkconnectivity/v1/cross_network_automation.rb', line 521

class PscConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # ProducerInstanceLocation is used to specify which authorization mechanism
  # to use to determine which projects the Producer instance can be within.
  module ProducerInstanceLocation
    # Producer instance location is not specified. When this option is
    # chosen, then the PSC connections created by this
    # ServiceConnectionPolicy must be within the same project as the Producer
    # instance. This is the default ProducerInstanceLocation value.
    # To allow for PSC connections from this network to other networks, use
    # the CUSTOM_RESOURCE_HIERARCHY_LEVELS option.
    PRODUCER_INSTANCE_LOCATION_UNSPECIFIED = 0

    # Producer instance must be within one of the values provided in
    # allowed_google_producers_resource_hierarchy_level.
    CUSTOM_RESOURCE_HIERARCHY_LEVELS = 1
  end
end

#limit::Integer

Returns Optional. Max number of PSC connections for this policy.

Returns:

  • (::Integer)

    Optional. Max number of PSC connections for this policy.



521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
# File 'proto_docs/google/cloud/networkconnectivity/v1/cross_network_automation.rb', line 521

class PscConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # ProducerInstanceLocation is used to specify which authorization mechanism
  # to use to determine which projects the Producer instance can be within.
  module ProducerInstanceLocation
    # Producer instance location is not specified. When this option is
    # chosen, then the PSC connections created by this
    # ServiceConnectionPolicy must be within the same project as the Producer
    # instance. This is the default ProducerInstanceLocation value.
    # To allow for PSC connections from this network to other networks, use
    # the CUSTOM_RESOURCE_HIERARCHY_LEVELS option.
    PRODUCER_INSTANCE_LOCATION_UNSPECIFIED = 0

    # Producer instance must be within one of the values provided in
    # allowed_google_producers_resource_hierarchy_level.
    CUSTOM_RESOURCE_HIERARCHY_LEVELS = 1
  end
end

#producer_instance_location::Google::Cloud::NetworkConnectivity::V1::ServiceConnectionPolicy::PscConfig::ProducerInstanceLocation

Returns Required. ProducerInstanceLocation is used to specify which authorization mechanism to use to determine which projects the Producer instance can be within.

Returns:



521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
# File 'proto_docs/google/cloud/networkconnectivity/v1/cross_network_automation.rb', line 521

class PscConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # ProducerInstanceLocation is used to specify which authorization mechanism
  # to use to determine which projects the Producer instance can be within.
  module ProducerInstanceLocation
    # Producer instance location is not specified. When this option is
    # chosen, then the PSC connections created by this
    # ServiceConnectionPolicy must be within the same project as the Producer
    # instance. This is the default ProducerInstanceLocation value.
    # To allow for PSC connections from this network to other networks, use
    # the CUSTOM_RESOURCE_HIERARCHY_LEVELS option.
    PRODUCER_INSTANCE_LOCATION_UNSPECIFIED = 0

    # Producer instance must be within one of the values provided in
    # allowed_google_producers_resource_hierarchy_level.
    CUSTOM_RESOURCE_HIERARCHY_LEVELS = 1
  end
end

#subnetworks::Array<::String>

Returns The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.

Returns:

  • (::Array<::String>)

    The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.



521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
# File 'proto_docs/google/cloud/networkconnectivity/v1/cross_network_automation.rb', line 521

class PscConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # ProducerInstanceLocation is used to specify which authorization mechanism
  # to use to determine which projects the Producer instance can be within.
  module ProducerInstanceLocation
    # Producer instance location is not specified. When this option is
    # chosen, then the PSC connections created by this
    # ServiceConnectionPolicy must be within the same project as the Producer
    # instance. This is the default ProducerInstanceLocation value.
    # To allow for PSC connections from this network to other networks, use
    # the CUSTOM_RESOURCE_HIERARCHY_LEVELS option.
    PRODUCER_INSTANCE_LOCATION_UNSPECIFIED = 0

    # Producer instance must be within one of the values provided in
    # allowed_google_producers_resource_hierarchy_level.
    CUSTOM_RESOURCE_HIERARCHY_LEVELS = 1
  end
end