Class: Google::Cloud::Run::V2::VpcAccess
- Inherits:
-
Object
- Object
- Google::Cloud::Run::V2::VpcAccess
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/run/v2/vendor_settings.rb
Overview
VPC Access settings. For more information on sending traffic to a VPC network, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
Defined Under Namespace
Modules: VpcEgress Classes: NetworkInterface
Instance Attribute Summary collapse
-
#connector ⇒ ::String
VPC Access connector name.
-
#egress ⇒ ::Google::Cloud::Run::V2::VpcAccess::VpcEgress
Optional.
-
#network_interfaces ⇒ ::Array<::Google::Cloud::Run::V2::VpcAccess::NetworkInterface>
Optional.
Instance Attribute Details
#connector ⇒ ::String
Returns VPC Access connector name.
Format: projects/{project}/locations/{location}/connectors/{connector}
,
where {project}
can be project id or number.
For more information on sending traffic to a VPC network via a connector,
visit https://cloud.google.com/run/docs/configuring/vpc-connectors.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'proto_docs/google/cloud/run/v2/vendor_settings.rb', line 41 class VpcAccess include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Direct VPC egress settings. # @!attribute [rw] network # @return [::String] # Optional. The VPC network that the Cloud Run resource will be able to # send traffic to. At least one of network or subnetwork must be specified. # If both network and subnetwork are specified, the given VPC subnetwork # must belong to the given VPC network. If network is not specified, it # will be looked up from the subnetwork. # @!attribute [rw] subnetwork # @return [::String] # Optional. The VPC subnetwork that the Cloud Run resource will get IPs # from. At least one of network or subnetwork must be specified. If both # network and subnetwork are specified, the given VPC subnetwork must # belong to the given VPC network. If subnetwork is not specified, the # subnetwork with the same name with the network will be used. # @!attribute [rw] tags # @return [::Array<::String>] # Optional. Network tags applied to this Cloud Run resource. class NetworkInterface include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Egress options for VPC access. module VpcEgress # Unspecified VPC_EGRESS_UNSPECIFIED = 0 # All outbound traffic is routed through the VPC connector. ALL_TRAFFIC = 1 # Only private IP ranges are routed through the VPC connector. PRIVATE_RANGES_ONLY = 2 end end |
#egress ⇒ ::Google::Cloud::Run::V2::VpcAccess::VpcEgress
Returns Optional. Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'proto_docs/google/cloud/run/v2/vendor_settings.rb', line 41 class VpcAccess include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Direct VPC egress settings. # @!attribute [rw] network # @return [::String] # Optional. The VPC network that the Cloud Run resource will be able to # send traffic to. At least one of network or subnetwork must be specified. # If both network and subnetwork are specified, the given VPC subnetwork # must belong to the given VPC network. If network is not specified, it # will be looked up from the subnetwork. # @!attribute [rw] subnetwork # @return [::String] # Optional. The VPC subnetwork that the Cloud Run resource will get IPs # from. At least one of network or subnetwork must be specified. If both # network and subnetwork are specified, the given VPC subnetwork must # belong to the given VPC network. If subnetwork is not specified, the # subnetwork with the same name with the network will be used. # @!attribute [rw] tags # @return [::Array<::String>] # Optional. Network tags applied to this Cloud Run resource. class NetworkInterface include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Egress options for VPC access. module VpcEgress # Unspecified VPC_EGRESS_UNSPECIFIED = 0 # All outbound traffic is routed through the VPC connector. ALL_TRAFFIC = 1 # Only private IP ranges are routed through the VPC connector. PRIVATE_RANGES_ONLY = 2 end end |
#network_interfaces ⇒ ::Array<::Google::Cloud::Run::V2::VpcAccess::NetworkInterface>
Returns Optional. Direct VPC egress settings. Currently only single network interface is supported.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'proto_docs/google/cloud/run/v2/vendor_settings.rb', line 41 class VpcAccess include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Direct VPC egress settings. # @!attribute [rw] network # @return [::String] # Optional. The VPC network that the Cloud Run resource will be able to # send traffic to. At least one of network or subnetwork must be specified. # If both network and subnetwork are specified, the given VPC subnetwork # must belong to the given VPC network. If network is not specified, it # will be looked up from the subnetwork. # @!attribute [rw] subnetwork # @return [::String] # Optional. The VPC subnetwork that the Cloud Run resource will get IPs # from. At least one of network or subnetwork must be specified. If both # network and subnetwork are specified, the given VPC subnetwork must # belong to the given VPC network. If subnetwork is not specified, the # subnetwork with the same name with the network will be used. # @!attribute [rw] tags # @return [::Array<::String>] # Optional. Network tags applied to this Cloud Run resource. class NetworkInterface include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Egress options for VPC access. module VpcEgress # Unspecified VPC_EGRESS_UNSPECIFIED = 0 # All outbound traffic is routed through the VPC connector. ALL_TRAFFIC = 1 # Only private IP ranges are routed through the VPC connector. PRIVATE_RANGES_ONLY = 2 end end |