Class: Google::Apis::FileV1beta1::Snapshot
- Inherits:
-
Object
- Object
- Google::Apis::FileV1beta1::Snapshot
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/file_v1beta1/classes.rb,
lib/google/apis/file_v1beta1/representations.rb,
lib/google/apis/file_v1beta1/representations.rb
Overview
A Filestore snapshot.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
A description of the snapshot with 2048 characters or less.
-
#filesystem_used_bytes ⇒ Fixnum
Output only.
-
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#tags ⇒ Hash<String,String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Snapshot
constructor
A new instance of Snapshot.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Snapshot
Returns a new instance of Snapshot.
1990 1991 1992 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1990 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the snapshot was created.
Corresponds to the JSON property createTime
1948 1949 1950 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1948 def create_time @create_time end |
#description ⇒ String
A description of the snapshot with 2048 characters or less. Requests with
longer descriptions will be rejected.
Corresponds to the JSON property description
1954 1955 1956 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1954 def description @description end |
#filesystem_used_bytes ⇒ Fixnum
Output only. The amount of bytes needed to allocate a full copy of the
snapshot content
Corresponds to the JSON property filesystemUsedBytes
1960 1961 1962 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1960 def filesystem_used_bytes @filesystem_used_bytes end |
#labels ⇒ Hash<String,String>
Resource labels to represent user provided metadata.
Corresponds to the JSON property labels
1965 1966 1967 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1965 def labels @labels end |
#name ⇒ String
Output only. The resource name of the snapshot, in the format projects/
project_id/locations/location_id/instances/instance_id/snapshots/
snapshot_id`.
Corresponds to the JSON propertyname`
1972 1973 1974 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1972 def name @name end |
#state ⇒ String
Output only. The snapshot state.
Corresponds to the JSON property state
1977 1978 1979 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1977 def state @state end |
#tags ⇒ Hash<String,String>
Optional. Input only. Immutable. Tag key-value pairs bound to this resource.
Each key must be a namespaced name and each value a short name. Example: "
123456789012/environment" : "production", "123456789013/costCenter" : "
marketing" See the documentation for more information: - Namespaced name:
https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing#
retrieving_tag_key - Short name: https://cloud.google.com/resource-manager/
docs/tags/tags-creating-and-managing#retrieving_tag_value
Corresponds to the JSON property tags
1988 1989 1990 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1988 def @tags end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1995 1996 1997 1998 1999 2000 2001 2002 2003 |
# File 'lib/google/apis/file_v1beta1/classes.rb', line 1995 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @filesystem_used_bytes = args[:filesystem_used_bytes] if args.key?(:filesystem_used_bytes) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @tags = args[:tags] if args.key?(:tags) end |