class Google::Apis::StorageV1::HmacKeyMetadata
JSON template to produce a JSON-style HMAC Key metadata resource.
Attributes
The ID of the HMAC Key. Corresponds to the JSON property `accessId` @return [String]
HTTP 1.1 Entity tag for the HMAC key. Corresponds to the JSON property `etag` @return [String]
The ID of the HMAC key, including the Project ID and the Access ID. Corresponds to the JSON property `id` @return [String]
The kind of item this is. For HMAC Key metadata, this is always storage# hmacKeyMetadata. Corresponds to the JSON property `kind` @return [String]
Project ID owning the service account to which the key authenticates. Corresponds to the JSON property `projectId` @return [String]
The link to this resource. Corresponds to the JSON property `selfLink` @return [String]
The email address of the key's associated service account. Corresponds to the JSON property `serviceAccountEmail` @return [String]
The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED. Corresponds to the JSON property `state` @return [String]
The creation time of the HMAC key in RFC 3339 format. Corresponds to the JSON property `timeCreated` @return [DateTime]
The last modification time of the HMAC key metadata in RFC 3339 format. Corresponds to the JSON property `updated` @return [DateTime]
Public Class Methods
# File lib/google/apis/storage_v1/classes.rb, line 1203 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/storage_v1/classes.rb, line 1208 def update!(**args) @access_id = args[:access_id] if args.key?(:access_id) @etag = args[:etag] if args.key?(:etag) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @project_id = args[:project_id] if args.key?(:project_id) @self_link = args[:self_link] if args.key?(:self_link) @service_account_email = args[:service_account_email] if args.key?(:service_account_email) @state = args[:state] if args.key?(:state) @time_created = args[:time_created] if args.key?(:time_created) @updated = args[:updated] if args.key?(:updated) end