Class: Google::Apis::NetworkservicesV1::Mesh

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkservices_v1/classes.rb,
lib/google/apis/networkservices_v1/representations.rb,
lib/google/apis/networkservices_v1/representations.rb

Overview

Mesh represents a logical configuration grouping for workload to workload communication within a service mesh. Routes that point to mesh dictate how requests are routed within this logical mesh boundary.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Mesh

Returns a new instance of Mesh.



2151
2152
2153
# File 'lib/google/apis/networkservices_v1/classes.rb', line 2151

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. The timestamp when the resource was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2114
2115
2116
# File 'lib/google/apis/networkservices_v1/classes.rb', line 2114

def create_time
  @create_time
end

#descriptionString

Optional. A free-text description of the resource. Max length 1024 characters. Corresponds to the JSON property description

Returns:

  • (String)


2119
2120
2121
# File 'lib/google/apis/networkservices_v1/classes.rb', line 2119

def description
  @description
end

#interception_portFixnum

Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to listen on the specified port of localhost (127.0.0.1) address. The SIDECAR proxy will expect all traffic to be redirected to this port regardless of its actual ip:port destination. If unset, a port '15001' is used as the interception port. This will is applicable only for sidecar proxy deployments. Corresponds to the JSON property interceptionPort

Returns:

  • (Fixnum)


2128
2129
2130
# File 'lib/google/apis/networkservices_v1/classes.rb', line 2128

def interception_port
  @interception_port
end

#labelsHash<String,String>

Optional. Set of label tags associated with the Mesh resource. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2133
2134
2135
# File 'lib/google/apis/networkservices_v1/classes.rb', line 2133

def labels
  @labels
end

#nameString

Required. Name of the Mesh resource. It matches pattern projects/*/locations/ global/meshes/. Corresponds to the JSON property name

Returns:

  • (String)


2139
2140
2141
# File 'lib/google/apis/networkservices_v1/classes.rb', line 2139

def name
  @name
end

Output only. Server-defined URL of this resource Corresponds to the JSON property selfLink

Returns:

  • (String)


2144
2145
2146
# File 'lib/google/apis/networkservices_v1/classes.rb', line 2144

def self_link
  @self_link
end

#update_timeString

Output only. The timestamp when the resource was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


2149
2150
2151
# File 'lib/google/apis/networkservices_v1/classes.rb', line 2149

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2156
2157
2158
2159
2160
2161
2162
2163
2164
# File 'lib/google/apis/networkservices_v1/classes.rb', line 2156

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @interception_port = args[:interception_port] if args.key?(:interception_port)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @self_link = args[:self_link] if args.key?(:self_link)
  @update_time = args[:update_time] if args.key?(:update_time)
end