# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#########
# Cloudbilling API
apiVersion: serviceusage.cnrm.cloud.google.com/v1beta1
kind: Service
metadata:
  name: management-project-id-cloudbilling # kpt-set: ${management-project-id}-cloudbilling
  namespace: config-control # kpt-set: ${management-namespace}
  annotations:
    cnrm.cloud.google.com/deletion-policy: "abandon"
    cnrm.cloud.google.com/disable-dependent-services: "false"
spec:
  resourceID: cloudbilling.googleapis.com
  projectRef:
    external: management-project-id # kpt-set: ${management-project-id}
---
# Cloudresourcemanager API
apiVersion: serviceusage.cnrm.cloud.google.com/v1beta1
kind: Service
metadata:
  name: management-project-id-cloudresourcemanager # kpt-set: ${management-project-id}-cloudresourcemanager
  namespace: config-control # kpt-set: ${management-namespace}
  annotations:
    cnrm.cloud.google.com/deletion-policy: "abandon"
    cnrm.cloud.google.com/disable-dependent-services: "false"
spec:
  resourceID: cloudresourcemanager.googleapis.com
  projectRef:
    external: management-project-id # kpt-set: ${management-project-id}
---
# Serviceusage API
apiVersion: serviceusage.cnrm.cloud.google.com/v1beta1
kind: Service
metadata:
  name: management-project-id-serviceusage # kpt-set: ${management-project-id}-serviceusage
  namespace: config-control # kpt-set: ${management-namespace}
  annotations:
    cnrm.cloud.google.com/deletion-policy: "abandon"
    cnrm.cloud.google.com/disable-dependent-services: "false"
spec:
  resourceID: serviceusage.googleapis.com
  projectRef:
    external: management-project-id # kpt-set: ${management-project-id}
---
# Access Context Manager API
apiVersion: serviceusage.cnrm.cloud.google.com/v1beta1
kind: Service
metadata:
  name: management-project-id-accesscontextmanager # kpt-set: ${management-project-id}-accesscontextmanager
  namespace: config-control # kpt-set: ${management-namespace}
  annotations:
    cnrm.cloud.google.com/deletion-policy: "abandon"
    cnrm.cloud.google.com/disable-dependent-services: "false"
spec:
  resourceID: accesscontextmanager.googleapis.com
  projectRef:
    external: management-project-id # kpt-set: ${management-project-id}
---
# Anthos API
apiVersion: serviceusage.cnrm.cloud.google.com/v1beta1
kind: Service
metadata:
  name: management-project-id-anthos # kpt-set: ${management-project-id}-anthos
  namespace: config-control # kpt-set: ${management-namespace}
  annotations:
    cnrm.cloud.google.com/deletion-policy: "abandon"
    cnrm.cloud.google.com/disable-dependent-services: "false"
spec:
  resourceID: anthos.googleapis.com
  projectRef:
    external: management-project-id # kpt-set: ${management-project-id}
