class Google::Apis::ApikeysV2::V2Key
The representation of a key managed by the API Keys API.
Attributes
Output only. A timestamp identifying the time this key was originally created. Corresponds to the JSON property `createTime` @return [String]
Output only. A timestamp when this key was deleted. If the resource is not deleted, this must be empty. Corresponds to the JSON property `deleteTime` @return [String]
Human-readable display name of this key that you can modify. The maximum length is 63 characters. Corresponds to the JSON property `displayName` @return [String]
Output only. A checksum computed by the server based on the current value of the Key resource. This 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` @return [String]
Output only. An encrypted and signed value held by this key. This field can be accessed only through the `GetKeyString` method. Corresponds to the JSON property `keyString` @return [String]
Output only. The resource name of the key. The `name` has the form: `projects// locations/global/keys/`. For example: `projects/123456867718/locations/global/ keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a global resource; hence the only supported value for location is `global`. Corresponds to the JSON property `name` @return [String]
Describes the restrictions on the key. Corresponds to the JSON property `restrictions` @return [Google::Apis::ApikeysV2::V2Restrictions]
Output only. Unique id in UUID4 format. Corresponds to the JSON property `uid` @return [String]
Output only. A timestamp identifying the time this key was last updated. Corresponds to the JSON property `updateTime` @return [String]
Public Class Methods
# File lib/google/apis/apikeys_v2/classes.rb, line 344 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/apikeys_v2/classes.rb, line 349 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @delete_time = args[:delete_time] if args.key?(:delete_time) @display_name = args[:display_name] if args.key?(:display_name) @etag = args[:etag] if args.key?(:etag) @key_string = args[:key_string] if args.key?(:key_string) @name = args[:name] if args.key?(:name) @restrictions = args[:restrictions] if args.key?(:restrictions) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end