Skip to content

Commit

Permalink
fixing YAML lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitgoyal0301 committed Dec 24, 2024
1 parent a5a56d2 commit c1b3700
Show file tree
Hide file tree
Showing 2 changed files with 195 additions and 195 deletions.
384 changes: 192 additions & 192 deletions mmv1/products/chronicle/DataAccessScope.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,207 +24,207 @@ self_link: projects/{{project}}/locations/{{location}}/instances/{{instance}}/da
create_url: projects/{{project}}/locations/{{location}}/instances/{{instance}}/dataAccessScopes?dataAccessScopeId={{data_access_scope_id}}
id_format: projects/{{project}}/locations/{{location}}/instances/{{instance}}/dataAccessScopes/{{data_access_scope_id}}
import_format:
- projects/{{project}}/locations/{{location}}/instances/{{instance}}/dataAccessScopes/{{data_access_scope_id}}
- projects/{{project}}/locations/{{location}}/instances/{{instance}}/dataAccessScopes/{{data_access_scope_id}}
update_verb: PATCH
update_mask: true

examples:
- name: 'chronicle_dataaccessscope_with_logtype'
primary_resource_id: 'example'
min_version: 'beta'
vars:
name: scope-with-logtype
description: scope-description
test_env_vars:
chronicle_id: 'CHRONICLE_ID'
- name: 'chronicle_dataaccessscope_with_dataaccesslabel'
primary_resource_id: 'example'
min_version: 'beta'
vars:
name: scope-with-dataaccesslabel
description: scope-description
data_access_label_id: label-name
test_env_vars:
chronicle_id: 'CHRONICLE_ID'
- name: 'chronicle_dataaccessscope_with_asset_namespace'
primary_resource_id: 'example'
min_version: 'beta'
vars:
name: scope-with-asset-namespace
description: scope-description
test_env_vars:
chronicle_id: 'CHRONICLE_ID'
- name: 'chronicle_dataaccessscope_with_ingestion_label'
primary_resource_id: 'example'
min_version: 'beta'
vars:
name: scope-with-ingestion-label
description: scope-description
test_env_vars:
chronicle_id: 'CHRONICLE_ID'
- name: 'chronicle_dataaccessscope_with_denied_labels'
primary_resource_id: 'example'
min_version: 'beta'
vars:
name: scope-with-denied-labels
description: scope-description
data_access_label_id: label-name
test_env_vars:
chronicle_id: 'CHRONICLE_ID'
- name: 'chronicle_dataaccessscope_with_logtype'
primary_resource_id: 'example'
min_version: 'beta'
vars:
name: scope-with-logtype
description: scope-description
test_env_vars:
chronicle_id: 'CHRONICLE_ID'
- name: 'chronicle_dataaccessscope_with_dataaccesslabel'
primary_resource_id: 'example'
min_version: 'beta'
vars:
name: scope-with-dataaccesslabel
description: scope-description
data_access_label_id: label-name
test_env_vars:
chronicle_id: 'CHRONICLE_ID'
- name: 'chronicle_dataaccessscope_with_asset_namespace'
primary_resource_id: 'example'
min_version: 'beta'
vars:
name: scope-with-asset-namespace
description: scope-description
test_env_vars:
chronicle_id: 'CHRONICLE_ID'
- name: 'chronicle_dataaccessscope_with_ingestion_label'
primary_resource_id: 'example'
min_version: 'beta'
vars:
name: scope-with-ingestion-label
description: scope-description
test_env_vars:
chronicle_id: 'CHRONICLE_ID'
- name: 'chronicle_dataaccessscope_with_denied_labels'
primary_resource_id: 'example'
min_version: 'beta'
vars:
name: scope-with-denied-labels
description: scope-description
data_access_label_id: label-name
test_env_vars:
chronicle_id: 'CHRONICLE_ID'


