Class: Azure::ApiManagement::Mgmt::V2017_03_01::Models::QuotaCounterContract

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb

Overview

Quota counter details.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#counter_keyString

Returns The Key value of the Counter. Must not be empty.

Returns:

  • (String)

    The Key value of the Counter. Must not be empty.



16
17
18
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb', line 16

def counter_key
  @counter_key
end

#period_end_timeDateTime

conforms to the following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Returns:

  • (DateTime)

    The date of the end of Counter Period. The date



32
33
34
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb', line 32

def period_end_time
  @period_end_time
end

#period_keyString

collected. Must not be empty.

Returns:

  • (String)

    Identifier of the Period for which the counter was



20
21
22
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb', line 20

def period_key
  @period_key
end

#period_start_timeDateTime

conforms to the following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Returns:

  • (DateTime)

    The date of the start of Counter Period. The date



26
27
28
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb', line 26

def period_start_time
  @period_start_time
end

#valueQuotaCounterValueContractProperties

Returns Quota Value Properties.

Returns:



35
36
37
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb', line 35

def value
  @value
end

Class Method Details

.mapperObject

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



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
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/quota_counter_contract.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'QuotaCounterContract',
    type: {
      name: 'Composite',
      class_name: 'QuotaCounterContract',
      model_properties: {
        counter_key: {
          client_side_validation: true,
          required: true,
          serialized_name: 'counterKey',
          constraints: {
            MinLength: 1
          },
          type: {
            name: 'String'
          }
        },
        period_key: {
          client_side_validation: true,
          required: true,
          serialized_name: 'periodKey',
          constraints: {
            MinLength: 1
          },
          type: {
            name: 'String'
          }
        },
        period_start_time: {
          client_side_validation: true,
          required: true,
          serialized_name: 'periodStartTime',
          type: {
            name: 'DateTime'
          }
        },
        period_end_time: {
          client_side_validation: true,
          required: true,
          serialized_name: 'periodEndTime',
          type: {
            name: 'DateTime'
          }
        },
        value: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Value',
          type: {
            name: 'Composite',
            class_name: 'QuotaCounterValueContractProperties'
          }
        }
      }
    }
  }
end