Sha256: 5b78d9099832731b3460e03565acf1cab7aad05782905afe6a0f89310428da12

Contents?: true

Size: 1.94 KB

Versions: 2

Compression:

Stored size: 1.94 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::V2020_01_01
  module Models
    #
    # Model object.
    #
    #
    class JitNetworkAccessRequestVirtualMachine

      include MsRestAzure

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

      # @return [Array<JitNetworkAccessRequestPort>] The ports that were opened
      # for the virtual machine
      attr_accessor :ports


      #
      # Mapper for JitNetworkAccessRequestVirtualMachine class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'JitNetworkAccessRequestVirtualMachine',
          type: {
            name: 'Composite',
            class_name: 'JitNetworkAccessRequestVirtualMachine',
            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: 'JitNetworkAccessRequestPortElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'JitNetworkAccessRequestPort'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_security-0.19.0 lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_request_virtual_machine.rb
azure_mgmt_security-0.18.2 lib/2020-01-01/generated/azure_mgmt_security/models/jit_network_access_request_virtual_machine.rb