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

Fixed accesscontextmanager spec requirements #7952

Merged
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
18 changes: 9 additions & 9 deletions mmv1/products/accesscontextmanager/ServicePerimeter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,9 @@ properties:
Currently only projects are allowed.
Format: projects/{project_number}
at_least_one_of:
- status.0.resources
- status.0.access_levels
- status.0.restricted_services
- spec.0.resources
- spec.0.access_levels
- spec.0.restricted_services
item_type: Api::Type::String
- !ruby/object:Api::Type::Array
name: 'accessLevels'
Expand All @@ -437,9 +437,9 @@ properties:

Format: accessPolicies/{policy_id}/accessLevels/{access_level_name}
at_least_one_of:
- status.0.resources
- status.0.access_levels
- status.0.restricted_services
- spec.0.resources
- spec.0.access_levels
- spec.0.restricted_services
item_type: Api::Type::String
- !ruby/object:Api::Type::Array
name: 'restrictedServices'
Expand All @@ -450,9 +450,9 @@ properties:
buckets inside the perimeter must meet the perimeter's access
restrictions.
at_least_one_of:
- status.0.resources
- status.0.access_levels
- status.0.restricted_services
- spec.0.resources
- spec.0.access_levels
- spec.0.restricted_services
item_type: Api::Type::String
- !ruby/object:Api::Type::NestedObject
name: 'vpcAccessibleServices'
Expand Down
18 changes: 9 additions & 9 deletions mmv1/products/accesscontextmanager/ServicePerimeters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,9 @@ properties:
# TODO: (mbang) won't work for arrays yet, uncomment here once they are supported.
# (github.com/hashicorp/terraform-plugin-sdk/issues/470)
# at_least_one_of:
# - status.0.resources
# - status.0.access_levels
# - status.0.restricted_services
# - spec.0.resources
# - spec.0.access_levels
# - spec.0.restricted_services
item_type: Api::Type::String
- !ruby/object:Api::Type::Array
name: 'accessLevels'
Expand All @@ -421,9 +421,9 @@ properties:
# TODO: (mbang) won't work for arrays yet, uncomment here once they are supported.
# (github.com/hashicorp/terraform-plugin-sdk/issues/470)
# at_least_one_of:
# - status.0.resources
# - status.0.access_levels
# - status.0.restricted_services
# - spec.0.resources
# - spec.0.access_levels
# - spec.0.restricted_services
item_type: Api::Type::String
- !ruby/object:Api::Type::Array
name: 'restrictedServices'
Expand All @@ -436,9 +436,9 @@ properties:
# TODO: (mbang) won't work for arrays yet, uncomment here once they are supported.
# (github.com/hashicorp/terraform-plugin-sdk/issues/470)
# at_least_one_of:
# - status.0.resources
# - status.0.access_levels
# - status.0.restricted_services
# - spec.0.resources
# - spec.0.access_levels
# - spec.0.restricted_services
item_type: Api::Type::String
- !ruby/object:Api::Type::NestedObject
name: 'vpcAccessibleServices'
Expand Down