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: 9
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
A description of this resource.
-
#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.
1725 1726 1727 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1725 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
1685 1686 1687 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1685 def create_time @create_time end |
#description ⇒ String
A description of this resource.
Corresponds to the JSON property description
1690 1691 1692 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1690 def description @description end |
#expire_time ⇒ String
Output only. The time to which this token is valid.
Corresponds to the JSON property expireTime
1695 1696 1697 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1695 def expire_time @expire_time end |
#labels ⇒ Hash<String,String>
User-defined labels.
Corresponds to the JSON property labels
1700 1701 1702 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1700 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
1707 1708 1709 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1707 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
1713 1714 1715 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1713 def network @network end |
#token ⇒ String
Output only. The token generated by Automation.
Corresponds to the JSON property token
1718 1719 1720 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1718 def token @token end |
#update_time ⇒ String
Output only. Time when the ServiceConnectionToken was updated.
Corresponds to the JSON property updateTime
1723 1724 1725 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1723 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1730 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @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 |