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.
1978 1979 1980 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1978 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
1927 1928 1929 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1927 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
1935 1936 1937 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1935 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
1942 1943 1944 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1942 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
1948 1949 1950 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1948 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
1954 1955 1956 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1954 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
1959 1960 1961 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1959 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
1965 1966 1967 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1965 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
1970 1971 1972 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1970 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
1976 1977 1978 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1976 def scope @scope end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1983 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 |