Skip to content

Commit 5916642

Browse files
authored
tgc-revival: add clouddeploy resources (#15231)
1 parent 6c4a8af commit 5916642

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

mmv1/products/artifactregistry/Repository.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ async:
3939
base_url: '{{op_id}}'
4040
result:
4141
resource_inside_response: true
42+
include_in_tgc_next_DO_NOT_USE: true
4243
iam_policy:
4344
method_name_separator: ':'
4445
allowed_iam_role: 'roles/artifactregistry.reader'
@@ -110,6 +111,8 @@ examples:
110111
vars:
111112
repository_id: 'my-repository'
112113
desc: 'example docker repository with cleanup policies'
114+
tgc_test_ignore_extra:
115+
- cleanup_policy_dry_run
113116
- name: 'artifact_registry_repository_remote_dockerhub_auth'
114117
primary_resource_id: 'my-repo'
115118
vars:
@@ -711,6 +714,7 @@ properties:
711714
description: |-
712715
The credentials used to access the remote repository.
713716
immutable: true
717+
is_missing_in_cai: true
714718
properties:
715719
- name: 'usernamePasswordCredentials'
716720
type: NestedObject
@@ -738,6 +742,7 @@ properties:
738742
# Ignore read on this field because it is INPUT_ONLY.
739743
# Need to use custom flatten because ignore_read doesn't work with nested fields.
740744
custom_flatten: 'templates/terraform/custom_flatten/artifactregistry_rr_disable_upstream_validation.go.tmpl'
745+
is_missing_in_cai: true
741746
- name: 'cleanupPolicyDryRun'
742747
type: Boolean
743748
description: |-

mmv1/products/clouddeploy/Automation.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ async:
4141
result:
4242
resource_inside_response: false
4343
custom_code:
44+
include_in_tgc_next_DO_NOT_USE: true
4445
examples:
4546
- name: 'clouddeploy_automation_basic'
4647
primary_resource_id: 'b-automation'
@@ -97,6 +98,7 @@ properties:
9798
- name: 'labels'
9899
type: KeyValueLabels
99100
description: "Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters."
101+
is_missing_in_cai: true
100102
- name: 'etag'
101103
type: String
102104
description: "Optional. The weak etag of the `Automation` resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding."

mmv1/products/clouddeploy/DeployPolicy.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,33 @@ async:
4141
result:
4242
resource_inside_response: false
4343
custom_code:
44+
include_in_tgc_next_DO_NOT_USE: true
4445
examples:
4546
- name: "clouddeploy_deploy_policy_basic"
4647
primary_resource_id: "b-deploy-policy"
4748
vars:
4849
policy: "cd-policy"
4950
delivery_pipeline: "cd-pipeline"
51+
tgc_test_ignore_extra: # These values have 0 value in TF config
52+
- rules.rollout_restriction.time_windows.weekly_windows.end_time.minutes
53+
- rules.rollout_restriction.time_windows.weekly_windows.start_time.hours
54+
- rules.rollout_restriction.time_windows.weekly_windows.start_time.minutes
5055
- name: "clouddeploy_deploy_policy_full"
5156
primary_resource_id: "f-deploy-policy"
5257
vars:
5358
policy: "cd-policy"
5459
delivery_pipeline: "cd-pipeline"
60+
tgc_test_ignore_extra: # These values have 0 value in TF config
61+
- rules.0.rollout_restriction.time_windows.one_time_windows.end_time.minutes
62+
- rules.0.rollout_restriction.time_windows.one_time_windows.start_time.hours
63+
- rules.0.rollout_restriction.time_windows.one_time_windows.start_time.minutes
64+
- rules.0.rollout_restriction.time_windows.weekly_windows.end_time.minutes
65+
- rules.0.rollout_restriction.time_windows.weekly_windows.end_time.nanos
66+
- rules.0.rollout_restriction.time_windows.weekly_windows.end_time.seconds
67+
- rules.0.rollout_restriction.time_windows.weekly_windows.start_time.minutes
68+
- rules.1.rollout_restriction.time_windows.weekly_windows.end_time.minutes
69+
- rules.1.rollout_restriction.time_windows.weekly_windows.start_time.hours
70+
- rules.1.rollout_restriction.time_windows.weekly_windows.start_time.minutes
5571
parameters:
5672
- name: "location"
5773
type: String
@@ -87,6 +103,7 @@ properties:
87103
- name: "labels"
88104
type: KeyValueLabels
89105
description: "Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be <= 63 characters."
106+
is_missing_in_cai: true
90107
- name: "etag"
91108
type: String
92109
description: "The weak etag of the `DeployPolicy` resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding."

0 commit comments

Comments
 (0)