From accdecab8646778e48bc8c3ebc4c2452da513198 Mon Sep 17 00:00:00 2001 From: Samuel Keeley Date: Tue, 4 May 2021 11:23:34 -0500 Subject: [PATCH] add requireVerifiedChromeOs as optional (#4758) * add requireVerifiedChromeOs as optional see https://cloud.google.com/access-context-manager/docs/access-level-attributes * add to tests --- mmv1/products/accesscontextmanager/api.yaml | 3 +++ ...ource_access_context_manager_access_level_condition_test.go | 1 + .../resource_access_context_manager_access_level_test.go.erb | 1 + 3 files changed, 5 insertions(+) diff --git a/mmv1/products/accesscontextmanager/api.yaml b/mmv1/products/accesscontextmanager/api.yaml index 14d55e0b478a..26802c2a7898 100644 --- a/mmv1/products/accesscontextmanager/api.yaml +++ b/mmv1/products/accesscontextmanager/api.yaml @@ -271,6 +271,9 @@ objects: The minimum allowed OS version. If not set, any version of this OS satisfies the constraint. Format: "major.minor.patch" such as "10.5.301", "9.2.1". + - !ruby/object:Api::Type::Boolean + name: 'requireVerifiedChromeOs' + description: If you specify DESKTOP_CHROME_OS for osType, you can optionally include requireVerifiedChromeOs to require Chrome Verified Access. - !ruby/object:Api::Type::Enum name: 'osType' required: true diff --git a/mmv1/third_party/terraform/tests/resource_access_context_manager_access_level_condition_test.go b/mmv1/third_party/terraform/tests/resource_access_context_manager_access_level_condition_test.go index e1eb4fb94897..7051fe4d60a4 100644 --- a/mmv1/third_party/terraform/tests/resource_access_context_manager_access_level_condition_test.go +++ b/mmv1/third_party/terraform/tests/resource_access_context_manager_access_level_condition_test.go @@ -115,6 +115,7 @@ resource "google_access_context_manager_access_level" "test-access" { require_screen_lock = true os_constraints { os_type = "DESKTOP_CHROME_OS" + require_verified_chrome_os = true } } regions = [ diff --git a/mmv1/third_party/terraform/tests/resource_access_context_manager_access_level_test.go.erb b/mmv1/third_party/terraform/tests/resource_access_context_manager_access_level_test.go.erb index 265cec8d5f19..7fb2672be131 100644 --- a/mmv1/third_party/terraform/tests/resource_access_context_manager_access_level_test.go.erb +++ b/mmv1/third_party/terraform/tests/resource_access_context_manager_access_level_test.go.erb @@ -193,6 +193,7 @@ resource "google_access_context_manager_access_level" "test-access" { require_corp_owned = true os_constraints { os_type = "DESKTOP_CHROME_OS" + require_verified_chrome_os = true } } regions = [