github.com/gophercloud/gophercloud@v1.11.0/openstack/networking/v2/extensions/qos/rules/testing/fixtures_test.go (about)

     1  package testing
     2  
     3  // BandwidthLimitRulesListResult represents a raw result of a List call to BandwidthLimitRules.
     4  const BandwidthLimitRulesListResult = `
     5  {
     6      "bandwidth_limit_rules": [
     7          {
     8              "max_kbps": 3000,
     9              "direction": "egress",
    10              "id": "30a57f4a-336b-4382-8275-d708babd2241",
    11              "max_burst_kbps": 300
    12          }
    13      ]
    14  }
    15  `
    16  
    17  // BandwidthLimitRulesGetResult represents a raw result of a Get call to a specific BandwidthLimitRule.
    18  const BandwidthLimitRulesGetResult = `
    19  {
    20      "bandwidth_limit_rule": {
    21          "max_kbps": 3000,
    22          "direction": "egress",
    23          "id": "30a57f4a-336b-4382-8275-d708babd2241",
    24          "max_burst_kbps": 300
    25      }
    26  }
    27  `
    28  
    29  // BandwidthLimitRulesCreateRequest represents a raw body of a Create BandwidthLimitRule call.
    30  const BandwidthLimitRulesCreateRequest = `
    31  {
    32      "bandwidth_limit_rule": {
    33          "max_kbps": 2000,
    34          "max_burst_kbps": 200
    35      }
    36  }
    37  `
    38  
    39  // BandwidthLimitRulesCreateResult represents a raw result of a Create BandwidthLimitRule call.
    40  const BandwidthLimitRulesCreateResult = `
    41  {
    42      "bandwidth_limit_rule": {
    43          "max_kbps": 2000,
    44          "id": "30a57f4a-336b-4382-8275-d708babd2241",
    45          "max_burst_kbps": 200
    46      }
    47  }
    48  `
    49  
    50  // BandwidthLimitRulesUpdateRequest represents a raw body of a Update BandwidthLimitRule call.
    51  const BandwidthLimitRulesUpdateRequest = `
    52  {
    53      "bandwidth_limit_rule": {
    54          "max_kbps": 500,
    55          "max_burst_kbps": 0
    56      }
    57  }
    58  `
    59  
    60  // BandwidthLimitRulesUpdateResult represents a raw result of a Update BandwidthLimitRule call.
    61  const BandwidthLimitRulesUpdateResult = `
    62  {
    63      "bandwidth_limit_rule": {
    64          "max_kbps": 500,
    65          "id": "30a57f4a-336b-4382-8275-d708babd2241",
    66          "max_burst_kbps": 0
    67      }
    68  }
    69  `
    70  
    71  // DSCPMarkingRulesListResult represents a raw result of a List call to DSCPMarkingRules.
    72  const DSCPMarkingRulesListResult = `
    73  {
    74      "dscp_marking_rules": [
    75          {
    76              "id": "30a57f4a-336b-4382-8275-d708babd2241",
    77              "dscp_mark": 20
    78          }
    79      ]
    80  }
    81  `
    82  
    83  // DSCPMarkingRuleGetResult represents a raw result of a Get DSCPMarkingRule call.
    84  const DSCPMarkingRuleGetResult = `
    85  {
    86      "dscp_marking_rule": {
    87          "id": "30a57f4a-336b-4382-8275-d708babd2241",
    88          "dscp_mark": 26
    89      }
    90  }
    91  `
    92  
    93  // DSCPMarkingRuleCreateRequest represents a raw body of a Create DSCPMarkingRule call.
    94  const DSCPMarkingRuleCreateRequest = `
    95  {
    96      "dscp_marking_rule": {
    97          "dscp_mark": 20
    98      }
    99  }
   100  `
   101  
   102  // DSCPMarkingRuleCreateResult represents a raw result of a Update DSCPMarkingRule call.
   103  const DSCPMarkingRuleCreateResult = `
   104  {
   105      "dscp_marking_rule": {
   106          "id": "30a57f4a-336b-4382-8275-d708babd2241",
   107          "dscp_mark": 20
   108      }
   109  }
   110  `
   111  
   112  // DSCPMarkingRuleUpdateRequest represents a raw body of a Update DSCPMarkingRule call.
   113  const DSCPMarkingRuleUpdateRequest = `
   114  {
   115      "dscp_marking_rule": {
   116          "dscp_mark": 26
   117      }
   118  }
   119  `
   120  
   121  // DSCPMarkingRuleUpdateResult represents a raw result of a Update DSCPMarkingRule call.
   122  const DSCPMarkingRuleUpdateResult = `
   123  {
   124      "dscp_marking_rule": {
   125          "id": "30a57f4a-336b-4382-8275-d708babd2241",
   126          "dscp_mark": 26
   127      }
   128  }
   129  `
   130  
   131  // MinimumBandwidthRulesListResult represents a raw result of a List call to MinimumBandwidthRules.
   132  const MinimumBandwidthRulesListResult = `
   133  {
   134      "minimum_bandwidth_rules": [
   135          {
   136              "min_kbps": 3000,
   137              "direction": "egress",
   138              "id": "30a57f4a-336b-4382-8275-d708babd2241"
   139          }
   140      ]
   141  }
   142  `
   143  
   144  // MinimumBandwidthRulesGetResult represents a raw result of a Get call to a specific MinimumBandwidthRule.
   145  const MinimumBandwidthRulesGetResult = `
   146  {
   147      "minimum_bandwidth_rule": {
   148          "min_kbps": 3000,
   149          "direction": "egress",
   150          "id": "30a57f4a-336b-4382-8275-d708babd2241"
   151      }
   152  }
   153  `
   154  
   155  // MinimumBandwidthRulesCreateRequest represents a raw body of a Create MinimumBandwidthRule call.
   156  const MinimumBandwidthRulesCreateRequest = `
   157  {
   158      "minimum_bandwidth_rule": {
   159          "min_kbps": 2000
   160      }
   161  }
   162  `
   163  
   164  // MinimumBandwidthRulesCreateResult represents a raw result of a Create MinimumBandwidthRule call.
   165  const MinimumBandwidthRulesCreateResult = `
   166  {
   167      "minimum_bandwidth_rule": {
   168          "min_kbps": 2000,
   169          "id": "30a57f4a-336b-4382-8275-d708babd2241"
   170      }
   171  }
   172  `
   173  
   174  // MinimumBandwidthRulesUpdateRequest represents a raw body of a Update MinimumBandwidthRule call.
   175  const MinimumBandwidthRulesUpdateRequest = `
   176  {
   177      "minimum_bandwidth_rule": {
   178          "min_kbps": 500
   179      }
   180  }
   181  `
   182  
   183  // MinimumBandwidthRulesUpdateResult represents a raw result of a Update MinimumBandwidthRule call.
   184  const MinimumBandwidthRulesUpdateResult = `
   185  {
   186      "minimum_bandwidth_rule": {
   187          "min_kbps": 500,
   188          "id": "30a57f4a-336b-4382-8275-d708babd2241"
   189      }
   190  }
   191  `