Class: Google::Apis::NetworkconnectivityV1::ServiceConnectionToken
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::NetworkconnectivityV1::ServiceConnectionToken
 
 
- 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
- 
  
    
      #create_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A description of this resource.
 - 
  
    
      #etag  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 - 
  
    
      #expire_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #labels  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
User-defined labels.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Immutable.
 - 
  
    
      #network  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The resource path of the network associated with this token.
 - 
  
    
      #token  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #update_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ServiceConnectionToken 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ServiceConnectionToken.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ ServiceConnectionToken
Returns a new instance of ServiceConnectionToken.
      3165 3166 3167  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3165 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#create_time ⇒ String
Output only. Time when the ServiceConnectionToken was created.
Corresponds to the JSON property createTime
      3119 3120 3121  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3119 def create_time @create_time end  | 
  
#description ⇒ String
A description of this resource.
Corresponds to the JSON property description
      3124 3125 3126  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3124 def description @description end  | 
  
#etag ⇒ String
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
      3130 3131 3132  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3130 def etag @etag end  | 
  
#expire_time ⇒ String
Output only. The time to which this token is valid.
Corresponds to the JSON property expireTime
      3135 3136 3137  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3135 def expire_time @expire_time end  | 
  
#labels ⇒ Hash<String,String>
User-defined labels.
Corresponds to the JSON property labels
      3140 3141 3142  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3140 def labels @labels end  | 
  
#name ⇒ String
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
      3147 3148 3149  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3147 def name @name end  | 
  
#network ⇒ String
The resource path of the network associated with this token. Example: projects/
projectNumOrId/global/networks/resourceId.
Corresponds to the JSON property network
      3153 3154 3155  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3153 def network @network end  | 
  
#token ⇒ String
Output only. The token generated by Automation.
Corresponds to the JSON property token
      3158 3159 3160  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3158 def token @token end  | 
  
#update_time ⇒ String
Output only. Time when the ServiceConnectionToken was updated.
Corresponds to the JSON property updateTime
      3163 3164 3165  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3163 def update_time @update_time end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180  | 
    
      # File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3170 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  |