---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.8.0
  creationTimestamp: null
  name: subnetworks.compute.gcp.crossplane.io
spec:
  group: compute.gcp.crossplane.io
  names:
    categories:
    - crossplane
    - managed
    - gcp
    kind: Subnetwork
    listKind: SubnetworkList
    plural: subnetworks
    singular: subnetwork
  scope: Cluster
  versions:
  - additionalPrinterColumns:
    - jsonPath: .status.conditions[?(@.type=='Ready')].status
      name: READY
      type: string
    - jsonPath: .status.conditions[?(@.type=='Synced')].status
      name: SYNCED
      type: string
    name: v1beta1
    schema:
      openAPIV3Schema:
        description: A Subnetwork is a managed resource that represents a Google Compute
          Engine VPC Subnetwork.
        properties:
          apiVersion:
            description: 'APIVersion defines the versioned schema of this representation
              of an object. Servers should convert recognized schemas to the latest
              internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
            type: string
          kind:
            description: 'Kind is a string value representing the REST resource this
              object represents. Servers may infer this from the endpoint the client
              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
            type: string
          metadata:
            type: object
          spec:
            description: A SubnetworkSpec defines the desired state of a Subnetwork.
            properties:
              deletionPolicy:
                default: Delete
                description: DeletionPolicy specifies what will happen to the underlying
                  external when this managed resource is deleted - either "Delete"
                  or "Orphan" the external resource.
                enum:
                - Orphan
                - Delete
                type: string
              forProvider:
                description: 'SubnetworkParameters define the desired state of a Google
                  Compute Engine VPC Subnetwork. Most fields map directly to a Subnetwork:
                  https://cloud.google.com/compute/docs/reference/rest/v1/subnetworks'
                properties:
                  description:
                    description: 'Description: An optional description of this resource.
                      Provide this property when you create the resource. This field
                      can be set only at resource creation time.'
                    type: string
                  enableFlowLogs:
                    description: 'EnableFlowLogs: Whether to enable flow logging for
                      this subnetwork. If this field is not explicitly set, it will
                      not appear in get listings. If not set the default behavior
                      is to disable flow logging.'
                    type: boolean
                  ipCidrRange:
                    description: 'IPCIDRRange: The range of internal addresses that
                      are owned by this subnetwork. Provide this property when you
                      create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16.
                      Ranges must be unique and non-overlapping within a network.
                      Only IPv4 is supported. This field can be set only at resource
                      creation time.'
                    type: string
                  network:
                    description: 'Network: The URL of the network to which this subnetwork
                      belongs, provided by the client when initially creating the
                      subnetwork. Only networks that are in the distributed mode can
                      have subnetworks. This field can be set only at resource creation
                      time.'
                    type: string
                  networkRef:
                    description: NetworkRef references a Network and retrieves its
                      URI
                    properties:
                      name:
                        description: Name of the referenced object.
                        type: string
                    required:
                    - name
                    type: object
                  networkSelector:
                    description: NetworkSelector selects a reference to a Network
                    properties:
                      matchControllerRef:
                        description: MatchControllerRef ensures an object with the
                          same controller reference as the selecting object is selected.
                        type: boolean
                      matchLabels:
                        additionalProperties:
                          type: string
                        description: MatchLabels ensures an object with matching labels
                          is selected.
                        type: object
                    type: object
                  privateIpGoogleAccess:
                    description: 'PrivateIPGoogleAccess: Whether the VMs in this subnet
                      can access Google services without assigned external IP addresses.
                      This field can be both set at resource creation time and updated
                      using setPrivateIPGoogleAccess.'
                    type: boolean
                  region:
                    description: 'Region: URL of the region where the Subnetwork resides.
                      This field can be set only at resource creation time.'
                    type: string
                  secondaryIpRanges:
                    description: 'SecondaryIPRanges: An array of configurations for
                      secondary IP ranges for VM instances contained in this subnetwork.
                      The primary IP of such VM must belong to the primary ipCidrRange
                      of the subnetwork. The alias IPs may belong to either primary
                      or secondary ranges. This field can be updated with a patch
                      request.'
                    items:
                      description: A SubnetworkSecondaryRange defines the state of
                        a Google Compute Engine VPC Subnetwork secondary range.
                      properties:
                        ipCidrRange:
                          description: 'IPCIDRRange: The range of IP addresses belonging
                            to this subnetwork secondary range. Provide this property
                            when you create the subnetwork. Ranges must be unique
                            and non-overlapping with all primary and secondary IP
                            ranges within a network. Only IPv4 is supported.'
                          type: string
                        rangeName:
                          description: 'RangeName: The name associated with this subnetwork
                            secondary range, used when adding an alias IP range to
                            a VM instance. The name must be 1-63 characters long,
                            and comply with RFC1035. The name must be unique within
                            the subnetwork.'
                          type: string
                      required:
                      - ipCidrRange
                      - rangeName
                      type: object
                    type: array
                required:
                - ipCidrRange
                type: object
              providerConfigRef:
                default:
                  name: default
                description: ProviderConfigReference specifies how the provider that
                  will be used to create, observe, update, and delete this managed
                  resource should be configured.
                properties:
                  name:
                    description: Name of the referenced object.
                    type: string
                required:
                - name
                type: object
              providerRef:
                description: 'ProviderReference specifies the provider that will be
                  used to create, observe, update, and delete this managed resource.
                  Deprecated: Please use ProviderConfigReference, i.e. `providerConfigRef`'
                properties:
                  name:
                    description: Name of the referenced object.
                    type: string
                required:
                - name
                type: object
              publishConnectionDetailsTo:
                description: PublishConnectionDetailsTo specifies the connection secret
                  config which contains a name, metadata and a reference to secret
                  store config to which any connection details for this managed resource
                  should be written. Connection details frequently include the endpoint,
                  username, and password required to connect to the managed resource.
                properties:
                  configRef:
                    default:
                      name: default
                    description: SecretStoreConfigRef specifies which secret store
                      config should be used for this ConnectionSecret.
                    properties:
                      name:
                        description: Name of the referenced object.
                        type: string
                    required:
                    - name
                    type: object
                  metadata:
                    description: Metadata is the metadata for connection secret.
                    properties:
                      annotations:
                        additionalProperties:
                          type: string
                        description: Annotations are the annotations to be added to
                          connection secret. - For Kubernetes secrets, this will be
                          used as "metadata.annotations". - It is up to Secret Store
                          implementation for others store types.
                        type: object
                      labels:
                        additionalProperties:
                          type: string
                        description: Labels are the labels/tags to be added to connection
                          secret. - For Kubernetes secrets, this will be used as "metadata.labels".
                          - It is up to Secret Store implementation for others store
                          types.
                        type: object
                      type:
                        description: Type is the SecretType for the connection secret.
                          - Only valid for Kubernetes Secret Stores.
                        type: string
                    type: object
                  name:
                    description: Name is the name of the connection secret.
                    type: string
                required:
                - name
                type: object
              writeConnectionSecretToRef:
                description: WriteConnectionSecretToReference specifies the namespace
                  and name of a Secret to which any connection details for this managed
                  resource should be written. Connection details frequently include
                  the endpoint, username, and password required to connect to the
                  managed resource. This field is planned to be replaced in a future
                  release in favor of PublishConnectionDetailsTo. Currently, both
                  could be set independently and connection details would be published
                  to both without affecting each other.
                properties:
                  name:
                    description: Name of the secret.
                    type: string
                  namespace:
                    description: Namespace of the secret.
                    type: string
                required:
                - name
                - namespace
                type: object
            required:
            - forProvider
            type: object
          status:
            description: A SubnetworkStatus represents the observed state of a Subnetwork.
            properties:
              atProvider:
                description: A SubnetworkObservation represents the observed state
                  of a Google Compute Engine VPC Subnetwork.
                properties:
                  creationTimestamp:
                    description: 'CreationTimestamp: Creation timestamp in RFC3339
                      text format.'
                    type: string
                  fingerprint:
                    description: "Fingerprint: Fingerprint of this resource. A hash
                      of the contents stored in this object. This field is used in
                      optimistic locking. This field will be ignored when inserting
                      a Subnetwork. An up-to-date fingerprint must be provided in
                      order to update the Subnetwork, otherwise the request will fail
                      with error 412 conditionNotMet. \n To see the latest fingerprint,
                      make a get() request to retrieve a Subnetwork."
                    type: string
                  gatewayAddress:
                    description: 'GatewayAddress: The gateway address for default
                      routes to reach destination addresses outside this subnetwork.'
                    type: string
                  id:
                    description: 'Id: The unique identifier for the resource. This
                      identifier is defined by the server.'
                    format: int64
                    type: integer
                  selfLink:
                    description: 'SelfLink: Server-defined URL for the resource.'
                    type: string
                type: object
              conditions:
                description: Conditions of the resource.
                items:
                  description: A Condition that may apply to a resource.
                  properties:
                    lastTransitionTime:
                      description: LastTransitionTime is the last time this condition
                        transitioned from one status to another.
                      format: date-time
                      type: string
                    message:
                      description: A Message containing details about this condition's
                        last transition from one status to another, if any.
                      type: string
                    reason:
                      description: A Reason for this condition's last transition from
                        one status to another.
                      type: string
                    status:
                      description: Status of this condition; is it currently True,
                        False, or Unknown?
                      type: string
                    type:
                      description: Type of this condition. At most one of each condition
                        type may apply to a resource at any point in time.
                      type: string
                  required:
                  - lastTransitionTime
                  - reason
                  - status
                  - type
                  type: object
                type: array
            type: object
        required:
        - spec
        type: object
    served: true
    storage: true
    subresources:
      status: {}
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
