class Azure::Subscriptions::Mgmt::V2019_10_01_preview::Models::ModernSubscriptionCreationParameters

The parameters required to create a new subscription.

Attributes

additional_parameters[RW]

@return Additional, untyped parameters to support custom subscription creation scenarios.

cost_center[RW]

@return [String] If set, the cost center will show up on the Azure usage and charges file.

display_name[RW]

@return [String] The friendly name of the subscription.

management_group_id[RW]

@return [String] The identifier of the management group to which this subscription will be associated.

owner[RW]

@return [AdPrincipal] If specified, the AD principal will get owner access to the subscription, along with the user who is performing the create subscription operation

sku_id[RW]

@return [String] The SKU ID of the Azure plan. Azure plan determines the pricing and service-level agreement of the subscription. Use 001 for Microsoft Azure Plan and 002 for Microsoft Azure Plan for DevTest.

Public Class Methods

mapper() click to toggle source

Mapper for ModernSubscriptionCreationParameters class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2019-10-01-preview/generated/azure_mgmt_subscriptions/models/modern_subscription_creation_parameters.rb, line 45
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ModernSubscriptionCreationParameters',
    type: {
      name: 'Composite',
      class_name: 'ModernSubscriptionCreationParameters',
      model_properties: {
        display_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'displayName',
          type: {
            name: 'String'
          }
        },
        sku_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'skuId',
          type: {
            name: 'String'
          }
        },
        cost_center: {
          client_side_validation: true,
          required: false,
          serialized_name: 'costCenter',
          type: {
            name: 'String'
          }
        },
        owner: {
          client_side_validation: true,
          required: false,
          serialized_name: 'owner',
          type: {
            name: 'Composite',
            class_name: 'AdPrincipal'
          }
        },
        management_group_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'managementGroupId',
          type: {
            name: 'String'
          }
        },
        additional_parameters: {
          client_side_validation: true,
          required: false,
          serialized_name: 'additionalParameters',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ObjectElementType',
                type: {
                  name: 'Object'
                }
            }
          }
        }
      }
    }
  }
end