parameters:
- name: location
type: String
description: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
immutable: true
url_param_only: true
required: true
- name: instance
type: String
description: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
immutable: true
url_param_only: true
required: true
- name: dataAccessScopeId
type: String
description: |-
Required. The user provided scope id which will become the last part of the name
of the scope resource.
Needs to be compliant with https://google.aip.dev/122
immutable: true
url_param_only: true
required: true
- name: location
type: String
description: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
immutable: true
url_param_only: true
required: true
- name: instance
type: String
description: Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
immutable: true
url_param_only: true
required: true
- name: dataAccessScopeId
type: String
description: |-
Required. The user provided scope id which will become the last part of the name
of the scope resource.
Needs to be compliant with https://google.aip.dev/122
immutable: true
url_param_only: true
required: true
properties:
- name: deniedDataAccessLabels
type: Array
description: |-
Optional. The denied labels for the scope.
The logical operator for evaluation of the denied labels is AND.
E.g.: A customer with scope with denied labels A and B won't be able
to see data labeled with A and data labeled with B
and data with labels A and B.
item_type:
type: NestedObject
properties:
- name: displayName
type: String
description: |-
Output only. The display name of the label.
Data access label and log types's name
will match the display name of the resource.
The asset namespace will match the namespace itself.
The ingestion key value pair will match the key of the tuple.
output: true
- name: dataAccessLabel
type: String
description: The name of the data access label.
- name: logType
type: String
description: The name of the log type.
- name: assetNamespace
type: String
description: |-
The asset namespace configured in the forwarder
of the customer's events.
- name: ingestionLabel
- name: deniedDataAccessLabels
type: Array
description: |-
Optional. The denied labels for the scope.
The logical operator for evaluation of the denied labels is AND.
E.g.: A customer with scope with denied labels A and B won't be able
to see data labeled with A and data labeled with B
and data with labels A and B.
item_type:
type: NestedObject
description: Representation of an ingestion label type.
properties:
- name: ingestionLabelKey
type: String
description: Required. The key of the ingestion label. Always required.
required: true
- name: ingestionLabelValue
type: String
description: |-
Optional. The value of the ingestion label. Optional. An object
with no provided value and some key provided would match
against the given key and ANY value.
- name: displayName
type: String
description: Output only. The name to be used for display to customers of the data access scope.
output: true
- name: createTime
type: String
description: Output only. The time at which the data access scope was created.
output: true
- name: author
type: String
description: Output only. The user who created the data access scope.
output: true
- name: lastEditor
type: String
description: Output only. The user who last updated the data access scope.
output: true
- name: description
type: String
description: Optional. A description of the data access scope for a human reader.
- name: allowAll
type: Boolean
description: |-
Optional. Whether or not the scope allows all labels, allow_all and
allowed_data_access_labels are mutually exclusive and one of them must be
present. denied_data_access_labels can still be used along with allow_all.
When combined with denied_data_access_labels, access will be granted to all
data that doesn't have labels mentioned in denied_data_access_labels. E.g.:
A customer with scope with denied labels A and B and allow_all will be able
to see all data except data labeled with A and data labeled with B and data
with labels A and B.
- name: name
type: String
description: |-
Required. The unique full name of the data access scope.
The name should comply with https://google.aip.dev/122 standards.
required: true
default_from_api: true
- name: allowedDataAccessLabels
type: Array
description: |-
Required. The allowed labels for the scope. There has to be at
least one label allowed for the scope to be valid.
The logical operator for evaluation of the allowed labels is OR.
Either allow_all or allowed_data_access_labels needs to be provided.
E.g.: A customer with scope with allowed labels A and B will be able
to see data with labeled with A or B or (A and B).
item_type:
type: NestedObject
properties:
- name: dataAccessLabel
type: String
description: The name of the data access label.
- name: logType
type: String
description: The name of the log type.
- name: assetNamespace
type: String
description: |-
The asset namespace configured in the forwarder
of the customer's events.
- name: ingestionLabel
- name: displayName
type: String
description: |-
Output only. The display name of the label.
Data access label and log types's name
will match the display name of the resource.
The asset namespace will match the namespace itself.
The ingestion key value pair will match the key of the tuple.
output: true
- name: dataAccessLabel
type: String
description: The name of the data access label.
- name: logType
type: String
description: The name of the log type.
- name: assetNamespace
type: String
description: |-
The asset namespace configured in the forwarder
of the customer's events.
- name: ingestionLabel
type: NestedObject
description: Representation of an ingestion label type.
properties:
- name: ingestionLabelKey
type: String
description: Required. The key of the ingestion label. Always required.
required: true
- name: ingestionLabelValue
type: String
description: |-
Optional. The value of the ingestion label. Optional. An object
with no provided value and some key provided would match
against the given key and ANY value.
- name: displayName
type: String
description: Output only. The name to be used for display to customers of the data access scope.
output: true
- name: createTime
type: String
description: Output only. The time at which the data access scope was created.
output: true
- name: author
type: String
description: Output only. The user who created the data access scope.
output: true
- name: lastEditor
type: String
description: Output only. The user who last updated the data access scope.
output: true
- name: description
type: String
description: Optional. A description of the data access scope for a human reader.
- name: allowAll
type: Boolean
description: |-
Optional. Whether or not the scope allows all labels, allow_all and
allowed_data_access_labels are mutually exclusive and one of them must be
present. denied_data_access_labels can still be used along with allow_all.
When combined with denied_data_access_labels, access will be granted to all
data that doesn't have labels mentioned in denied_data_access_labels. E.g.:
A customer with scope with denied labels A and B and allow_all will be able
to see all data except data labeled with A and data labeled with B and data
with labels A and B.
- name: name
type: String
description: |-
Required. The unique full name of the data access scope.
The name should comply with https://google.aip.dev/122 standards.
required: true
default_from_api: true
- name: allowedDataAccessLabels
type: Array
description: |-
Required. The allowed labels for the scope. There has to be at
least one label allowed for the scope to be valid.
The logical operator for evaluation of the allowed labels is OR.
Either allow_all or allowed_data_access_labels needs to be provided.
E.g.: A customer with scope with allowed labels A and B will be able
to see data with labeled with A or B or (A and B).
item_type:
type: NestedObject
description: Representation of an ingestion label type.
properties:
- name: ingestionLabelKey
type: String
description: Required. The key of the ingestion label. Always required.
required: true
- name: ingestionLabelValue
type: String
description: |-
Optional. The value of the ingestion label. Optional. An object
with no provided value and some key provided would match
against the given key and ANY value.
- name: displayName
type: String
description: |-
Output only. The display name of the label.
Data access label and log types's name
will match the display name of the resource.
The asset namespace will match the namespace itself.
The ingestion key value pair will match the key of the tuple.
output: true
- name: updateTime
type: String
description: Output only. The time at which the data access scope was last updated.
output: true
- name: dataAccessLabel
type: String
description: The name of the data access label.
- name: logType
type: String
description: The name of the log type.
- name: assetNamespace
type: String
description: |-
The asset namespace configured in the forwarder
of the customer's events.
- name: ingestionLabel
type: NestedObject
description: Representation of an ingestion label type.
properties:
- name: ingestionLabelKey
type: String
description: Required. The key of the ingestion label. Always required.
required: true
- name: ingestionLabelValue
type: String
description: |-
Optional. The value of the ingestion label. Optional. An object
with no provided value and some key provided would match
against the given key and ANY value.
- name: displayName
type: String
description: |-
Output only. The display name of the label.
Data access label and log types's name
will match the display name of the resource.
The asset namespace will match the namespace itself.
The ingestion key value pair will match the key of the tuple.
output: true
- name: updateTime
type: String
description: Output only. The time at which the data access scope was last updated.
output: true
Loading

0 comments on commit c1b3700

Please sign in to comment.