|
| 1 | +# Copyright 2024 Google Inc. |
| 2 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | +# you may not use this file except in compliance with the License. |
| 4 | +# You may obtain a copy of the License at |
| 5 | +# |
| 6 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | +# |
| 8 | +# Unless required by applicable law or agreed to in writing, software |
| 9 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | +# See the License for the specific language governing permissions and |
| 12 | +# limitations under the License. |
| 13 | + |
| 14 | +--- |
| 15 | +name: 'MirroringDeployment' |
| 16 | +description: MirroringDeployment represents the collectors within a Zone and is associated with a deployment group. |
| 17 | +min_version: 'beta' |
| 18 | +references: |
| 19 | + guides: |
| 20 | + 'Mirroring deployment overview': 'https://cloud.google.com/network-security-integration/docs/out-of-band/deployments-overview' |
| 21 | + api: 'https://cloud.google.com/network-security-integration/docs/reference/rest/v1beta1/projects.locations.mirroringDeployments' |
| 22 | +docs: |
| 23 | +id_format: 'projects/{{project}}/locations/{{location}}/mirroringDeployments/{{mirroring_deployment_id}}' |
| 24 | +base_url: 'projects/{{project}}/locations/{{location}}/mirroringDeployments' |
| 25 | +self_link: 'projects/{{project}}/locations/{{location}}/mirroringDeployments/{{mirroring_deployment_id}}' |
| 26 | +create_url: 'projects/{{project}}/locations/{{location}}/mirroringDeployments?mirroringDeploymentId={{mirroring_deployment_id}}' |
| 27 | +update_verb: 'PATCH' |
| 28 | +update_mask: true |
| 29 | +import_format: |
| 30 | + - 'projects/{{project}}/locations/{{location}}/mirroringDeployments/{{mirroring_deployment_id}}' |
| 31 | +autogen_async: true |
| 32 | +async: |
| 33 | + actions: ['create', 'delete', 'update'] |
| 34 | + type: 'OpAsync' |
| 35 | + operation: |
| 36 | + base_url: '{{op_id}}' |
| 37 | + path: 'name' |
| 38 | + wait_ms: 1000 |
| 39 | + result: |
| 40 | + path: 'response' |
| 41 | + resource_inside_response: true |
| 42 | + error: |
| 43 | + path: 'error' |
| 44 | + message: 'message' |
| 45 | +custom_code: |
| 46 | +examples: |
| 47 | + - name: 'network_security_mirroring_deployment_basic' |
| 48 | + config_path: 'templates/terraform/examples/network_security_mirroring_deployment_basic.tf.tmpl' |
| 49 | + primary_resource_id: 'default' |
| 50 | + vars: |
| 51 | + network_name: 'example-network' |
| 52 | + subnetwork_name: 'example-subnet' |
| 53 | + health_check_name: 'example-hc' |
| 54 | + backend_service_name: 'example-bs' |
| 55 | + forwarding_rule_name: 'example-fwr' |
| 56 | + deployment_group_id: 'example-dg' |
| 57 | + deployment_id: 'example-deployment' |
| 58 | +parameters: |
| 59 | + - name: 'location' |
| 60 | + type: String |
| 61 | + description: 'Resource ID segment making up resource `name`. It identifies the resource |
| 62 | + within its parent collection as described in https://google.aip.dev/122. See documentation |
| 63 | + for resource type `networksecurity.googleapis.com/MirroringDeployment`. ' |
| 64 | + min_version: 'beta' |
| 65 | + url_param_only: true |
| 66 | + required: true |
| 67 | + immutable: true |
| 68 | + - name: 'mirroringDeploymentId' |
| 69 | + type: String |
| 70 | + description: "Required. Id of the requesting object\nIf auto-generating Id server-side, |
| 71 | + remove this field and\nmirroring_deployment_id from the method_signature of Create |
| 72 | + RPC " |
| 73 | + min_version: 'beta' |
| 74 | + url_param_only: true |
| 75 | + required: true |
| 76 | + immutable: true |
| 77 | +properties: |
| 78 | + - name: 'name' |
| 79 | + type: String |
| 80 | + description: 'Immutable. Identifier. The name of the MirroringDeployment. ' |
| 81 | + min_version: 'beta' |
| 82 | + immutable: true |
| 83 | + output: true |
| 84 | + - name: 'createTime' |
| 85 | + type: String |
| 86 | + description: 'Output only. [Output only] Create time stamp ' |
| 87 | + min_version: 'beta' |
| 88 | + output: true |
| 89 | + - name: 'updateTime' |
| 90 | + type: String |
| 91 | + description: 'Output only. [Output only] Update time stamp ' |
| 92 | + min_version: 'beta' |
| 93 | + output: true |
| 94 | + - name: 'labels' |
| 95 | + type: KeyValueLabels |
| 96 | + description: 'Optional. Labels as key value pairs ' |
| 97 | + min_version: 'beta' |
| 98 | + - name: 'forwardingRule' |
| 99 | + type: String |
| 100 | + description: "Required. Immutable. The regional load balancer which the mirrored |
| 101 | + traffic should be forwarded\nto. Format is:\nprojects/{project}/regions/{region}/forwardingRules/{forwardingRule} " |
| 102 | + min_version: 'beta' |
| 103 | + required: true |
| 104 | + immutable: true |
| 105 | + - name: 'mirroringDeploymentGroup' |
| 106 | + type: String |
| 107 | + description: "Required. Immutable. The Mirroring Deployment Group that this resource |
| 108 | + is part of. Format is:\n`projects/{project}/locations/global/mirroringDeploymentGroups/{mirroringDeploymentGroup}` " |
| 109 | + min_version: 'beta' |
| 110 | + required: true |
| 111 | + immutable: true |
| 112 | + - name: 'state' |
| 113 | + type: String |
| 114 | + description: "Output only. Current state of the deployment. \n Possible values:\n |
| 115 | + STATE_UNSPECIFIED\nACTIVE\nCREATING\nDELETING\nOUT_OF_SYNC\nDELETE_FAILED" |
| 116 | + min_version: 'beta' |
| 117 | + output: true |
| 118 | + - name: 'reconciling' |
| 119 | + type: Boolean |
| 120 | + description: "Output only. Whether reconciling is in progress, recommended per\nhttps://google.aip.dev/128. " |
| 121 | + min_version: 'beta' |
| 122 | + output: true |
0 commit comments