Class: Azure::ApiManagement::Mgmt::V2016_07_07::Models::QuotaCounterContract

Inherits:
QuotaCounterValueContract show all
Includes:
MsRestAzure
Defined in:
lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_contract.rb

Overview

Quota counter details.

Instance Attribute Summary collapse

Attributes inherited from QuotaCounterValueContract

#calls_count, #kb_transferred

Class Method Summary collapse

Instance Attribute Details

#counter_keyString



16
17
18
# File 'lib/2016-07-07/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.



32
33
34
# File 'lib/2016-07-07/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.



20
21
22
# File 'lib/2016-07-07/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.



26
27
28
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_contract.rb', line 26

def period_start_time
  @period_start_time
end

Class Method Details

.mapperObject

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



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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/2016-07-07/generated/azure_mgmt_api_management/models/quota_counter_contract.rb', line 39

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'QuotaCounterContract',
    type: {
      name: 'Composite',
      class_name: 'QuotaCounterContract',
      model_properties: {
        calls_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'callsCount',
          type: {
            name: 'Number'
          }
        },
        kb_transferred: {
          client_side_validation: true,
          required: false,
          serialized_name: 'kbTransferred',
          type: {
            name: 'Double'
          }
        },
        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'
          }
        }
      }
    }
  }
end