Class: Google::Apis::ArtifactregistryV1::BatchDeleteVersionsRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchDeleteVersionsRequest

Returns a new instance of BatchDeleteVersionsRequest.



216
217
218
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 216

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#namesArray<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

Returns:

  • (Array<String>)


208
209
210
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 208

def names
  @names
end

#validate_onlyBoolean Also known as: validate_only?

If true, the request is performed without deleting data, following AIP-163. Corresponds to the JSON property validateOnly

Returns:

  • (Boolean)


213
214
215
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 213

def validate_only
  @validate_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



221
222
223
224
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 221

def update!(**args)
  @names = args[:names] if args.key?(:names)
  @validate_only = args[:validate_only] if args.key?(:validate_only)
end