...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/scripts/resource-autogen/generated/servicemappings/storage.yaml

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/scripts/resource-autogen/generated/servicemappings

     1# Copyright 2022 Google LLC
     2#
     3# Licensed under the Apache License, Version 2.0 (the "License");
     4# you may not use this file except in compliance with the License.
     5# You may obtain a copy of the License at
     6#
     7#      http://www.apache.org/licenses/LICENSE-2.0
     8#
     9# Unless required by applicable law or agreed to in writing, software
    10# distributed under the License is distributed on an "AS IS" BASIS,
    11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12# See the License for the specific language governing permissions and
    13# limitations under the License.
    14
    15apiVersion: core.cnrm.cloud.google.com/v1alpha1
    16kind: ServiceMapping
    17metadata:
    18  name: storage.cnrm.cloud.google.com
    19  namespace: cnrm-system
    20spec:
    21  name: Storage
    22  version: v1beta1
    23  serviceHostName: storage.googleapis.com
    24  resources:
    25    - name: google_storage_bucket_access_control
    26      kind: StorageBucketAccessControl
    27      autoGenerated: true
    28      idTemplate: "{{bucket}}/{{entity}}"
    29      idTemplateCanBeUsedToMatchResourceName: false
    30      resourceAvailableInAssetInventory: false
    31      metadataMapping:
    32        name: entity
    33      resourceID:
    34        targetField: entity
    35      resourceReferences:
    36        - key: bucketRef
    37          tfField: bucket
    38          gvk:
    39            kind: StorageBucket
    40            version: v1beta1
    41            group: storage.cnrm.cloud.google.com
    42          targetField: name
    43    - name: google_storage_default_object_access_control
    44      kind: StorageDefaultObjectAccessControl
    45      autoGenerated: true
    46      idTemplate: "{{bucket}}/{{entity}}"
    47      idTemplateCanBeUsedToMatchResourceName: false
    48      resourceAvailableInAssetInventory: false
    49      metadataMapping:
    50        name: entity
    51      resourceID:
    52        targetField: entity
    53      resourceReferences:
    54        - key: bucketRef
    55          tfField: bucket
    56          gvk:
    57            kind: StorageBucket
    58            version: v1beta1
    59            group: storage.cnrm.cloud.google.com
    60          targetField: name
    61    - name: google_storage_hmac_key
    62      kind: StorageHMACKey
    63      autoGenerated: true
    64      idTemplate: "projects/{{project}}/hmacKeys/{{access_id}}"
    65      idTemplateCanBeUsedToMatchResourceName: false
    66      resourceAvailableInAssetInventory: false
    67      serverGeneratedIDField: access_id
    68      resourceID:
    69        targetField: access_id
    70      hierarchicalReferences:
    71        - type: project
    72          key: projectRef
    73      resourceReferences:
    74        - tfField: project
    75          key: projectRef
    76          description: |-
    77            The project that this resource belongs to.
    78          gvk:
    79            kind: Project
    80            version: v1beta1
    81            group: resourcemanager.cnrm.cloud.google.com
    82    - name: google_storage_object_access_control
    83      kind: StorageObjectAccessControl
    84      autoGenerated: true
    85      idTemplate: "{{bucket}}/{{object}}/{{entity}}"
    86      idTemplateCanBeUsedToMatchResourceName: false
    87      resourceAvailableInAssetInventory: false
    88      metadataMapping:
    89        name: entity
    90      resourceID:
    91        targetField: entity
    92      resourceReferences:
    93        - key: bucketRef
    94          tfField: bucket
    95          gvk:
    96            kind: StorageBucket
    97            version: v1beta1
    98            group: storage.cnrm.cloud.google.com
    99          targetField: name

View as plain text