Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Context Manager: add support for access level condition 'regions' #3291

Merged
merged 1 commit into from
Mar 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions products/accesscontextmanager/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ objects:
name: 'requireCorpOwned'
description: |
Whether the device needs to be corp owned.
- !ruby/object:Api::Type::Array
name: 'regions'
description: |
The request must originate from one of the provided
countries/regions.
Format: A valid ISO 3166-1 alpha-2 code.
item_type: Api::Type::String
- !ruby/object:Api::Resource
name: 'ServicePerimeter'
# This is an unusual API, so we need to use a few fields to map the methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ resource "google_access_context_manager_access_level" "<%= ctx[:primary_resource
os_type = "DESKTOP_CHROME_OS"
}
}
regions = [
"CH",
"IT",
"US",
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ resource "google_access_context_manager_access_level" "access-level" {
os_type = "DESKTOP_CHROME_OS"
}
}
}
regions = [
"CH",
"IT",
"US",
]
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ resource "google_access_context_manager_access_level" "test-access" {
os_type = "DESKTOP_CHROME_OS"
}
}
regions = [
"IT",
"US",
]
}
}
}
Expand Down