Class: Google::Apis::ArtifactregistryV1::BatchDeleteVersionsRequest
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::BatchDeleteVersionsRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/artifactregistry_v1/classes.rb,
lib/google/apis/artifactregistry_v1/representations.rb,
lib/google/apis/artifactregistry_v1/representations.rb
Overview
The request to delete multiple versions across a repository.
Instance Attribute Summary collapse
-
#names ⇒ Array<String>
Required.
-
#validate_only ⇒ Boolean
(also: #validate_only?)
If true, the request is performed without deleting data, following AIP-163.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BatchDeleteVersionsRequest
constructor
A new instance of BatchDeleteVersionsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BatchDeleteVersionsRequest
Returns a new instance of BatchDeleteVersionsRequest.
138 139 140 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 138 def initialize(**args) update!(**args) end |
Instance Attribute Details
#names ⇒ Array<String>
Required. The names of the versions to delete. A maximum of 10000 versions can
be deleted in a batch.
Corresponds to the JSON property names
130 131 132 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 130 def names @names end |
#validate_only ⇒ Boolean Also known as: validate_only?
If true, the request is performed without deleting data, following AIP-163.
Corresponds to the JSON property validateOnly
135 136 137 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 135 def validate_only @validate_only end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
143 144 145 146 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 143 def update!(**args) @names = args[:names] if args.key?(:names) @validate_only = args[:validate_only] if args.key?(:validate_only) end |