Autogenerated update (2018-10-04)
Update: - admin_directory_v1 - androidpublisher_v2 - androidpublisher_v3 - content_v2 - content_v2sandbox - dlp_v2 - language_v1 - language_v1beta1 - language_v1beta2 - testing_v1 - videointelligence_v1 - videointelligence_v1beta2
This commit is contained in:
1 parent
6773823e78
commit
4693389a88
30 files changed
+3000
-349
No files matched your search
@@ -735,6 +735,74 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Message representing a set of files in a Cloud Storage bucket. Regular
|
||||
# expressions are used to allow fine-grained control over which files in the
|
||||
# bucket to include.
|
||||
# Included files are those that match at least one item in `include_regex` and
|
||||
# do not match any items in `exclude_regex`. Note that a file that matches
|
||||
# items from both lists will _not_ be included. For a match to occur, the
|
||||
# entire file path (i.e., everything in the url after the bucket name) must
|
||||
# match the regular expression.
|
||||
# For example, given the input ``bucket_name: "mybucket", include_regex:
|
||||
# ["directory1/.*"], exclude_regex:
|
||||
# ["directory1/excluded.*"]``:
|
||||
# * `gs://mybucket/directory1/myfile` will be included
|
||||
# * `gs://mybucket/directory1/directory2/myfile` will be included (`.*` matches
|
||||
# across `/`)
|
||||
# * `gs://mybucket/directory0/directory1/myfile` will _not_ be included (the
|
||||
# full path doesn't match any items in `include_regex`)
|
||||
# * `gs://mybucket/directory1/excludedfile` will _not_ be included (the path
|
||||
# matches an item in `exclude_regex`)
|
||||
# If `include_regex` is left empty, it will match all files by default
|
||||
# (this is equivalent to setting `include_regex: [".*"]`).
|
||||
# Some other common use cases:
|
||||
# * ``bucket_name: "mybucket", exclude_regex: [".*\.pdf"]`` will include all
|
||||
# files in `mybucket` except for .pdf files
|
||||
# * ``bucket_name: "mybucket", include_regex: ["directory/[^/]+"]`` will
|
||||
# include all files directly under `gs://mybucket/directory/`, without matching
|
||||
# across `/`
|
||||
class GooglePrivacyDlpV2CloudStorageRegexFileSet
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of a Cloud Storage bucket. Required.
|
||||
# Corresponds to the JSON property `bucketName`
|
||||
# @return [String]
|
||||
attr_accessor :bucket_name
|
||||
|
||||
# A list of regular expressions matching file paths to exclude. All files in
|
||||
# the bucket that match at least one of these regular expressions will be
|
||||
# excluded from the scan.
|
||||
# Regular expressions use RE2
|
||||
# [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
|
||||
# under the google/re2 repository on GitHub.
|
||||
# Corresponds to the JSON property `excludeRegex`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :exclude_regex
|
||||
|
||||
# A list of regular expressions matching file paths to include. All files in
|
||||
# the bucket that match at least one of these regular expressions will be
|
||||
# included in the set of files, except for those that also match an item in
|
||||
# `exclude_regex`. Leaving this field empty will match all files by default
|
||||
# (this is equivalent to including `.*` in the list).
|
||||
# Regular expressions use RE2
|
||||
# [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
|
||||
# under the google/re2 repository on GitHub.
|
||||
# Corresponds to the JSON property `includeRegex`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :include_regex
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@bucket_name = args[:bucket_name] if args.key?(:bucket_name)
|
||||
@exclude_regex = args[:exclude_regex] if args.key?(:exclude_regex)
|
||||
@include_regex = args[:include_regex] if args.key?(:include_regex)
|
||||
end
|
||||
end
|
||||
|
||||
# Represents a color in the RGB color space.
|
||||
class GooglePrivacyDlpV2Color
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -873,9 +941,13 @@ module Google
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Name of the container where the finding is located.
|
||||
# The top level name is the source file name or table name. Nested names
|
||||
# could be absent if the embedded object has no string identifier
|
||||
# (for an example an image contained within a document).
|
||||
# The top level name is the source file name or table name. Names of some
|
||||
# common storage containers are formatted as follows:
|
||||
# * BigQuery tables: `<project_id>:<dataset_id>.<table_id>`
|
||||
# * Cloud Storage files: `gs://<bucket>/<path>`
|
||||
# * Datastore namespace: <namespace>
|
||||
# Nested names could be absent if the embedded object has no string
|
||||
# identifier (for an example an image contained within a document).
|
||||
# Corresponds to the JSON property `containerName`
|
||||
# @return [String]
|
||||
attr_accessor :container_name
|
||||
@@ -2190,8 +2262,39 @@ module Google
|
||||
class GooglePrivacyDlpV2FileSet
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Message representing a set of files in a Cloud Storage bucket. Regular
|
||||
# expressions are used to allow fine-grained control over which files in the
|
||||
# bucket to include.
|
||||
# Included files are those that match at least one item in `include_regex` and
|
||||
# do not match any items in `exclude_regex`. Note that a file that matches
|
||||
# items from both lists will _not_ be included. For a match to occur, the
|
||||
# entire file path (i.e., everything in the url after the bucket name) must
|
||||
# match the regular expression.
|
||||
# For example, given the input ``bucket_name: "mybucket", include_regex:
|
||||
# ["directory1/.*"], exclude_regex:
|
||||
# ["directory1/excluded.*"]``:
|
||||
# * `gs://mybucket/directory1/myfile` will be included
|
||||
# * `gs://mybucket/directory1/directory2/myfile` will be included (`.*` matches
|
||||
# across `/`)
|
||||
# * `gs://mybucket/directory0/directory1/myfile` will _not_ be included (the
|
||||
# full path doesn't match any items in `include_regex`)
|
||||
# * `gs://mybucket/directory1/excludedfile` will _not_ be included (the path
|
||||
# matches an item in `exclude_regex`)
|
||||
# If `include_regex` is left empty, it will match all files by default
|
||||
# (this is equivalent to setting `include_regex: [".*"]`).
|
||||
# Some other common use cases:
|
||||
# * ``bucket_name: "mybucket", exclude_regex: [".*\.pdf"]`` will include all
|
||||
# files in `mybucket` except for .pdf files
|
||||
# * ``bucket_name: "mybucket", include_regex: ["directory/[^/]+"]`` will
|
||||
# include all files directly under `gs://mybucket/directory/`, without matching
|
||||
# across `/`
|
||||
# Corresponds to the JSON property `regexFileSet`
|
||||
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStorageRegexFileSet]
|
||||
attr_accessor :regex_file_set
|
||||
|
||||
# The Cloud Storage url of the file(s) to scan, in the format
|
||||
# `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
|
||||
# `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed. Exactly
|
||||
# one of `url` or `regex_file_set` must be set.
|
||||
# Corresponds to the JSON property `url`
|
||||
# @return [String]
|
||||
attr_accessor :url
|
||||
@@ -2202,6 +2305,7 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@regex_file_set = args[:regex_file_set] if args.key?(:regex_file_set)
|
||||
@url = args[:url] if args.key?(:url)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user