Skip to content

Commit

Permalink
Updating the accesscontextmanager apis from v1beta to v1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
karutselvan authored and KevinEmery committed Jun 21, 2023
1 parent abf8570 commit 59f2899
Show file tree
Hide file tree
Showing 9 changed files with 160 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2019 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

resources:
- name: access-level-1-{{ env["deployment"] }}
type: gcp-types/accesscontextmanager-{{ properties["version"] }}:accessPolicies.accessLevels
properties:
name: accessPolicies/578359180191/accessLevels/{{ properties["level"] }}
parent: accessPolicies/578359180191
title: test-update-access-level-{{ env["deployment"] }}
description: Sample access level using OS constraints.
basic:
conditions:
- devicePolicy:
osConstraints:
- osType: DESKTOP_CHROME_OS
minimumVersion: 11.1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2019 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

imports:
- path: ios_access_level.jinja

resources:
- name: access-levels-template
type: ios_access_level.jinja
properties:
version: v1
level: level_name
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2019 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

resources:
- name: access-level-1-{{ env["deployment"] }}
type: gcp-types/accesscontextmanager-{{ properties["version"] }}:accessPolicies.accessLevels
properties:
name: accessPolicies/578359180191/accessLevels/{{ properties["level"] }}
parent: accessPolicies/578359180191
title: access-level-1-title-{{ env["deployment"] }}
description: Sample access level using IP and OS constraints.
basic:
combiningFunction: AND
conditions:
- ipSubnetworks:
- 192.0.2.0/24
- devicePolicy:
osConstraints:
- osType: {{ properties["osType"] }}
minimumVersion: 10.10.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2019 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

imports:
- path: ip_and_os_access_level.jinja

resources:
- name: access-levels-template
type: ip_and_os_access_level.jinja
properties:
version: v1
level: level_name
osType: DESKTOP_MAC
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2019 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

resources:
- name: access-level-1-{{ env["deployment"] }}
type: gcp-types/accesscontextmanager-{{ properties["version"] }}:accessPolicies.accessLevels
properties:
name: accessPolicies/578359180191/accessLevels/{{ properties["level"] }}
parent: accessPolicies/578359180191
title: test-update-access-level-{{ env["deployment"] }}
description: Sample access level using OS constraints.
basic:
conditions:
- devicePolicy:
osConstraints:
- osType: DESKTOP_MAC
minimumVersion: 10.10.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2019 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

imports:
- path: mac_os_access_level.jinja

resources:
- name: access-levels-template
type: mac_os_access_level.jinja
properties:
version: v1
level: level_name
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ resources:
- name: access-levels-template
type: ios_access_level.jinja
properties:
version: v1
version: v1beta
level: level_name
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ resources:
- name: access-levels-template
type: ip_and_os_access_level.jinja
properties:
version: v1
version: v1beta
level: level_name
osType: DESKTOP_MAC
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ resources:
- name: access-levels-template
type: mac_os_access_level.jinja
properties:
version: v1
version: v1beta
level: level_name

0 comments on commit 59f2899

Please sign in to comment.