Sha256: 01beccf69771405f0003eeffc4268d42b6d7c64801c11e6204ae2152e72f94a6

Contents?: true

Size: 2 KB

Versions: 4

Compression:

Stored size: 2 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Security::Mgmt::V2015_06_01_preview
  module Models
    #
    # Model object.
    #
    #
    class JitNetworkAccessPolicyInitiateVirtualMachine

      include MsRestAzure

      # @return [String] Resource ID of the virtual machine that is linked to
      # this policy
      attr_accessor :id

      # @return [Array<JitNetworkAccessPolicyInitiatePort>] The ports to open
      # for the resource with the `id`
      attr_accessor :ports


      #
      # Mapper for JitNetworkAccessPolicyInitiateVirtualMachine class as Ruby
      # Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'JitNetworkAccessPolicyInitiateVirtualMachine',
          type: {
            name: 'Composite',
            class_name: 'JitNetworkAccessPolicyInitiateVirtualMachine',
            model_properties: {
              id: {
                client_side_validation: true,
                required: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              ports: {
                client_side_validation: true,
                required: true,
                serialized_name: 'ports',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'JitNetworkAccessPolicyInitiatePortElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'JitNetworkAccessPolicyInitiatePort'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
azure_mgmt_security-0.19.0 lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_virtual_machine.rb
azure_mgmt_security-0.18.2 lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_virtual_machine.rb
azure_mgmt_security-0.18.1 lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_virtual_machine.rb
azure_mgmt_security-0.18.0 lib/2015-06-01-preview/generated/azure_mgmt_security/models/jit_network_access_policy_initiate_virtual_machine.rb