Class: Google::Apis::StorageV1::ManagedFolder

Inherits:
Object
  • Object
show all
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

A managed folder.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ManagedFolder

Returns a new instance of ManagedFolder.



1893
1894
1895
# File 'lib/google/apis/storage_v1/classes.rb', line 1893

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

Instance Attribute Details

#bucketString

The name of the bucket containing this managed folder. Corresponds to the JSON property bucket

Returns:

  • (String)


1853
1854
1855
# File 'lib/google/apis/storage_v1/classes.rb', line 1853

def bucket
  @bucket
end

#create_timeDateTime

The creation time of the managed folder in RFC 3339 format. Corresponds to the JSON property createTime

Returns:

  • (DateTime)


1858
1859
1860
# File 'lib/google/apis/storage_v1/classes.rb', line 1858

def create_time
  @create_time
end

#idString

The ID of the managed folder, including the bucket name and managed folder name. Corresponds to the JSON property id

Returns:

  • (String)


1864
1865
1866
# File 'lib/google/apis/storage_v1/classes.rb', line 1864

def id
  @id
end

#kindString

The kind of item this is. For managed folders, this is always storage# managedFolder. Corresponds to the JSON property kind

Returns:

  • (String)


1870
1871
1872
# File 'lib/google/apis/storage_v1/classes.rb', line 1870

def kind
  @kind
end

#metagenerationFixnum

The version of the metadata for this managed folder. Used for preconditions and for detecting changes in metadata. Corresponds to the JSON property metageneration

Returns:

  • (Fixnum)


1876
1877
1878
# File 'lib/google/apis/storage_v1/classes.rb', line 1876

def metageneration
  @metageneration
end

#nameString

The name of the managed folder. Required if not specified by URL parameter. Corresponds to the JSON property name

Returns:

  • (String)


1881
1882
1883
# File 'lib/google/apis/storage_v1/classes.rb', line 1881

def name
  @name
end

The link to this managed folder. Corresponds to the JSON property selfLink

Returns:

  • (String)


1886
1887
1888
# File 'lib/google/apis/storage_v1/classes.rb', line 1886

def self_link
  @self_link
end

#update_timeDateTime

The last update time of the managed folder metadata in RFC 3339 format. Corresponds to the JSON property updateTime

Returns:

  • (DateTime)


1891
1892
1893
# File 'lib/google/apis/storage_v1/classes.rb', line 1891

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
# File 'lib/google/apis/storage_v1/classes.rb', line 1898

def update!(**args)
  @bucket = args[:bucket] if args.key?(:bucket)
  @create_time = args[:create_time] if args.key?(:create_time)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @metageneration = args[:metageneration] if args.key?(:metageneration)
  @name = args[:name] if args.key?(:name)
  @self_link = args[:self_link] if args.key?(:self_link)
  @update_time = args[:update_time] if args.key?(:update_time)
end