Class: Google::Cloud::ArtifactRegistry::V1::File
- Inherits:
-
Object
- Object
- Google::Cloud::ArtifactRegistry::V1::File
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/devtools/artifactregistry/v1/file.rb
Overview
Files store content that is potentially associated with Packages or Versions.
Defined Under Namespace
Classes: AnnotationsEntry
Instance Attribute Summary collapse
-
#annotations ⇒ ::Google::Protobuf::Map{::String => ::String}
Optional.
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#fetch_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#hashes ⇒ ::Array<::Google::Cloud::ArtifactRegistry::V1::Hash>
The hashes of the file content.
-
#name ⇒ ::String
The name of the file, for example:
projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt
. -
#owner ⇒ ::String
The name of the Package or Version that owns this file, if any.
-
#size_bytes ⇒ ::Integer
The size of the File in bytes.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
Instance Attribute Details
#annotations ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns Optional. Client specified annotations.
76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'proto_docs/google/devtools/artifactregistry/v1/file.rb', line 76 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The time when the File was created.
76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'proto_docs/google/devtools/artifactregistry/v1/file.rb', line 76 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#fetch_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'proto_docs/google/devtools/artifactregistry/v1/file.rb', line 76 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#hashes ⇒ ::Array<::Google::Cloud::ArtifactRegistry::V1::Hash>
Returns The hashes of the file content.
76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'proto_docs/google/devtools/artifactregistry/v1/file.rb', line 76 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#name ⇒ ::String
Returns The name of the file, for example:
projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt
.
If the file ID part contains slashes, they are escaped.
76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'proto_docs/google/devtools/artifactregistry/v1/file.rb', line 76 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#owner ⇒ ::String
Returns The name of the Package or Version that owns this file, if any.
76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'proto_docs/google/devtools/artifactregistry/v1/file.rb', line 76 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#size_bytes ⇒ ::Integer
Returns The size of the File in bytes.
76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'proto_docs/google/devtools/artifactregistry/v1/file.rb', line 76 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#update_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The time when the File was last updated.
76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'proto_docs/google/devtools/artifactregistry/v1/file.rb', line 76 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class AnnotationsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |