Sha256: 333ddde49d7d32f8e3c7a5fe3d3ae2db78d66c398296976b40223df7caea0c8e

Contents?: true

Size: 1.78 KB

Versions: 2

Compression:

Stored size: 1.78 KB

Contents

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

module Azure::ARM::KeyVault
  module Models
    #
    # Permissions the identity has for keys and secrets
    #
    class Permissions

      include MsRestAzure

      # @return [Array<KeyPermissions>] Permissions to keys
      attr_accessor :keys

      # @return [Array<SecretPermissions>] Permissions to secrets
      attr_accessor :secrets


      #
      # Mapper for Permissions class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'Permissions',
          type: {
            name: 'Composite',
            class_name: 'Permissions',
            model_properties: {
              keys: {
                required: false,
                serialized_name: 'keys',
                type: {
                  name: 'Sequence',
                  element: {
                      required: false,
                      serialized_name: 'KeyPermissionsElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              secrets: {
                required: false,
                serialized_name: 'secrets',
                type: {
                  name: 'Sequence',
                  element: {
                      required: false,
                      serialized_name: 'SecretPermissionsElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_key_vault-0.6.0 lib/generated/azure_mgmt_key_vault/models/permissions.rb
azure_mgmt_key_vault-0.5.0 lib/generated/azure_mgmt_key_vault/models/permissions.rb