Skip to content

Commit

Permalink
Access Context Manager: add support for access level condition… (#3291)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcimboldo authored Mar 24, 2020
1 parent fa7f45f commit 47fe1db
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
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

0 comments on commit 47fe1db

Please sign in to comment.