Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::ServiceAttachment.
Represents a ServiceAttachment resource. A service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#connected_endpoints
def connected_endpoints() -> ::Array<::Google::Cloud::Compute::V1::ServiceAttachmentConnectedEndpoint>
Returns
- (::Array<::Google::Cloud::Compute::V1::ServiceAttachmentConnectedEndpoint>) — [Output Only] An array of connections for all the consumers connected to this service attachment.
#connected_endpoints=
def connected_endpoints=(value) -> ::Array<::Google::Cloud::Compute::V1::ServiceAttachmentConnectedEndpoint>
Parameter
- value (::Array<::Google::Cloud::Compute::V1::ServiceAttachmentConnectedEndpoint>) — [Output Only] An array of connections for all the consumers connected to this service attachment.
Returns
- (::Array<::Google::Cloud::Compute::V1::ServiceAttachmentConnectedEndpoint>) — [Output Only] An array of connections for all the consumers connected to this service attachment.
#connection_preference
def connection_preference() -> ::String
Returns
- (::String) — The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. Check the ConnectionPreference enum for the list of possible values.
#connection_preference=
def connection_preference=(value) -> ::String
Parameter
- value (::String) — The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. Check the ConnectionPreference enum for the list of possible values.
Returns
- (::String) — The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. Check the ConnectionPreference enum for the list of possible values.
#consumer_accept_lists
def consumer_accept_lists() -> ::Array<::Google::Cloud::Compute::V1::ServiceAttachmentConsumerProjectLimit>
Returns
- (::Array<::Google::Cloud::Compute::V1::ServiceAttachmentConsumerProjectLimit>) — Projects that are allowed to connect to this service attachment.
#consumer_accept_lists=
def consumer_accept_lists=(value) -> ::Array<::Google::Cloud::Compute::V1::ServiceAttachmentConsumerProjectLimit>
Parameter
- value (::Array<::Google::Cloud::Compute::V1::ServiceAttachmentConsumerProjectLimit>) — Projects that are allowed to connect to this service attachment.
Returns
- (::Array<::Google::Cloud::Compute::V1::ServiceAttachmentConsumerProjectLimit>) — Projects that are allowed to connect to this service attachment.
#consumer_reject_lists
def consumer_reject_lists() -> ::Array<::String>
Returns
- (::Array<::String>) — Projects that are not allowed to connect to this service attachment. The project can be specified using its id or number.
#consumer_reject_lists=
def consumer_reject_lists=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Projects that are not allowed to connect to this service attachment. The project can be specified using its id or number.
Returns
- (::Array<::String>) — Projects that are not allowed to connect to this service attachment. The project can be specified using its id or number.
#creation_timestamp
def creation_timestamp() -> ::String
Returns
- (::String) — [Output Only] Creation timestamp in RFC3339 text format.
#creation_timestamp=
def creation_timestamp=(value) -> ::String
Parameter
- value (::String) — [Output Only] Creation timestamp in RFC3339 text format.
Returns
- (::String) — [Output Only] Creation timestamp in RFC3339 text format.
#description
def description() -> ::String
Returns
- (::String) — An optional description of this resource. Provide this property when you create the resource.
#description=
def description=(value) -> ::String
Parameter
- value (::String) — An optional description of this resource. Provide this property when you create the resource.
Returns
- (::String) — An optional description of this resource. Provide this property when you create the resource.
#domain_names
def domain_names() -> ::Array<::String>
Returns
- (::Array<::String>) — If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.
#domain_names=
def domain_names=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.
Returns
- (::Array<::String>) — If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.
#enable_proxy_protocol
def enable_proxy_protocol() -> ::Boolean
Returns
- (::Boolean) — If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.
#enable_proxy_protocol=
def enable_proxy_protocol=(value) -> ::Boolean
Parameter
- value (::Boolean) — If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.
Returns
- (::Boolean) — If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.
#fingerprint
def fingerprint() -> ::String
Returns
- (::String) — Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.
#fingerprint=
def fingerprint=(value) -> ::String
Parameter
- value (::String) — Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.
Returns
- (::String) — Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.
#id
def id() -> ::Integer
Returns
- (::Integer) — [Output Only] The unique identifier for the resource type. The server generates this identifier.
#id=
def id=(value) -> ::Integer
Parameter
- value (::Integer) — [Output Only] The unique identifier for the resource type. The server generates this identifier.
Returns
- (::Integer) — [Output Only] The unique identifier for the resource type. The server generates this identifier.
#kind
def kind() -> ::String
Returns
- (::String) — [Output Only] Type of the resource. Always compute#serviceAttachment for service attachments.
#kind=
def kind=(value) -> ::String
Parameter
- value (::String) — [Output Only] Type of the resource. Always compute#serviceAttachment for service attachments.
Returns
- (::String) — [Output Only] Type of the resource. Always compute#serviceAttachment for service attachments.
#name
def name() -> ::String
Returns
-
(::String) — Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
Returns
-
(::String) — Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
#nat_subnets
def nat_subnets() -> ::Array<::String>
Returns
- (::Array<::String>) — An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.
#nat_subnets=
def nat_subnets=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.
Returns
- (::Array<::String>) — An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.
#producer_forwarding_rule
def producer_forwarding_rule() -> ::String
Returns
- (::String) — The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.
#producer_forwarding_rule=
def producer_forwarding_rule=(value) -> ::String
Parameter
- value (::String) — The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.
Returns
- (::String) — The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.
#psc_service_attachment_id
def psc_service_attachment_id() -> ::Google::Cloud::Compute::V1::Uint128
Returns
- (::Google::Cloud::Compute::V1::Uint128) — [Output Only] An 128-bit global unique ID of the PSC service attachment.
#psc_service_attachment_id=
def psc_service_attachment_id=(value) -> ::Google::Cloud::Compute::V1::Uint128
Parameter
- value (::Google::Cloud::Compute::V1::Uint128) — [Output Only] An 128-bit global unique ID of the PSC service attachment.
Returns
- (::Google::Cloud::Compute::V1::Uint128) — [Output Only] An 128-bit global unique ID of the PSC service attachment.
#reconcile_connections
def reconcile_connections() -> ::Boolean
Returns
- (::Boolean) — This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false.
#reconcile_connections=
def reconcile_connections=(value) -> ::Boolean
Parameter
- value (::Boolean) — This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false.
Returns
- (::Boolean) — This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false.
#region
def region() -> ::String
Returns
- (::String) — [Output Only] URL of the region where the service attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#region=
def region=(value) -> ::String
Parameter
- value (::String) — [Output Only] URL of the region where the service attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
Returns
- (::String) — [Output Only] URL of the region where the service attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#self_link
def self_link() -> ::String
Returns
- (::String) — [Output Only] Server-defined URL for the resource.
#self_link=
def self_link=(value) -> ::String
Parameter
- value (::String) — [Output Only] Server-defined URL for the resource.
Returns
- (::String) — [Output Only] Server-defined URL for the resource.
#target_service
def target_service() -> ::String
Returns
- (::String) — The URL of a service serving the endpoint identified by this service attachment.
#target_service=
def target_service=(value) -> ::String
Parameter
- value (::String) — The URL of a service serving the endpoint identified by this service attachment.
Returns
- (::String) — The URL of a service serving the endpoint identified by this service attachment.