Class: Google::Apis::StorageV1::HmacKeyMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/storage_v1/classes.rb,
generated/google/apis/storage_v1/representations.rb,
generated/google/apis/storage_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ HmacKeyMetadata

Returns a new instance of HmacKeyMetadata.



1145
1146
1147
# File 'generated/google/apis/storage_v1/classes.rb', line 1145

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#access_idString

The ID of the HMAC Key. Corresponds to the JSON property accessId

Returns:

  • (String)


1097
1098
1099
# File 'generated/google/apis/storage_v1/classes.rb', line 1097

def access_id
  @access_id
end

#etagString

HTTP 1.1 Entity tag for the HMAC key. Corresponds to the JSON property etag

Returns:

  • (String)


1102
1103
1104
# File 'generated/google/apis/storage_v1/classes.rb', line 1102

def etag
  @etag
end

#idString

The ID of the HMAC key, including the Project ID and the Access ID. Corresponds to the JSON property id

Returns:

  • (String)


1107
1108
1109
# File 'generated/google/apis/storage_v1/classes.rb', line 1107

def id
  @id
end

#kindString

The kind of item this is. For HMAC Key metadata, this is always storage# hmacKeyMetadata. Corresponds to the JSON property kind

Returns:

  • (String)


1113
1114
1115
# File 'generated/google/apis/storage_v1/classes.rb', line 1113

def kind
  @kind
end

#project_idString

Project ID owning the service account to which the key authenticates. Corresponds to the JSON property projectId

Returns:

  • (String)


1118
1119
1120
# File 'generated/google/apis/storage_v1/classes.rb', line 1118

def project_id
  @project_id
end

The link to this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


1123
1124
1125
# File 'generated/google/apis/storage_v1/classes.rb', line 1123

def self_link
  @self_link
end

#service_account_emailString

The email address of the key's associated service account. Corresponds to the JSON property serviceAccountEmail

Returns:

  • (String)


1128
1129
1130
# File 'generated/google/apis/storage_v1/classes.rb', line 1128

def 
  @service_account_email
end

#stateString

The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED. Corresponds to the JSON property state

Returns:

  • (String)


1133
1134
1135
# File 'generated/google/apis/storage_v1/classes.rb', line 1133

def state
  @state
end

#time_createdDateTime

The creation time of the HMAC key in RFC 3339 format. Corresponds to the JSON property timeCreated

Returns:

  • (DateTime)


1138
1139
1140
# File 'generated/google/apis/storage_v1/classes.rb', line 1138

def time_created
  @time_created
end

#updatedDateTime

The last modification time of the HMAC key metadata in RFC 3339 format. Corresponds to the JSON property updated

Returns:

  • (DateTime)


1143
1144
1145
# File 'generated/google/apis/storage_v1/classes.rb', line 1143

def updated
  @updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
# File 'generated/google/apis/storage_v1/classes.rb', line 1150

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