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.
1980 1981 1982 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1980 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
1929 1930 1931 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1929 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
1937 1938 1939 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1937 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
1944 1945 1946 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1944 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
1950 1951 1952 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1950 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
1956 1957 1958 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1956 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
1961 1962 1963 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1961 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
1967 1968 1969 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1967 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
1972 1973 1974 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1972 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
1978 1979 1980 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1978 def scope @scope end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1985 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 |