class Google::Apis::StorageV1::HmacKeyMetadata

JSON template to produce a JSON-style HMAC Key metadata resource.

Attributes

access_id[RW]

The ID of the HMAC Key. Corresponds to the JSON property `accessId` @return [String]

etag[RW]

HTTP 1.1 Entity tag for the HMAC key. Corresponds to the JSON property `etag` @return [String]

id[RW]

The ID of the HMAC key, including the Project ID and the Access ID. Corresponds to the JSON property `id` @return [String]

kind[RW]

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[RW]

Project ID owning the service account to which the key authenticates. Corresponds to the JSON property `projectId` @return [String]

service_account_email[RW]

The email address of the key's associated service account. Corresponds to the JSON property `serviceAccountEmail` @return [String]

state[RW]

The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED. Corresponds to the JSON property `state` @return [String]

time_created[RW]

The creation time of the HMAC key in RFC 3339 format. Corresponds to the JSON property `timeCreated` @return [DateTime]

updated[RW]

The last modification time of the HMAC key metadata in RFC 3339 format. Corresponds to the JSON property `updated` @return [DateTime]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/storage_v1/classes.rb, line 1203
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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