Class: Google::Apis::StorageV1::HmacKeyMetadata
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::HmacKeyMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/storage_v1/classes.rb,
lib/google/apis/storage_v1/representations.rb,
lib/google/apis/storage_v1/representations.rb
Overview
JSON template to produce a JSON-style HMAC Key metadata resource.
Instance Attribute Summary collapse
-
#access_id ⇒ String
The ID of the HMAC Key.
-
#etag ⇒ String
HTTP 1.1 Entity tag for the HMAC key.
-
#id ⇒ String
The ID of the HMAC key, including the Project ID and the Access ID.
-
#kind ⇒ String
The kind of item this is.
-
#project_id ⇒ String
Project ID owning the service account to which the key authenticates.
-
#self_link ⇒ String
The link to this resource.
-
#service_account_email ⇒ String
The email address of the key's associated service account.
-
#state ⇒ String
The state of the key.
-
#time_created ⇒ DateTime
The creation time of the HMAC key in RFC 3339 format.
-
#updated ⇒ DateTime
The last modification time of the HMAC key metadata in RFC 3339 format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HmacKeyMetadata
constructor
A new instance of HmacKeyMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HmacKeyMetadata
Returns a new instance of HmacKeyMetadata.
2045 2046 2047 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2045 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_id ⇒ String
The ID of the HMAC Key.
Corresponds to the JSON property accessId
1997 1998 1999 |
# File 'lib/google/apis/storage_v1/classes.rb', line 1997 def access_id @access_id end |
#etag ⇒ String
HTTP 1.1 Entity tag for the HMAC key.
Corresponds to the JSON property etag
2002 2003 2004 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2002 def etag @etag end |
#id ⇒ String
The ID of the HMAC key, including the Project ID and the Access ID.
Corresponds to the JSON property id
2007 2008 2009 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2007 def id @id end |
#kind ⇒ String
The kind of item this is. For HMAC Key metadata, this is always storage#
hmacKeyMetadata.
Corresponds to the JSON property kind
2013 2014 2015 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2013 def kind @kind end |
#project_id ⇒ String
Project ID owning the service account to which the key authenticates.
Corresponds to the JSON property projectId
2018 2019 2020 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2018 def project_id @project_id end |
#self_link ⇒ String
The link to this resource.
Corresponds to the JSON property selfLink
2023 2024 2025 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2023 def self_link @self_link end |
#service_account_email ⇒ String
The email address of the key's associated service account.
Corresponds to the JSON property serviceAccountEmail
2028 2029 2030 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2028 def service_account_email @service_account_email end |
#state ⇒ String
The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
Corresponds to the JSON property state
2033 2034 2035 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2033 def state @state end |
#time_created ⇒ DateTime
The creation time of the HMAC key in RFC 3339 format.
Corresponds to the JSON property timeCreated
2038 2039 2040 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2038 def time_created @time_created end |
#updated ⇒ DateTime
The last modification time of the HMAC key metadata in RFC 3339 format.
Corresponds to the JSON property updated
2043 2044 2045 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2043 def updated @updated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 |
# File 'lib/google/apis/storage_v1/classes.rb', line 2050 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 |