Sha256: 15736f19eec9e5b3d738a782d197fe8440bf6e383494c9e57a4de75129e79d4c

Contents?: true

Size: 1.19 KB

Versions: 47

Compression:

Stored size: 1.19 KB

Contents

module ApiStub
  module Models
    module Compute
      # Mock class for VirtualMachineExtension model
      class VirtualMachineExtension
        def self.create_vm_extension_response(compute_client)
          body = {
            'id' => '/subscriptions/########-####-####-####-############/resourceGroups/TestRG/providers/Microsoft.Compute/virtualMachines/TestVM/extensions/IaaSAntimalware',
            'name' => 'IaasAntimalware',
            'resource_group' => 'fog-test-rg',
            'location' => 'West US',
            'properties' => {
              'publisher' => 'Microsoft.Azure.Security',
              'type' => 'IaaSAntimalware',
              'typeHandlerVersion' => '1.3',
              'autoUpgradeMinorVersion' => 'true',
              'forceUpdateTag' => 'RerunExtension',
              'settings' => {
                'AnitmalwareEnabled' => 'true',
                'RealtimeProtectionEnabled' => 'false'
              },
              'protected_settings' => {}
            }
          }
          extension_mapper = Azure::ARM::Compute::Models::VirtualMachineExtension.mapper
          compute_client.deserialize(extension_mapper, body, 'result.body')
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 test/api_stub/models/compute/virtual_machine_extension.rb
fog-azure-rm-0.5.3 test/api_stub/models/compute/virtual_machine_extension.rb
fog-azure-rm-0.5.2 test/api_stub/models/compute/virtual_machine_extension.rb
far-gem-0.5.6 test/api_stub/models/compute/virtual_machine_extension.rb
fog-azure-rm-0.5.1 test/api_stub/models/compute/virtual_machine_extension.rb
far-gem-0.5.5 test/api_stub/models/compute/virtual_machine_extension.rb
fog-azure-rm-0.5.0 test/api_stub/models/compute/virtual_machine_extension.rb
far-gem-0.5.4 test/api_stub/models/compute/virtual_machine_extension.rb
far-gem-0.5.3 test/api_stub/models/compute/virtual_machine_extension.rb
fog-azure-rm-0.4.9 test/api_stub/models/compute/virtual_machine_extension.rb
far-gem-0.5.2 test/api_stub/models/compute/virtual_machine_extension.rb
fog-azure-rm-0.4.8 test/api_stub/models/compute/virtual_machine_extension.rb
fog-azure-rm-0.4.7 test/api_stub/models/compute/virtual_machine_extension.rb
fog-azure-rm-0.4.6 test/api_stub/models/compute/virtual_machine_extension.rb
fog-azure-rm-0.4.5 test/api_stub/models/compute/virtual_machine_extension.rb
fog-azure-rm-temp-0.0.5 test/api_stub/models/compute/virtual_machine_extension.rb
fog-azure-rm-0.4.4 test/api_stub/models/compute/virtual_machine_extension.rb
fog-azure-rm-0.4.3 test/api_stub/models/compute/virtual_machine_extension.rb
far-gem-0.5.1 test/api_stub/models/compute/virtual_machine_extension.rb
fog-azure-rm-0.4.2 test/api_stub/models/compute/virtual_machine_extension.rb