Class: Azure::DataLakeAnalytics::Mgmt::V2016_11_01::Models::CreateOrUpdateComputePolicyParameters

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/create_or_update_compute_policy_parameters.rb

Overview

The parameters used to create a new compute policy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#max_degree_of_parallelism_per_jobInteger

can use to submit jobs. This property, the min priority per job property, or both must be passed.

Returns:

  • (Integer)

    The maximum degree of parallelism per job this user



26
27
28
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/create_or_update_compute_policy_parameters.rb', line 26

def max_degree_of_parallelism_per_job
  @max_degree_of_parallelism_per_job
end

#min_priority_per_jobInteger

submit jobs. This property, the max degree of parallelism per job property, or both must be passed.

Returns:

  • (Integer)

    The minimum priority per job this user can use to



31
32
33
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/create_or_update_compute_policy_parameters.rb', line 31

def min_priority_per_job
  @min_priority_per_job
end

#object_idObject

for.

Returns:

  • The AAD object identifier for the entity to create a policy



17
18
19
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/create_or_update_compute_policy_parameters.rb', line 17

def object_id
  @object_id
end

#object_typeAADObjectType

refers to. Possible values include: ‘User’, ‘Group’, ‘ServicePrincipal’

Returns:

  • (AADObjectType)

    The type of AAD object the object identifier



21
22
23
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/create_or_update_compute_policy_parameters.rb', line 21

def object_type
  @object_type
end

Class Method Details

.mapperObject

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



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/2016-11-01/generated/azure_mgmt_datalake_analytics/models/create_or_update_compute_policy_parameters.rb', line 38

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CreateOrUpdateComputePolicyParameters',
    type: {
      name: 'Composite',
      class_name: 'CreateOrUpdateComputePolicyParameters',
      model_properties: {
        object_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.objectId',
          type: {
            name: 'String'
          }
        },
        object_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.objectType',
          type: {
            name: 'String'
          }
        },
        max_degree_of_parallelism_per_job: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.maxDegreeOfParallelismPerJob',
          constraints: {
            InclusiveMinimum: 1
          },
          type: {
            name: 'Number'
          }
        },
        min_priority_per_job: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.minPriorityPerJob',
          constraints: {
            InclusiveMinimum: 1
          },
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end