Class: Google::Apis::WalletobjectsV1::ObjectIdProp
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::ObjectIdProp
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb
Overview
This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763.
Instance Attribute Summary collapse
-
#bucket_name ⇒ String
The name of the bucket to which this object belongs.
-
#generation ⇒ Fixnum
Generation of the object.
-
#object_name ⇒ String
The name of the object.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ObjectIdProp
constructor
A new instance of ObjectIdProp.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ObjectIdProp
Returns a new instance of ObjectIdProp.
6135 6136 6137 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6135 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket_name ⇒ String
The name of the bucket to which this object belongs.
Corresponds to the JSON property bucketName
6120 6121 6122 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6120 def bucket_name @bucket_name end |
#generation ⇒ Fixnum
Generation of the object. Generations are monotonically increasing across
writes, allowing them to be be compared to determine which generation is newer.
If this is omitted in a request, then you are requesting the live object. See
http://go/bigstore-versions
Corresponds to the JSON property generation
6128 6129 6130 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6128 def generation @generation end |
#object_name ⇒ String
The name of the object.
Corresponds to the JSON property objectName
6133 6134 6135 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6133 def object_name @object_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6140 6141 6142 6143 6144 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6140 def update!(**args) @bucket_name = args[:bucket_name] if args.key?(:bucket_name) @generation = args[:generation] if args.key?(:generation) @object_name = args[:object_name] if args.key?(:object_name) end |