Class: Google::Apis::NetworkconnectivityV1::ServiceConnectionToken

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

Overview

The ServiceConnectionToken resource. Next id: 10

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceConnectionToken

Returns a new instance of ServiceConnectionToken.



3041
3042
3043
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3041

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

Instance Attribute Details

#create_timeString

Output only. Time when the ServiceConnectionToken was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2995
2996
2997
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2995

def create_time
  @create_time
end

#descriptionString

A description of this resource. Corresponds to the JSON property description

Returns:

  • (String)


3000
3001
3002
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3000

def description
  @description
end

#etagString

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. Corresponds to the JSON property etag

Returns:

  • (String)


3006
3007
3008
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3006

def etag
  @etag
end

#expire_timeString

Output only. The time to which this token is valid. Corresponds to the JSON property expireTime

Returns:

  • (String)


3011
3012
3013
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3011

def expire_time
  @expire_time
end

#labelsHash<String,String>

User-defined labels. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


3016
3017
3018
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3016

def labels
  @labels
end

#nameString

Immutable. The name of a ServiceConnectionToken. Format: projects/project/ locations/location/ServiceConnectionTokens/service_connection_token See: https://google.aip.dev/122#fields-representing-resource-names Corresponds to the JSON property name

Returns:

  • (String)


3023
3024
3025
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3023

def name
  @name
end

#networkString

The resource path of the network associated with this token. Example: projects/ projectNumOrId/global/networks/resourceId. Corresponds to the JSON property network

Returns:

  • (String)


3029
3030
3031
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3029

def network
  @network
end

#tokenString

Output only. The token generated by Automation. Corresponds to the JSON property token

Returns:

  • (String)


3034
3035
3036
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3034

def token
  @token
end

#update_timeString

Output only. Time when the ServiceConnectionToken was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


3039
3040
3041
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3039

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3046

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @etag = args[:etag] if args.key?(:etag)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @network = args[:network] if args.key?(:network)
  @token = args[:token] if args.key?(:token)
  @update_time = args[:update_time] if args.key?(:update_time)
end