apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: mappingrules.capabilities.3scale.net
spec:
  group: capabilities.3scale.net
  names:
    kind: MappingRule
    listKind: MappingRuleList
    plural: mappingrules
    singular: mappingrule
  scope: Namespaced
  subresources:
    status: {}
  validation:
    openAPIV3Schema:
      properties:
        spec:
          properties:
            increment:
              format: int64
              type: integer
            method:
              type: string
            metricRef:
              type: object
              properties:
                kind:
                  type: string
                namespace:
                  type: string
                name:
                  type: string
                uid:
                  type: string
                apiVersion:
                  type: string
                resourceVersion:
                  type: string
                fieldPath:
                  type: string
            path:
              type: string
          required:
          - path
          - method
          - increment
          - metricRef
          type: object
        status:
          type: object
  version: v1alpha1
  versions:
  - name: v1alpha1
    served: true
    storage: true
