Sha256: 207cffc230f278e776180aaa6d8e9b894eec50babc34b932877b9d623e13b588
Contents?: true
Size: 1.55 KB
Versions: 2
Compression:
Stored size: 1.55 KB
Contents
# frozen_string_literal: true # # Author:: Justin Steele (<justin.steele@oracle.com>) # # Copyright (C) 2024, Stephen Pearson # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module Kitchen module Driver class Oci module Models # paravirtual attachment model class Paravirtual < Blockstorage attr_reader :attachment_type def initialize(config, state, oci, api) super @attachment_type = "paravirtual" end def attachment_details(volume_details, server_id) OCI::Core::Models::AttachParavirtualizedVolumeDetails.new( display_name: "#{attachment_type}-#{volume_details.display_name}", volume_id: volume_details.id, instance_id: server_id ) end def final_volume_attachment_state(response) volume_attachment_state.store(:id, response.id) volume_attachment_state.store(:display_name, response.display_name) volume_attachment_state end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kitchen-oci-1.16.2 | lib/kitchen/driver/oci/models/paravirtual.rb |
kitchen-oci-1.16.1 | lib/kitchen/driver/oci/models/paravirtual.rb |