Skip to content

Commit 6c2adc6

Browse files
feat: Automated regeneration of datacatalog v1 client (#13440)
Auto-created at 2023-02-05 09:32:17 +0000 using the toys pull request generator.
1 parent 9b2bc9e commit 6c2adc6

File tree

6 files changed

+210
-12
lines changed

6 files changed

+210
-12
lines changed

api_names_out.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109709,6 +109709,19 @@
109709109709
"/datacatalog:v1/GoogleCloudDatacatalogV1PolicyTag/displayName": display_name
109710109710
"/datacatalog:v1/GoogleCloudDatacatalogV1PolicyTag/name": name
109711109711
"/datacatalog:v1/GoogleCloudDatacatalogV1PolicyTag/parentPolicyTag": parent_policy_tag
109712+
"/datacatalog:v1/GoogleCloudDatacatalogV1ReconcileTagsMetadata": google_cloud_datacatalog_v1_reconcile_tags_metadata
109713+
"/datacatalog:v1/GoogleCloudDatacatalogV1ReconcileTagsMetadata/errors": errors
109714+
"/datacatalog:v1/GoogleCloudDatacatalogV1ReconcileTagsMetadata/errors/error": error
109715+
"/datacatalog:v1/GoogleCloudDatacatalogV1ReconcileTagsMetadata/state": state
109716+
"/datacatalog:v1/GoogleCloudDatacatalogV1ReconcileTagsRequest": google_cloud_datacatalog_v1_reconcile_tags_request
109717+
"/datacatalog:v1/GoogleCloudDatacatalogV1ReconcileTagsRequest/forceDeleteMissing": force_delete_missing
109718+
"/datacatalog:v1/GoogleCloudDatacatalogV1ReconcileTagsRequest/tagTemplate": tag_template
109719+
"/datacatalog:v1/GoogleCloudDatacatalogV1ReconcileTagsRequest/tags": tags
109720+
"/datacatalog:v1/GoogleCloudDatacatalogV1ReconcileTagsRequest/tags/tag": tag
109721+
"/datacatalog:v1/GoogleCloudDatacatalogV1ReconcileTagsResponse": google_cloud_datacatalog_v1_reconcile_tags_response
109722+
"/datacatalog:v1/GoogleCloudDatacatalogV1ReconcileTagsResponse/createdTagsCount": created_tags_count
109723+
"/datacatalog:v1/GoogleCloudDatacatalogV1ReconcileTagsResponse/deletedTagsCount": deleted_tags_count
109724+
"/datacatalog:v1/GoogleCloudDatacatalogV1ReconcileTagsResponse/updatedTagsCount": updated_tags_count
109712109725
"/datacatalog:v1/GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest": google_cloud_datacatalog_v1_rename_tag_template_field_enum_value_request
109713109726
"/datacatalog:v1/GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest/newEnumValueDisplayName": new_enum_value_display_name
109714109727
"/datacatalog:v1/GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest": google_cloud_datacatalog_v1_rename_tag_template_field_request
@@ -109929,6 +109942,8 @@
109929109942
"/datacatalog:v1/datacatalog.projects.locations.entryGroups.entries.tags.patch": patch_project_location_entry_group_entry_tag
109930109943
"/datacatalog:v1/datacatalog.projects.locations.entryGroups.entries.tags.patch/name": name
109931109944
"/datacatalog:v1/datacatalog.projects.locations.entryGroups.entries.tags.patch/updateMask": update_mask
109945+
"/datacatalog:v1/datacatalog.projects.locations.entryGroups.entries.tags.reconcile": reconcile_project_location_entry_group_entry_tag
109946+
"/datacatalog:v1/datacatalog.projects.locations.entryGroups.entries.tags.reconcile/parent": parent
109932109947
"/datacatalog:v1/datacatalog.projects.locations.entryGroups.entries.testIamPermissions": test_entry_iam_permissions
109933109948
"/datacatalog:v1/datacatalog.projects.locations.entryGroups.entries.testIamPermissions/resource": resource
109934109949
"/datacatalog:v1/datacatalog.projects.locations.entryGroups.entries.unstar": unstar_project_location_entry_group_entry

generated/google-apis-datacatalog_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-datacatalog_v1
22

3+
### v0.30.0 (2023-02-05)
4+
5+
* Regenerated from discovery document revision 20230127
6+
37
### v0.29.0 (2023-01-22)
48

59
* Regenerated from discovery document revision 20230117

generated/google-apis-datacatalog_v1/lib/google/apis/datacatalog_v1/classes.rb

Lines changed: 104 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,22 @@ class Binding
6060
# kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
6161
# project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
6262
# email address that represents a Google group. For example, `[email protected]`
63-
# . * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
64-
# identifier) representing a user that has been recently deleted. For example, `
65-
# [email protected]?uid=123456789012345678901`. If the user is recovered, this
66-
# value reverts to `user:`emailid`` and the recovered user retains the role in
67-
# the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
68-
# address (plus unique identifier) representing a service account that has been
69-
# recently deleted. For example, `[email protected]?uid=
63+
# . * `domain:`domain``: The G Suite domain (primary) that represents all the
64+
# users of that domain. For example, `google.com` or `example.com`. * `deleted:
65+
# user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
66+
# representing a user that has been recently deleted. For example, `alice@
67+
# example.com?uid=123456789012345678901`. If the user is recovered, this value
68+
# reverts to `user:`emailid`` and the recovered user retains the role in the
69+
# binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
70+
# (plus unique identifier) representing a service account that has been recently
71+
# deleted. For example, `[email protected]?uid=
7072
# 123456789012345678901`. If the service account is undeleted, this value
7173
# reverts to `serviceAccount:`emailid`` and the undeleted service account
7274
# retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
7375
# An email address (plus unique identifier) representing a Google group that has
7476
# been recently deleted. For example, `[email protected]?uid=
7577
# 123456789012345678901`. If the group is recovered, this value reverts to `
76-
# group:`emailid`` and the recovered group retains the role in the binding. * `
77-
# domain:`domain``: The G Suite domain (primary) that represents all the users
78-
# of that domain. For example, `google.com` or `example.com`.
78+
# group:`emailid`` and the recovered group retains the role in the binding.
7979
# Corresponds to the JSON property `members`
8080
# @return [Array<String>]
8181
attr_accessor :members
@@ -1885,6 +1885,100 @@ def update!(**args)
18851885
end
18861886
end
18871887

1888+
# Metadata message for long-running operation returned by the ReconcileTags.
1889+
class GoogleCloudDatacatalogV1ReconcileTagsMetadata
1890+
include Google::Apis::Core::Hashable
1891+
1892+
# Map that maps name of each tagged column (or empty string in case of sole
1893+
# entry) to tagging operation status.
1894+
# Corresponds to the JSON property `errors`
1895+
# @return [Hash<String,Google::Apis::DatacatalogV1::Status>]
1896+
attr_accessor :errors
1897+
1898+
# State of the reconciliation operation.
1899+
# Corresponds to the JSON property `state`
1900+
# @return [String]
1901+
attr_accessor :state
1902+
1903+
def initialize(**args)
1904+
update!(**args)
1905+
end
1906+
1907+
# Update properties of this object
1908+
def update!(**args)
1909+
@errors = args[:errors] if args.key?(:errors)
1910+
@state = args[:state] if args.key?(:state)
1911+
end
1912+
end
1913+
1914+
# Request message for ReconcileTags.
1915+
class GoogleCloudDatacatalogV1ReconcileTagsRequest
1916+
include Google::Apis::Core::Hashable
1917+
1918+
# If set to true deletes from the entry tags related to given tag template and
1919+
# not mentioned in the tags source. If set to false only creates and updates of
1920+
# the tags mentioned in the source will take place. Other tags in that entry
1921+
# using the same tag template will be retained instead of being deleted.
1922+
# Corresponds to the JSON property `forceDeleteMissing`
1923+
# @return [Boolean]
1924+
attr_accessor :force_delete_missing
1925+
alias_method :force_delete_missing?, :force_delete_missing
1926+
1927+
# Required. The name of the tag template, that will be used for reconciliation.
1928+
# Corresponds to the JSON property `tagTemplate`
1929+
# @return [String]
1930+
attr_accessor :tag_template
1931+
1932+
# A list of tags to be applied on a given entry. Individual tags may specify tag
1933+
# template, but it must be the same as the one in the ReconcileTagsRequest. The
1934+
# sole entry and each of its columns must be mentioned at most once.
1935+
# Corresponds to the JSON property `tags`
1936+
# @return [Array<Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1Tag>]
1937+
attr_accessor :tags
1938+
1939+
def initialize(**args)
1940+
update!(**args)
1941+
end
1942+
1943+
# Update properties of this object
1944+
def update!(**args)
1945+
@force_delete_missing = args[:force_delete_missing] if args.key?(:force_delete_missing)
1946+
@tag_template = args[:tag_template] if args.key?(:tag_template)
1947+
@tags = args[:tags] if args.key?(:tags)
1948+
end
1949+
end
1950+
1951+
# Request message for long-running operation returned by the ReconcileTags.
1952+
class GoogleCloudDatacatalogV1ReconcileTagsResponse
1953+
include Google::Apis::Core::Hashable
1954+
1955+
# Number of tags created in the request.
1956+
# Corresponds to the JSON property `createdTagsCount`
1957+
# @return [Fixnum]
1958+
attr_accessor :created_tags_count
1959+
1960+
# Number of tags deleted in the request.
1961+
# Corresponds to the JSON property `deletedTagsCount`
1962+
# @return [Fixnum]
1963+
attr_accessor :deleted_tags_count
1964+
1965+
# Number of tags updated in the request.
1966+
# Corresponds to the JSON property `updatedTagsCount`
1967+
# @return [Fixnum]
1968+
attr_accessor :updated_tags_count
1969+
1970+
def initialize(**args)
1971+
update!(**args)
1972+
end
1973+
1974+
# Update properties of this object
1975+
def update!(**args)
1976+
@created_tags_count = args[:created_tags_count] if args.key?(:created_tags_count)
1977+
@deleted_tags_count = args[:deleted_tags_count] if args.key?(:deleted_tags_count)
1978+
@updated_tags_count = args[:updated_tags_count] if args.key?(:updated_tags_count)
1979+
end
1980+
end
1981+
18881982
# Request message for RenameTagTemplateFieldEnumValue.
18891983
class GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest
18901984
include Google::Apis::Core::Hashable

generated/google-apis-datacatalog_v1/lib/google/apis/datacatalog_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DatacatalogV1
1818
# Version of the google-apis-datacatalog_v1 gem
19-
GEM_VERSION = "0.29.0"
19+
GEM_VERSION = "0.30.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.11.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20230117"
25+
REVISION = "20230127"
2626
end
2727
end
2828
end

generated/google-apis-datacatalog_v1/lib/google/apis/datacatalog_v1/representations.rb

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
370370
include Google::Apis::Core::JsonObjectSupport
371371
end
372372

373+
class GoogleCloudDatacatalogV1ReconcileTagsMetadata
374+
class Representation < Google::Apis::Core::JsonRepresentation; end
375+
376+
include Google::Apis::Core::JsonObjectSupport
377+
end
378+
379+
class GoogleCloudDatacatalogV1ReconcileTagsRequest
380+
class Representation < Google::Apis::Core::JsonRepresentation; end
381+
382+
include Google::Apis::Core::JsonObjectSupport
383+
end
384+
385+
class GoogleCloudDatacatalogV1ReconcileTagsResponse
386+
class Representation < Google::Apis::Core::JsonRepresentation; end
387+
388+
include Google::Apis::Core::JsonObjectSupport
389+
end
390+
373391
class GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest
374392
class Representation < Google::Apis::Core::JsonRepresentation; end
375393

@@ -1146,6 +1164,34 @@ class Representation < Google::Apis::Core::JsonRepresentation
11461164
end
11471165
end
11481166

1167+
class GoogleCloudDatacatalogV1ReconcileTagsMetadata
1168+
# @private
1169+
class Representation < Google::Apis::Core::JsonRepresentation
1170+
hash :errors, as: 'errors', class: Google::Apis::DatacatalogV1::Status, decorator: Google::Apis::DatacatalogV1::Status::Representation
1171+
1172+
property :state, as: 'state'
1173+
end
1174+
end
1175+
1176+
class GoogleCloudDatacatalogV1ReconcileTagsRequest
1177+
# @private
1178+
class Representation < Google::Apis::Core::JsonRepresentation
1179+
property :force_delete_missing, as: 'forceDeleteMissing'
1180+
property :tag_template, as: 'tagTemplate'
1181+
collection :tags, as: 'tags', class: Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1Tag, decorator: Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1Tag::Representation
1182+
1183+
end
1184+
end
1185+
1186+
class GoogleCloudDatacatalogV1ReconcileTagsResponse
1187+
# @private
1188+
class Representation < Google::Apis::Core::JsonRepresentation
1189+
property :created_tags_count, :numeric_string => true, as: 'createdTagsCount'
1190+
property :deleted_tags_count, :numeric_string => true, as: 'deletedTagsCount'
1191+
property :updated_tags_count, :numeric_string => true, as: 'updatedTagsCount'
1192+
end
1193+
end
1194+
11491195
class GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest
11501196
# @private
11511197
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-datacatalog_v1/lib/google/apis/datacatalog_v1/service.rb

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,45 @@ def patch_project_location_entry_group_entry_tag(name, google_cloud_datacatalog_
10891089
execute_or_queue_command(command, &block)
10901090
end
10911091

1092+
# Reconciles tags created with a given tag template on a given Entry.
1093+
# Reconciliation is an operation that given a list of tags creates or updates
1094+
# them on the entry. Additionally, the operation is also able to delete tags not
1095+
# mentioned in the tag list. It can be achieved by setting force_delete_missing
1096+
# parameter. Reconciliation is a long-running operation done in the background,
1097+
# so this method returns long-running operation resource. The resource can be
1098+
# queried with Operations.GetOperation which contains metadata and response.
1099+
# @param [String] parent
1100+
# Required. Name of Entry to be tagged.
1101+
# @param [Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1ReconcileTagsRequest] google_cloud_datacatalog_v1_reconcile_tags_request_object
1102+
# @param [String] fields
1103+
# Selector specifying which fields to include in a partial response.
1104+
# @param [String] quota_user
1105+
# Available to use for quota purposes for server-side applications. Can be any
1106+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1107+
# @param [Google::Apis::RequestOptions] options
1108+
# Request-specific options
1109+
#
1110+
# @yield [result, err] Result & error if block supplied
1111+
# @yieldparam result [Google::Apis::DatacatalogV1::Operation] parsed result object
1112+
# @yieldparam err [StandardError] error object if request failed
1113+
#
1114+
# @return [Google::Apis::DatacatalogV1::Operation]
1115+
#
1116+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1117+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1118+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1119+
def reconcile_project_location_entry_group_entry_tag(parent, google_cloud_datacatalog_v1_reconcile_tags_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1120+
command = make_simple_command(:post, 'v1/{+parent}/tags:reconcile', options)
1121+
command.request_representation = Google::Apis::DatacatalogV1::GoogleCloudDatacatalogV1ReconcileTagsRequest::Representation
1122+
command.request_object = google_cloud_datacatalog_v1_reconcile_tags_request_object
1123+
command.response_representation = Google::Apis::DatacatalogV1::Operation::Representation
1124+
command.response_class = Google::Apis::DatacatalogV1::Operation
1125+
command.params['parent'] = parent unless parent.nil?
1126+
command.query['fields'] = fields unless fields.nil?
1127+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1128+
execute_or_queue_command(command, &block)
1129+
end
1130+
10921131
# Creates a tag and assigns it to: * An Entry if the method name is `projects.
10931132
# locations.entryGroups.entries.tags.create`. * Or EntryGroupif the method name
10941133
# is `projects.locations.entryGroups.tags.create`. Note: The project identified

0 commit comments

Comments
 (0)