Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Meta data for drive documents.
Instance Attribute Summary collapse
-
#document_id ⇒ String
The drive document cosmo id.
-
#is_private ⇒ Boolean
(also: #is_private?)
Additional field to identify whether a document is private since scope set to LIMITED can mean both that the doc is private or that it's shared with others.
-
#last_comment_time_ms ⇒ Fixnum
Timestamp of the most recent comment added to the document in milliseconds since epoch.
-
#last_edit_time_ms ⇒ Fixnum
Timestamp of the most recent edit from the current user in milliseconds since epoch.
-
#last_modification_time_millis ⇒ Fixnum
Last modification time of the document (independent of the user that modified it).
-
#last_updated_time_ms ⇒ Fixnum
Timestamp of the last updated time of the document in milliseconds since epoch.
-
#last_view_time_ms ⇒ Fixnum
Timestamp of the most recent view from the current user in milliseconds since epoch.
-
#owner ⇒ Google::Apis::CloudsearchV1::EnterpriseTopazSidekickCommonPerson
Common representation of a person.
-
#scope ⇒ String
ACL scope of the document which identifies the sharing status of the doc (e.g., limited, shared with link, team drive, ...).
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata
constructor
A new instance of EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata
Returns a new instance of EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata.
1947 1948 1949 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1947 def initialize(**args) update!(**args) end |
Instance Attribute Details
#document_id ⇒ String
The drive document cosmo id. Client could use the id to build a URL to open a
document. Please use Document.document_id.
Corresponds to the JSON property documentId
1896 1897 1898 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1896 def document_id @document_id end |
#is_private ⇒ Boolean Also known as: is_private?
Additional field to identify whether a document is private since scope set to
LIMITED can mean both that the doc is private or that it's shared with others.
is_private indicates whether the doc is not shared with anyone except for the
owner.
Corresponds to the JSON property isPrivate
1904 1905 1906 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1904 def is_private @is_private end |
#last_comment_time_ms ⇒ Fixnum
Timestamp of the most recent comment added to the document in milliseconds
since epoch.
Corresponds to the JSON property lastCommentTimeMs
1911 1912 1913 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1911 def last_comment_time_ms @last_comment_time_ms end |
#last_edit_time_ms ⇒ Fixnum
Timestamp of the most recent edit from the current user in milliseconds since
epoch.
Corresponds to the JSON property lastEditTimeMs
1917 1918 1919 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1917 def last_edit_time_ms @last_edit_time_ms end |
#last_modification_time_millis ⇒ Fixnum
Last modification time of the document (independent of the user that modified
it).
Corresponds to the JSON property lastModificationTimeMillis
1923 1924 1925 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1923 def last_modification_time_millis @last_modification_time_millis end |
#last_updated_time_ms ⇒ Fixnum
Timestamp of the last updated time of the document in milliseconds since epoch.
Corresponds to the JSON property lastUpdatedTimeMs
1928 1929 1930 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1928 def last_updated_time_ms @last_updated_time_ms end |
#last_view_time_ms ⇒ Fixnum
Timestamp of the most recent view from the current user in milliseconds since
epoch.
Corresponds to the JSON property lastViewTimeMs
1934 1935 1936 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1934 def last_view_time_ms @last_view_time_ms end |
#owner ⇒ Google::Apis::CloudsearchV1::EnterpriseTopazSidekickCommonPerson
Common representation of a person.
Corresponds to the JSON property owner
1939 1940 1941 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1939 def owner @owner end |
#scope ⇒ String
ACL scope of the document which identifies the sharing status of the doc (e.g.,
limited, shared with link, team drive, ...).
Corresponds to the JSON property scope
1945 1946 1947 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1945 def scope @scope end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1952 def update!(**args) @document_id = args[:document_id] if args.key?(:document_id) @is_private = args[:is_private] if args.key?(:is_private) @last_comment_time_ms = args[:last_comment_time_ms] if args.key?(:last_comment_time_ms) @last_edit_time_ms = args[:last_edit_time_ms] if args.key?(:last_edit_time_ms) @last_modification_time_millis = args[:last_modification_time_millis] if args.key?(:last_modification_time_millis) @last_updated_time_ms = args[:last_updated_time_ms] if args.key?(:last_updated_time_ms) @last_view_time_ms = args[:last_view_time_ms] if args.key?(:last_view_time_ms) @owner = args[:owner] if args.key?(:owner) @scope = args[:scope] if args.key?(:scope) end |