From 9f186713659dc989b56a801e556a563954ecb673 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 8 Mar 2023 07:39:28 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#1896) --- admin/directory/v1/admin-api.json | 16 +- admin/directory/v1/admin-gen.go | 18 +- .../v1alpha/analyticsadmin-api.json | 255 +- analyticsadmin/v1alpha/analyticsadmin-gen.go | 1124 ++++- api-list.json | 15 + apigee/v1/apigee-api.json | 147 +- apigee/v1/apigee-gen.go | 481 ++ cloudidentity/v1/cloudidentity-api.json | 24 +- cloudidentity/v1/cloudidentity-gen.go | 87 +- content/v2.1/content-api.json | 12 +- content/v2.1/content-gen.go | 16 +- datacatalog/v1/datacatalog-api.json | 142 +- datacatalog/v1/datacatalog-gen.go | 343 +- datacatalog/v1beta1/datacatalog-api.json | 1260 ++++- datacatalog/v1beta1/datacatalog-gen.go | 2076 +++++++- datalineage/v1/datalineage-api.json | 1294 +++++ datalineage/v1/datalineage-gen.go | 4400 +++++++++++++++++ dlp/v2/dlp-api.json | 12 +- dlp/v2/dlp-gen.go | 3 +- documentai/v1/documentai-api.json | 46 +- documentai/v1/documentai-gen.go | 76 + documentai/v1beta2/documentai-api.json | 46 +- documentai/v1beta2/documentai-gen.go | 76 + documentai/v1beta3/documentai-api.json | 46 +- documentai/v1beta3/documentai-gen.go | 76 + firebaseml/v1/firebaseml-api.json | 4 +- firebaseml/v1/firebaseml-gen.go | 11 +- iap/v1/iap-api.json | 12 +- iap/v1/iap-gen.go | 39 +- integrations/v1alpha/integrations-api.json | 101 +- integrations/v1alpha/integrations-gen.go | 184 +- ml/v1/ml-api.json | 4 +- ml/v1/ml-gen.go | 11 +- policysimulator/v1/policysimulator-api.json | 123 +- policysimulator/v1/policysimulator-gen.go | 221 +- .../v1alpha/policysimulator-api.json | 123 +- .../v1alpha/policysimulator-gen.go | 221 +- retail/v2/retail-api.json | 37 +- retail/v2/retail-gen.go | 178 +- retail/v2alpha/retail-api.json | 12 +- retail/v2alpha/retail-gen.go | 30 +- retail/v2beta/retail-api.json | 12 +- retail/v2beta/retail-gen.go | 30 +- storagetransfer/v1/storagetransfer-api.json | 6 +- storagetransfer/v1/storagetransfer-gen.go | 3 + .../v1/streetviewpublish-api.json | 6 +- streetviewpublish/v1/streetviewpublish-gen.go | 6 +- translate/v3/translate-api.json | 8 +- translate/v3/translate-gen.go | 17 +- translate/v3beta1/translate-api.json | 8 +- translate/v3beta1/translate-gen.go | 17 +- .../v1/videointelligence-api.json | 4 +- videointelligence/v1/videointelligence-gen.go | 11 +- vision/v1/vision-api.json | 4 +- vision/v1/vision-gen.go | 11 +- workloadmanager/v1/workloadmanager-api.json | 10 +- workloadmanager/v1/workloadmanager-gen.go | 18 +- 57 files changed, 12057 insertions(+), 1516 deletions(-) create mode 100644 datalineage/v1/datalineage-api.json create mode 100644 datalineage/v1/datalineage-gen.go diff --git a/admin/directory/v1/admin-api.json b/admin/directory/v1/admin-api.json index cacfb7e1800..6c4ca18c976 100644 --- a/admin/directory/v1/admin-api.json +++ b/admin/directory/v1/admin-api.json @@ -3303,7 +3303,7 @@ "type": "string" }, "userKey": { - "description": "The user's primary email address, alias email address, or unique user ID. If included in the request, returns role assignments only for this user.", + "description": "The primary email address, alias email address, or unique user or group ID. If included in the request, returns role assignments only for this user or group.", "location": "query", "type": "string" } @@ -4630,7 +4630,7 @@ } } }, - "revision": "20230124", + "revision": "20230307", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Alias": { @@ -5895,7 +5895,8 @@ "SET_VOLUME", "WIPE_USERS", "REMOTE_POWERWASH", - "DEVICE_START_CRD_SESSION" + "DEVICE_START_CRD_SESSION", + "CAPTURE_LOGS" ], "enumDescriptions": [ "The command type was unspecified.", @@ -5904,7 +5905,8 @@ "Set the volume of the device. Can only be issued to Kiosk and managed guest session devices.", "Wipe all the users off of the device. Executing this command in the device will remove all user profile data, but it will keep device policy and enrollment.", "Wipes the device by performing a power wash. Executing this command in the device will remove all data including user policies, device policies and enrollment policies. Warning: This will revert the device back to a factory state with no enrollment unless the device is subject to forced or auto enrollment. Use with caution, as this is an irreversible action!", - "Starts a Chrome Remote Desktop session." + "Starts a Chrome Remote Desktop session.", + "Capture the system logs of a kiosk device. The logs can be downloaded from the downloadUrl link present in deviceFiles field of [chromeosdevices](https://developers.google.com/admin-sdk/directory/reference/rest/v1/chromeosdevices)" ], "type": "string" } @@ -5960,7 +5962,8 @@ "SET_VOLUME", "WIPE_USERS", "REMOTE_POWERWASH", - "DEVICE_START_CRD_SESSION" + "DEVICE_START_CRD_SESSION", + "CAPTURE_LOGS" ], "enumDescriptions": [ "The command type was unspecified.", @@ -5969,7 +5972,8 @@ "Set the volume of the device. Can only be issued to Kiosk and managed guest session devices.", "Wipe all the users off of the device. Executing this command in the device will remove all user profile data, but it will keep device policy and enrollment.", "Wipes the device by performing a power wash. Executing this command in the device will remove all data including user policies, device policies and enrollment policies. Warning: This will revert the device back to a factory state with no enrollment unless the device is subject to forced or auto enrollment. Use with caution, as this is an irreversible action!", - "Starts a Chrome Remote Desktop session." + "Starts a Chrome Remote Desktop session.", + "Capture the system logs of a kiosk device. The logs can be downloaded from the downloadUrl link present in deviceFiles field of [chromeosdevices](https://developers.google.com/admin-sdk/directory/reference/rest/v1/chromeosdevices)" ], "type": "string" }, diff --git a/admin/directory/v1/admin-gen.go b/admin/directory/v1/admin-gen.go index 1c802ae5d69..8cba9d97ea2 100644 --- a/admin/directory/v1/admin-gen.go +++ b/admin/directory/v1/admin-gen.go @@ -2599,6 +2599,11 @@ type DirectoryChromeosdevicesCommand struct { // caution, as this is an irreversible action! // "DEVICE_START_CRD_SESSION" - Starts a Chrome Remote Desktop // session. + // "CAPTURE_LOGS" - Capture the system logs of a kiosk device. The + // logs can be downloaded from the downloadUrl link present in + // deviceFiles field of + // [chromeosdevices](https://developers.google.com/admin-sdk/directory/re + // ference/rest/v1/chromeosdevices) Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -2706,6 +2711,11 @@ type DirectoryChromeosdevicesIssueCommandRequest struct { // caution, as this is an irreversible action! // "DEVICE_START_CRD_SESSION" - Starts a Chrome Remote Desktop // session. + // "CAPTURE_LOGS" - Capture the system logs of a kiosk device. The + // logs can be downloaded from the downloadUrl link present in + // deviceFiles field of + // [chromeosdevices](https://developers.google.com/admin-sdk/directory/re + // ference/rest/v1/chromeosdevices) CommandType string `json:"commandType,omitempty"` // Payload: The payload for the command, provide it only if command @@ -20213,9 +20223,9 @@ func (c *RoleAssignmentsListCall) RoleId(roleId string) *RoleAssignmentsListCall return c } -// UserKey sets the optional parameter "userKey": The user's primary -// email address, alias email address, or unique user ID. If included in -// the request, returns role assignments only for this user. +// UserKey sets the optional parameter "userKey": The primary email +// address, alias email address, or unique user or group ID. If included +// in the request, returns role assignments only for this user or group. func (c *RoleAssignmentsListCall) UserKey(userKey string) *RoleAssignmentsListCall { c.urlParams_.Set("userKey", userKey) return c @@ -20353,7 +20363,7 @@ func (c *RoleAssignmentsListCall) Do(opts ...googleapi.CallOption) (*RoleAssignm // "type": "string" // }, // "userKey": { - // "description": "The user's primary email address, alias email address, or unique user ID. If included in the request, returns role assignments only for this user.", + // "description": "The primary email address, alias email address, or unique user or group ID. If included in the request, returns role assignments only for this user or group.", // "location": "query", // "type": "string" // } diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 6aa1d809a2a..bc7625d7c74 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -981,6 +981,24 @@ "https://www.googleapis.com/auth/analytics.edit" ] }, + "createConnectedSiteTag": { + "description": "Creates a connected site tag for a Universal Analytics property. You can create a maximum of 20 connected site tags per property. Note: This API cannot be used on GA4 properties.", + "flatPath": "v1alpha/properties:createConnectedSiteTag", + "httpMethod": "POST", + "id": "analyticsadmin.properties.createConnectedSiteTag", + "parameterOrder": [], + "parameters": {}, + "path": "v1alpha/properties:createConnectedSiteTag", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, "delete": { "description": "Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.", "flatPath": "v1alpha/properties/{propertiesId}", @@ -1006,6 +1024,24 @@ "https://www.googleapis.com/auth/analytics.edit" ] }, + "deleteConnectedSiteTag": { + "description": "Deletes a connected site tag for a Universal Analytics property. Note: this has no effect on GA4 properties.", + "flatPath": "v1alpha/properties:deleteConnectedSiteTag", + "httpMethod": "POST", + "id": "analyticsadmin.properties.deleteConnectedSiteTag", + "parameterOrder": [], + "parameters": {}, + "path": "v1alpha/properties:deleteConnectedSiteTag", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, "fetchAutomatedGa4ConfigurationOptOut": { "description": "Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this has no effect on GA4 property.", "flatPath": "v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut", @@ -1167,6 +1203,25 @@ "https://www.googleapis.com/auth/analytics.readonly" ] }, + "listConnectedSiteTags": { + "description": "Lists the connected site tags for a Universal Analytics property. A maximum of 20 connected site tags will be returned. Note: this has no effect on GA4 property.", + "flatPath": "v1alpha/properties:listConnectedSiteTags", + "httpMethod": "POST", + "id": "analyticsadmin.properties.listConnectedSiteTags", + "parameterOrder": [], + "parameters": {}, + "path": "v1alpha/properties:listConnectedSiteTags", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] + }, "patch": { "description": "Updates a property.", "flatPath": "v1alpha/properties/{propertiesId}", @@ -2355,6 +2410,32 @@ "https://www.googleapis.com/auth/analytics.readonly" ] }, + "getEnhancedMeasurementSettings": { + "description": "Returns the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.", + "flatPath": "v1alpha/properties/{propertiesId}/dataStreams/{dataStreamsId}/enhancedMeasurementSettings", + "httpMethod": "GET", + "id": "analyticsadmin.properties.dataStreams.getEnhancedMeasurementSettings", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the settings to lookup. Format: properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: \"properties/1000/dataStreams/2000/enhancedMeasurementSettings\"", + "location": "path", + "pattern": "^properties/[^/]+/dataStreams/[^/]+/enhancedMeasurementSettings$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] + }, "getGlobalSiteTag": { "description": "Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.", "flatPath": "v1alpha/properties/{propertiesId}/dataStreams/{dataStreamsId}/globalSiteTag", @@ -2451,6 +2532,40 @@ "scopes": [ "https://www.googleapis.com/auth/analytics.edit" ] + }, + "updateEnhancedMeasurementSettings": { + "description": "Updates the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.", + "flatPath": "v1alpha/properties/{propertiesId}/dataStreams/{dataStreamsId}/enhancedMeasurementSettings", + "httpMethod": "PATCH", + "id": "analyticsadmin.properties.dataStreams.updateEnhancedMeasurementSettings", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Resource name of the Enhanced Measurement Settings. Format: properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: \"properties/1000/dataStreams/2000/enhancedMeasurementSettings\"", + "location": "path", + "pattern": "^properties/[^/]+/dataStreams/[^/]+/enhancedMeasurementSettings$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] } }, "resources": { @@ -3771,7 +3886,7 @@ } } }, - "revision": "20230304", + "revision": "20230307", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -5129,6 +5244,10 @@ "$ref": "GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal", "description": "A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in change history." }, + "enhancedMeasurementSettings": { + "$ref": "GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings", + "description": "A snapshot of EnhancedMeasurementSettings resource in change history." + }, "expandedDataSet": { "$ref": "GoogleAnalyticsAdminV1alphaExpandedDataSet", "description": "A snapshot of an ExpandedDataSet resource in change history." @@ -5207,6 +5326,21 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaConnectedSiteTag": { + "description": "Configuration for a specific Connected Site Tag.", + "id": "GoogleAnalyticsAdminV1alphaConnectedSiteTag", + "properties": { + "displayName": { + "description": "Required. User-provided display name for the connected site tag. Must be less than 256 characters.", + "type": "string" + }, + "tagId": { + "description": "Required. \"Tag ID to forward events to. Also known as the Measurement ID, or the \"G-ID\" (For example: G-12345).", + "type": "string" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaConversionEvent": { "description": "A conversion event in a Google Analytics property.", "id": "GoogleAnalyticsAdminV1alphaConversionEvent", @@ -5254,6 +5388,27 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest": { + "description": "Request message for CreateConnectedSiteTag RPC.", + "id": "GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest", + "properties": { + "connectedSiteTag": { + "$ref": "GoogleAnalyticsAdminV1alphaConnectedSiteTag", + "description": "Required. The tag to add to the Universal Analytics property" + }, + "property": { + "description": "The Universal Analytics property to create connected site tags for. This API does not support GA4 properties. Format: properties/{universalAnalyticsPropertyId} Example: properties/1234", + "type": "string" + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse": { + "description": "Response message for CreateConnectedSiteTag RPC.", + "id": "GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse", + "properties": {}, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaCreateUserLinkRequest": { "description": "Request message for CreateUserLink RPC. Users can have multiple email addresses associated with their Google account, and one of these email addresses is the \"primary\" email address. Any of the email addresses associated with a Google account may be used for a new UserLink, but the returned UserLink will always contain the \"primary\" email address. As a result, the input and output email address for this request may differ.", "id": "GoogleAnalyticsAdminV1alphaCreateUserLinkRequest", @@ -5586,6 +5741,21 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest": { + "description": "Request message for DeleteConnectedSiteTag RPC.", + "id": "GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest", + "properties": { + "property": { + "description": "The Universal Analytics property to delete connected site tags for. This API does not support GA4 properties. Format: properties/{universalAnalyticsPropertyId} Example: properties/1234", + "type": "string" + }, + "tagId": { + "description": "Tag ID to forward events to. Also known as the Measurement ID, or the \"G-ID\" (For example: G-12345).", + "type": "string" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest": { "description": "Request message for DeleteUserLink RPC.", "id": "GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest", @@ -5672,6 +5842,58 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings": { + "description": "Singleton resource under a WebDataStream, configuring measurement of additional site interactions and content.", + "id": "GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings", + "properties": { + "fileDownloadsEnabled": { + "description": "If enabled, capture a file download event each time a link is clicked with a common document, compressed file, application, video, or audio extension.", + "type": "boolean" + }, + "formInteractionsEnabled": { + "description": "If enabled, capture a form interaction event each time a visitor interacts with a form on your website. False by default.", + "type": "boolean" + }, + "name": { + "description": "Output only. Resource name of the Enhanced Measurement Settings. Format: properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: \"properties/1000/dataStreams/2000/enhancedMeasurementSettings\"", + "readOnly": true, + "type": "string" + }, + "outboundClicksEnabled": { + "description": "If enabled, capture an outbound click event each time a visitor clicks a link that leads them away from your domain.", + "type": "boolean" + }, + "pageChangesEnabled": { + "description": "If enabled, capture a page view event each time the website changes the browser history state.", + "type": "boolean" + }, + "scrollsEnabled": { + "description": "If enabled, capture scroll events each time a visitor gets to the bottom of a page.", + "type": "boolean" + }, + "searchQueryParameter": { + "description": "Required. URL query parameters to interpret as site search parameters. Max length is 1024 characters. Must not be empty.", + "type": "string" + }, + "siteSearchEnabled": { + "description": "If enabled, capture a view search results event each time a visitor performs a search on your site (based on a query parameter).", + "type": "boolean" + }, + "streamEnabled": { + "description": "Indicates whether Enhanced Measurement Settings will be used to automatically measure interactions and content on this web stream. Changing this value does not affect the settings themselves, but determines whether they are respected.", + "type": "boolean" + }, + "uriQueryParameter": { + "description": "Additional URL query parameters. Max length is 1024 characters.", + "type": "string" + }, + "videoEngagementEnabled": { + "description": "If enabled, capture video play, progress, and complete events as visitors view embedded videos on your site.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaExpandedDataSet": { "description": "A resource message representing a GA4 ExpandedDataSet.", "id": "GoogleAnalyticsAdminV1alphaExpandedDataSet", @@ -6098,6 +6320,31 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest": { + "description": "Request message for ListConnectedSiteTags RPC.", + "id": "GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest", + "properties": { + "property": { + "description": "The Universal Analytics property to fetch connected site tags for. This does not work on GA4 properties. A maximum of 20 connected site tags will be returned. Example Format: `properties/1234`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse": { + "description": "Response message for ListConnectedSiteTags RPC.", + "id": "GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse", + "properties": { + "connectedSiteTags": { + "description": "The site tags for the Universal Analytics property. A maximum of 20 connected site tags will be returned.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaConnectedSiteTag" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaListConversionEventsResponse": { "description": "Response message for ListConversionEvents RPC.", "id": "GoogleAnalyticsAdminV1alphaListConversionEventsResponse", @@ -6789,7 +7036,8 @@ "DATA_STREAM", "ATTRIBUTION_SETTINGS", "EXPANDED_DATA_SET", - "CHANNEL_GROUP" + "CHANNEL_GROUP", + "ENHANCED_MEASUREMENT_SETTINGS" ], "enumDescriptions": [ "Resource type unknown or not specified.", @@ -6809,7 +7057,8 @@ "DataStream resource", "AttributionSettings resource", "ExpandedDataSet resource", - "ChannelGroup resource" + "ChannelGroup resource", + "EnhancedMeasurementSettings resource" ], "type": "string" }, diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index f99e332f099..d77676665a3 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -2831,6 +2831,10 @@ type GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource struct // DisplayVideo360AdvertiserLinkProposal resource in change history. DisplayVideo360AdvertiserLinkProposal *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal `json:"displayVideo360AdvertiserLinkProposal,omitempty"` + // EnhancedMeasurementSettings: A snapshot of + // EnhancedMeasurementSettings resource in change history. + EnhancedMeasurementSettings *GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings `json:"enhancedMeasurementSettings,omitempty"` + // ExpandedDataSet: A snapshot of an ExpandedDataSet resource in change // history. ExpandedDataSet *GoogleAnalyticsAdminV1alphaExpandedDataSet `json:"expandedDataSet,omitempty"` @@ -2941,6 +2945,40 @@ func (s *GoogleAnalyticsAdminV1alphaChangeHistoryEvent) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaConnectedSiteTag: Configuration for a +// specific Connected Site Tag. +type GoogleAnalyticsAdminV1alphaConnectedSiteTag struct { + // DisplayName: Required. User-provided display name for the connected + // site tag. Must be less than 256 characters. + DisplayName string `json:"displayName,omitempty"` + + // TagId: Required. "Tag ID to forward events to. Also known as the + // Measurement ID, or the "G-ID" (For example: G-12345). + TagId string `json:"tagId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAnalyticsAdminV1alphaConnectedSiteTag) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaConnectedSiteTag + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaConversionEvent: A conversion event in a // Google Analytics property. type GoogleAnalyticsAdminV1alphaConversionEvent struct { @@ -3029,6 +3067,50 @@ func (s *GoogleAnalyticsAdminV1alphaCreateAccessBindingRequest) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest: Request +// message for CreateConnectedSiteTag RPC. +type GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest struct { + // ConnectedSiteTag: Required. The tag to add to the Universal Analytics + // property + ConnectedSiteTag *GoogleAnalyticsAdminV1alphaConnectedSiteTag `json:"connectedSiteTag,omitempty"` + + // Property: The Universal Analytics property to create connected site + // tags for. This API does not support GA4 properties. Format: + // properties/{universalAnalyticsPropertyId} Example: properties/1234 + Property string `json:"property,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConnectedSiteTag") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConnectedSiteTag") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse: Response +// message for CreateConnectedSiteTag RPC. +type GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + // GoogleAnalyticsAdminV1alphaCreateUserLinkRequest: Request message for // CreateUserLink RPC. Users can have multiple email addresses // associated with their Google account, and one of these email @@ -3548,6 +3630,41 @@ func (s *GoogleAnalyticsAdminV1alphaDeleteAccessBindingRequest) MarshalJSON() ([ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest: Request +// message for DeleteConnectedSiteTag RPC. +type GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest struct { + // Property: The Universal Analytics property to delete connected site + // tags for. This API does not support GA4 properties. Format: + // properties/{universalAnalyticsPropertyId} Example: properties/1234 + Property string `json:"property,omitempty"` + + // TagId: Tag ID to forward events to. Also known as the Measurement ID, + // or the "G-ID" (For example: G-12345). + TagId string `json:"tagId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Property") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Property") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest: Request message for // DeleteUserLink RPC. type GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest struct { @@ -3723,6 +3840,93 @@ func (s *GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal) Marsh return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings: Singleton +// resource under a WebDataStream, configuring measurement of additional +// site interactions and content. +type GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings struct { + // FileDownloadsEnabled: If enabled, capture a file download event each + // time a link is clicked with a common document, compressed file, + // application, video, or audio extension. + FileDownloadsEnabled bool `json:"fileDownloadsEnabled,omitempty"` + + // FormInteractionsEnabled: If enabled, capture a form interaction event + // each time a visitor interacts with a form on your website. False by + // default. + FormInteractionsEnabled bool `json:"formInteractionsEnabled,omitempty"` + + // Name: Output only. Resource name of the Enhanced Measurement + // Settings. Format: + // properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurement + // Settings Example: + // "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + Name string `json:"name,omitempty"` + + // OutboundClicksEnabled: If enabled, capture an outbound click event + // each time a visitor clicks a link that leads them away from your + // domain. + OutboundClicksEnabled bool `json:"outboundClicksEnabled,omitempty"` + + // PageChangesEnabled: If enabled, capture a page view event each time + // the website changes the browser history state. + PageChangesEnabled bool `json:"pageChangesEnabled,omitempty"` + + // ScrollsEnabled: If enabled, capture scroll events each time a visitor + // gets to the bottom of a page. + ScrollsEnabled bool `json:"scrollsEnabled,omitempty"` + + // SearchQueryParameter: Required. URL query parameters to interpret as + // site search parameters. Max length is 1024 characters. Must not be + // empty. + SearchQueryParameter string `json:"searchQueryParameter,omitempty"` + + // SiteSearchEnabled: If enabled, capture a view search results event + // each time a visitor performs a search on your site (based on a query + // parameter). + SiteSearchEnabled bool `json:"siteSearchEnabled,omitempty"` + + // StreamEnabled: Indicates whether Enhanced Measurement Settings will + // be used to automatically measure interactions and content on this web + // stream. Changing this value does not affect the settings themselves, + // but determines whether they are respected. + StreamEnabled bool `json:"streamEnabled,omitempty"` + + // UriQueryParameter: Additional URL query parameters. Max length is + // 1024 characters. + UriQueryParameter string `json:"uriQueryParameter,omitempty"` + + // VideoEngagementEnabled: If enabled, capture video play, progress, and + // complete events as visitors view embedded videos on your site. + VideoEngagementEnabled bool `json:"videoEngagementEnabled,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "FileDownloadsEnabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FileDownloadsEnabled") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaExpandedDataSet: A resource message // representing a GA4 ExpandedDataSet. type GoogleAnalyticsAdminV1alphaExpandedDataSet struct { @@ -4510,6 +4714,73 @@ func (s *GoogleAnalyticsAdminV1alphaListBigQueryLinksResponse) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest: Request +// message for ListConnectedSiteTags RPC. +type GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest struct { + // Property: The Universal Analytics property to fetch connected site + // tags for. This does not work on GA4 properties. A maximum of 20 + // connected site tags will be returned. Example Format: + // `properties/1234` + Property string `json:"property,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Property") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Property") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse: Response +// message for ListConnectedSiteTags RPC. +type GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse struct { + // ConnectedSiteTags: The site tags for the Universal Analytics + // property. A maximum of 20 connected site tags will be returned. + ConnectedSiteTags []*GoogleAnalyticsAdminV1alphaConnectedSiteTag `json:"connectedSiteTags,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ConnectedSiteTags") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConnectedSiteTags") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaListConversionEventsResponse: Response // message for ListConversionEvents RPC. type GoogleAnalyticsAdminV1alphaListConversionEventsResponse struct { @@ -5652,6 +5923,8 @@ type GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest struct { // "ATTRIBUTION_SETTINGS" - AttributionSettings resource // "EXPANDED_DATA_SET" - ExpandedDataSet resource // "CHANNEL_GROUP" - ChannelGroup resource + // "ENHANCED_MEASUREMENT_SETTINGS" - EnhancedMeasurementSettings + // resource ResourceType []string `json:"resourceType,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to @@ -10556,37 +10829,29 @@ func (c *PropertiesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytic } -// method id "analyticsadmin.properties.delete": +// method id "analyticsadmin.properties.createConnectedSiteTag": -type PropertiesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type PropertiesCreateConnectedSiteTagCall struct { + s *Service + googleanalyticsadminv1alphacreateconnectedsitetagrequest *GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Marks target Property as soft-deleted (ie: "trashed") and -// returns it. This API does not have a method to restore soft-deleted -// properties. However, they can be restored using the Trash Can UI. If -// the properties are not restored before the expiration time, the -// Property and all child resources (eg: GoogleAdsLinks, Streams, -// UserLinks) will be permanently purged. -// https://support.google.com/analytics/answer/6154772 Returns an error -// if the target is not found, or is not a GA4 Property. -// -// - name: The name of the Property to soft-delete. Format: -// properties/{property_id} Example: "properties/1000". -func (r *PropertiesService) Delete(name string) *PropertiesDeleteCall { - c := &PropertiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// CreateConnectedSiteTag: Creates a connected site tag for a Universal +// Analytics property. You can create a maximum of 20 connected site +// tags per property. Note: This API cannot be used on GA4 properties. +func (r *PropertiesService) CreateConnectedSiteTag(googleanalyticsadminv1alphacreateconnectedsitetagrequest *GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest) *PropertiesCreateConnectedSiteTagCall { + c := &PropertiesCreateConnectedSiteTagCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googleanalyticsadminv1alphacreateconnectedsitetagrequest = googleanalyticsadminv1alphacreateconnectedsitetagrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *PropertiesDeleteCall) Fields(s ...googleapi.Field) *PropertiesDeleteCall { +func (c *PropertiesCreateConnectedSiteTagCall) Fields(s ...googleapi.Field) *PropertiesCreateConnectedSiteTagCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -10594,21 +10859,21 @@ func (c *PropertiesDeleteCall) Fields(s ...googleapi.Field) *PropertiesDeleteCal // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *PropertiesDeleteCall) Context(ctx context.Context) *PropertiesDeleteCall { +func (c *PropertiesCreateConnectedSiteTagCall) Context(ctx context.Context) *PropertiesCreateConnectedSiteTagCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *PropertiesDeleteCall) Header() http.Header { +func (c *PropertiesCreateConnectedSiteTagCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *PropertiesCreateConnectedSiteTagCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -10616,30 +10881,34 @@ func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) { } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphacreateconnectedsitetagrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties:createConnectedSiteTag") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "analyticsadmin.properties.delete" call. -// Exactly one of *GoogleAnalyticsAdminV1alphaProperty or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleAnalyticsAdminV1alphaProperty.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "analyticsadmin.properties.createConnectedSiteTag" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse.ServerRespo +// nse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, error) { +func (c *PropertiesCreateConnectedSiteTagCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -10658,7 +10927,7 @@ func (c *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytic if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleAnalyticsAdminV1alphaProperty{ + ret := &GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -10670,25 +10939,18 @@ func (c *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytic } return ret, nil // { - // "description": "Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.", - // "flatPath": "v1alpha/properties/{propertiesId}", - // "httpMethod": "DELETE", - // "id": "analyticsadmin.properties.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: \"properties/1000\"", - // "location": "path", - // "pattern": "^properties/[^/]+$", - // "required": true, - // "type": "string" - // } + // "description": "Creates a connected site tag for a Universal Analytics property. You can create a maximum of 20 connected site tags per property. Note: This API cannot be used on GA4 properties.", + // "flatPath": "v1alpha/properties:createConnectedSiteTag", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.createConnectedSiteTag", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1alpha/properties:createConnectedSiteTag", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagRequest" // }, - // "path": "v1alpha/{+name}", // "response": { - // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // "$ref": "GoogleAnalyticsAdminV1alphaCreateConnectedSiteTagResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/analytics.edit" @@ -10697,26 +10959,293 @@ func (c *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalytic } -// method id "analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut": - -type PropertiesFetchAutomatedGa4ConfigurationOptOutCall struct { - s *Service - googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} +// method id "analyticsadmin.properties.delete": -// FetchAutomatedGa4ConfigurationOptOut: Fetches the opt out status for -// the automated GA4 setup process for a UA property. Note: this has no -// effect on GA4 property. -func (r *PropertiesService) FetchAutomatedGa4ConfigurationOptOut(googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall { - c := &PropertiesFetchAutomatedGa4ConfigurationOptOutCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest = googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest - return c +type PropertiesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Fields allows partial responses to be retrieved. See +// Delete: Marks target Property as soft-deleted (ie: "trashed") and +// returns it. This API does not have a method to restore soft-deleted +// properties. However, they can be restored using the Trash Can UI. If +// the properties are not restored before the expiration time, the +// Property and all child resources (eg: GoogleAdsLinks, Streams, +// UserLinks) will be permanently purged. +// https://support.google.com/analytics/answer/6154772 Returns an error +// if the target is not found, or is not a GA4 Property. +// +// - name: The name of the Property to soft-delete. Format: +// properties/{property_id} Example: "properties/1000". +func (r *PropertiesService) Delete(name string) *PropertiesDeleteCall { + c := &PropertiesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *PropertiesDeleteCall) Fields(s ...googleapi.Field) *PropertiesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *PropertiesDeleteCall) Context(ctx context.Context) *PropertiesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *PropertiesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.delete" call. +// Exactly one of *GoogleAnalyticsAdminV1alphaProperty or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleAnalyticsAdminV1alphaProperty.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *PropertiesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaProperty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaProperty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found, or is not a GA4 Property.", + // "flatPath": "v1alpha/properties/{propertiesId}", + // "httpMethod": "DELETE", + // "id": "analyticsadmin.properties.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: \"properties/1000\"", + // "location": "path", + // "pattern": "^properties/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaProperty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.deleteConnectedSiteTag": + +type PropertiesDeleteConnectedSiteTagCall struct { + s *Service + googleanalyticsadminv1alphadeleteconnectedsitetagrequest *GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// DeleteConnectedSiteTag: Deletes a connected site tag for a Universal +// Analytics property. Note: this has no effect on GA4 properties. +func (r *PropertiesService) DeleteConnectedSiteTag(googleanalyticsadminv1alphadeleteconnectedsitetagrequest *GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest) *PropertiesDeleteConnectedSiteTagCall { + c := &PropertiesDeleteConnectedSiteTagCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googleanalyticsadminv1alphadeleteconnectedsitetagrequest = googleanalyticsadminv1alphadeleteconnectedsitetagrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *PropertiesDeleteConnectedSiteTagCall) Fields(s ...googleapi.Field) *PropertiesDeleteConnectedSiteTagCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *PropertiesDeleteConnectedSiteTagCall) Context(ctx context.Context) *PropertiesDeleteConnectedSiteTagCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *PropertiesDeleteConnectedSiteTagCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesDeleteConnectedSiteTagCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphadeleteconnectedsitetagrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties:deleteConnectedSiteTag") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.deleteConnectedSiteTag" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *PropertiesDeleteConnectedSiteTagCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a connected site tag for a Universal Analytics property. Note: this has no effect on GA4 properties.", + // "flatPath": "v1alpha/properties:deleteConnectedSiteTag", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.deleteConnectedSiteTag", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1alpha/properties:deleteConnectedSiteTag", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaDeleteConnectedSiteTagRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + +// method id "analyticsadmin.properties.fetchAutomatedGa4ConfigurationOptOut": + +type PropertiesFetchAutomatedGa4ConfigurationOptOutCall struct { + s *Service + googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// FetchAutomatedGa4ConfigurationOptOut: Fetches the opt out status for +// the automated GA4 setup process for a UA property. Note: this has no +// effect on GA4 property. +func (r *PropertiesService) FetchAutomatedGa4ConfigurationOptOut(googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest *GoogleAnalyticsAdminV1alphaFetchAutomatedGa4ConfigurationOptOutRequest) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall { + c := &PropertiesFetchAutomatedGa4ConfigurationOptOutCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest = googleanalyticsadminv1alphafetchautomatedga4configurationoptoutrequest + return c +} + +// Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. func (c *PropertiesFetchAutomatedGa4ConfigurationOptOutCall) Fields(s ...googleapi.Field) *PropertiesFetchAutomatedGa4ConfigurationOptOutCall { @@ -11657,6 +12186,137 @@ func (c *PropertiesListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsA } } +// method id "analyticsadmin.properties.listConnectedSiteTags": + +type PropertiesListConnectedSiteTagsCall struct { + s *Service + googleanalyticsadminv1alphalistconnectedsitetagsrequest *GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// ListConnectedSiteTags: Lists the connected site tags for a Universal +// Analytics property. A maximum of 20 connected site tags will be +// returned. Note: this has no effect on GA4 property. +func (r *PropertiesService) ListConnectedSiteTags(googleanalyticsadminv1alphalistconnectedsitetagsrequest *GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest) *PropertiesListConnectedSiteTagsCall { + c := &PropertiesListConnectedSiteTagsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.googleanalyticsadminv1alphalistconnectedsitetagsrequest = googleanalyticsadminv1alphalistconnectedsitetagsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *PropertiesListConnectedSiteTagsCall) Fields(s ...googleapi.Field) *PropertiesListConnectedSiteTagsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *PropertiesListConnectedSiteTagsCall) Context(ctx context.Context) *PropertiesListConnectedSiteTagsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *PropertiesListConnectedSiteTagsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesListConnectedSiteTagsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphalistconnectedsitetagsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/properties:listConnectedSiteTags") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.listConnectedSiteTags" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse.ServerRespon +// se.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *PropertiesListConnectedSiteTagsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the connected site tags for a Universal Analytics property. A maximum of 20 connected site tags will be returned. Note: this has no effect on GA4 property.", + // "flatPath": "v1alpha/properties:listConnectedSiteTags", + // "httpMethod": "POST", + // "id": "analyticsadmin.properties.listConnectedSiteTags", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1alpha/properties:listConnectedSiteTags", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaListConnectedSiteTagsRequest" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaListConnectedSiteTagsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + // method id "analyticsadmin.properties.patch": type PropertiesPatchCall struct { @@ -17788,6 +18448,161 @@ func (c *PropertiesDataStreamsGetCall) Do(opts ...googleapi.CallOption) (*Google } +// method id "analyticsadmin.properties.dataStreams.getEnhancedMeasurementSettings": + +type PropertiesDataStreamsGetEnhancedMeasurementSettingsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetEnhancedMeasurementSettings: Returns the enhanced measurement +// settings for this data stream. Note that the stream must enable +// enhanced measurement for these settings to take effect. +// +// - name: The name of the settings to lookup. Format: +// properties/{property}/dataStreams/{data_stream}/enhancedMeasurementS +// ettings Example: +// "properties/1000/dataStreams/2000/enhancedMeasurementSettings". +func (r *PropertiesDataStreamsService) GetEnhancedMeasurementSettings(name string) *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall { + c := &PropertiesDataStreamsGetEnhancedMeasurementSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall) IfNoneMatch(entityTag string) *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall) Context(ctx context.Context) *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.dataStreams.getEnhancedMeasurementSettings" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings.ServerResponse +// .Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *PropertiesDataStreamsGetEnhancedMeasurementSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Returns the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.", + // "flatPath": "v1alpha/properties/{propertiesId}/dataStreams/{dataStreamsId}/enhancedMeasurementSettings", + // "httpMethod": "GET", + // "id": "analyticsadmin.properties.dataStreams.getEnhancedMeasurementSettings", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the settings to lookup. Format: properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: \"properties/1000/dataStreams/2000/enhancedMeasurementSettings\"", + // "location": "path", + // "pattern": "^properties/[^/]+/dataStreams/[^/]+/enhancedMeasurementSettings$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit", + // "https://www.googleapis.com/auth/analytics.readonly" + // ] + // } + +} + // method id "analyticsadmin.properties.dataStreams.getGlobalSiteTag": type PropertiesDataStreamsGetGlobalSiteTagCall struct { @@ -18301,6 +19116,173 @@ func (c *PropertiesDataStreamsPatchCall) Do(opts ...googleapi.CallOption) (*Goog } +// method id "analyticsadmin.properties.dataStreams.updateEnhancedMeasurementSettings": + +type PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall struct { + s *Service + name string + googleanalyticsadminv1alphaenhancedmeasurementsettings *GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// UpdateEnhancedMeasurementSettings: Updates the enhanced measurement +// settings for this data stream. Note that the stream must enable +// enhanced measurement for these settings to take effect. +// +// - name: Output only. Resource name of the Enhanced Measurement +// Settings. Format: +// properties/{property_id}/dataStreams/{data_stream}/enhancedMeasureme +// ntSettings Example: +// "properties/1000/dataStreams/2000/enhancedMeasurementSettings". +func (r *PropertiesDataStreamsService) UpdateEnhancedMeasurementSettings(name string, googleanalyticsadminv1alphaenhancedmeasurementsettings *GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings) *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall { + c := &PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleanalyticsadminv1alphaenhancedmeasurementsettings = googleanalyticsadminv1alphaenhancedmeasurementsettings + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// list of fields to be updated. Field names must be in snake case +// (e.g., "field_to_update"). Omitted fields will not be updated. To +// replace the entire entity, use one path with the string "*" to match +// all fields. +func (c *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall) UpdateMask(updateMask string) *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall) Context(ctx context.Context) *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleanalyticsadminv1alphaenhancedmeasurementsettings) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.dataStreams.updateEnhancedMeasurementSettings" call. +// Exactly one of +// *GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings.ServerResponse +// .Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *PropertiesDataStreamsUpdateEnhancedMeasurementSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.", + // "flatPath": "v1alpha/properties/{propertiesId}/dataStreams/{dataStreamsId}/enhancedMeasurementSettings", + // "httpMethod": "PATCH", + // "id": "analyticsadmin.properties.dataStreams.updateEnhancedMeasurementSettings", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Resource name of the Enhanced Measurement Settings. Format: properties/{property_id}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: \"properties/1000/dataStreams/2000/enhancedMeasurementSettings\"", + // "location": "path", + // "pattern": "^properties/[^/]+/dataStreams/[^/]+/enhancedMeasurementSettings$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings" + // }, + // "response": { + // "$ref": "GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/analytics.edit" + // ] + // } + +} + // method id "analyticsadmin.properties.dataStreams.measurementProtocolSecrets.create": type PropertiesDataStreamsMeasurementProtocolSecretsCreateCall struct { diff --git a/api-list.json b/api-list.json index 28f4c267d0c..2da3c6725a4 100644 --- a/api-list.json +++ b/api-list.json @@ -1939,6 +1939,21 @@ "documentationLink": "https://cloud.google.com/data-labeling/docs/", "preferred": true }, + { + "kind": "discovery#directoryItem", + "id": "datalineage:v1", + "name": "datalineage", + "version": "v1", + "title": "Data Lineage API", + "description": "", + "discoveryRestUrl": "https://datalineage.googleapis.com/$discovery/rest?version=v1", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://cloud.google.com/data-catalog", + "preferred": true + }, { "kind": "discovery#directoryItem", "id": "datamigration:v1beta1", diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index 0b40156cda5..dc476d73f53 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -5876,6 +5876,76 @@ } } }, + "securityIncidents": { + "methods": { + "get": { + "description": "GetSecurityIncident gets the specified security incident. Returns NOT_FOUND if security incident is not present for the specified organization and environment.", + "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/securityIncidents/{securityIncidentsId}", + "httpMethod": "GET", + "id": "apigee.organizations.environments.securityIncidents.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Security incident in the following format: `organizations/{org}/environments/{environment}/securityIncidents/{incident}'. Example: organizations/testOrg/environments/testEnv/securityIncidents/1234-4567-890-111", + "location": "path", + "pattern": "^organizations/[^/]+/environments/[^/]+/securityIncidents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1SecurityIncident" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "ListSecurityIncidents lists all the security incident associated with the environment.", + "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/securityIncidents", + "httpMethod": "GET", + "id": "apigee.organizations.environments.securityIncidents.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "The filter expression to be used to get the list of security incidents, where filtering can be done on API Proxies. Example: filter = \"api_proxy = /\", \"first_detected_time \u003e\", \"last_detected_time \u003c\"", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of incidents to return. The service may return fewer than this value. If unspecified, at most 50 incidents will be returned.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListSecurityIncident` call. Provide this to retrieve the subsequent page.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. For a specific organization, list of all the security incidents. Format: `organizations/{org}/environments/{environment}`", + "location": "path", + "pattern": "^organizations/[^/]+/environments/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/securityIncidents", + "response": { + "$ref": "GoogleCloudApigeeV1ListSecurityIncidentsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "securityReports": { "methods": { "create": { @@ -8674,7 +8744,7 @@ } } }, - "revision": "20230207", + "revision": "20230303", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -12339,6 +12409,24 @@ }, "type": "object" }, + "GoogleCloudApigeeV1ListSecurityIncidentsResponse": { + "description": "Response for ListSecurityIncidents.", + "id": "GoogleCloudApigeeV1ListSecurityIncidentsResponse", + "properties": { + "nextPageToken": { + "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "securityIncidents": { + "description": "List of security incidents in the organization", + "items": { + "$ref": "GoogleCloudApigeeV1SecurityIncident" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse": { "description": "Response for ListSecurityProfileRevisions.", "id": "GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse", @@ -14195,6 +14283,63 @@ }, "type": "object" }, + "GoogleCloudApigeeV1SecurityIncident": { + "description": "Represents an SecurityIncident resource.", + "id": "GoogleCloudApigeeV1SecurityIncident", + "properties": { + "detectionTypes": { + "description": "Output only. Detection types which are part of the incident. Examples: Flooder, OAuth Abuser, Static Content Scraper, Anomaly Detection.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "displayName": { + "description": "Display name of the security incident.", + "type": "string" + }, + "firstDetectedTime": { + "description": "Output only. The time when events associated with the incident were first detected.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "lastDetectedTime": { + "description": "Output only. The time when events associated with the incident were last detected.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Immutable. Name of the security incident resource. Format: organizations/{org}/environments/{environment}/securityIncidents/{incident} Example: organizations/apigee-org/environments/dev/securityIncidents/1234-5678-9101-1111", + "type": "string" + }, + "riskLevel": { + "description": "Output only. Risk level of the incident.", + "enum": [ + "RISK_LEVEL_UNSPECIFIED", + "LOW", + "MODERATE", + "SEVERE" + ], + "enumDescriptions": [ + "Risk Level Unspecified.", + "Risk level of the incident is low.", + "Risk level of the incident is moderate.", + "Risk level of the incident is severe." + ], + "readOnly": true, + "type": "string" + }, + "trafficCount": { + "description": "Total traffic detected as part of the incident.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1SecurityProfile": { "description": "Represents a SecurityProfile resource.", "id": "GoogleCloudApigeeV1SecurityProfile", diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index c2d18770489..ee3c9ba0312 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -535,6 +535,7 @@ func NewOrganizationsEnvironmentsService(s *Service) *OrganizationsEnvironmentsS rs.Queries = NewOrganizationsEnvironmentsQueriesService(s) rs.References = NewOrganizationsEnvironmentsReferencesService(s) rs.Resourcefiles = NewOrganizationsEnvironmentsResourcefilesService(s) + rs.SecurityIncidents = NewOrganizationsEnvironmentsSecurityIncidentsService(s) rs.SecurityReports = NewOrganizationsEnvironmentsSecurityReportsService(s) rs.SecurityStats = NewOrganizationsEnvironmentsSecurityStatsService(s) rs.Sharedflows = NewOrganizationsEnvironmentsSharedflowsService(s) @@ -571,6 +572,8 @@ type OrganizationsEnvironmentsService struct { Resourcefiles *OrganizationsEnvironmentsResourcefilesService + SecurityIncidents *OrganizationsEnvironmentsSecurityIncidentsService + SecurityReports *OrganizationsEnvironmentsSecurityReportsService SecurityStats *OrganizationsEnvironmentsSecurityStatsService @@ -800,6 +803,15 @@ type OrganizationsEnvironmentsResourcefilesService struct { s *Service } +func NewOrganizationsEnvironmentsSecurityIncidentsService(s *Service) *OrganizationsEnvironmentsSecurityIncidentsService { + rs := &OrganizationsEnvironmentsSecurityIncidentsService{s: s} + return rs +} + +type OrganizationsEnvironmentsSecurityIncidentsService struct { + s *Service +} + func NewOrganizationsEnvironmentsSecurityReportsService(s *Service) *OrganizationsEnvironmentsSecurityReportsService { rs := &OrganizationsEnvironmentsSecurityReportsService{s: s} return rs @@ -6862,6 +6874,44 @@ func (s *GoogleCloudApigeeV1ListRatePlansResponse) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1ListSecurityIncidentsResponse: Response for +// ListSecurityIncidents. +type GoogleCloudApigeeV1ListSecurityIncidentsResponse struct { + // NextPageToken: A token that can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // SecurityIncidents: List of security incidents in the organization + SecurityIncidents []*GoogleCloudApigeeV1SecurityIncident `json:"securityIncidents,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1ListSecurityIncidentsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1ListSecurityIncidentsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse: Response for // ListSecurityProfileRevisions. type GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse struct { @@ -9749,6 +9799,72 @@ func (s *GoogleCloudApigeeV1ScoreComponentRecommendationActionActionContext) Mar return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1SecurityIncident: Represents an SecurityIncident +// resource. +type GoogleCloudApigeeV1SecurityIncident struct { + // DetectionTypes: Output only. Detection types which are part of the + // incident. Examples: Flooder, OAuth Abuser, Static Content Scraper, + // Anomaly Detection. + DetectionTypes []string `json:"detectionTypes,omitempty"` + + // DisplayName: Display name of the security incident. + DisplayName string `json:"displayName,omitempty"` + + // FirstDetectedTime: Output only. The time when events associated with + // the incident were first detected. + FirstDetectedTime string `json:"firstDetectedTime,omitempty"` + + // LastDetectedTime: Output only. The time when events associated with + // the incident were last detected. + LastDetectedTime string `json:"lastDetectedTime,omitempty"` + + // Name: Immutable. Name of the security incident resource. Format: + // organizations/{org}/environments/{environment}/securityIncidents/{inci + // dent} Example: + // organizations/apigee-org/environments/dev/securityIncidents/1234-5678- + // 9101-1111 + Name string `json:"name,omitempty"` + + // RiskLevel: Output only. Risk level of the incident. + // + // Possible values: + // "RISK_LEVEL_UNSPECIFIED" - Risk Level Unspecified. + // "LOW" - Risk level of the incident is low. + // "MODERATE" - Risk level of the incident is moderate. + // "SEVERE" - Risk level of the incident is severe. + RiskLevel string `json:"riskLevel,omitempty"` + + // TrafficCount: Total traffic detected as part of the incident. + TrafficCount int64 `json:"trafficCount,omitempty,string"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DetectionTypes") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DetectionTypes") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1SecurityIncident) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1SecurityIncident + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1SecurityProfile: Represents a SecurityProfile // resource. type GoogleCloudApigeeV1SecurityProfile struct { @@ -41196,6 +41312,371 @@ func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi. } +// method id "apigee.organizations.environments.securityIncidents.get": + +type OrganizationsEnvironmentsSecurityIncidentsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: GetSecurityIncident gets the specified security incident. +// Returns NOT_FOUND if security incident is not present for the +// specified organization and environment. +// +// - name: Security incident in the following format: +// `organizations/{org}/environments/{environment}/securityIncidents/{i +// ncident}'. Example: +// organizations/testOrg/environments/testEnv/securityIncidents/1234-45 +// 67-890-111. +func (r *OrganizationsEnvironmentsSecurityIncidentsService) Get(name string) *OrganizationsEnvironmentsSecurityIncidentsGetCall { + c := &OrganizationsEnvironmentsSecurityIncidentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityIncidentsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityIncidentsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityIncidentsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.environments.securityIncidents.get" call. +// Exactly one of *GoogleCloudApigeeV1SecurityIncident or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudApigeeV1SecurityIncident.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityIncident, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudApigeeV1SecurityIncident{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "GetSecurityIncident gets the specified security incident. Returns NOT_FOUND if security incident is not present for the specified organization and environment.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/securityIncidents/{securityIncidentsId}", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.securityIncidents.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Security incident in the following format: `organizations/{org}/environments/{environment}/securityIncidents/{incident}'. Example: organizations/testOrg/environments/testEnv/securityIncidents/1234-4567-890-111", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+/securityIncidents/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudApigeeV1SecurityIncident" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "apigee.organizations.environments.securityIncidents.list": + +type OrganizationsEnvironmentsSecurityIncidentsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: ListSecurityIncidents lists all the security incident +// associated with the environment. +// +// - parent: For a specific organization, list of all the security +// incidents. Format: `organizations/{org}/environments/{environment}`. +func (r *OrganizationsEnvironmentsSecurityIncidentsService) List(parent string) *OrganizationsEnvironmentsSecurityIncidentsListCall { + c := &OrganizationsEnvironmentsSecurityIncidentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The filter expression to +// be used to get the list of security incidents, where filtering can be +// done on API Proxies. Example: filter = "api_proxy = /", +// "first_detected_time >", "last_detected_time <" +func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Filter(filter string) *OrganizationsEnvironmentsSecurityIncidentsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of incidents to return. The service may return fewer than this value. +// If unspecified, at most 50 incidents will be returned. +func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsSecurityIncidentsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListSecurityIncident` call. Provide this to +// retrieve the subsequent page. +func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsSecurityIncidentsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityIncidentsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityIncidentsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityIncidentsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityIncidents") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "apigee.organizations.environments.securityIncidents.list" call. +// Exactly one of *GoogleCloudApigeeV1ListSecurityIncidentsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1ListSecurityIncidentsResponse.ServerResponse.Heade +// r or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSecurityIncidentsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudApigeeV1ListSecurityIncidentsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "ListSecurityIncidents lists all the security incident associated with the environment.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/securityIncidents", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.securityIncidents.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "The filter expression to be used to get the list of security incidents, where filtering can be done on API Proxies. Example: filter = \"api_proxy = /\", \"first_detected_time \u003e\", \"last_detected_time \u003c\"", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of incidents to return. The service may return fewer than this value. If unspecified, at most 50 incidents will be returned.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListSecurityIncident` call. Provide this to retrieve the subsequent page.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. For a specific organization, list of all the security incidents. Format: `organizations/{org}/environments/{environment}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/securityIncidents", + // "response": { + // "$ref": "GoogleCloudApigeeV1ListSecurityIncidentsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListSecurityIncidentsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "apigee.organizations.environments.securityReports.create": type OrganizationsEnvironmentsSecurityReportsCreateCall struct { diff --git a/cloudidentity/v1/cloudidentity-api.json b/cloudidentity/v1/cloudidentity-api.json index b0b8cca1b7a..3d7128bb75c 100644 --- a/cloudidentity/v1/cloudidentity-api.json +++ b/cloudidentity/v1/cloudidentity-api.json @@ -1126,7 +1126,7 @@ "type": "string" }, "query": { - "description": "Required. The search query. Must be specified in [Common Expression Language](https://opensource.google/projects/cel). May only contain equality operators on the parent and inclusion operators on labels (e.g., `parent == 'customers/{customer_id}' \u0026\u0026 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", + "description": "Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793) * Can contain optional inclusion operators on `labels` such as `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can contain an optional equality operator on `domain_name`. e.g. `domain_name == 'abc.com'` * Can contain optional `startsWith/contains/equality` operators on `group_key`, e.g. `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key == 'dev@abc.com'` * Can contain optional `startsWith/contains/equality` operators on `display_name`, such as `display_name.startsWith('dev')` , `display_name.contains('dev')`, `display_name == 'dev'`", "location": "query", "type": "string" }, @@ -1488,7 +1488,7 @@ "type": "string" }, "query": { - "description": "Required. A CEL expression that MUST include member specification AND label(s). This is a `required` field. Users can search on label attributes of groups. CONTAINS match ('in') is supported on labels. Identity-mapped groups are uniquely identified by both a `member_key_id` and a `member_key_namespace`, which requires an additional query input: `member_key_namespace`. Example query: `member_key_id == 'member_key_id_value' \u0026\u0026 in labels`", + "description": "Required. A CEL expression that MUST include member specification AND label(s). This is a `required` field. Users can search on label attributes of groups. CONTAINS match ('in') is supported on labels. Identity-mapped groups are uniquely identified by both a `member_key_id` and a `member_key_namespace`, which requires an additional query input: `member_key_namespace`. Example query: `member_key_id == 'member_key_id_value' \u0026\u0026 in labels` Query may optionally contain equality operators on the parent of the group restricting the search within a particular customer, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). This filtering is only supported for Admins with groups read permissons on the input customer. Example query: `member_key_id == 'member_key_id_value' \u0026\u0026 in labels \u0026\u0026 parent == 'customers/C046psxkn'`", "location": "query", "type": "string" } @@ -1623,7 +1623,7 @@ "parameterOrder": [], "parameters": { "filter": { - "description": "A [Common Expression Language](https://github.com/google/cel-spec) expression to filter the results. The only currently-supported filter is filtering by customer. For example: `customer==\"customers/C0123abc\"`. Omitting the filter or specifying a filter of `customer==\"customers/my_customer\"` will return the profiles for the customer that the caller (authenticated user) belongs to.", + "description": "A [Common Expression Language](https://github.com/google/cel-spec) expression to filter the results. The only supported filter is filtering by customer. For example: `customer==\"customers/C0123abc\"`. Omitting the filter or specifying a filter of `customer==\"customers/my_customer\"` will return the profiles for the customer that the caller (authenticated user) belongs to.", "location": "query", "type": "string" }, @@ -1881,7 +1881,7 @@ "parameterOrder": [], "parameters": { "filter": { - "description": "A CEL expression to filter the results. The only currently-supported filter is filtering by customer. For example: `customer==customers/C0123abc`. Omitting the filter or specifying a filter of `customer==customers/my_customer` will return the assignments for the customer that the caller (authenticated user) belongs to.", + "description": "A CEL expression to filter the results. The only supported filter is filtering by customer. For example: `customer==customers/C0123abc`. Omitting the filter or specifying a filter of `customer==customers/my_customer` will return the assignments for the customer that the caller (authenticated user) belongs to.", "location": "query", "type": "string" }, @@ -1942,7 +1942,7 @@ } } }, - "revision": "20230117", + "revision": "20230307", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AddIdpCredentialOperationMetadata": { @@ -2951,6 +2951,14 @@ "description": "A group within the Cloud Identity Groups API. A `Group` is a collection of entities, where each entity is either a user, another group, or a service account.", "id": "Group", "properties": { + "additionalGroupKeys": { + "description": "Output only. Additional group keys associated with the Group.", + "items": { + "$ref": "EntityKey" + }, + "readOnly": true, + "type": "array" + }, "createTime": { "description": "Output only. The time when the `Group` was created.", "format": "google-datetime", @@ -3608,11 +3616,11 @@ "type": "string" }, "logoutRedirectUri": { - "description": "The **Logout Redirect URL** (sign-out page URL) of the identity provider. When a user clicks the sign-out link on a Google page, they will be redirected to this URL. This is a pure redirect with no attached SAML `LogoutRequest` i.e. SAML single logout is currently not supported. Must use `HTTPS`.", + "description": "The **Logout Redirect URL** (sign-out page URL) of the identity provider. When a user clicks the sign-out link on a Google page, they will be redirected to this URL. This is a pure redirect with no attached SAML `LogoutRequest` i.e. SAML single logout is not supported. Must use `HTTPS`.", "type": "string" }, "singleSignOnServiceUri": { - "description": "Required. The `SingleSignOnService` endpoint location (sign-in page URL) of the identity provider. This is the URL where the `AuthnRequest` will be sent. Must use `HTTPS`. Currently assumed to accept the `HTTP-Redirect` binding.", + "description": "Required. The `SingleSignOnService` endpoint location (sign-in page URL) of the identity provider. This is the URL where the `AuthnRequest` will be sent. Must use `HTTPS`. Assumed to accept the `HTTP-Redirect` binding.", "type": "string" } }, @@ -3623,7 +3631,7 @@ "id": "SamlSpConfig", "properties": { "assertionConsumerServiceUri": { - "description": "Output only. The SAML **Assertion Consumer Service (ACS) URL** to be used for the IDP-initiated login. Currently assumed to accept response messages via the `HTTP-POST` binding.", + "description": "Output only. The SAML **Assertion Consumer Service (ACS) URL** to be used for the IDP-initiated login. Assumed to accept response messages via the `HTTP-POST` binding.", "readOnly": true, "type": "string" }, diff --git a/cloudidentity/v1/cloudidentity-gen.go b/cloudidentity/v1/cloudidentity-gen.go index 419fa8a6997..acc1acdfb95 100644 --- a/cloudidentity/v1/cloudidentity-gen.go +++ b/cloudidentity/v1/cloudidentity-gen.go @@ -1774,6 +1774,10 @@ func (s *GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse) MarshalJSON() ( // collection of entities, where each entity is either a user, another // group, or a service account. type Group struct { + // AdditionalGroupKeys: Output only. Additional group keys associated + // with the Group. + AdditionalGroupKeys []*EntityKey `json:"additionalGroupKeys,omitempty"` + // CreateTime: Output only. The time when the `Group` was created. CreateTime string `json:"createTime,omitempty"` @@ -1825,20 +1829,21 @@ type Group struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "AdditionalGroupKeys") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdditionalGroupKeys") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -2940,13 +2945,13 @@ type SamlIdpConfig struct { // the identity provider. When a user clicks the sign-out link on a // Google page, they will be redirected to this URL. This is a pure // redirect with no attached SAML `LogoutRequest` i.e. SAML single - // logout is currently not supported. Must use `HTTPS`. + // logout is not supported. Must use `HTTPS`. LogoutRedirectUri string `json:"logoutRedirectUri,omitempty"` // SingleSignOnServiceUri: Required. The `SingleSignOnService` endpoint // location (sign-in page URL) of the identity provider. This is the URL - // where the `AuthnRequest` will be sent. Must use `HTTPS`. Currently - // assumed to accept the `HTTP-Redirect` binding. + // where the `AuthnRequest` will be sent. Must use `HTTPS`. Assumed to + // accept the `HTTP-Redirect` binding. SingleSignOnServiceUri string `json:"singleSignOnServiceUri,omitempty"` // ForceSendFields is a list of field names (e.g. "ChangePasswordUri") @@ -2977,8 +2982,7 @@ func (s *SamlIdpConfig) MarshalJSON() ([]byte, error) { type SamlSpConfig struct { // AssertionConsumerServiceUri: Output only. The SAML **Assertion // Consumer Service (ACS) URL** to be used for the IDP-initiated login. - // Currently assumed to accept response messages via the `HTTP-POST` - // binding. + // Assumed to accept response messages via the `HTTP-POST` binding. AssertionConsumerServiceUri string `json:"assertionConsumerServiceUri,omitempty"` // EntityId: Output only. The SAML **Entity ID** for this service @@ -8478,14 +8482,22 @@ func (c *GroupsSearchCall) PageToken(pageToken string) *GroupsSearchCall { } // Query sets the optional parameter "query": Required. The search -// query. Must be specified in Common Expression Language -// (https://opensource.google/projects/cel). May only contain equality -// operators on the parent and inclusion operators on labels (e.g., -// `parent == 'customers/{customer_id}' && -// 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). +// query. * Must be specified in Common Expression Language +// (https://opensource.google/projects/cel). * Must contain equality +// operators on the parent, e.g. `parent == 'customers/{customer_id}'`. // The `customer_id` must begin with "C" (for example, 'C046psxkn'). // [Find your customer ID.] -// (https://support.google.com/cloudidentity/answer/10070793) +// (https://support.google.com/cloudidentity/answer/10070793) * Can +// contain optional inclusion operators on `labels` such as +// `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). +// * Can contain an optional equality operator on `domain_name`. e.g. +// `domain_name == 'abc.com'` * Can contain optional +// `startsWith/contains/equality` operators on `group_key`, e.g. +// `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key +// == 'dev@abc.com'` * Can contain optional +// `startsWith/contains/equality` operators on `display_name`, such as +// `display_name.startsWith('dev')` , `display_name.contains('dev')`, +// `display_name == 'dev'` func (c *GroupsSearchCall) Query(query string) *GroupsSearchCall { c.urlParams_.Set("query", query) return c @@ -8618,7 +8630,7 @@ func (c *GroupsSearchCall) Do(opts ...googleapi.CallOption) (*SearchGroupsRespon // "type": "string" // }, // "query": { - // "description": "Required. The search query. Must be specified in [Common Expression Language](https://opensource.google/projects/cel). May only contain equality operators on the parent and inclusion operators on labels (e.g., `parent == 'customers/{customer_id}' \u0026\u0026 'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793)", + // "description": "Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793) * Can contain optional inclusion operators on `labels` such as `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can contain an optional equality operator on `domain_name`. e.g. `domain_name == 'abc.com'` * Can contain optional `startsWith/contains/equality` operators on `group_key`, e.g. `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key == 'dev@abc.com'` * Can contain optional `startsWith/contains/equality` operators on `display_name`, such as `display_name.startsWith('dev')` , `display_name.contains('dev')`, `display_name == 'dev'`", // "location": "query", // "type": "string" // }, @@ -10230,7 +10242,14 @@ func (c *GroupsMembershipsSearchTransitiveGroupsCall) PageToken(pageToken string // are uniquely identified by both a `member_key_id` and a // `member_key_namespace`, which requires an additional query input: // `member_key_namespace`. Example query: `member_key_id == -// 'member_key_id_value' && in labels` +// 'member_key_id_value' && in labels` Query may optionally contain +// equality operators on the parent of the group restricting the search +// within a particular customer, e.g. `parent == +// 'customers/{customer_id}'`. The `customer_id` must begin with "C" +// (for example, 'C046psxkn'). This filtering is only supported for +// Admins with groups read permissons on the input customer. Example +// query: `member_key_id == 'member_key_id_value' && in labels && parent +// == 'customers/C046psxkn'` func (c *GroupsMembershipsSearchTransitiveGroupsCall) Query(query string) *GroupsMembershipsSearchTransitiveGroupsCall { c.urlParams_.Set("query", query) return c @@ -10362,7 +10381,7 @@ func (c *GroupsMembershipsSearchTransitiveGroupsCall) Do(opts ...googleapi.CallO // "type": "string" // }, // "query": { - // "description": "Required. A CEL expression that MUST include member specification AND label(s). This is a `required` field. Users can search on label attributes of groups. CONTAINS match ('in') is supported on labels. Identity-mapped groups are uniquely identified by both a `member_key_id` and a `member_key_namespace`, which requires an additional query input: `member_key_namespace`. Example query: `member_key_id == 'member_key_id_value' \u0026\u0026 in labels`", + // "description": "Required. A CEL expression that MUST include member specification AND label(s). This is a `required` field. Users can search on label attributes of groups. CONTAINS match ('in') is supported on labels. Identity-mapped groups are uniquely identified by both a `member_key_id` and a `member_key_namespace`, which requires an additional query input: `member_key_namespace`. Example query: `member_key_id == 'member_key_id_value' \u0026\u0026 in labels` Query may optionally contain equality operators on the parent of the group restricting the search within a particular customer, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). This filtering is only supported for Admins with groups read permissons on the input customer. Example query: `member_key_id == 'member_key_id_value' \u0026\u0026 in labels \u0026\u0026 parent == 'customers/C046psxkn'`", // "location": "query", // "type": "string" // } @@ -11033,11 +11052,11 @@ func (r *InboundSamlSsoProfilesService) List() *InboundSamlSsoProfilesListCall { // Filter sets the optional parameter "filter": A Common Expression // Language (https://github.com/google/cel-spec) expression to filter -// the results. The only currently-supported filter is filtering by -// customer. For example: `customer=="customers/C0123abc". Omitting the -// filter or specifying a filter of `customer=="customers/my_customer" -// will return the profiles for the customer that the caller -// (authenticated user) belongs to. +// the results. The only supported filter is filtering by customer. For +// example: `customer=="customers/C0123abc". Omitting the filter or +// specifying a filter of `customer=="customers/my_customer" will +// return the profiles for the customer that the caller (authenticated +// user) belongs to. func (c *InboundSamlSsoProfilesListCall) Filter(filter string) *InboundSamlSsoProfilesListCall { c.urlParams_.Set("filter", filter) return c @@ -11168,7 +11187,7 @@ func (c *InboundSamlSsoProfilesListCall) Do(opts ...googleapi.CallOption) (*List // "parameterOrder": [], // "parameters": { // "filter": { - // "description": "A [Common Expression Language](https://github.com/google/cel-spec) expression to filter the results. The only currently-supported filter is filtering by customer. For example: `customer==\"customers/C0123abc\"`. Omitting the filter or specifying a filter of `customer==\"customers/my_customer\"` will return the profiles for the customer that the caller (authenticated user) belongs to.", + // "description": "A [Common Expression Language](https://github.com/google/cel-spec) expression to filter the results. The only supported filter is filtering by customer. For example: `customer==\"customers/C0123abc\"`. Omitting the filter or specifying a filter of `customer==\"customers/my_customer\"` will return the profiles for the customer that the caller (authenticated user) belongs to.", // "location": "query", // "type": "string" // }, @@ -12427,11 +12446,11 @@ func (r *InboundSsoAssignmentsService) List() *InboundSsoAssignmentsListCall { } // Filter sets the optional parameter "filter": A CEL expression to -// filter the results. The only currently-supported filter is filtering -// by customer. For example: `customer==customers/C0123abc`. Omitting -// the filter or specifying a filter of -// `customer==customers/my_customer` will return the assignments for the -// customer that the caller (authenticated user) belongs to. +// filter the results. The only supported filter is filtering by +// customer. For example: `customer==customers/C0123abc`. Omitting the +// filter or specifying a filter of `customer==customers/my_customer` +// will return the assignments for the customer that the caller +// (authenticated user) belongs to. func (c *InboundSsoAssignmentsListCall) Filter(filter string) *InboundSsoAssignmentsListCall { c.urlParams_.Set("filter", filter) return c @@ -12563,7 +12582,7 @@ func (c *InboundSsoAssignmentsListCall) Do(opts ...googleapi.CallOption) (*ListI // "parameterOrder": [], // "parameters": { // "filter": { - // "description": "A CEL expression to filter the results. The only currently-supported filter is filtering by customer. For example: `customer==customers/C0123abc`. Omitting the filter or specifying a filter of `customer==customers/my_customer` will return the assignments for the customer that the caller (authenticated user) belongs to.", + // "description": "A CEL expression to filter the results. The only supported filter is filtering by customer. For example: `customer==customers/C0123abc`. Omitting the filter or specifying a filter of `customer==customers/my_customer` will return the assignments for the customer that the caller (authenticated user) belongs to.", // "location": "query", // "type": "string" // }, diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index 0b28b52b147..2bcf2b5d2e7 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -123,7 +123,7 @@ ] }, "claimwebsite": { - "description": "Claims the website of a Merchant Center sub-account.", + "description": "Claims the website of a Merchant Center sub-account. Merchant accounts with approved third-party CSSs aren't required to claim a website.", "flatPath": "{merchantId}/accounts/{accountId}/claimwebsite", "httpMethod": "POST", "id": "content.accounts.claimwebsite", @@ -6160,7 +6160,7 @@ } } }, - "revision": "20230223", + "revision": "20230307", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -8328,7 +8328,7 @@ "type": "array" }, "feedLabel": { - "description": "Feed label for the DatafeedTarget. Either `country` or `feedLabel` is required. If both `feedLabel` and `country` is specified, the values must match.", + "description": "Feed label for the DatafeedTarget. Either `country` or `feedLabel` is required. If both `feedLabel` and `country` is specified, the values must match. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).", "type": "string" }, "includedDestinations": { @@ -13275,7 +13275,7 @@ "type": "string" }, "feedLabel": { - "description": "Feed label for the item. Either `targetCountry` or `feedLabel` is required.", + "description": "Feed label for the item. Either `targetCountry` or `feedLabel` is required. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).", "type": "string" }, "gender": { @@ -14047,7 +14047,7 @@ "type": "object" }, "ProductView": { - "description": "Product fields. Values are only set for fields requested explicitly in the request's search query. Available only to selected merchants. Submit the [interest form](https://forms.gle/7Uy8htzAN8oNokz9A) to request access.", + "description": "Product fields. Values are only set for fields requested explicitly in the request's search query.", "id": "ProductView", "properties": { "aggregatedDestinationStatus": { @@ -15204,7 +15204,7 @@ }, "productView": { "$ref": "ProductView", - "description": "Product fields requested by the merchant in the query. Field values are only set if the merchant queries `ProductView`. Available only to selected merchants. Submit the [interest form](https://forms.gle/7Uy8htzAN8oNokz9A) to request access." + "description": "Product fields requested by the merchant in the query. Field values are only set if the merchant queries `ProductView`." }, "segments": { "$ref": "Segments", diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index 1261cc62e71..7f426595186 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -4147,7 +4147,8 @@ type DatafeedTarget struct { // FeedLabel: Feed label for the DatafeedTarget. Either `country` or // `feedLabel` is required. If both `feedLabel` and `country` is - // specified, the values must match. + // specified, the values must match. Must be less than or equal to 20 + // uppercase letters (A-Z), numbers (0-9), and dashes (-). FeedLabel string `json:"feedLabel,omitempty"` // IncludedDestinations: The list of destinations to include for this @@ -12809,7 +12810,8 @@ type Product struct { ExternalSellerId string `json:"externalSellerId,omitempty"` // FeedLabel: Feed label for the item. Either `targetCountry` or - // `feedLabel` is required. + // `feedLabel` is required. Must be less than or equal to 20 uppercase + // letters (A-Z), numbers (0-9), and dashes (-). FeedLabel string `json:"feedLabel,omitempty"` // Gender: Target gender of the item. @@ -13947,9 +13949,7 @@ func (s *ProductUnitPricingMeasure) UnmarshalJSON(data []byte) error { } // ProductView: Product fields. Values are only set for fields requested -// explicitly in the request's search query. Available only to selected -// merchants. Submit the interest form -// (https://forms.gle/7Uy8htzAN8oNokz9A) to request access. +// explicitly in the request's search query. type ProductView struct { // AggregatedDestinationStatus: Aggregated destination status. // @@ -15590,8 +15590,6 @@ type ReportRow struct { // ProductView: Product fields requested by the merchant in the query. // Field values are only set if the merchant queries `ProductView`. - // Available only to selected merchants. Submit the interest form - // (https://forms.gle/7Uy8htzAN8oNokz9A) to request access. ProductView *ProductView `json:"productView,omitempty"` // Segments: Segmentation dimensions requested by the merchant in the @@ -19844,6 +19842,8 @@ type AccountsClaimwebsiteCall struct { } // Claimwebsite: Claims the website of a Merchant Center sub-account. +// Merchant accounts with approved third-party CSSs aren't required to +// claim a website. // // - accountId: The ID of the account whose website is claimed. // - merchantId: The ID of the managing account. If this parameter is @@ -19954,7 +19954,7 @@ func (c *AccountsClaimwebsiteCall) Do(opts ...googleapi.CallOption) (*AccountsCl } return ret, nil // { - // "description": "Claims the website of a Merchant Center sub-account.", + // "description": "Claims the website of a Merchant Center sub-account. Merchant accounts with approved third-party CSSs aren't required to claim a website.", // "flatPath": "{merchantId}/accounts/{accountId}/claimwebsite", // "httpMethod": "POST", // "id": "content.accounts.claimwebsite", diff --git a/datacatalog/v1/datacatalog-api.json b/datacatalog/v1/datacatalog-api.json index f79ee243d4a..cc56b9873fa 100644 --- a/datacatalog/v1/datacatalog-api.json +++ b/datacatalog/v1/datacatalog-api.json @@ -901,34 +901,6 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "reconcile": { - "description": "`ReconcileTags` creates or updates a list of tags on the entry. If the ReconcileTagsRequest.force_delete_missing parameter is set, the operation deletes tags not included in the input tag list. `ReconcileTags` returns a long-running operation resource that can be queried with Operations.GetOperation to return ReconcileTagsMetadata and a ReconcileTagsResponse message.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/entryGroups/{entryGroupsId}/entries/{entriesId}/tags:reconcile", - "httpMethod": "POST", - "id": "datacatalog.projects.locations.entryGroups.entries.tags.reconcile", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. Name of Entry to be tagged.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/tags:reconcile", - "request": { - "$ref": "GoogleCloudDatacatalogV1ReconcileTagsRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] } } } @@ -1141,7 +1113,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "datacatalog.projects.locations.operations.list", @@ -2134,7 +2106,7 @@ } } }, - "revision": "20230221", + "revision": "20230303", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -2701,6 +2673,17 @@ }, "type": "object" }, + "GoogleCloudDatacatalogV1DumpItem": { + "description": "Wrapper for any item that can be contained in the dump.", + "id": "GoogleCloudDatacatalogV1DumpItem", + "properties": { + "taggedEntry": { + "$ref": "GoogleCloudDatacatalogV1TaggedEntry", + "description": "Entry and its tags." + } + }, + "type": "object" + }, "GoogleCloudDatacatalogV1Entry": { "description": "Entry metadata. A Data Catalog entry represents another resource in Google Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic) or outside of it. You can use the `linked_resource` field in the entry resource to refer to the original resource ID of the source system. An entry resource contains resource details, for example, its schema. Additionally, you can attach flexible metadata to an entry in the form of a Tag.", "id": "GoogleCloudDatacatalogV1Entry", @@ -3404,80 +3387,6 @@ }, "type": "object" }, - "GoogleCloudDatacatalogV1ReconcileTagsMetadata": { - "description": "Long-running operation metadata message returned by the ReconcileTags.", - "id": "GoogleCloudDatacatalogV1ReconcileTagsMetadata", - "properties": { - "errors": { - "additionalProperties": { - "$ref": "Status" - }, - "description": "Maps the name of each tagged column (or empty string for a sole entry) to tagging operation status.", - "type": "object" - }, - "state": { - "description": "State of the reconciliation operation.", - "enum": [ - "RECONCILIATION_STATE_UNSPECIFIED", - "RECONCILIATION_QUEUED", - "RECONCILIATION_IN_PROGRESS", - "RECONCILIATION_DONE" - ], - "enumDescriptions": [ - "Default value. This value is unused.", - "The reconciliation has been queued and awaits for execution.", - "The reconciliation is in progress.", - "The reconciliation has been finished." - ], - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudDatacatalogV1ReconcileTagsRequest": { - "description": "Request message for ReconcileTags.", - "id": "GoogleCloudDatacatalogV1ReconcileTagsRequest", - "properties": { - "forceDeleteMissing": { - "description": "If set to `true`, deletes entry tags related to a tag template not listed in the tags source from an entry. If set to `false`, unlisted tags are retained.", - "type": "boolean" - }, - "tagTemplate": { - "description": "Required. The name of the tag template, which is used for reconciliation.", - "type": "string" - }, - "tags": { - "description": "A list of tags to apply to an entry. A tag can specify a tag template, which must be the template specified in the `ReconcileTagsRequest`. The sole entry and each of its columns must be mentioned at most once.", - "items": { - "$ref": "GoogleCloudDatacatalogV1Tag" - }, - "type": "array" - } - }, - "type": "object" - }, - "GoogleCloudDatacatalogV1ReconcileTagsResponse": { - "description": "Long-running operation response message returned by ReconcileTags.", - "id": "GoogleCloudDatacatalogV1ReconcileTagsResponse", - "properties": { - "createdTagsCount": { - "description": "Number of tags created in the request.", - "format": "int64", - "type": "string" - }, - "deletedTagsCount": { - "description": "Number of tags deleted in the request.", - "format": "int64", - "type": "string" - }, - "updatedTagsCount": { - "description": "Number of tags updated in the request.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest": { "description": "Request message for RenameTagTemplateFieldEnumValue.", "id": "GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest", @@ -4064,6 +3973,31 @@ }, "type": "object" }, + "GoogleCloudDatacatalogV1TaggedEntry": { + "description": "Wrapper containing Entry and information about Tags that should and should not be attached to it.", + "id": "GoogleCloudDatacatalogV1TaggedEntry", + "properties": { + "absentTags": { + "description": "Tags that should be deleted from the Data Catalog. Caller should populate template name and column only.", + "items": { + "$ref": "GoogleCloudDatacatalogV1Tag" + }, + "type": "array" + }, + "presentTags": { + "description": "Tags that should be ingested into the Data Catalog. Caller should populate template name, column and fields.", + "items": { + "$ref": "GoogleCloudDatacatalogV1Tag" + }, + "type": "array" + }, + "v1Entry": { + "$ref": "GoogleCloudDatacatalogV1Entry", + "description": "Non-encrypted Data Catalog v1 Entry." + } + }, + "type": "object" + }, "GoogleCloudDatacatalogV1Taxonomy": { "description": "A taxonomy is a collection of hierarchical policy tags that classify data along a common axis. For example, a \"data sensitivity\" taxonomy might contain the following policy tags: ``` + PII + Account number + Age + SSN + Zipcode + Financials + Revenue ``` A \"data origin\" taxonomy might contain the following policy tags: ``` + User data + Employee data + Partner data + Public data ```", "id": "GoogleCloudDatacatalogV1Taxonomy", diff --git a/datacatalog/v1/datacatalog-gen.go b/datacatalog/v1/datacatalog-gen.go index b1d348f4e74..2f2bf2319e0 100644 --- a/datacatalog/v1/datacatalog-gen.go +++ b/datacatalog/v1/datacatalog-gen.go @@ -1316,6 +1316,35 @@ func (s *GoogleCloudDatacatalogV1DataplexTableSpec) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDatacatalogV1DumpItem: Wrapper for any item that can be +// contained in the dump. +type GoogleCloudDatacatalogV1DumpItem struct { + // TaggedEntry: Entry and its tags. + TaggedEntry *GoogleCloudDatacatalogV1TaggedEntry `json:"taggedEntry,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TaggedEntry") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TaggedEntry") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1DumpItem) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1DumpItem + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDatacatalogV1Entry: Entry metadata. A Data Catalog entry // represents another resource in Google Cloud Platform (such as a // BigQuery dataset or a Pub/Sub topic) or outside of it. You can use @@ -2616,125 +2645,6 @@ func (s *GoogleCloudDatacatalogV1PolicyTag) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogV1ReconcileTagsMetadata: Long-running operation -// metadata message returned by the ReconcileTags. -type GoogleCloudDatacatalogV1ReconcileTagsMetadata struct { - // Errors: Maps the name of each tagged column (or empty string for a - // sole entry) to tagging operation status. - Errors map[string]Status `json:"errors,omitempty"` - - // State: State of the reconciliation operation. - // - // Possible values: - // "RECONCILIATION_STATE_UNSPECIFIED" - Default value. This value is - // unused. - // "RECONCILIATION_QUEUED" - The reconciliation has been queued and - // awaits for execution. - // "RECONCILIATION_IN_PROGRESS" - The reconciliation is in progress. - // "RECONCILIATION_DONE" - The reconciliation has been finished. - State string `json:"state,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Errors") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Errors") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatacatalogV1ReconcileTagsMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatacatalogV1ReconcileTagsMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatacatalogV1ReconcileTagsRequest: Request message for -// ReconcileTags. -type GoogleCloudDatacatalogV1ReconcileTagsRequest struct { - // ForceDeleteMissing: If set to `true`, deletes entry tags related to a - // tag template not listed in the tags source from an entry. If set to - // `false`, unlisted tags are retained. - ForceDeleteMissing bool `json:"forceDeleteMissing,omitempty"` - - // TagTemplate: Required. The name of the tag template, which is used - // for reconciliation. - TagTemplate string `json:"tagTemplate,omitempty"` - - // Tags: A list of tags to apply to an entry. A tag can specify a tag - // template, which must be the template specified in the - // `ReconcileTagsRequest`. The sole entry and each of its columns must - // be mentioned at most once. - Tags []*GoogleCloudDatacatalogV1Tag `json:"tags,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ForceDeleteMissing") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ForceDeleteMissing") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatacatalogV1ReconcileTagsRequest) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatacatalogV1ReconcileTagsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudDatacatalogV1ReconcileTagsResponse: Long-running operation -// response message returned by ReconcileTags. -type GoogleCloudDatacatalogV1ReconcileTagsResponse struct { - // CreatedTagsCount: Number of tags created in the request. - CreatedTagsCount int64 `json:"createdTagsCount,omitempty,string"` - - // DeletedTagsCount: Number of tags deleted in the request. - DeletedTagsCount int64 `json:"deletedTagsCount,omitempty,string"` - - // UpdatedTagsCount: Number of tags updated in the request. - UpdatedTagsCount int64 `json:"updatedTagsCount,omitempty,string"` - - // ForceSendFields is a list of field names (e.g. "CreatedTagsCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CreatedTagsCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudDatacatalogV1ReconcileTagsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatacatalogV1ReconcileTagsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest: // Request message for RenameTagTemplateFieldEnumValue. type GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest struct { @@ -3772,6 +3682,43 @@ func (s *GoogleCloudDatacatalogV1TagTemplateField) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDatacatalogV1TaggedEntry: Wrapper containing Entry and +// information about Tags that should and should not be attached to it. +type GoogleCloudDatacatalogV1TaggedEntry struct { + // AbsentTags: Tags that should be deleted from the Data Catalog. Caller + // should populate template name and column only. + AbsentTags []*GoogleCloudDatacatalogV1Tag `json:"absentTags,omitempty"` + + // PresentTags: Tags that should be ingested into the Data Catalog. + // Caller should populate template name, column and fields. + PresentTags []*GoogleCloudDatacatalogV1Tag `json:"presentTags,omitempty"` + + // V1Entry: Non-encrypted Data Catalog v1 Entry. + V1Entry *GoogleCloudDatacatalogV1Entry `json:"v1Entry,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AbsentTags") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AbsentTags") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1TaggedEntry) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1TaggedEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDatacatalogV1Taxonomy: A taxonomy is a collection of // hierarchical policy tags that classify data along a common axis. For // example, a "data sensitivity" taxonomy might contain the following @@ -8547,153 +8494,6 @@ func (c *ProjectsLocationsEntryGroupsEntriesTagsPatchCall) Do(opts ...googleapi. } -// method id "datacatalog.projects.locations.entryGroups.entries.tags.reconcile": - -type ProjectsLocationsEntryGroupsEntriesTagsReconcileCall struct { - s *Service - parent string - googleclouddatacatalogv1reconciletagsrequest *GoogleCloudDatacatalogV1ReconcileTagsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Reconcile: `ReconcileTags` creates or updates a list of tags on the -// entry. If the ReconcileTagsRequest.force_delete_missing parameter is -// set, the operation deletes tags not included in the input tag list. -// `ReconcileTags` returns a long-running operation resource that can be -// queried with Operations.GetOperation to return ReconcileTagsMetadata -// and a ReconcileTagsResponse message. -// -// - parent: Name of Entry to be tagged. -func (r *ProjectsLocationsEntryGroupsEntriesTagsService) Reconcile(parent string, googleclouddatacatalogv1reconciletagsrequest *GoogleCloudDatacatalogV1ReconcileTagsRequest) *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall { - c := &ProjectsLocationsEntryGroupsEntriesTagsReconcileCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googleclouddatacatalogv1reconciletagsrequest = googleclouddatacatalogv1reconciletagsrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Context(ctx context.Context) *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacatalogv1reconciletagsrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tags:reconcile") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "datacatalog.projects.locations.entryGroups.entries.tags.reconcile" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsEntryGroupsEntriesTagsReconcileCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "`ReconcileTags` creates or updates a list of tags on the entry. If the ReconcileTagsRequest.force_delete_missing parameter is set, the operation deletes tags not included in the input tag list. `ReconcileTags` returns a long-running operation resource that can be queried with Operations.GetOperation to return ReconcileTagsMetadata and a ReconcileTagsResponse message.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/entryGroups/{entryGroupsId}/entries/{entriesId}/tags:reconcile", - // "httpMethod": "POST", - // "id": "datacatalog.projects.locations.entryGroups.entries.tags.reconcile", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. Name of Entry to be tagged.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/tags:reconcile", - // "request": { - // "$ref": "GoogleCloudDatacatalogV1ReconcileTagsRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "datacatalog.projects.locations.entryGroups.tags.create": type ProjectsLocationsEntryGroupsTagsCreateCall struct { @@ -9775,14 +9575,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -9911,7 +9704,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "datacatalog.projects.locations.operations.list", diff --git a/datacatalog/v1beta1/datacatalog-api.json b/datacatalog/v1beta1/datacatalog-api.json index 59ddc5e2774..06c935c7f91 100644 --- a/datacatalog/v1beta1/datacatalog-api.json +++ b/datacatalog/v1beta1/datacatalog-api.json @@ -1813,7 +1813,7 @@ } } }, - "revision": "20230207", + "revision": "20230303", "rootUrl": "https://datacatalog.googleapis.com/", "schemas": { "Binding": { @@ -1890,102 +1890,1248 @@ }, "type": "object" }, - "GoogleCloudDatacatalogV1ImportEntriesMetadata": { - "description": "Metadata message for long-running operation returned by the ImportEntries.", - "id": "GoogleCloudDatacatalogV1ImportEntriesMetadata", + "GoogleCloudDatacatalogV1BigQueryConnectionSpec": { + "description": "Specification for the BigQuery connection.", + "id": "GoogleCloudDatacatalogV1BigQueryConnectionSpec", "properties": { - "errors": { - "description": "Partial errors that are encountered during the ImportEntries operation. There is no guarantee that all the encountered errors are reported. However, if no errors are reported, it means that no errors were encountered.", + "cloudSql": { + "$ref": "GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec", + "description": "Specification for the BigQuery connection to a Cloud SQL instance." + }, + "connectionType": { + "description": "The type of the BigQuery connection.", + "enum": [ + "CONNECTION_TYPE_UNSPECIFIED", + "CLOUD_SQL" + ], + "enumDescriptions": [ + "Unspecified type.", + "Cloud SQL connection." + ], + "type": "string" + }, + "hasCredential": { + "description": "True if there are credentials attached to the BigQuery connection; false otherwise.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1BigQueryDateShardedSpec": { + "description": "Specification for a group of BigQuery tables with the `[prefix]YYYYMMDD` name pattern. For more information, see [Introduction to partitioned tables] (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).", + "id": "GoogleCloudDatacatalogV1BigQueryDateShardedSpec", + "properties": { + "dataset": { + "description": "Output only. The Data Catalog resource name of the dataset entry the current table belongs to. For example: `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.", + "readOnly": true, + "type": "string" + }, + "latestShardResource": { + "description": "Output only. BigQuery resource name of the latest shard.", + "readOnly": true, + "type": "string" + }, + "shardCount": { + "description": "Output only. Total number of shards.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "tablePrefix": { + "description": "Output only. The table name prefix of the shards. The name of any given shard is `[table_prefix]YYYYMMDD`. For example, for the `MyTable20180101` shard, the `table_prefix` is `MyTable`.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1BigQueryRoutineSpec": { + "description": "Fields specific for BigQuery routines.", + "id": "GoogleCloudDatacatalogV1BigQueryRoutineSpec", + "properties": { + "importedLibraries": { + "description": "Paths of the imported libraries.", "items": { - "$ref": "Status" + "type": "string" }, "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1BigQueryTableSpec": { + "description": "Describes a BigQuery table.", + "id": "GoogleCloudDatacatalogV1BigQueryTableSpec", + "properties": { + "tableSourceType": { + "description": "Output only. The table source type.", + "enum": [ + "TABLE_SOURCE_TYPE_UNSPECIFIED", + "BIGQUERY_VIEW", + "BIGQUERY_TABLE", + "BIGQUERY_MATERIALIZED_VIEW" + ], + "enumDescriptions": [ + "Default unknown type.", + "Table view.", + "BigQuery native table.", + "BigQuery materialized view." + ], + "readOnly": true, + "type": "string" }, - "state": { - "description": "State of the import operation.", + "tableSpec": { + "$ref": "GoogleCloudDatacatalogV1TableSpec", + "description": "Specification of a BigQuery table. Populated only if the `table_source_type` is `BIGQUERY_TABLE`." + }, + "viewSpec": { + "$ref": "GoogleCloudDatacatalogV1ViewSpec", + "description": "Table view specification. Populated only if the `table_source_type` is `BIGQUERY_VIEW`." + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1BusinessContext": { + "description": "Business Context of the entry.", + "id": "GoogleCloudDatacatalogV1BusinessContext", + "properties": { + "contacts": { + "$ref": "GoogleCloudDatacatalogV1Contacts", + "description": "Contact people for the entry." + }, + "entryOverview": { + "$ref": "GoogleCloudDatacatalogV1EntryOverview", + "description": "Entry overview fields for rich text descriptions of entries." + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec": { + "description": "Specification for the BigQuery connection to a Cloud SQL instance.", + "id": "GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec", + "properties": { + "database": { + "description": "Database name.", + "type": "string" + }, + "instanceId": { + "description": "Cloud SQL instance ID in the format of `project:location:instance`.", + "type": "string" + }, + "type": { + "description": "Type of the Cloud SQL database.", "enum": [ - "IMPORT_STATE_UNSPECIFIED", - "IMPORT_QUEUED", - "IMPORT_IN_PROGRESS", - "IMPORT_DONE", - "IMPORT_OBSOLETE" + "DATABASE_TYPE_UNSPECIFIED", + "POSTGRES", + "MYSQL" ], "enumDescriptions": [ - "Default value. This value is unused.", - "The dump with entries has been queued for import.", - "The import of entries is in progress.", - "The import of entries has been finished.", - "The import of entries has been abandoned in favor of a newer request." + "Unspecified database type.", + "Cloud SQL for PostgreSQL.", + "Cloud SQL for MySQL." ], "type": "string" } }, "type": "object" }, - "GoogleCloudDatacatalogV1ImportEntriesResponse": { - "description": "Response message for long-running operation returned by the ImportEntries.", - "id": "GoogleCloudDatacatalogV1ImportEntriesResponse", + "GoogleCloudDatacatalogV1ColumnSchema": { + "description": "A column within a schema. Columns can be nested inside other columns.", + "id": "GoogleCloudDatacatalogV1ColumnSchema", "properties": { - "deletedEntriesCount": { - "description": "Number of entries deleted as a result of import operation.", - "format": "int64", + "column": { + "description": "Required. Name of the column. Must be a UTF-8 string without dots (.). The maximum size is 64 bytes.", "type": "string" }, - "upsertedEntriesCount": { - "description": "Cumulative number of entries created and entries updated as a result of import operation.", + "defaultValue": { + "description": "Optional. Default value for the column.", + "type": "string" + }, + "description": { + "description": "Optional. Description of the column. Default value is an empty string. The description must be a UTF-8 string with the maximum size of 2000 bytes.", + "type": "string" + }, + "gcRule": { + "description": "Optional. Garbage collection policy for the column or column family. Applies to systems like Cloud Bigtable.", + "type": "string" + }, + "highestIndexingType": { + "description": "Optional. Most important inclusion of this column.", + "enum": [ + "INDEXING_TYPE_UNSPECIFIED", + "INDEXING_TYPE_NONE", + "INDEXING_TYPE_NON_UNIQUE", + "INDEXING_TYPE_UNIQUE", + "INDEXING_TYPE_PRIMARY_KEY" + ], + "enumDescriptions": [ + "Unspecified.", + "Column not a part of an index.", + "Column Part of non unique index.", + "Column part of unique index.", + "Column part of the primary key." + ], + "type": "string" + }, + "lookerColumnSpec": { + "$ref": "GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec", + "description": "Looker specific column info of this column." + }, + "mode": { + "description": "Optional. A column's mode indicates whether values in this column are required, nullable, or repeated. Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported. Default mode is `NULLABLE`.", + "type": "string" + }, + "ordinalPosition": { + "description": "Optional. Ordinal position", + "format": "int32", + "type": "integer" + }, + "subcolumns": { + "description": "Optional. Schema of sub-columns. A column can have zero or more sub-columns.", + "items": { + "$ref": "GoogleCloudDatacatalogV1ColumnSchema" + }, + "type": "array" + }, + "type": { + "description": "Required. Type of the column. Must be a UTF-8 string with the maximum size of 128 bytes.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec": { + "description": "Column info specific to Looker System.", + "id": "GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec", + "properties": { + "type": { + "description": "Looker specific column type of this column.", + "enum": [ + "LOOKER_COLUMN_TYPE_UNSPECIFIED", + "DIMENSION", + "DIMENSION_GROUP", + "FILTER", + "MEASURE", + "PAREMETER" + ], + "enumDescriptions": [ + "Unspecified.", + "Dimension.", + "Dimension group - parent for Dimension.", + "Filter.", + "Measure.", + "Parameter." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1CommonUsageStats": { + "description": "Common statistics on the entry's usage. They can be set on any system.", + "id": "GoogleCloudDatacatalogV1CommonUsageStats", + "properties": { + "viewCount": { + "description": "View count in source system.", "format": "int64", "type": "string" } }, "type": "object" }, - "GoogleCloudDatacatalogV1ReconcileTagsMetadata": { - "description": "Long-running operation metadata message returned by the ReconcileTags.", - "id": "GoogleCloudDatacatalogV1ReconcileTagsMetadata", + "GoogleCloudDatacatalogV1Contacts": { + "description": "Contact people for the entry.", + "id": "GoogleCloudDatacatalogV1Contacts", "properties": { - "errors": { - "additionalProperties": { - "$ref": "Status" + "people": { + "description": "The list of contact people for the entry.", + "items": { + "$ref": "GoogleCloudDatacatalogV1ContactsPerson" }, - "description": "Maps the name of each tagged column (or empty string for a sole entry) to tagging operation status.", - "type": "object" + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1ContactsPerson": { + "description": "A contact person for the entry.", + "id": "GoogleCloudDatacatalogV1ContactsPerson", + "properties": { + "designation": { + "description": "Designation of the person, for example, Data Steward.", + "type": "string" }, - "state": { - "description": "State of the reconciliation operation.", + "email": { + "description": "Email of the person in the format of `john.doe@xyz`, ``, or `John Doe`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1DataSource": { + "description": "Physical location of an entry.", + "id": "GoogleCloudDatacatalogV1DataSource", + "properties": { + "resource": { + "description": "Full name of a resource as defined by the service. For example: `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`", + "type": "string" + }, + "service": { + "description": "Service that physically stores the data.", "enum": [ - "RECONCILIATION_STATE_UNSPECIFIED", - "RECONCILIATION_QUEUED", - "RECONCILIATION_IN_PROGRESS", - "RECONCILIATION_DONE" + "SERVICE_UNSPECIFIED", + "CLOUD_STORAGE", + "BIGQUERY" ], "enumDescriptions": [ - "Default value. This value is unused.", - "The reconciliation has been queued and awaits for execution.", - "The reconciliation is in progress.", - "The reconciliation has been finished." + "Default unknown service.", + "Google Cloud Storage service.", + "BigQuery service." ], "type": "string" + }, + "sourceEntry": { + "description": "Output only. Data Catalog entry name, if applicable.", + "readOnly": true, + "type": "string" + }, + "storageProperties": { + "$ref": "GoogleCloudDatacatalogV1StorageProperties", + "description": "Detailed properties of the underlying storage." } }, "type": "object" }, - "GoogleCloudDatacatalogV1ReconcileTagsResponse": { - "description": "Long-running operation response message returned by ReconcileTags.", - "id": "GoogleCloudDatacatalogV1ReconcileTagsResponse", + "GoogleCloudDatacatalogV1DataSourceConnectionSpec": { + "description": "Specification that applies to a data source connection. Valid only for entries with the `DATA_SOURCE_CONNECTION` type. Only one of internal specs can be set at the time, and cannot be changed later.", + "id": "GoogleCloudDatacatalogV1DataSourceConnectionSpec", "properties": { - "createdTagsCount": { - "description": "Number of tags created in the request.", - "format": "int64", + "bigqueryConnectionSpec": { + "$ref": "GoogleCloudDatacatalogV1BigQueryConnectionSpec", + "description": "Output only. Fields specific to BigQuery connections." + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1DatabaseTableSpec": { + "description": "Specification that applies to a table resource. Valid only for entries with the `TABLE` type.", + "id": "GoogleCloudDatacatalogV1DatabaseTableSpec", + "properties": { + "databaseViewSpec": { + "$ref": "GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec", + "description": "Spec what aplies to tables that are actually views. Not set for \"real\" tables." + }, + "dataplexTable": { + "$ref": "GoogleCloudDatacatalogV1DataplexTableSpec", + "description": "Output only. Fields specific to a Dataplex table and present only in the Dataplex table entries.", + "readOnly": true + }, + "type": { + "description": "Type of this table.", + "enum": [ + "TABLE_TYPE_UNSPECIFIED", + "NATIVE", + "EXTERNAL" + ], + "enumDescriptions": [ + "Default unknown table type.", + "Native table.", + "External table." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec": { + "description": "Specification that applies to database view.", + "id": "GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec", + "properties": { + "baseTable": { + "description": "Name of a singular table this view reflects one to one.", "type": "string" }, - "deletedTagsCount": { - "description": "Number of tags deleted in the request.", - "format": "int64", + "sqlQuery": { + "description": "SQL query used to generate this view.", "type": "string" }, - "updatedTagsCount": { - "description": "Number of tags updated in the request.", - "format": "int64", + "viewType": { + "description": "Type of this view.", + "enum": [ + "VIEW_TYPE_UNSPECIFIED", + "STANDARD_VIEW", + "MATERIALIZED_VIEW" + ], + "enumDescriptions": [ + "Default unknown view type.", + "Standard view.", + "Materialized view." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1DataplexExternalTable": { + "description": "External table registered by Dataplex. Dataplex publishes data discovered from an asset into multiple other systems (BigQuery, DPMS) in form of tables. We call them \"external tables\". External tables are also synced into the Data Catalog. This message contains pointers to those external tables (fully qualified name, resource name et cetera) within the Data Catalog.", + "id": "GoogleCloudDatacatalogV1DataplexExternalTable", + "properties": { + "dataCatalogEntry": { + "description": "Name of the Data Catalog entry representing the external table.", + "type": "string" + }, + "fullyQualifiedName": { + "description": "Fully qualified name (FQN) of the external table.", + "type": "string" + }, + "googleCloudResource": { + "description": "Google Cloud resource name of the external table.", + "type": "string" + }, + "system": { + "description": "Service in which the external table is registered.", + "enum": [ + "INTEGRATED_SYSTEM_UNSPECIFIED", + "BIGQUERY", + "CLOUD_PUBSUB", + "DATAPROC_METASTORE", + "DATAPLEX", + "CLOUD_SQL", + "LOOKER" + ], + "enumDescriptions": [ + "Default unknown system.", + "BigQuery.", + "Cloud Pub/Sub.", + "Dataproc Metastore.", + "Dataplex.", + "Cloud Sql", + "Looker" + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1DataplexFilesetSpec": { + "description": "Entry specyfication for a Dataplex fileset.", + "id": "GoogleCloudDatacatalogV1DataplexFilesetSpec", + "properties": { + "dataplexSpec": { + "$ref": "GoogleCloudDatacatalogV1DataplexSpec", + "description": "Common Dataplex fields." + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1DataplexSpec": { + "description": "Common Dataplex fields.", + "id": "GoogleCloudDatacatalogV1DataplexSpec", + "properties": { + "asset": { + "description": "Fully qualified resource name of an asset in Dataplex, to which the underlying data source (Cloud Storage bucket or BigQuery dataset) of the entity is attached.", + "type": "string" + }, + "compressionFormat": { + "description": "Compression format of the data, e.g., zip, gzip etc.", + "type": "string" + }, + "dataFormat": { + "$ref": "GoogleCloudDatacatalogV1PhysicalSchema", + "description": "Format of the data." + }, + "projectId": { + "description": "Project ID of the underlying Cloud Storage or BigQuery data. Note that this may not be the same project as the correspondingly Dataplex lake / zone / asset.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1DataplexTableSpec": { + "description": "Entry specification for a Dataplex table.", + "id": "GoogleCloudDatacatalogV1DataplexTableSpec", + "properties": { + "dataplexSpec": { + "$ref": "GoogleCloudDatacatalogV1DataplexSpec", + "description": "Common Dataplex fields." + }, + "externalTables": { + "description": "List of external tables registered by Dataplex in other systems based on the same underlying data. External tables allow to query this data in those systems.", + "items": { + "$ref": "GoogleCloudDatacatalogV1DataplexExternalTable" + }, + "type": "array" + }, + "userManaged": { + "description": "Indicates if the table schema is managed by the user or not.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1DumpItem": { + "description": "Wrapper for any item that can be contained in the dump.", + "id": "GoogleCloudDatacatalogV1DumpItem", + "properties": { + "taggedEntry": { + "$ref": "GoogleCloudDatacatalogV1TaggedEntry", + "description": "Entry and its tags." + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1Entry": { + "description": "Entry metadata. A Data Catalog entry represents another resource in Google Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic) or outside of it. You can use the `linked_resource` field in the entry resource to refer to the original resource ID of the source system. An entry resource contains resource details, for example, its schema. Additionally, you can attach flexible metadata to an entry in the form of a Tag.", + "id": "GoogleCloudDatacatalogV1Entry", + "properties": { + "bigqueryDateShardedSpec": { + "$ref": "GoogleCloudDatacatalogV1BigQueryDateShardedSpec", + "description": "Output only. Specification for a group of BigQuery tables with the `[prefix]YYYYMMDD` name pattern. For more information, see [Introduction to partitioned tables] (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).", + "readOnly": true + }, + "bigqueryTableSpec": { + "$ref": "GoogleCloudDatacatalogV1BigQueryTableSpec", + "description": "Output only. Specification that applies to a BigQuery table. Valid only for entries with the `TABLE` type.", + "readOnly": true + }, + "businessContext": { + "$ref": "GoogleCloudDatacatalogV1BusinessContext", + "description": "Business Context of the entry. Not supported for BigQuery datasets" + }, + "dataSource": { + "$ref": "GoogleCloudDatacatalogV1DataSource", + "description": "Output only. Physical location of the entry.", + "readOnly": true + }, + "dataSourceConnectionSpec": { + "$ref": "GoogleCloudDatacatalogV1DataSourceConnectionSpec", + "description": "Specification that applies to a data source connection. Valid only for entries with the `DATA_SOURCE_CONNECTION` type." + }, + "databaseTableSpec": { + "$ref": "GoogleCloudDatacatalogV1DatabaseTableSpec", + "description": "Specification that applies to a table resource. Valid only for entries with the `TABLE` or `EXPLORE` type." + }, + "description": { + "description": "Entry description that can consist of several sentences or paragraphs that describe entry contents. The description must not contain Unicode non-characters as well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). The maximum size is 2000 bytes when encoded in UTF-8. Default value is an empty string.", + "type": "string" + }, + "displayName": { + "description": "Display name of an entry. The maximum size is 500 bytes when encoded in UTF-8. Default value is an empty string.", + "type": "string" + }, + "filesetSpec": { + "$ref": "GoogleCloudDatacatalogV1FilesetSpec", + "description": "Specification that applies to a fileset resource. Valid only for entries with the `FILESET` type." + }, + "fullyQualifiedName": { + "description": "Fully qualified name (FQN) of the resource. Set automatically for entries representing resources from synced systems. Settable only during creation and read-only afterwards. Can be used for search and lookup of the entries. FQNs take two forms: * For non-regionalized resources: `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` * For regionalized resources: `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` Example for a DPMS table: `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`", + "type": "string" + }, + "gcsFilesetSpec": { + "$ref": "GoogleCloudDatacatalogV1GcsFilesetSpec", + "description": "Specification that applies to a Cloud Storage fileset. Valid only for entries with the `FILESET` type." + }, + "integratedSystem": { + "description": "Output only. Indicates the entry's source system that Data Catalog integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore.", + "enum": [ + "INTEGRATED_SYSTEM_UNSPECIFIED", + "BIGQUERY", + "CLOUD_PUBSUB", + "DATAPROC_METASTORE", + "DATAPLEX", + "CLOUD_SQL", + "LOOKER" + ], + "enumDescriptions": [ + "Default unknown system.", + "BigQuery.", + "Cloud Pub/Sub.", + "Dataproc Metastore.", + "Dataplex.", + "Cloud Sql", + "Looker" + ], + "readOnly": true, + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Cloud labels attached to the entry. In Data Catalog, you can create and modify labels attached only to custom entries. Synced entries have unmodifiable labels that come from the source system.", + "type": "object" + }, + "linkedResource": { + "description": "The resource this metadata entry refers to. For Google Cloud Platform resources, `linked_resource` is the [Full Resource Name] (https://cloud.google.com/apis/design/resource_names#full_resource_name). For example, the `linked_resource` for a table resource from BigQuery is: `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` Output only when the entry is one of the types in the `EntryType` enum. For entries with a `user_specified_type`, this field is optional and defaults to an empty string. The resource string must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), periods (.), colons (:), slashes (/), dashes (-), and hashes (#). The maximum size is 200 bytes when encoded in UTF-8.", + "type": "string" + }, + "lookerSystemSpec": { + "$ref": "GoogleCloudDatacatalogV1LookerSystemSpec", + "description": "Specification that applies to Looker sysstem. Only settable when `user_specified_system` is equal to `LOOKER`" + }, + "name": { + "description": "Output only. The resource name of an entry in URL format. Note: The entry itself and its child resources might not be stored in the location specified in its name.", + "readOnly": true, + "type": "string" + }, + "personalDetails": { + "$ref": "GoogleCloudDatacatalogV1PersonalDetails", + "description": "Output only. Additional information related to the entry. Private to the current user.", + "readOnly": true + }, + "routineSpec": { + "$ref": "GoogleCloudDatacatalogV1RoutineSpec", + "description": "Specification that applies to a user-defined function or procedure. Valid only for entries with the `ROUTINE` type." + }, + "schema": { + "$ref": "GoogleCloudDatacatalogV1Schema", + "description": "Schema of the entry. An entry might not have any schema attached to it." + }, + "sourceSystemTimestamps": { + "$ref": "GoogleCloudDatacatalogV1SystemTimestamps", + "description": "Timestamps from the underlying resource, not from the Data Catalog entry. Output only when the entry has a system listed in the `IntegratedSystem` enum. For entries with `user_specified_system`, this field is optional and defaults to an empty timestamp." + }, + "sqlDatabaseSystemSpec": { + "$ref": "GoogleCloudDatacatalogV1SqlDatabaseSystemSpec", + "description": "Specification that applies to a relational database system. Only settable when `user_specified_system` is equal to `SQL_DATABASE`" + }, + "type": { + "description": "The type of the entry. Only used for entries with types listed in the `EntryType` enum. Currently, only `FILESET` enum value is allowed. All other entries created in Data Catalog must use the `user_specified_type`.", + "enum": [ + "ENTRY_TYPE_UNSPECIFIED", + "TABLE", + "MODEL", + "DATA_STREAM", + "FILESET", + "CLUSTER", + "DATABASE", + "DATA_SOURCE_CONNECTION", + "ROUTINE", + "LAKE", + "ZONE", + "SERVICE", + "DATABASE_SCHEMA", + "DASHBOARD", + "EXPLORE", + "LOOK" + ], + "enumDescriptions": [ + "Default unknown type.", + "The entry type that has a GoogleSQL schema, including logical views.", + "Output only. The type of models. For more information, see [Supported models in BigQuery ML] (https://cloud.google.com/bigquery-ml/docs/introduction#supported_models_in).", + "An entry type for streaming entries. For example, a Pub/Sub topic.", + "An entry type for a set of files or objects. For example, a Cloud Storage fileset.", + "A group of servers that work together. For example, a Kafka cluster.", + "A database.", + "Output only. Connection to a data source. For example, a BigQuery connection.", + "Output only. Routine, for example, a BigQuery routine.", + "A Dataplex lake.", + "A Dataplex zone.", + "A service, for example, a Dataproc Metastore service.", + "Schema within a relational database.", + "A Dashboard, for example from Looker.", + "A Looker Explore. For more information, see [Looker Explore API] (https://developers.looker.com/api/explorer/4.0/methods/LookmlModel/lookml_model_explore).", + "A Looker Look. For more information, see [Looker Look API] (https://developers.looker.com/api/explorer/4.0/methods/Look)." + ], + "type": "string" + }, + "usageSignal": { + "$ref": "GoogleCloudDatacatalogV1UsageSignal", + "description": "Resource usage statistics." + }, + "userSpecifiedSystem": { + "description": "Indicates the entry's source system that Data Catalog doesn't automatically integrate with. The `user_specified_system` string has the following limitations: * Is case insensitive. * Must begin with a letter or underscore. * Can only contain letters, numbers, and underscores. * Must be at least 1 character and at most 64 characters long.", + "type": "string" + }, + "userSpecifiedType": { + "description": "Custom entry type that doesn't match any of the values allowed for input and listed in the `EntryType` enum. When creating an entry, first check the type values in the enum. If there are no appropriate types for the new entry, provide a custom value, for example, `my_special_type`. The `user_specified_type` string has the following limitations: * Is case insensitive. * Must begin with a letter or underscore. * Can only contain letters, numbers, and underscores. * Must be at least 1 character and at most 64 characters long.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1EntryOverview": { + "description": "Entry overview fields for rich text descriptions of entries.", + "id": "GoogleCloudDatacatalogV1EntryOverview", + "properties": { + "overview": { + "description": "Entry overview with support for rich text. The overview must only contain Unicode characters, and should be formatted using HTML. The maximum length is 10 MiB as this value holds HTML descriptions including encoded images. The maximum length of the text without images is 100 KiB.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1FilesetSpec": { + "description": "Specification that applies to a fileset. Valid only for entries with the 'FILESET' type.", + "id": "GoogleCloudDatacatalogV1FilesetSpec", + "properties": { + "dataplexFileset": { + "$ref": "GoogleCloudDatacatalogV1DataplexFilesetSpec", + "description": "Fields specific to a Dataplex fileset and present only in the Dataplex fileset entries." + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1GcsFileSpec": { + "description": "Specification of a single file in Cloud Storage.", + "id": "GoogleCloudDatacatalogV1GcsFileSpec", + "properties": { + "filePath": { + "description": "Required. Full file path. Example: `gs://bucket_name/a/b.txt`.", + "type": "string" + }, + "gcsTimestamps": { + "$ref": "GoogleCloudDatacatalogV1SystemTimestamps", + "description": "Output only. Creation, modification, and expiration timestamps of a Cloud Storage file.", + "readOnly": true + }, + "sizeBytes": { + "description": "Output only. File size in bytes.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1GcsFilesetSpec": { + "description": "Describes a Cloud Storage fileset entry.", + "id": "GoogleCloudDatacatalogV1GcsFilesetSpec", + "properties": { + "filePatterns": { + "description": "Required. Patterns to identify a set of files in Google Cloud Storage. For more information, see [Wildcard Names] (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). Note: Currently, bucket wildcards are not supported. Examples of valid `file_patterns`: * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` directory * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` and all subdirectories * `gs://bucket_name/file*`: matches files prefixed by `file` in `bucket_name` * `gs://bucket_name/??.txt`: matches files with two characters followed by `.txt` in `bucket_name` * `gs://bucket_name/[aeiou].txt`: matches files that contain a single vowel character followed by `.txt` in `bucket_name` * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... or `m` followed by `.txt` in `bucket_name` * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match the `a/*/b` pattern, such as `a/c/b`, `a/d/b` * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` You can combine wildcards to match complex sets of files, for example: `gs://bucket_name/[a-m]??.j*g`", + "items": { + "type": "string" + }, + "type": "array" + }, + "sampleGcsFileSpecs": { + "description": "Output only. Sample files contained in this fileset, not all files contained in this fileset are represented here.", + "items": { + "$ref": "GoogleCloudDatacatalogV1GcsFileSpec" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1ImportEntriesMetadata": { + "description": "Metadata message for long-running operation returned by the ImportEntries.", + "id": "GoogleCloudDatacatalogV1ImportEntriesMetadata", + "properties": { + "errors": { + "description": "Partial errors that are encountered during the ImportEntries operation. There is no guarantee that all the encountered errors are reported. However, if no errors are reported, it means that no errors were encountered.", + "items": { + "$ref": "Status" + }, + "type": "array" + }, + "state": { + "description": "State of the import operation.", + "enum": [ + "IMPORT_STATE_UNSPECIFIED", + "IMPORT_QUEUED", + "IMPORT_IN_PROGRESS", + "IMPORT_DONE", + "IMPORT_OBSOLETE" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "The dump with entries has been queued for import.", + "The import of entries is in progress.", + "The import of entries has been finished.", + "The import of entries has been abandoned in favor of a newer request." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1ImportEntriesResponse": { + "description": "Response message for long-running operation returned by the ImportEntries.", + "id": "GoogleCloudDatacatalogV1ImportEntriesResponse", + "properties": { + "deletedEntriesCount": { + "description": "Number of entries deleted as a result of import operation.", + "format": "int64", + "type": "string" + }, + "upsertedEntriesCount": { + "description": "Cumulative number of entries created and entries updated as a result of import operation.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1LookerSystemSpec": { + "description": "Specification that applies to entries that are part `LOOKER` system (user_specified_type)", + "id": "GoogleCloudDatacatalogV1LookerSystemSpec", + "properties": { + "parentInstanceDisplayName": { + "description": "Name of the parent Looker Instance. Empty if it does not exist.", + "type": "string" + }, + "parentInstanceId": { + "description": "ID of the parent Looker Instance. Empty if it does not exist. Example value: `someinstance.looker.com`", + "type": "string" + }, + "parentModelDisplayName": { + "description": "Name of the parent Model. Empty if it does not exist.", + "type": "string" + }, + "parentModelId": { + "description": "ID of the parent Model. Empty if it does not exist.", + "type": "string" + }, + "parentViewDisplayName": { + "description": "Name of the parent View. Empty if it does not exist.", + "type": "string" + }, + "parentViewId": { + "description": "ID of the parent View. Empty if it does not exist.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1PersonalDetails": { + "description": "Entry metadata relevant only to the user and private to them.", + "id": "GoogleCloudDatacatalogV1PersonalDetails", + "properties": { + "starTime": { + "description": "Set if the entry is starred; unset otherwise.", + "format": "google-datetime", + "type": "string" + }, + "starred": { + "description": "True if the entry is starred by the user; false otherwise.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1PhysicalSchema": { + "description": "Native schema used by a resource represented as an entry. Used by query engines for deserializing and parsing source data.", + "id": "GoogleCloudDatacatalogV1PhysicalSchema", + "properties": { + "avro": { + "$ref": "GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema", + "description": "Schema in Avro JSON format." + }, + "csv": { + "$ref": "GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema", + "description": "Marks a CSV-encoded data source." + }, + "orc": { + "$ref": "GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema", + "description": "Marks an ORC-encoded data source." + }, + "parquet": { + "$ref": "GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema", + "description": "Marks a Parquet-encoded data source." + }, + "protobuf": { + "$ref": "GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema", + "description": "Schema in protocol buffer format." + }, + "thrift": { + "$ref": "GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema", + "description": "Schema in Thrift format." + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema": { + "description": "Schema in Avro JSON format.", + "id": "GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema", + "properties": { + "text": { + "description": "JSON source of the Avro schema.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema": { + "description": "Marks a CSV-encoded data source.", + "id": "GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema", + "properties": {}, + "type": "object" + }, + "GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema": { + "description": "Marks an ORC-encoded data source.", + "id": "GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema", + "properties": {}, + "type": "object" + }, + "GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema": { + "description": "Marks a Parquet-encoded data source.", + "id": "GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema", + "properties": {}, + "type": "object" + }, + "GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema": { + "description": "Schema in protocol buffer format.", + "id": "GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema", + "properties": { + "text": { + "description": "Protocol buffer source of the schema.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema": { + "description": "Schema in Thrift format.", + "id": "GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema", + "properties": { + "text": { + "description": "Thrift IDL source of the schema.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1RoutineSpec": { + "description": "Specification that applies to a routine. Valid only for entries with the `ROUTINE` type.", + "id": "GoogleCloudDatacatalogV1RoutineSpec", + "properties": { + "bigqueryRoutineSpec": { + "$ref": "GoogleCloudDatacatalogV1BigQueryRoutineSpec", + "description": "Fields specific for BigQuery routines." + }, + "definitionBody": { + "description": "The body of the routine.", + "type": "string" + }, + "language": { + "description": "The language the routine is written in. The exact value depends on the source system. For BigQuery routines, possible values are: * `SQL` * `JAVASCRIPT`", + "type": "string" + }, + "returnType": { + "description": "Return type of the argument. The exact value depends on the source system and the language.", + "type": "string" + }, + "routineArguments": { + "description": "Arguments of the routine.", + "items": { + "$ref": "GoogleCloudDatacatalogV1RoutineSpecArgument" + }, + "type": "array" + }, + "routineType": { + "description": "The type of the routine.", + "enum": [ + "ROUTINE_TYPE_UNSPECIFIED", + "SCALAR_FUNCTION", + "PROCEDURE" + ], + "enumDescriptions": [ + "Unspecified type.", + "Non-builtin permanent scalar function.", + "Stored procedure." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1RoutineSpecArgument": { + "description": "Input or output argument of a function or stored procedure.", + "id": "GoogleCloudDatacatalogV1RoutineSpecArgument", + "properties": { + "mode": { + "description": "Specifies whether the argument is input or output.", + "enum": [ + "MODE_UNSPECIFIED", + "IN", + "OUT", + "INOUT" + ], + "enumDescriptions": [ + "Unspecified mode.", + "The argument is input-only.", + "The argument is output-only.", + "The argument is both an input and an output." + ], + "type": "string" + }, + "name": { + "description": "The name of the argument. A return argument of a function might not have a name.", + "type": "string" + }, + "type": { + "description": "Type of the argument. The exact value depends on the source system and the language.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1Schema": { + "description": "Represents a schema, for example, a BigQuery, GoogleSQL, or Avro schema.", + "id": "GoogleCloudDatacatalogV1Schema", + "properties": { + "columns": { + "description": "The unified GoogleSQL-like schema of columns. The overall maximum number of columns and nested columns is 10,000. The maximum nested depth is 15 levels.", + "items": { + "$ref": "GoogleCloudDatacatalogV1ColumnSchema" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1SqlDatabaseSystemSpec": { + "description": "Specification that applies to entries that are part `SQL_DATABASE` system (user_specified_type)", + "id": "GoogleCloudDatacatalogV1SqlDatabaseSystemSpec", + "properties": { + "databaseVersion": { + "description": "Version of the database engine.", + "type": "string" + }, + "instanceHost": { + "description": "Host of the SQL database enum InstanceHost { UNDEFINED = 0; SELF_HOSTED = 1; CLOUD_SQL = 2; AMAZON_RDS = 3; AZURE_SQL = 4; } Host of the enclousing database instance.", + "type": "string" + }, + "sqlEngine": { + "description": "SQL Database Engine. enum SqlEngine { UNDEFINED = 0; MY_SQL = 1; POSTGRE_SQL = 2; SQL_SERVER = 3; } Engine of the enclosing database instance.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1StorageProperties": { + "description": "Details the properties of the underlying storage.", + "id": "GoogleCloudDatacatalogV1StorageProperties", + "properties": { + "filePattern": { + "description": "Patterns to identify a set of files for this fileset. Examples of a valid `file_pattern`: * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir` directory * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir` and all subdirectories recursively * `gs://bucket_name/file*`: matches files prefixed by `file` in `bucket_name` * `gs://bucket_name/??.txt`: matches files with two characters followed by `.txt` in `bucket_name` * `gs://bucket_name/[aeiou].txt`: matches files that contain a single vowel character followed by `.txt` in `bucket_name` * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... or `m` followed by `.txt` in `bucket_name` * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match the `a/*/b` pattern, such as `a/c/b`, `a/d/b` * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`", + "items": { + "type": "string" + }, + "type": "array" + }, + "fileType": { + "description": "File type in MIME format, for example, `text/plain`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1SystemTimestamps": { + "description": "Timestamps associated with this resource in a particular system.", + "id": "GoogleCloudDatacatalogV1SystemTimestamps", + "properties": { + "createTime": { + "description": "Creation timestamp of the resource within the given system.", + "format": "google-datetime", + "type": "string" + }, + "expireTime": { + "description": "Output only. Expiration timestamp of the resource within the given system. Currently only applicable to BigQuery resources.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Timestamp of the last modification of the resource or its metadata within a given system. Note: Depending on the source system, not every modification updates this timestamp. For example, BigQuery timestamps every metadata modification but not data or permission changes.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1TableSpec": { + "description": "Normal BigQuery table specification.", + "id": "GoogleCloudDatacatalogV1TableSpec", + "properties": { + "groupedEntry": { + "description": "Output only. If the table is date-sharded, that is, it matches the `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource name of the date-sharded grouped entry. For example: `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`. Otherwise, `grouped_entry` is empty.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1Tag": { + "description": "Tags contain custom metadata and are attached to Data Catalog resources. Tags conform with the specification of their tag template. See [Data Catalog IAM](https://cloud.google.com/data-catalog/docs/concepts/iam) for information on the permissions needed to create or view tags.", + "id": "GoogleCloudDatacatalogV1Tag", + "properties": { + "column": { + "description": "Resources like entry can have schemas associated with them. This scope allows you to attach tags to an individual column based on that schema. To attach a tag to a nested column, separate column names with a dot (`.`). Example: `column.nested_column`.", + "type": "string" + }, + "fields": { + "additionalProperties": { + "$ref": "GoogleCloudDatacatalogV1TagField" + }, + "description": "Required. Maps the ID of a tag field to its value and additional information about that field. Tag template defines valid field IDs. A tag must have at least 1 field and at most 500 fields.", + "type": "object" + }, + "name": { + "description": "The resource name of the tag in URL format where tag ID is a system-generated identifier. Note: The tag itself might not be stored in the location specified in its name.", + "type": "string" + }, + "template": { + "description": "Required. The resource name of the tag template this tag uses. Example: `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}` This field cannot be modified after creation.", + "type": "string" + }, + "templateDisplayName": { + "description": "Output only. The display name of the tag template.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1TagField": { + "description": "Contains the value and additional information on a field within a Tag.", + "id": "GoogleCloudDatacatalogV1TagField", + "properties": { + "boolValue": { + "description": "The value of a tag field with a boolean type.", + "type": "boolean" + }, + "displayName": { + "description": "Output only. The display name of this field.", + "readOnly": true, + "type": "string" + }, + "doubleValue": { + "description": "The value of a tag field with a double type.", + "format": "double", + "type": "number" + }, + "enumValue": { + "$ref": "GoogleCloudDatacatalogV1TagFieldEnumValue", + "description": "The value of a tag field with an enum type. This value must be one of the allowed values listed in this enum." + }, + "order": { + "description": "Output only. The order of this field with respect to other fields in this tag. Can be set by Tag. For example, a higher value can indicate a more important field. The value can be negative. Multiple fields can have the same order, and field orders within a tag don't have to be sequential.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "richtextValue": { + "description": "The value of a tag field with a rich text type. The maximum length is 10 MiB as this value holds HTML descriptions including encoded images. The maximum length of the text without images is 100 KiB.", + "type": "string" + }, + "stringValue": { + "description": "The value of a tag field with a string type. The maximum length is 2000 UTF-8 characters.", + "type": "string" + }, + "timestampValue": { + "description": "The value of a tag field with a timestamp type.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1TagFieldEnumValue": { + "description": "An enum value.", + "id": "GoogleCloudDatacatalogV1TagFieldEnumValue", + "properties": { + "displayName": { + "description": "The display name of the enum value.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1TaggedEntry": { + "description": "Wrapper containing Entry and information about Tags that should and should not be attached to it.", + "id": "GoogleCloudDatacatalogV1TaggedEntry", + "properties": { + "absentTags": { + "description": "Tags that should be deleted from the Data Catalog. Caller should populate template name and column only.", + "items": { + "$ref": "GoogleCloudDatacatalogV1Tag" + }, + "type": "array" + }, + "presentTags": { + "description": "Tags that should be ingested into the Data Catalog. Caller should populate template name, column and fields.", + "items": { + "$ref": "GoogleCloudDatacatalogV1Tag" + }, + "type": "array" + }, + "v1Entry": { + "$ref": "GoogleCloudDatacatalogV1Entry", + "description": "Non-encrypted Data Catalog v1 Entry." + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1UsageSignal": { + "description": "The set of all usage signals that Data Catalog stores. Note: Usually, these signals are updated daily. In rare cases, an update may fail but will be performed again on the next day.", + "id": "GoogleCloudDatacatalogV1UsageSignal", + "properties": { + "commonUsageWithinTimeRange": { + "additionalProperties": { + "$ref": "GoogleCloudDatacatalogV1CommonUsageStats" + }, + "description": "Common usage statistics over each of the predefined time ranges. Supported time ranges are `{\"24H\", \"7D\", \"30D\", \"Lifetime\"}`.", + "type": "object" + }, + "favoriteCount": { + "description": "Favorite count in the source system.", + "format": "int64", + "type": "string" + }, + "updateTime": { + "description": "The end timestamp of the duration of usage statistics.", + "format": "google-datetime", + "type": "string" + }, + "usageWithinTimeRange": { + "additionalProperties": { + "$ref": "GoogleCloudDatacatalogV1UsageStats" + }, + "description": "Output only. BigQuery usage statistics over each of the predefined time ranges. Supported time ranges are `{\"24H\", \"7D\", \"30D\"}`.", + "readOnly": true, + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1UsageStats": { + "description": "Detailed statistics on the entry's usage. Usage statistics have the following limitations: - Only BigQuery tables have them. - They only include BigQuery query jobs. - They might be underestimated because wildcard table references are not yet counted. For more information, see [Querying multiple tables using a wildcard table] (https://cloud.google.com/bigquery/docs/querying-wildcard-tables)", + "id": "GoogleCloudDatacatalogV1UsageStats", + "properties": { + "totalCancellations": { + "description": "The number of cancelled attempts to use the underlying entry.", + "format": "float", + "type": "number" + }, + "totalCompletions": { + "description": "The number of successful uses of the underlying entry.", + "format": "float", + "type": "number" + }, + "totalExecutionTimeForCompletionsMillis": { + "description": "Total time spent only on successful uses, in milliseconds.", + "format": "float", + "type": "number" + }, + "totalFailures": { + "description": "The number of failed attempts to use the underlying entry.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogV1ViewSpec": { + "description": "Table view specification.", + "id": "GoogleCloudDatacatalogV1ViewSpec", + "properties": { + "viewQuery": { + "description": "Output only. The query that defines the table view.", + "readOnly": true, "type": "string" } }, diff --git a/datacatalog/v1beta1/datacatalog-gen.go b/datacatalog/v1beta1/datacatalog-gen.go index 72bbb5e92f2..ca7de2fcf37 100644 --- a/datacatalog/v1beta1/datacatalog-gen.go +++ b/datacatalog/v1beta1/datacatalog-gen.go @@ -509,27 +509,25 @@ func (s *GetPolicyOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogV1ImportEntriesMetadata: Metadata message for -// long-running operation returned by the ImportEntries. -type GoogleCloudDatacatalogV1ImportEntriesMetadata struct { - // Errors: Partial errors that are encountered during the ImportEntries - // operation. There is no guarantee that all the encountered errors are - // reported. However, if no errors are reported, it means that no errors - // were encountered. - Errors []*Status `json:"errors,omitempty"` - - // State: State of the import operation. +// GoogleCloudDatacatalogV1BigQueryConnectionSpec: Specification for the +// BigQuery connection. +type GoogleCloudDatacatalogV1BigQueryConnectionSpec struct { + // CloudSql: Specification for the BigQuery connection to a Cloud SQL + // instance. + CloudSql *GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec `json:"cloudSql,omitempty"` + + // ConnectionType: The type of the BigQuery connection. // // Possible values: - // "IMPORT_STATE_UNSPECIFIED" - Default value. This value is unused. - // "IMPORT_QUEUED" - The dump with entries has been queued for import. - // "IMPORT_IN_PROGRESS" - The import of entries is in progress. - // "IMPORT_DONE" - The import of entries has been finished. - // "IMPORT_OBSOLETE" - The import of entries has been abandoned in - // favor of a newer request. - State string `json:"state,omitempty"` + // "CONNECTION_TYPE_UNSPECIFIED" - Unspecified type. + // "CLOUD_SQL" - Cloud SQL connection. + ConnectionType string `json:"connectionType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Errors") to + // HasCredential: True if there are credentials attached to the BigQuery + // connection; false otherwise. + HasCredential bool `json:"hasCredential,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CloudSql") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -537,8 +535,8 @@ type GoogleCloudDatacatalogV1ImportEntriesMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Errors") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "CloudSql") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -546,24 +544,65 @@ type GoogleCloudDatacatalogV1ImportEntriesMetadata struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogV1ImportEntriesMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatacatalogV1ImportEntriesMetadata +func (s *GoogleCloudDatacatalogV1BigQueryConnectionSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1BigQueryConnectionSpec raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogV1ImportEntriesResponse: Response message for -// long-running operation returned by the ImportEntries. -type GoogleCloudDatacatalogV1ImportEntriesResponse struct { - // DeletedEntriesCount: Number of entries deleted as a result of import - // operation. - DeletedEntriesCount int64 `json:"deletedEntriesCount,omitempty,string"` +// GoogleCloudDatacatalogV1BigQueryDateShardedSpec: Specification for a +// group of BigQuery tables with the `[prefix]YYYYMMDD` name pattern. +// For more information, see [Introduction to partitioned tables] +// (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). +type GoogleCloudDatacatalogV1BigQueryDateShardedSpec struct { + // Dataset: Output only. The Data Catalog resource name of the dataset + // entry the current table belongs to. For example: + // `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_I + // D}/entries/{ENTRY_ID}`. + Dataset string `json:"dataset,omitempty"` - // UpsertedEntriesCount: Cumulative number of entries created and - // entries updated as a result of import operation. - UpsertedEntriesCount int64 `json:"upsertedEntriesCount,omitempty,string"` + // LatestShardResource: Output only. BigQuery resource name of the + // latest shard. + LatestShardResource string `json:"latestShardResource,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeletedEntriesCount") + // ShardCount: Output only. Total number of shards. + ShardCount int64 `json:"shardCount,omitempty,string"` + + // TablePrefix: Output only. The table name prefix of the shards. The + // name of any given shard is `[table_prefix]YYYYMMDD`. For example, for + // the `MyTable20180101` shard, the `table_prefix` is `MyTable`. + TablePrefix string `json:"tablePrefix,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Dataset") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Dataset") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1BigQueryDateShardedSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1BigQueryDateShardedSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1BigQueryRoutineSpec: Fields specific for +// BigQuery routines. +type GoogleCloudDatacatalogV1BigQueryRoutineSpec struct { + // ImportedLibraries: Paths of the imported libraries. + ImportedLibraries []string `json:"importedLibraries,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ImportedLibraries") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -571,7 +610,7 @@ type GoogleCloudDatacatalogV1ImportEntriesResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DeletedEntriesCount") to + // NullFields is a list of field names (e.g. "ImportedLibraries") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -581,31 +620,108 @@ type GoogleCloudDatacatalogV1ImportEntriesResponse struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogV1ImportEntriesResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatacatalogV1ImportEntriesResponse +func (s *GoogleCloudDatacatalogV1BigQueryRoutineSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1BigQueryRoutineSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1BigQueryTableSpec: Describes a BigQuery +// table. +type GoogleCloudDatacatalogV1BigQueryTableSpec struct { + // TableSourceType: Output only. The table source type. + // + // Possible values: + // "TABLE_SOURCE_TYPE_UNSPECIFIED" - Default unknown type. + // "BIGQUERY_VIEW" - Table view. + // "BIGQUERY_TABLE" - BigQuery native table. + // "BIGQUERY_MATERIALIZED_VIEW" - BigQuery materialized view. + TableSourceType string `json:"tableSourceType,omitempty"` + + // TableSpec: Specification of a BigQuery table. Populated only if the + // `table_source_type` is `BIGQUERY_TABLE`. + TableSpec *GoogleCloudDatacatalogV1TableSpec `json:"tableSpec,omitempty"` + + // ViewSpec: Table view specification. Populated only if the + // `table_source_type` is `BIGQUERY_VIEW`. + ViewSpec *GoogleCloudDatacatalogV1ViewSpec `json:"viewSpec,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TableSourceType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TableSourceType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1BigQueryTableSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1BigQueryTableSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1BusinessContext: Business Context of the +// entry. +type GoogleCloudDatacatalogV1BusinessContext struct { + // Contacts: Contact people for the entry. + Contacts *GoogleCloudDatacatalogV1Contacts `json:"contacts,omitempty"` + + // EntryOverview: Entry overview fields for rich text descriptions of + // entries. + EntryOverview *GoogleCloudDatacatalogV1EntryOverview `json:"entryOverview,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Contacts") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Contacts") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1BusinessContext) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1BusinessContext raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogV1ReconcileTagsMetadata: Long-running operation -// metadata message returned by the ReconcileTags. -type GoogleCloudDatacatalogV1ReconcileTagsMetadata struct { - // Errors: Maps the name of each tagged column (or empty string for a - // sole entry) to tagging operation status. - Errors map[string]Status `json:"errors,omitempty"` +// GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec: Specification +// for the BigQuery connection to a Cloud SQL instance. +type GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec struct { + // Database: Database name. + Database string `json:"database,omitempty"` - // State: State of the reconciliation operation. + // InstanceId: Cloud SQL instance ID in the format of + // `project:location:instance`. + InstanceId string `json:"instanceId,omitempty"` + + // Type: Type of the Cloud SQL database. // // Possible values: - // "RECONCILIATION_STATE_UNSPECIFIED" - Default value. This value is - // unused. - // "RECONCILIATION_QUEUED" - The reconciliation has been queued and - // awaits for execution. - // "RECONCILIATION_IN_PROGRESS" - The reconciliation is in progress. - // "RECONCILIATION_DONE" - The reconciliation has been finished. - State string `json:"state,omitempty"` + // "DATABASE_TYPE_UNSPECIFIED" - Unspecified database type. + // "POSTGRES" - Cloud SQL for PostgreSQL. + // "MYSQL" - Cloud SQL for MySQL. + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Errors") to + // ForceSendFields is a list of field names (e.g. "Database") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -613,7 +729,80 @@ type GoogleCloudDatacatalogV1ReconcileTagsMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Errors") to include in API + // NullFields is a list of field names (e.g. "Database") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1CloudSqlBigQueryConnectionSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1ColumnSchema: A column within a schema. +// Columns can be nested inside other columns. +type GoogleCloudDatacatalogV1ColumnSchema struct { + // Column: Required. Name of the column. Must be a UTF-8 string without + // dots (.). The maximum size is 64 bytes. + Column string `json:"column,omitempty"` + + // DefaultValue: Optional. Default value for the column. + DefaultValue string `json:"defaultValue,omitempty"` + + // Description: Optional. Description of the column. Default value is an + // empty string. The description must be a UTF-8 string with the maximum + // size of 2000 bytes. + Description string `json:"description,omitempty"` + + // GcRule: Optional. Garbage collection policy for the column or column + // family. Applies to systems like Cloud Bigtable. + GcRule string `json:"gcRule,omitempty"` + + // HighestIndexingType: Optional. Most important inclusion of this + // column. + // + // Possible values: + // "INDEXING_TYPE_UNSPECIFIED" - Unspecified. + // "INDEXING_TYPE_NONE" - Column not a part of an index. + // "INDEXING_TYPE_NON_UNIQUE" - Column Part of non unique index. + // "INDEXING_TYPE_UNIQUE" - Column part of unique index. + // "INDEXING_TYPE_PRIMARY_KEY" - Column part of the primary key. + HighestIndexingType string `json:"highestIndexingType,omitempty"` + + // LookerColumnSpec: Looker specific column info of this column. + LookerColumnSpec *GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec `json:"lookerColumnSpec,omitempty"` + + // Mode: Optional. A column's mode indicates whether values in this + // column are required, nullable, or repeated. Only `NULLABLE`, + // `REQUIRED`, and `REPEATED` values are supported. Default mode is + // `NULLABLE`. + Mode string `json:"mode,omitempty"` + + // OrdinalPosition: Optional. Ordinal position + OrdinalPosition int64 `json:"ordinalPosition,omitempty"` + + // Subcolumns: Optional. Schema of sub-columns. A column can have zero + // or more sub-columns. + Subcolumns []*GoogleCloudDatacatalogV1ColumnSchema `json:"subcolumns,omitempty"` + + // Type: Required. Type of the column. Must be a UTF-8 string with the + // maximum size of 128 bytes. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Column") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Column") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -622,25 +811,56 @@ type GoogleCloudDatacatalogV1ReconcileTagsMetadata struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogV1ReconcileTagsMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatacatalogV1ReconcileTagsMetadata +func (s *GoogleCloudDatacatalogV1ColumnSchema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ColumnSchema raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudDatacatalogV1ReconcileTagsResponse: Long-running operation -// response message returned by ReconcileTags. -type GoogleCloudDatacatalogV1ReconcileTagsResponse struct { - // CreatedTagsCount: Number of tags created in the request. - CreatedTagsCount int64 `json:"createdTagsCount,omitempty,string"` +// GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec: Column info +// specific to Looker System. +type GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec struct { + // Type: Looker specific column type of this column. + // + // Possible values: + // "LOOKER_COLUMN_TYPE_UNSPECIFIED" - Unspecified. + // "DIMENSION" - Dimension. + // "DIMENSION_GROUP" - Dimension group - parent for Dimension. + // "FILTER" - Filter. + // "MEASURE" - Measure. + // "PAREMETER" - Parameter. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Type") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Type") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} - // DeletedTagsCount: Number of tags deleted in the request. - DeletedTagsCount int64 `json:"deletedTagsCount,omitempty,string"` +func (s *GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ColumnSchemaLookerColumnSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // UpdatedTagsCount: Number of tags updated in the request. - UpdatedTagsCount int64 `json:"updatedTagsCount,omitempty,string"` +// GoogleCloudDatacatalogV1CommonUsageStats: Common statistics on the +// entry's usage. They can be set on any system. +type GoogleCloudDatacatalogV1CommonUsageStats struct { + // ViewCount: View count in source system. + ViewCount int64 `json:"viewCount,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "CreatedTagsCount") to + // ForceSendFields is a list of field names (e.g. "ViewCount") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -648,18 +868,1730 @@ type GoogleCloudDatacatalogV1ReconcileTagsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreatedTagsCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ViewCount") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1CommonUsageStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1CommonUsageStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1Contacts: Contact people for the entry. +type GoogleCloudDatacatalogV1Contacts struct { + // People: The list of contact people for the entry. + People []*GoogleCloudDatacatalogV1ContactsPerson `json:"people,omitempty"` + + // ForceSendFields is a list of field names (e.g. "People") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "People") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1Contacts) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1Contacts + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1ContactsPerson: A contact person for the +// entry. +type GoogleCloudDatacatalogV1ContactsPerson struct { + // Designation: Designation of the person, for example, Data Steward. + Designation string `json:"designation,omitempty"` + + // Email: Email of the person in the format of `john.doe@xyz`, ``, or + // `John Doe`. + Email string `json:"email,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Designation") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Designation") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ContactsPerson) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ContactsPerson + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1DataSource: Physical location of an entry. +type GoogleCloudDatacatalogV1DataSource struct { + // Resource: Full name of a resource as defined by the service. For + // example: + // `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/ + // datasets/{DATASET_ID}/tables/{TABLE_ID}` + Resource string `json:"resource,omitempty"` + + // Service: Service that physically stores the data. + // + // Possible values: + // "SERVICE_UNSPECIFIED" - Default unknown service. + // "CLOUD_STORAGE" - Google Cloud Storage service. + // "BIGQUERY" - BigQuery service. + Service string `json:"service,omitempty"` + + // SourceEntry: Output only. Data Catalog entry name, if applicable. + SourceEntry string `json:"sourceEntry,omitempty"` + + // StorageProperties: Detailed properties of the underlying storage. + StorageProperties *GoogleCloudDatacatalogV1StorageProperties `json:"storageProperties,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Resource") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Resource") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1DataSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1DataSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1DataSourceConnectionSpec: Specification that +// applies to a data source connection. Valid only for entries with the +// `DATA_SOURCE_CONNECTION` type. Only one of internal specs can be set +// at the time, and cannot be changed later. +type GoogleCloudDatacatalogV1DataSourceConnectionSpec struct { + // BigqueryConnectionSpec: Output only. Fields specific to BigQuery + // connections. + BigqueryConnectionSpec *GoogleCloudDatacatalogV1BigQueryConnectionSpec `json:"bigqueryConnectionSpec,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "BigqueryConnectionSpec") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BigqueryConnectionSpec") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1DataSourceConnectionSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1DataSourceConnectionSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1DatabaseTableSpec: Specification that applies +// to a table resource. Valid only for entries with the `TABLE` type. +type GoogleCloudDatacatalogV1DatabaseTableSpec struct { + // DatabaseViewSpec: Spec what aplies to tables that are actually views. + // Not set for "real" tables. + DatabaseViewSpec *GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec `json:"databaseViewSpec,omitempty"` + + // DataplexTable: Output only. Fields specific to a Dataplex table and + // present only in the Dataplex table entries. + DataplexTable *GoogleCloudDatacatalogV1DataplexTableSpec `json:"dataplexTable,omitempty"` + + // Type: Type of this table. + // + // Possible values: + // "TABLE_TYPE_UNSPECIFIED" - Default unknown table type. + // "NATIVE" - Native table. + // "EXTERNAL" - External table. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DatabaseViewSpec") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DatabaseViewSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1DatabaseTableSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1DatabaseTableSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec: +// Specification that applies to database view. +type GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec struct { + // BaseTable: Name of a singular table this view reflects one to one. + BaseTable string `json:"baseTable,omitempty"` + + // SqlQuery: SQL query used to generate this view. + SqlQuery string `json:"sqlQuery,omitempty"` + + // ViewType: Type of this view. + // + // Possible values: + // "VIEW_TYPE_UNSPECIFIED" - Default unknown view type. + // "STANDARD_VIEW" - Standard view. + // "MATERIALIZED_VIEW" - Materialized view. + ViewType string `json:"viewType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BaseTable") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BaseTable") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1DatabaseTableSpecDatabaseViewSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1DataplexExternalTable: External table +// registered by Dataplex. Dataplex publishes data discovered from an +// asset into multiple other systems (BigQuery, DPMS) in form of tables. +// We call them "external tables". External tables are also synced into +// the Data Catalog. This message contains pointers to those external +// tables (fully qualified name, resource name et cetera) within the +// Data Catalog. +type GoogleCloudDatacatalogV1DataplexExternalTable struct { + // DataCatalogEntry: Name of the Data Catalog entry representing the + // external table. + DataCatalogEntry string `json:"dataCatalogEntry,omitempty"` + + // FullyQualifiedName: Fully qualified name (FQN) of the external table. + FullyQualifiedName string `json:"fullyQualifiedName,omitempty"` + + // GoogleCloudResource: Google Cloud resource name of the external + // table. + GoogleCloudResource string `json:"googleCloudResource,omitempty"` + + // System: Service in which the external table is registered. + // + // Possible values: + // "INTEGRATED_SYSTEM_UNSPECIFIED" - Default unknown system. + // "BIGQUERY" - BigQuery. + // "CLOUD_PUBSUB" - Cloud Pub/Sub. + // "DATAPROC_METASTORE" - Dataproc Metastore. + // "DATAPLEX" - Dataplex. + // "CLOUD_SQL" - Cloud Sql + // "LOOKER" - Looker + System string `json:"system,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataCatalogEntry") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataCatalogEntry") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1DataplexExternalTable) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1DataplexExternalTable + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1DataplexFilesetSpec: Entry specyfication for +// a Dataplex fileset. +type GoogleCloudDatacatalogV1DataplexFilesetSpec struct { + // DataplexSpec: Common Dataplex fields. + DataplexSpec *GoogleCloudDatacatalogV1DataplexSpec `json:"dataplexSpec,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataplexSpec") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataplexSpec") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1DataplexFilesetSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1DataplexFilesetSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1DataplexSpec: Common Dataplex fields. +type GoogleCloudDatacatalogV1DataplexSpec struct { + // Asset: Fully qualified resource name of an asset in Dataplex, to + // which the underlying data source (Cloud Storage bucket or BigQuery + // dataset) of the entity is attached. + Asset string `json:"asset,omitempty"` + + // CompressionFormat: Compression format of the data, e.g., zip, gzip + // etc. + CompressionFormat string `json:"compressionFormat,omitempty"` + + // DataFormat: Format of the data. + DataFormat *GoogleCloudDatacatalogV1PhysicalSchema `json:"dataFormat,omitempty"` + + // ProjectId: Project ID of the underlying Cloud Storage or BigQuery + // data. Note that this may not be the same project as the + // correspondingly Dataplex lake / zone / asset. + ProjectId string `json:"projectId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Asset") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Asset") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1DataplexSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1DataplexSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1DataplexTableSpec: Entry specification for a +// Dataplex table. +type GoogleCloudDatacatalogV1DataplexTableSpec struct { + // DataplexSpec: Common Dataplex fields. + DataplexSpec *GoogleCloudDatacatalogV1DataplexSpec `json:"dataplexSpec,omitempty"` + + // ExternalTables: List of external tables registered by Dataplex in + // other systems based on the same underlying data. External tables + // allow to query this data in those systems. + ExternalTables []*GoogleCloudDatacatalogV1DataplexExternalTable `json:"externalTables,omitempty"` + + // UserManaged: Indicates if the table schema is managed by the user or + // not. + UserManaged bool `json:"userManaged,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataplexSpec") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataplexSpec") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1DataplexTableSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1DataplexTableSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1DumpItem: Wrapper for any item that can be +// contained in the dump. +type GoogleCloudDatacatalogV1DumpItem struct { + // TaggedEntry: Entry and its tags. + TaggedEntry *GoogleCloudDatacatalogV1TaggedEntry `json:"taggedEntry,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TaggedEntry") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TaggedEntry") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1DumpItem) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1DumpItem + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1Entry: Entry metadata. A Data Catalog entry +// represents another resource in Google Cloud Platform (such as a +// BigQuery dataset or a Pub/Sub topic) or outside of it. You can use +// the `linked_resource` field in the entry resource to refer to the +// original resource ID of the source system. An entry resource contains +// resource details, for example, its schema. Additionally, you can +// attach flexible metadata to an entry in the form of a Tag. +type GoogleCloudDatacatalogV1Entry struct { + // BigqueryDateShardedSpec: Output only. Specification for a group of + // BigQuery tables with the `[prefix]YYYYMMDD` name pattern. For more + // information, see [Introduction to partitioned tables] + // (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). + BigqueryDateShardedSpec *GoogleCloudDatacatalogV1BigQueryDateShardedSpec `json:"bigqueryDateShardedSpec,omitempty"` + + // BigqueryTableSpec: Output only. Specification that applies to a + // BigQuery table. Valid only for entries with the `TABLE` type. + BigqueryTableSpec *GoogleCloudDatacatalogV1BigQueryTableSpec `json:"bigqueryTableSpec,omitempty"` + + // BusinessContext: Business Context of the entry. Not supported for + // BigQuery datasets + BusinessContext *GoogleCloudDatacatalogV1BusinessContext `json:"businessContext,omitempty"` + + // DataSource: Output only. Physical location of the entry. + DataSource *GoogleCloudDatacatalogV1DataSource `json:"dataSource,omitempty"` + + // DataSourceConnectionSpec: Specification that applies to a data source + // connection. Valid only for entries with the `DATA_SOURCE_CONNECTION` + // type. + DataSourceConnectionSpec *GoogleCloudDatacatalogV1DataSourceConnectionSpec `json:"dataSourceConnectionSpec,omitempty"` + + // DatabaseTableSpec: Specification that applies to a table resource. + // Valid only for entries with the `TABLE` or `EXPLORE` type. + DatabaseTableSpec *GoogleCloudDatacatalogV1DatabaseTableSpec `json:"databaseTableSpec,omitempty"` + + // Description: Entry description that can consist of several sentences + // or paragraphs that describe entry contents. The description must not + // contain Unicode non-characters as well as C0 and C1 control codes + // except tabs (HT), new lines (LF), carriage returns (CR), and page + // breaks (FF). The maximum size is 2000 bytes when encoded in UTF-8. + // Default value is an empty string. + Description string `json:"description,omitempty"` + + // DisplayName: Display name of an entry. The maximum size is 500 bytes + // when encoded in UTF-8. Default value is an empty string. + DisplayName string `json:"displayName,omitempty"` + + // FilesetSpec: Specification that applies to a fileset resource. Valid + // only for entries with the `FILESET` type. + FilesetSpec *GoogleCloudDatacatalogV1FilesetSpec `json:"filesetSpec,omitempty"` + + // FullyQualifiedName: Fully qualified name (FQN) of the resource. Set + // automatically for entries representing resources from synced systems. + // Settable only during creation and read-only afterwards. Can be used + // for search and lookup of the entries. FQNs take two forms: * For + // non-regionalized resources: + // `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` * For + // regionalized resources: + // `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOT + // S}` Example for a DPMS table: + // `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE + // _ID}.{TABLE_ID}` + FullyQualifiedName string `json:"fullyQualifiedName,omitempty"` + + // GcsFilesetSpec: Specification that applies to a Cloud Storage + // fileset. Valid only for entries with the `FILESET` type. + GcsFilesetSpec *GoogleCloudDatacatalogV1GcsFilesetSpec `json:"gcsFilesetSpec,omitempty"` + + // IntegratedSystem: Output only. Indicates the entry's source system + // that Data Catalog integrates with, such as BigQuery, Pub/Sub, or + // Dataproc Metastore. + // + // Possible values: + // "INTEGRATED_SYSTEM_UNSPECIFIED" - Default unknown system. + // "BIGQUERY" - BigQuery. + // "CLOUD_PUBSUB" - Cloud Pub/Sub. + // "DATAPROC_METASTORE" - Dataproc Metastore. + // "DATAPLEX" - Dataplex. + // "CLOUD_SQL" - Cloud Sql + // "LOOKER" - Looker + IntegratedSystem string `json:"integratedSystem,omitempty"` + + // Labels: Cloud labels attached to the entry. In Data Catalog, you can + // create and modify labels attached only to custom entries. Synced + // entries have unmodifiable labels that come from the source system. + Labels map[string]string `json:"labels,omitempty"` + + // LinkedResource: The resource this metadata entry refers to. For + // Google Cloud Platform resources, `linked_resource` is the [Full + // Resource Name] + // (https://cloud.google.com/apis/design/resource_names#full_resource_name). + // For example, the `linked_resource` for a table resource from BigQuery + // is: + // `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID} + // /tables/{TABLE_ID}` Output only when the entry is one of the types in + // the `EntryType` enum. For entries with a `user_specified_type`, this + // field is optional and defaults to an empty string. The resource + // string must contain only letters (a-z, A-Z), numbers (0-9), + // underscores (_), periods (.), colons (:), slashes (/), dashes (-), + // and hashes (#). The maximum size is 200 bytes when encoded in UTF-8. + LinkedResource string `json:"linkedResource,omitempty"` + + // LookerSystemSpec: Specification that applies to Looker sysstem. Only + // settable when `user_specified_system` is equal to `LOOKER` + LookerSystemSpec *GoogleCloudDatacatalogV1LookerSystemSpec `json:"lookerSystemSpec,omitempty"` + + // Name: Output only. The resource name of an entry in URL format. Note: + // The entry itself and its child resources might not be stored in the + // location specified in its name. + Name string `json:"name,omitempty"` + + // PersonalDetails: Output only. Additional information related to the + // entry. Private to the current user. + PersonalDetails *GoogleCloudDatacatalogV1PersonalDetails `json:"personalDetails,omitempty"` + + // RoutineSpec: Specification that applies to a user-defined function or + // procedure. Valid only for entries with the `ROUTINE` type. + RoutineSpec *GoogleCloudDatacatalogV1RoutineSpec `json:"routineSpec,omitempty"` + + // Schema: Schema of the entry. An entry might not have any schema + // attached to it. + Schema *GoogleCloudDatacatalogV1Schema `json:"schema,omitempty"` + + // SourceSystemTimestamps: Timestamps from the underlying resource, not + // from the Data Catalog entry. Output only when the entry has a system + // listed in the `IntegratedSystem` enum. For entries with + // `user_specified_system`, this field is optional and defaults to an + // empty timestamp. + SourceSystemTimestamps *GoogleCloudDatacatalogV1SystemTimestamps `json:"sourceSystemTimestamps,omitempty"` + + // SqlDatabaseSystemSpec: Specification that applies to a relational + // database system. Only settable when `user_specified_system` is equal + // to `SQL_DATABASE` + SqlDatabaseSystemSpec *GoogleCloudDatacatalogV1SqlDatabaseSystemSpec `json:"sqlDatabaseSystemSpec,omitempty"` + + // Type: The type of the entry. Only used for entries with types listed + // in the `EntryType` enum. Currently, only `FILESET` enum value is + // allowed. All other entries created in Data Catalog must use the + // `user_specified_type`. + // + // Possible values: + // "ENTRY_TYPE_UNSPECIFIED" - Default unknown type. + // "TABLE" - The entry type that has a GoogleSQL schema, including + // logical views. + // "MODEL" - Output only. The type of models. For more information, + // see [Supported models in BigQuery ML] + // (https://cloud.google.com/bigquery-ml/docs/introduction#supported_models_in). + // "DATA_STREAM" - An entry type for streaming entries. For example, a + // Pub/Sub topic. + // "FILESET" - An entry type for a set of files or objects. For + // example, a Cloud Storage fileset. + // "CLUSTER" - A group of servers that work together. For example, a + // Kafka cluster. + // "DATABASE" - A database. + // "DATA_SOURCE_CONNECTION" - Output only. Connection to a data + // source. For example, a BigQuery connection. + // "ROUTINE" - Output only. Routine, for example, a BigQuery routine. + // "LAKE" - A Dataplex lake. + // "ZONE" - A Dataplex zone. + // "SERVICE" - A service, for example, a Dataproc Metastore service. + // "DATABASE_SCHEMA" - Schema within a relational database. + // "DASHBOARD" - A Dashboard, for example from Looker. + // "EXPLORE" - A Looker Explore. For more information, see [Looker + // Explore API] + // (https://developers.looker.com/api/explorer/4.0/methods/LookmlModel/lookml_model_explore). + // "LOOK" - A Looker Look. For more information, see [Looker Look API] + // (https://developers.looker.com/api/explorer/4.0/methods/Look). + Type string `json:"type,omitempty"` + + // UsageSignal: Resource usage statistics. + UsageSignal *GoogleCloudDatacatalogV1UsageSignal `json:"usageSignal,omitempty"` + + // UserSpecifiedSystem: Indicates the entry's source system that Data + // Catalog doesn't automatically integrate with. The + // `user_specified_system` string has the following limitations: * Is + // case insensitive. * Must begin with a letter or underscore. * Can + // only contain letters, numbers, and underscores. * Must be at least 1 + // character and at most 64 characters long. + UserSpecifiedSystem string `json:"userSpecifiedSystem,omitempty"` + + // UserSpecifiedType: Custom entry type that doesn't match any of the + // values allowed for input and listed in the `EntryType` enum. When + // creating an entry, first check the type values in the enum. If there + // are no appropriate types for the new entry, provide a custom value, + // for example, `my_special_type`. The `user_specified_type` string has + // the following limitations: * Is case insensitive. * Must begin with a + // letter or underscore. * Can only contain letters, numbers, and + // underscores. * Must be at least 1 character and at most 64 characters + // long. + UserSpecifiedType string `json:"userSpecifiedType,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "BigqueryDateShardedSpec") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BigqueryDateShardedSpec") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1Entry) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1Entry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1EntryOverview: Entry overview fields for rich +// text descriptions of entries. +type GoogleCloudDatacatalogV1EntryOverview struct { + // Overview: Entry overview with support for rich text. The overview + // must only contain Unicode characters, and should be formatted using + // HTML. The maximum length is 10 MiB as this value holds HTML + // descriptions including encoded images. The maximum length of the text + // without images is 100 KiB. + Overview string `json:"overview,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Overview") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Overview") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1EntryOverview) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1EntryOverview + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1FilesetSpec: Specification that applies to a +// fileset. Valid only for entries with the 'FILESET' type. +type GoogleCloudDatacatalogV1FilesetSpec struct { + // DataplexFileset: Fields specific to a Dataplex fileset and present + // only in the Dataplex fileset entries. + DataplexFileset *GoogleCloudDatacatalogV1DataplexFilesetSpec `json:"dataplexFileset,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataplexFileset") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataplexFileset") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1FilesetSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1FilesetSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1GcsFileSpec: Specification of a single file +// in Cloud Storage. +type GoogleCloudDatacatalogV1GcsFileSpec struct { + // FilePath: Required. Full file path. Example: + // `gs://bucket_name/a/b.txt`. + FilePath string `json:"filePath,omitempty"` + + // GcsTimestamps: Output only. Creation, modification, and expiration + // timestamps of a Cloud Storage file. + GcsTimestamps *GoogleCloudDatacatalogV1SystemTimestamps `json:"gcsTimestamps,omitempty"` + + // SizeBytes: Output only. File size in bytes. + SizeBytes int64 `json:"sizeBytes,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "FilePath") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FilePath") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1GcsFileSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1GcsFileSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1GcsFilesetSpec: Describes a Cloud Storage +// fileset entry. +type GoogleCloudDatacatalogV1GcsFilesetSpec struct { + // FilePatterns: Required. Patterns to identify a set of files in Google + // Cloud Storage. For more information, see [Wildcard Names] + // (https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). + // Note: Currently, bucket wildcards are not supported. Examples of + // valid `file_patterns`: * `gs://bucket_name/dir/*`: matches all files + // in `bucket_name/dir` directory * `gs://bucket_name/dir/**`: matches + // all files in `bucket_name/dir` and all subdirectories * + // `gs://bucket_name/file*`: matches files prefixed by `file` in + // `bucket_name` * `gs://bucket_name/??.txt`: matches files with two + // characters followed by `.txt` in `bucket_name` * + // `gs://bucket_name/[aeiou].txt`: matches files that contain a single + // vowel character followed by `.txt` in `bucket_name` * + // `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, + // ... or `m` followed by `.txt` in `bucket_name` * + // `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that + // match the `a/*/b` pattern, such as `a/c/b`, `a/d/b` * + // `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` You + // can combine wildcards to match complex sets of files, for example: + // `gs://bucket_name/[a-m]??.j*g` + FilePatterns []string `json:"filePatterns,omitempty"` + + // SampleGcsFileSpecs: Output only. Sample files contained in this + // fileset, not all files contained in this fileset are represented + // here. + SampleGcsFileSpecs []*GoogleCloudDatacatalogV1GcsFileSpec `json:"sampleGcsFileSpecs,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FilePatterns") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FilePatterns") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1GcsFilesetSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1GcsFilesetSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1ImportEntriesMetadata: Metadata message for +// long-running operation returned by the ImportEntries. +type GoogleCloudDatacatalogV1ImportEntriesMetadata struct { + // Errors: Partial errors that are encountered during the ImportEntries + // operation. There is no guarantee that all the encountered errors are + // reported. However, if no errors are reported, it means that no errors + // were encountered. + Errors []*Status `json:"errors,omitempty"` + + // State: State of the import operation. + // + // Possible values: + // "IMPORT_STATE_UNSPECIFIED" - Default value. This value is unused. + // "IMPORT_QUEUED" - The dump with entries has been queued for import. + // "IMPORT_IN_PROGRESS" - The import of entries is in progress. + // "IMPORT_DONE" - The import of entries has been finished. + // "IMPORT_OBSOLETE" - The import of entries has been abandoned in + // favor of a newer request. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Errors") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Errors") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ImportEntriesMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ImportEntriesMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1ImportEntriesResponse: Response message for +// long-running operation returned by the ImportEntries. +type GoogleCloudDatacatalogV1ImportEntriesResponse struct { + // DeletedEntriesCount: Number of entries deleted as a result of import + // operation. + DeletedEntriesCount int64 `json:"deletedEntriesCount,omitempty,string"` + + // UpsertedEntriesCount: Cumulative number of entries created and + // entries updated as a result of import operation. + UpsertedEntriesCount int64 `json:"upsertedEntriesCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "DeletedEntriesCount") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DeletedEntriesCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1ImportEntriesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ImportEntriesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1LookerSystemSpec: Specification that applies +// to entries that are part `LOOKER` system (user_specified_type) +type GoogleCloudDatacatalogV1LookerSystemSpec struct { + // ParentInstanceDisplayName: Name of the parent Looker Instance. Empty + // if it does not exist. + ParentInstanceDisplayName string `json:"parentInstanceDisplayName,omitempty"` + + // ParentInstanceId: ID of the parent Looker Instance. Empty if it does + // not exist. Example value: `someinstance.looker.com` + ParentInstanceId string `json:"parentInstanceId,omitempty"` + + // ParentModelDisplayName: Name of the parent Model. Empty if it does + // not exist. + ParentModelDisplayName string `json:"parentModelDisplayName,omitempty"` + + // ParentModelId: ID of the parent Model. Empty if it does not exist. + ParentModelId string `json:"parentModelId,omitempty"` + + // ParentViewDisplayName: Name of the parent View. Empty if it does not + // exist. + ParentViewDisplayName string `json:"parentViewDisplayName,omitempty"` + + // ParentViewId: ID of the parent View. Empty if it does not exist. + ParentViewId string `json:"parentViewId,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ParentInstanceDisplayName") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ParentInstanceDisplayName") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1LookerSystemSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1LookerSystemSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1PersonalDetails: Entry metadata relevant only +// to the user and private to them. +type GoogleCloudDatacatalogV1PersonalDetails struct { + // StarTime: Set if the entry is starred; unset otherwise. + StarTime string `json:"starTime,omitempty"` + + // Starred: True if the entry is starred by the user; false otherwise. + Starred bool `json:"starred,omitempty"` + + // ForceSendFields is a list of field names (e.g. "StarTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "StarTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1PersonalDetails) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1PersonalDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1PhysicalSchema: Native schema used by a +// resource represented as an entry. Used by query engines for +// deserializing and parsing source data. +type GoogleCloudDatacatalogV1PhysicalSchema struct { + // Avro: Schema in Avro JSON format. + Avro *GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema `json:"avro,omitempty"` + + // Csv: Marks a CSV-encoded data source. + Csv *GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema `json:"csv,omitempty"` + + // Orc: Marks an ORC-encoded data source. + Orc *GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema `json:"orc,omitempty"` + + // Parquet: Marks a Parquet-encoded data source. + Parquet *GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema `json:"parquet,omitempty"` + + // Protobuf: Schema in protocol buffer format. + Protobuf *GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema `json:"protobuf,omitempty"` + + // Thrift: Schema in Thrift format. + Thrift *GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema `json:"thrift,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Avro") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Avro") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1PhysicalSchema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1PhysicalSchema + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema: Schema in Avro JSON +// format. +type GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema struct { + // Text: JSON source of the Avro schema. + Text string `json:"text,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Text") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Text") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1PhysicalSchemaAvroSchema + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema: Marks a CSV-encoded +// data source. +type GoogleCloudDatacatalogV1PhysicalSchemaCsvSchema struct { +} + +// GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema: Marks an ORC-encoded +// data source. +type GoogleCloudDatacatalogV1PhysicalSchemaOrcSchema struct { +} + +// GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema: Marks a +// Parquet-encoded data source. +type GoogleCloudDatacatalogV1PhysicalSchemaParquetSchema struct { +} + +// GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema: Schema in +// protocol buffer format. +type GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema struct { + // Text: Protocol buffer source of the schema. + Text string `json:"text,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Text") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Text") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1PhysicalSchemaProtobufSchema + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema: Schema in Thrift +// format. +type GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema struct { + // Text: Thrift IDL source of the schema. + Text string `json:"text,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Text") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Text") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1PhysicalSchemaThriftSchema + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1RoutineSpec: Specification that applies to a +// routine. Valid only for entries with the `ROUTINE` type. +type GoogleCloudDatacatalogV1RoutineSpec struct { + // BigqueryRoutineSpec: Fields specific for BigQuery routines. + BigqueryRoutineSpec *GoogleCloudDatacatalogV1BigQueryRoutineSpec `json:"bigqueryRoutineSpec,omitempty"` + + // DefinitionBody: The body of the routine. + DefinitionBody string `json:"definitionBody,omitempty"` + + // Language: The language the routine is written in. The exact value + // depends on the source system. For BigQuery routines, possible values + // are: * `SQL` * `JAVASCRIPT` + Language string `json:"language,omitempty"` + + // ReturnType: Return type of the argument. The exact value depends on + // the source system and the language. + ReturnType string `json:"returnType,omitempty"` + + // RoutineArguments: Arguments of the routine. + RoutineArguments []*GoogleCloudDatacatalogV1RoutineSpecArgument `json:"routineArguments,omitempty"` + + // RoutineType: The type of the routine. + // + // Possible values: + // "ROUTINE_TYPE_UNSPECIFIED" - Unspecified type. + // "SCALAR_FUNCTION" - Non-builtin permanent scalar function. + // "PROCEDURE" - Stored procedure. + RoutineType string `json:"routineType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BigqueryRoutineSpec") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BigqueryRoutineSpec") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1RoutineSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1RoutineSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1RoutineSpecArgument: Input or output argument +// of a function or stored procedure. +type GoogleCloudDatacatalogV1RoutineSpecArgument struct { + // Mode: Specifies whether the argument is input or output. + // + // Possible values: + // "MODE_UNSPECIFIED" - Unspecified mode. + // "IN" - The argument is input-only. + // "OUT" - The argument is output-only. + // "INOUT" - The argument is both an input and an output. + Mode string `json:"mode,omitempty"` + + // Name: The name of the argument. A return argument of a function might + // not have a name. + Name string `json:"name,omitempty"` + + // Type: Type of the argument. The exact value depends on the source + // system and the language. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Mode") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Mode") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1RoutineSpecArgument) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1RoutineSpecArgument + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1Schema: Represents a schema, for example, a +// BigQuery, GoogleSQL, or Avro schema. +type GoogleCloudDatacatalogV1Schema struct { + // Columns: The unified GoogleSQL-like schema of columns. The overall + // maximum number of columns and nested columns is 10,000. The maximum + // nested depth is 15 levels. + Columns []*GoogleCloudDatacatalogV1ColumnSchema `json:"columns,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Columns") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Columns") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1Schema) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1Schema + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1SqlDatabaseSystemSpec: Specification that +// applies to entries that are part `SQL_DATABASE` system +// (user_specified_type) +type GoogleCloudDatacatalogV1SqlDatabaseSystemSpec struct { + // DatabaseVersion: Version of the database engine. + DatabaseVersion string `json:"databaseVersion,omitempty"` + + // InstanceHost: Host of the SQL database enum InstanceHost { UNDEFINED + // = 0; SELF_HOSTED = 1; CLOUD_SQL = 2; AMAZON_RDS = 3; AZURE_SQL = 4; } + // Host of the enclousing database instance. + InstanceHost string `json:"instanceHost,omitempty"` + + // SqlEngine: SQL Database Engine. enum SqlEngine { UNDEFINED = 0; + // MY_SQL = 1; POSTGRE_SQL = 2; SQL_SERVER = 3; } Engine of the + // enclosing database instance. + SqlEngine string `json:"sqlEngine,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DatabaseVersion") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DatabaseVersion") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1SqlDatabaseSystemSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1SqlDatabaseSystemSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1StorageProperties: Details the properties of +// the underlying storage. +type GoogleCloudDatacatalogV1StorageProperties struct { + // FilePattern: Patterns to identify a set of files for this fileset. + // Examples of a valid `file_pattern`: * `gs://bucket_name/dir/*`: + // matches all files in the `bucket_name/dir` directory * + // `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir` + // and all subdirectories recursively * `gs://bucket_name/file*`: + // matches files prefixed by `file` in `bucket_name` * + // `gs://bucket_name/??.txt`: matches files with two characters followed + // by `.txt` in `bucket_name` * `gs://bucket_name/[aeiou].txt`: matches + // files that contain a single vowel character followed by `.txt` in + // `bucket_name` * `gs://bucket_name/[a-m].txt`: matches files that + // contain `a`, `b`, ... or `m` followed by `.txt` in `bucket_name` * + // `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that + // match the `a/*/b` pattern, such as `a/c/b`, `a/d/b` * + // `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` + FilePattern []string `json:"filePattern,omitempty"` + + // FileType: File type in MIME format, for example, `text/plain`. + FileType string `json:"fileType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FilePattern") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FilePattern") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1StorageProperties) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1StorageProperties + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1SystemTimestamps: Timestamps associated with +// this resource in a particular system. +type GoogleCloudDatacatalogV1SystemTimestamps struct { + // CreateTime: Creation timestamp of the resource within the given + // system. + CreateTime string `json:"createTime,omitempty"` + + // ExpireTime: Output only. Expiration timestamp of the resource within + // the given system. Currently only applicable to BigQuery resources. + ExpireTime string `json:"expireTime,omitempty"` + + // UpdateTime: Timestamp of the last modification of the resource or its + // metadata within a given system. Note: Depending on the source system, + // not every modification updates this timestamp. For example, BigQuery + // timestamps every metadata modification but not data or permission + // changes. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1SystemTimestamps) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1SystemTimestamps + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1TableSpec: Normal BigQuery table +// specification. +type GoogleCloudDatacatalogV1TableSpec struct { + // GroupedEntry: Output only. If the table is date-sharded, that is, it + // matches the `[prefix]YYYYMMDD` name pattern, this field is the Data + // Catalog resource name of the date-sharded grouped entry. For example: + // `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_I + // D}/entries/{ENTRY_ID}`. Otherwise, `grouped_entry` is empty. + GroupedEntry string `json:"groupedEntry,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GroupedEntry") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GroupedEntry") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1TableSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1TableSpec + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1Tag: Tags contain custom metadata and are +// attached to Data Catalog resources. Tags conform with the +// specification of their tag template. See Data Catalog IAM +// (https://cloud.google.com/data-catalog/docs/concepts/iam) for +// information on the permissions needed to create or view tags. +type GoogleCloudDatacatalogV1Tag struct { + // Column: Resources like entry can have schemas associated with them. + // This scope allows you to attach tags to an individual column based on + // that schema. To attach a tag to a nested column, separate column + // names with a dot (`.`). Example: `column.nested_column`. + Column string `json:"column,omitempty"` + + // Fields: Required. Maps the ID of a tag field to its value and + // additional information about that field. Tag template defines valid + // field IDs. A tag must have at least 1 field and at most 500 fields. + Fields map[string]GoogleCloudDatacatalogV1TagField `json:"fields,omitempty"` + + // Name: The resource name of the tag in URL format where tag ID is a + // system-generated identifier. Note: The tag itself might not be stored + // in the location specified in its name. + Name string `json:"name,omitempty"` + + // Template: Required. The resource name of the tag template this tag + // uses. Example: + // `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE + // _ID}` This field cannot be modified after creation. + Template string `json:"template,omitempty"` + + // TemplateDisplayName: Output only. The display name of the tag + // template. + TemplateDisplayName string `json:"templateDisplayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Column") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Column") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1Tag) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1Tag + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1TagField: Contains the value and additional +// information on a field within a Tag. +type GoogleCloudDatacatalogV1TagField struct { + // BoolValue: The value of a tag field with a boolean type. + BoolValue bool `json:"boolValue,omitempty"` + + // DisplayName: Output only. The display name of this field. + DisplayName string `json:"displayName,omitempty"` + + // DoubleValue: The value of a tag field with a double type. + DoubleValue float64 `json:"doubleValue,omitempty"` + + // EnumValue: The value of a tag field with an enum type. This value + // must be one of the allowed values listed in this enum. + EnumValue *GoogleCloudDatacatalogV1TagFieldEnumValue `json:"enumValue,omitempty"` + + // Order: Output only. The order of this field with respect to other + // fields in this tag. Can be set by Tag. For example, a higher value + // can indicate a more important field. The value can be negative. + // Multiple fields can have the same order, and field orders within a + // tag don't have to be sequential. + Order int64 `json:"order,omitempty"` + + // RichtextValue: The value of a tag field with a rich text type. The + // maximum length is 10 MiB as this value holds HTML descriptions + // including encoded images. The maximum length of the text without + // images is 100 KiB. + RichtextValue string `json:"richtextValue,omitempty"` + + // StringValue: The value of a tag field with a string type. The maximum + // length is 2000 UTF-8 characters. + StringValue string `json:"stringValue,omitempty"` + + // TimestampValue: The value of a tag field with a timestamp type. + TimestampValue string `json:"timestampValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BoolValue") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BoolValue") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1TagField) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1TagField + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDatacatalogV1TagField) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDatacatalogV1TagField + var s1 struct { + DoubleValue gensupport.JSONFloat64 `json:"doubleValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DoubleValue = float64(s1.DoubleValue) + return nil +} + +// GoogleCloudDatacatalogV1TagFieldEnumValue: An enum value. +type GoogleCloudDatacatalogV1TagFieldEnumValue struct { + // DisplayName: The display name of the enum value. + DisplayName string `json:"displayName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1TagFieldEnumValue) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1TagFieldEnumValue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1TaggedEntry: Wrapper containing Entry and +// information about Tags that should and should not be attached to it. +type GoogleCloudDatacatalogV1TaggedEntry struct { + // AbsentTags: Tags that should be deleted from the Data Catalog. Caller + // should populate template name and column only. + AbsentTags []*GoogleCloudDatacatalogV1Tag `json:"absentTags,omitempty"` + + // PresentTags: Tags that should be ingested into the Data Catalog. + // Caller should populate template name, column and fields. + PresentTags []*GoogleCloudDatacatalogV1Tag `json:"presentTags,omitempty"` + + // V1Entry: Non-encrypted Data Catalog v1 Entry. + V1Entry *GoogleCloudDatacatalogV1Entry `json:"v1Entry,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AbsentTags") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AbsentTags") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1TaggedEntry) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1TaggedEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1UsageSignal: The set of all usage signals +// that Data Catalog stores. Note: Usually, these signals are updated +// daily. In rare cases, an update may fail but will be performed again +// on the next day. +type GoogleCloudDatacatalogV1UsageSignal struct { + // CommonUsageWithinTimeRange: Common usage statistics over each of the + // predefined time ranges. Supported time ranges are `{"24H", "7D", + // "30D", "Lifetime"}`. + CommonUsageWithinTimeRange map[string]GoogleCloudDatacatalogV1CommonUsageStats `json:"commonUsageWithinTimeRange,omitempty"` + + // FavoriteCount: Favorite count in the source system. + FavoriteCount int64 `json:"favoriteCount,omitempty,string"` + + // UpdateTime: The end timestamp of the duration of usage statistics. + UpdateTime string `json:"updateTime,omitempty"` + + // UsageWithinTimeRange: Output only. BigQuery usage statistics over + // each of the predefined time ranges. Supported time ranges are + // `{"24H", "7D", "30D"}`. + UsageWithinTimeRange map[string]GoogleCloudDatacatalogV1UsageStats `json:"usageWithinTimeRange,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CommonUsageWithinTimeRange") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "CommonUsageWithinTimeRange") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1UsageSignal) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1UsageSignal + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogV1UsageStats: Detailed statistics on the +// entry's usage. Usage statistics have the following limitations: - +// Only BigQuery tables have them. - They only include BigQuery query +// jobs. - They might be underestimated because wildcard table +// references are not yet counted. For more information, see [Querying +// multiple tables using a wildcard table] +// (https://cloud.google.com/bigquery/docs/querying-wildcard-tables) +type GoogleCloudDatacatalogV1UsageStats struct { + // TotalCancellations: The number of cancelled attempts to use the + // underlying entry. + TotalCancellations float64 `json:"totalCancellations,omitempty"` + + // TotalCompletions: The number of successful uses of the underlying + // entry. + TotalCompletions float64 `json:"totalCompletions,omitempty"` + + // TotalExecutionTimeForCompletionsMillis: Total time spent only on + // successful uses, in milliseconds. + TotalExecutionTimeForCompletionsMillis float64 `json:"totalExecutionTimeForCompletionsMillis,omitempty"` + + // TotalFailures: The number of failed attempts to use the underlying + // entry. + TotalFailures float64 `json:"totalFailures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "TotalCancellations") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "TotalCancellations") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogV1UsageStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1UsageStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDatacatalogV1UsageStats) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDatacatalogV1UsageStats + var s1 struct { + TotalCancellations gensupport.JSONFloat64 `json:"totalCancellations"` + TotalCompletions gensupport.JSONFloat64 `json:"totalCompletions"` + TotalExecutionTimeForCompletionsMillis gensupport.JSONFloat64 `json:"totalExecutionTimeForCompletionsMillis"` + TotalFailures gensupport.JSONFloat64 `json:"totalFailures"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.TotalCancellations = float64(s1.TotalCancellations) + s.TotalCompletions = float64(s1.TotalCompletions) + s.TotalExecutionTimeForCompletionsMillis = float64(s1.TotalExecutionTimeForCompletionsMillis) + s.TotalFailures = float64(s1.TotalFailures) + return nil +} + +// GoogleCloudDatacatalogV1ViewSpec: Table view specification. +type GoogleCloudDatacatalogV1ViewSpec struct { + // ViewQuery: Output only. The query that defines the table view. + ViewQuery string `json:"viewQuery,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ViewQuery") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ViewQuery") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *GoogleCloudDatacatalogV1ReconcileTagsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDatacatalogV1ReconcileTagsResponse +func (s *GoogleCloudDatacatalogV1ViewSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogV1ViewSpec raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } diff --git a/datalineage/v1/datalineage-api.json b/datalineage/v1/datalineage-api.json new file mode 100644 index 00000000000..2df5ca42679 --- /dev/null +++ b/datalineage/v1/datalineage-api.json @@ -0,0 +1,1294 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." + } + } + } + }, + "basePath": "", + "baseUrl": "https://datalineage.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Datalineage", + "description": "", + "discoveryVersion": "v1", + "documentationLink": "https://cloud.google.com/data-catalog", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "datalineage:v1", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://datalineage.mtls.googleapis.com/", + "name": "datalineage", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "methods": { + "batchSearchLinkProcesses": { + "description": "Retrieve information about LineageProcesses associated with specific links. LineageProcesses are transformation pipelines that result in data flowing from **source** to **target** assets. Links between assets represent this operation. If you have specific link names, you can use this method to verify which LineageProcesses contribute to creating those links. See the SearchLinks method for more information on how to retrieve link name. You can retrieve the LineageProcess information in every project where you have the `datalineage.events.get` permission. The project provided in the URL is used for Billing and Quota.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:batchSearchLinkProcesses", + "httpMethod": "POST", + "id": "datalineage.projects.locations.batchSearchLinkProcesses", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The project and location where you want to search.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:batchSearchLinkProcesses", + "request": { + "$ref": "GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest" + }, + "response": { + "$ref": "GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "searchLinks": { + "description": "Retrieve a list of links connected to a specific asset. Links represent the data flow between **source** (upstream) and **target** (downstream) assets in transformation pipelines. Links are stored in the same project as the Lineage Events that create them. You can retrieve links in every project where you have the `datalineage.events.get` permission. The project provided in the URL is used for Billing and Quota.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:searchLinks", + "httpMethod": "POST", + "id": "datalineage.projects.locations.searchLinks", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The project and location you want search in.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}:searchLinks", + "request": { + "$ref": "GoogleCloudDatacatalogLineageV1SearchLinksRequest" + }, + "response": { + "$ref": "GoogleCloudDatacatalogLineageV1SearchLinksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "datalineage.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "GoogleLongrunningCancelOperationRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "datalineage.projects.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "datalineage.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "datalineage.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "processes": { + "methods": { + "create": { + "description": "Creates a new process.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes", + "httpMethod": "POST", + "id": "datalineage.projects.locations.processes.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The name of the project and its location that should own the process.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is idempotent only if a `request_id` is provided.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/processes", + "request": { + "$ref": "GoogleCloudDatacatalogLineageV1Process" + }, + "response": { + "$ref": "GoogleCloudDatacatalogLineageV1Process" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the process with the specified name.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}", + "httpMethod": "DELETE", + "id": "datalineage.projects.locations.processes.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "If set to true and the process is not found, the request succeeds but the server doesn't perform any actions.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the process to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the details of the specified process.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}", + "httpMethod": "GET", + "id": "datalineage.projects.locations.processes.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the process to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudDatacatalogLineageV1Process" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List processes in the given project and location. List order is descending by insertion time.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes", + "httpMethod": "GET", + "id": "datalineage.projects.locations.processes.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of processes to return. The service may return fewer than this value. If unspecified, at most 50 processes are returned. The maximum value is 100; values greater than 100 are cut to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The page token received from a previous `ListProcesses` call. Specify it to get the next page. When paginating, all other parameters specified in this call must match the parameters of the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the project and its location that owns this collection of processes.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/processes", + "response": { + "$ref": "GoogleCloudDatacatalogLineageV1ListProcessesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a process.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}", + "httpMethod": "PATCH", + "id": "datalineage.projects.locations.processes.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "If set to true and the process is not found, the request inserts it.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Immutable. The resource name of the lineage process. Format: `projects/{project}/locations/{location}/processes/{process}`. Can be specified or auto-assigned. {process} must be not longer than 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The list of fields to update. Currently not used. The whole message is updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudDatacatalogLineageV1Process" + }, + "response": { + "$ref": "GoogleCloudDatacatalogLineageV1Process" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "runs": { + "methods": { + "create": { + "description": "Creates a new run.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs", + "httpMethod": "POST", + "id": "datalineage.projects.locations.processes.runs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The name of the process that should own the run.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is idempotent only if a `request_id` is provided.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/runs", + "request": { + "$ref": "GoogleCloudDatacatalogLineageV1Run" + }, + "response": { + "$ref": "GoogleCloudDatacatalogLineageV1Run" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the run with the specified name.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}", + "httpMethod": "DELETE", + "id": "datalineage.projects.locations.processes.runs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "If set to true and the run is not found, the request succeeds but the server doesn't perform any actions.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the run to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the details of the specified run.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}", + "httpMethod": "GET", + "id": "datalineage.projects.locations.processes.runs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the run to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudDatacatalogLineageV1Run" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists runs in the given project and location. List order is descending by `start_time`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs", + "httpMethod": "GET", + "id": "datalineage.projects.locations.processes.runs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of runs to return. The service may return fewer than this value. If unspecified, at most 50 runs are returned. The maximum value is 100; values greater than 100 are cut to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The page token received from a previous `ListRuns` call. Specify it to get the next page. When paginating, all other parameters specified in this call must match the parameters of the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of process that owns this collection of runs.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/runs", + "response": { + "$ref": "GoogleCloudDatacatalogLineageV1ListRunsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a run.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}", + "httpMethod": "PATCH", + "id": "datalineage.projects.locations.processes.runs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "If set to true and the run is not found, the request creates it.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Immutable. The resource name of the run. Format: `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. Can be specified or auto-assigned. {run} must be not longer than 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "The list of fields to update. Currently not used. The whole message is updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudDatacatalogLineageV1Run" + }, + "response": { + "$ref": "GoogleCloudDatacatalogLineageV1Run" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "lineageEvents": { + "methods": { + "create": { + "description": "Creates a new lineage event.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}/lineageEvents", + "httpMethod": "POST", + "id": "datalineage.projects.locations.processes.runs.lineageEvents.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The name of the run that should own the lineage event.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is idempotent only if a `request_id` is provided.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/lineageEvents", + "request": { + "$ref": "GoogleCloudDatacatalogLineageV1LineageEvent" + }, + "response": { + "$ref": "GoogleCloudDatacatalogLineageV1LineageEvent" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the lineage event with the specified name.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}/lineageEvents/{lineageEventsId}", + "httpMethod": "DELETE", + "id": "datalineage.projects.locations.processes.runs.lineageEvents.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "If set to true and the lineage event is not found, the request succeeds but the server doesn't perform any actions.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the lineage event to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+/lineageEvents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a specified lineage event.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}/lineageEvents/{lineageEventsId}", + "httpMethod": "GET", + "id": "datalineage.projects.locations.processes.runs.lineageEvents.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the lineage event to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+/lineageEvents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudDatacatalogLineageV1LineageEvent" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists lineage events in the given project and location. The list order is not defined.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}/lineageEvents", + "httpMethod": "GET", + "id": "datalineage.projects.locations.processes.runs.lineageEvents.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of lineage events to return. The service may return fewer events than this value. If unspecified, at most 50 events are returned. The maximum value is 100; values greater than 100 are cut to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The page token received from a previous `ListLineageEvents` call. Specify it to get the next page. When paginating, all other parameters specified in this call must match the parameters of the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the run that owns the collection of lineage events to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/lineageEvents", + "response": { + "$ref": "GoogleCloudDatacatalogLineageV1ListLineageEventsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + } + } + } + } + }, + "revision": "20230307", + "rootUrl": "https://datalineage.googleapis.com/", + "schemas": { + "GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest": { + "description": "Request message for BatchSearchLinkProcesses.", + "id": "GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest", + "properties": { + "links": { + "description": "Required. An array of links to check for their associated LineageProcesses. The maximum number of items in this array is 100. If the request contains more than 100 links, it returns the `INVALID_ARGUMENT` error. Format: `projects/{project}/locations/{location}/links/{link}`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "pageSize": { + "description": "The maximum number of processes to return in a single page of the response. A page may contain fewer results than this value.", + "format": "int32", + "type": "integer" + }, + "pageToken": { + "description": "The page token received from a previous `BatchSearchLinkProcesses` call. Use it to get the next page. When requesting subsequent pages of a response, remember that all parameters must match the values you provided in the original request.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse": { + "description": "Response message for BatchSearchLinkProcesses.", + "id": "GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse", + "properties": { + "nextPageToken": { + "description": "The token to specify as `page_token` in the subsequent call to get the next page. Omitted if there are no more pages in the response.", + "type": "string" + }, + "processLinks": { + "description": "An array of processes associated with the specified links.", + "items": { + "$ref": "GoogleCloudDatacatalogLineageV1ProcessLinks" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1EntityReference": { + "description": "The soft reference to everything you can attach a lineage event to.", + "id": "GoogleCloudDatacatalogLineageV1EntityReference", + "properties": { + "fullyQualifiedName": { + "description": "Required. Fully Qualified Name of the entity. Useful for referencing entities that aren't represented as Google Cloud resources, for example, tables in Dataproc Metastore API. Examples: * `bigquery:dataset.project_id.dataset_id` * `bigquery:table.project_id.dataset_id.table_id` * `pubsub:project_id.topic_id` * `dataproc_metastore:projectId.locationId.instanceId.databaseId.tableId`", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1EventLink": { + "description": "A lineage between source and target entities.", + "id": "GoogleCloudDatacatalogLineageV1EventLink", + "properties": { + "source": { + "$ref": "GoogleCloudDatacatalogLineageV1EntityReference", + "description": "Required. Reference to the source entity" + }, + "target": { + "$ref": "GoogleCloudDatacatalogLineageV1EntityReference", + "description": "Required. Reference to the target entity" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1LineageEvent": { + "description": "A lineage event represents an operation on assets. Within the operation, the data flows from the source to the target defined in the links field.", + "id": "GoogleCloudDatacatalogLineageV1LineageEvent", + "properties": { + "endTime": { + "description": "Optional. The end of the transformation which resulted in this lineage event. For streaming scenarios, it should be the end of the period from which the lineage is being reported.", + "format": "google-datetime", + "type": "string" + }, + "links": { + "description": "Optional. List of source-target pairs. Can't contain more than 100 tuples.", + "items": { + "$ref": "GoogleCloudDatacatalogLineageV1EventLink" + }, + "type": "array" + }, + "name": { + "description": "Immutable. The resource name of the lineage event. Format: `projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}`. Can be specified or auto-assigned. {lineage_event} must be not longer than 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.`", + "type": "string" + }, + "startTime": { + "description": "Optional. The beginning of the transformation which resulted in this lineage event. For streaming scenarios, it should be the beginning of the period from which the lineage is being reported.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1Link": { + "description": "Links represent the data flow between **source** (upstream) and **target** (downstream) assets in transformation pipelines. Links are created when LineageEvents record data transformation between related assets.", + "id": "GoogleCloudDatacatalogLineageV1Link", + "properties": { + "endTime": { + "description": "The end of the last event establishing this link.", + "format": "google-datetime", + "type": "string" + }, + "name": { + "description": "Output only. Immutable. The name of the link. Format: `projects/{project}/locations/{location}/links/{link}`.", + "readOnly": true, + "type": "string" + }, + "source": { + "$ref": "GoogleCloudDatacatalogLineageV1EntityReference", + "description": "The pointer to the entity that is the **source** of this link." + }, + "startTime": { + "description": "The start of the first event establishing this link.", + "format": "google-datetime", + "type": "string" + }, + "target": { + "$ref": "GoogleCloudDatacatalogLineageV1EntityReference", + "description": "The pointer to the entity that is the **target** of this link." + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1ListLineageEventsResponse": { + "description": "Response message for ListLineageEvents.", + "id": "GoogleCloudDatacatalogLineageV1ListLineageEventsResponse", + "properties": { + "lineageEvents": { + "description": "Lineage events from the specified project and location.", + "items": { + "$ref": "GoogleCloudDatacatalogLineageV1LineageEvent" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The token to specify as `page_token` in the next call to get the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1ListProcessesResponse": { + "description": "Response message for ListProcesses.", + "id": "GoogleCloudDatacatalogLineageV1ListProcessesResponse", + "properties": { + "nextPageToken": { + "description": "The token to specify as `page_token` in the next call to get the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "processes": { + "description": "The processes from the specified project and location.", + "items": { + "$ref": "GoogleCloudDatacatalogLineageV1Process" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1ListRunsResponse": { + "description": "Response message for ListRuns.", + "id": "GoogleCloudDatacatalogLineageV1ListRunsResponse", + "properties": { + "nextPageToken": { + "description": "The token to specify as `page_token` in the next call to get the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "runs": { + "description": "The runs from the specified project and location.", + "items": { + "$ref": "GoogleCloudDatacatalogLineageV1Run" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1OperationMetadata": { + "description": "Metadata describing the operation.", + "id": "GoogleCloudDatacatalogLineageV1OperationMetadata", + "properties": { + "createTime": { + "description": "Output only. The timestamp of the operation submission to the server.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The timestamp of the operation termination, regardless of its success. This field is unset if the operation is still ongoing.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "operationType": { + "description": "Output only. The type of the operation being performed.", + "enum": [ + "TYPE_UNSPECIFIED", + "DELETE" + ], + "enumDescriptions": [ + "Unused.", + "The resource deletion operation." + ], + "readOnly": true, + "type": "string" + }, + "resource": { + "description": "Output only. The [relative name] (https://cloud.google.com//apis/design/resource_names#relative_resource_name) of the resource being operated on.", + "readOnly": true, + "type": "string" + }, + "resourceUuid": { + "description": "Output only. The UUID of the resource being operated on.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The current operation state.", + "enum": [ + "STATE_UNSPECIFIED", + "PENDING", + "RUNNING", + "SUCCEEDED", + "FAILED" + ], + "enumDescriptions": [ + "Unused.", + "The operation has been created but is not yet started.", + "The operation is underway.", + "The operation completed successfully.", + "The operation is no longer running and did not succeed." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1Origin": { + "description": "Origin of a process.", + "id": "GoogleCloudDatacatalogLineageV1Origin", + "properties": { + "name": { + "description": "If the source_type isn't CUSTOM, the value of this field should be a Google Cloud resource name of the system, which reports lineage. The project and location parts of the resource name must match the project and location of the lineage resource being created. Examples: - `{source_type: COMPOSER, name: \"projects/foo/locations/us/environments/bar\"}` - `{source_type: BIGQUERY, name: \"projects/foo/locations/eu\"}` - `{source_type: CUSTOM, name: \"myCustomIntegration\"}`", + "type": "string" + }, + "sourceType": { + "description": "Type of the source.", + "enum": [ + "SOURCE_TYPE_UNSPECIFIED", + "CUSTOM", + "BIGQUERY", + "DATA_FUSION", + "COMPOSER", + "LOOKER_STUDIO", + "DATAPROC" + ], + "enumDescriptions": [ + "Source is Unspecified", + "A custom source", + "BigQuery", + "Data Fusion", + "Composer", + "Looker Studio", + "Dataproc" + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1Process": { + "description": "A process is the definition of a data transformation operation.", + "id": "GoogleCloudDatacatalogLineageV1Process", + "properties": { + "attributes": { + "additionalProperties": { + "type": "any" + }, + "description": "Optional. The attributes of the process. Should only be used for the purpose of non-semantic management (classifying, describing or labeling the process). Up to 100 attributes are allowed.", + "type": "object" + }, + "displayName": { + "description": "Optional. A human-readable name you can set to display in a user interface. Must be not longer than 200 characters and only contain UTF-8 letters or numbers, spaces or characters like `_-:\u0026.`", + "type": "string" + }, + "name": { + "description": "Immutable. The resource name of the lineage process. Format: `projects/{project}/locations/{location}/processes/{process}`. Can be specified or auto-assigned. {process} must be not longer than 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.`", + "type": "string" + }, + "origin": { + "$ref": "GoogleCloudDatacatalogLineageV1Origin", + "description": "Optional. The origin of this process and its runs and lineage events." + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1ProcessLinkInfo": { + "description": "Link details.", + "id": "GoogleCloudDatacatalogLineageV1ProcessLinkInfo", + "properties": { + "endTime": { + "description": "The end of the last event establishing this link-process tuple.", + "format": "google-datetime", + "type": "string" + }, + "link": { + "description": "The name of the link in the format of `projects/{project}/locations/{location}/links/{link}`.", + "type": "string" + }, + "startTime": { + "description": "The start of the first event establishing this link-process tuple.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1ProcessLinks": { + "description": "Links associated with a specific process.", + "id": "GoogleCloudDatacatalogLineageV1ProcessLinks", + "properties": { + "links": { + "description": "An array containing link details objects of the links provided in the original request. A single process can result in creating multiple links. If any of the links you provide in the request are created by the same process, they all are included in this array.", + "items": { + "$ref": "GoogleCloudDatacatalogLineageV1ProcessLinkInfo" + }, + "type": "array" + }, + "process": { + "description": "The process name in the format of `projects/{project}/locations/{location}/processes/{process}`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1Run": { + "description": "A lineage run represents an execution of a process that creates lineage events.", + "id": "GoogleCloudDatacatalogLineageV1Run", + "properties": { + "attributes": { + "additionalProperties": { + "type": "any" + }, + "description": "Optional. The attributes of the run. Should only be used for the purpose of non-semantic management (classifying, describing or labeling the run). Up to 100 attributes are allowed.", + "type": "object" + }, + "displayName": { + "description": "Optional. A human-readable name you can set to display in a user interface. Must be not longer than 1024 characters and only contain UTF-8 letters or numbers, spaces or characters like `_-:\u0026.`", + "type": "string" + }, + "endTime": { + "description": "Optional. The timestamp of the end of the run.", + "format": "google-datetime", + "type": "string" + }, + "name": { + "description": "Immutable. The resource name of the run. Format: `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. Can be specified or auto-assigned. {run} must be not longer than 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.`", + "type": "string" + }, + "startTime": { + "description": "Required. The timestamp of the start of the run.", + "format": "google-datetime", + "type": "string" + }, + "state": { + "description": "Required. The state of the run.", + "enum": [ + "UNKNOWN", + "STARTED", + "COMPLETED", + "FAILED", + "ABORTED" + ], + "enumDescriptions": [ + "The state is unknown. The true state may be any of the below or a different state that is not supported here explicitly.", + "The run is still executing.", + "The run completed.", + "The run failed.", + "The run aborted." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1SearchLinksRequest": { + "description": "Request message for SearchLinks.", + "id": "GoogleCloudDatacatalogLineageV1SearchLinksRequest", + "properties": { + "pageSize": { + "description": "Optional. The maximum number of links to return in a single page of the response. A page may contain fewer links than this value. If unspecified, at most 10 links are returned. Maximum value is 100; values greater than 100 are reduced to 100.", + "format": "int32", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The page token received from a previous `SearchLinksRequest` call. Use it to get the next page. When requesting subsequent pages of a response, remember that all parameters must match the values you provided in the original request.", + "type": "string" + }, + "source": { + "$ref": "GoogleCloudDatacatalogLineageV1EntityReference", + "description": "Optional. Send asset information in the **source** field to retrieve all links that lead from the specified asset to downstream assets." + }, + "target": { + "$ref": "GoogleCloudDatacatalogLineageV1EntityReference", + "description": "Optional. Send asset information in the **target** field to retrieve all links that lead from upstream assets to the specified asset." + } + }, + "type": "object" + }, + "GoogleCloudDatacatalogLineageV1SearchLinksResponse": { + "description": "Response message for SearchLinks.", + "id": "GoogleCloudDatacatalogLineageV1SearchLinksResponse", + "properties": { + "links": { + "description": "The list of links for a given asset. Can be empty if the asset has no relations of requested type (source or target).", + "items": { + "$ref": "GoogleCloudDatacatalogLineageV1Link" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The token to specify as `page_token` in the subsequent call to get the next page. Omitted if there are no more pages in the response.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleLongrunningCancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "GoogleLongrunningCancelOperationRequest", + "properties": {}, + "type": "object" + }, + "GoogleLongrunningListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "GoogleLongrunningListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "GoogleLongrunningOperation" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleLongrunningOperation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "GoogleLongrunningOperation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "GoogleRpcStatus", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleProtobufEmpty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "GoogleProtobufEmpty", + "properties": {}, + "type": "object" + }, + "GoogleRpcStatus": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "GoogleRpcStatus", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Data Lineage API", + "version": "v1", + "version_module": true +} \ No newline at end of file diff --git a/datalineage/v1/datalineage-gen.go b/datalineage/v1/datalineage-gen.go new file mode 100644 index 00000000000..cf242f53d8d --- /dev/null +++ b/datalineage/v1/datalineage-gen.go @@ -0,0 +1,4400 @@ +// Copyright 2023 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package datalineage provides access to the Data Lineage API. +// +// For product documentation, see: https://cloud.google.com/data-catalog +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/datalineage/v1" +// ... +// ctx := context.Background() +// datalineageService, err := datalineage.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for authentication. +// +// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// # Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey: +// +// datalineageService, err := datalineage.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// datalineageService, err := datalineage.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See https://godoc.org/google.golang.org/api/option/ for details on options. +package datalineage // import "google.golang.org/api/datalineage/v1" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint + +const apiId = "datalineage:v1" +const apiName = "datalineage" +const apiVersion = "v1" +const basePath = "https://datalineage.googleapis.com/" +const mtlsBasePath = "https://datalineage.mtls.googleapis.com/" + +// OAuth2 scopes used by this API. +const ( + // See, edit, configure, and delete your Google Cloud data and see the + // email address for your Google Account. + CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform" +) + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + scopesOption := internaloption.WithDefaultScopes( + "https://www.googleapis.com/auth/cloud-platform", + ) + // NOTE: prepend, so we don't override user-specified scopes. + opts = append([]option.ClientOption{scopesOption}, opts...) + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Projects = NewProjectsService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Projects *ProjectsService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewProjectsService(s *Service) *ProjectsService { + rs := &ProjectsService{s: s} + rs.Locations = NewProjectsLocationsService(s) + return rs +} + +type ProjectsService struct { + s *Service + + Locations *ProjectsLocationsService +} + +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.Operations = NewProjectsLocationsOperationsService(s) + rs.Processes = NewProjectsLocationsProcessesService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + Operations *ProjectsLocationsOperationsService + + Processes *ProjectsLocationsProcessesService +} + +func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} + return rs +} + +type ProjectsLocationsOperationsService struct { + s *Service +} + +func NewProjectsLocationsProcessesService(s *Service) *ProjectsLocationsProcessesService { + rs := &ProjectsLocationsProcessesService{s: s} + rs.Runs = NewProjectsLocationsProcessesRunsService(s) + return rs +} + +type ProjectsLocationsProcessesService struct { + s *Service + + Runs *ProjectsLocationsProcessesRunsService +} + +func NewProjectsLocationsProcessesRunsService(s *Service) *ProjectsLocationsProcessesRunsService { + rs := &ProjectsLocationsProcessesRunsService{s: s} + rs.LineageEvents = NewProjectsLocationsProcessesRunsLineageEventsService(s) + return rs +} + +type ProjectsLocationsProcessesRunsService struct { + s *Service + + LineageEvents *ProjectsLocationsProcessesRunsLineageEventsService +} + +func NewProjectsLocationsProcessesRunsLineageEventsService(s *Service) *ProjectsLocationsProcessesRunsLineageEventsService { + rs := &ProjectsLocationsProcessesRunsLineageEventsService{s: s} + return rs +} + +type ProjectsLocationsProcessesRunsLineageEventsService struct { + s *Service +} + +// GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest: +// Request message for BatchSearchLinkProcesses. +type GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest struct { + // Links: Required. An array of links to check for their associated + // LineageProcesses. The maximum number of items in this array is 100. + // If the request contains more than 100 links, it returns the + // `INVALID_ARGUMENT` error. Format: + // `projects/{project}/locations/{location}/links/{link}`. + Links []string `json:"links,omitempty"` + + // PageSize: The maximum number of processes to return in a single page + // of the response. A page may contain fewer results than this value. + PageSize int64 `json:"pageSize,omitempty"` + + // PageToken: The page token received from a previous + // `BatchSearchLinkProcesses` call. Use it to get the next page. When + // requesting subsequent pages of a response, remember that all + // parameters must match the values you provided in the original + // request. + PageToken string `json:"pageToken,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Links") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Links") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse: +// Response message for BatchSearchLinkProcesses. +type GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse struct { + // NextPageToken: The token to specify as `page_token` in the subsequent + // call to get the next page. Omitted if there are no more pages in the + // response. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ProcessLinks: An array of processes associated with the specified + // links. + ProcessLinks []*GoogleCloudDatacatalogLineageV1ProcessLinks `json:"processLinks,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1EntityReference: The soft reference to +// everything you can attach a lineage event to. +type GoogleCloudDatacatalogLineageV1EntityReference struct { + // FullyQualifiedName: Required. Fully Qualified Name of the entity. + // Useful for referencing entities that aren't represented as Google + // Cloud resources, for example, tables in Dataproc Metastore API. + // Examples: * `bigquery:dataset.project_id.dataset_id` * + // `bigquery:table.project_id.dataset_id.table_id` * + // `pubsub:project_id.topic_id` * + // `dataproc_metastore:projectId.locationId.instanceId.databaseId.tableId + // ` + FullyQualifiedName string `json:"fullyQualifiedName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FullyQualifiedName") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FullyQualifiedName") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1EntityReference) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1EntityReference + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1EventLink: A lineage between source +// and target entities. +type GoogleCloudDatacatalogLineageV1EventLink struct { + // Source: Required. Reference to the source entity + Source *GoogleCloudDatacatalogLineageV1EntityReference `json:"source,omitempty"` + + // Target: Required. Reference to the target entity + Target *GoogleCloudDatacatalogLineageV1EntityReference `json:"target,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Source") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Source") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1EventLink) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1EventLink + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1LineageEvent: A lineage event +// represents an operation on assets. Within the operation, the data +// flows from the source to the target defined in the links field. +type GoogleCloudDatacatalogLineageV1LineageEvent struct { + // EndTime: Optional. The end of the transformation which resulted in + // this lineage event. For streaming scenarios, it should be the end of + // the period from which the lineage is being reported. + EndTime string `json:"endTime,omitempty"` + + // Links: Optional. List of source-target pairs. Can't contain more than + // 100 tuples. + Links []*GoogleCloudDatacatalogLineageV1EventLink `json:"links,omitempty"` + + // Name: Immutable. The resource name of the lineage event. Format: + // `projects/{project}/locations/{location}/processes/{process}/runs/{run + // }/lineageEvents/{lineage_event}`. Can be specified or auto-assigned. + // {lineage_event} must be not longer than 200 characters and only + // contain characters in a set: `a-zA-Z0-9_-:.` + Name string `json:"name,omitempty"` + + // StartTime: Optional. The beginning of the transformation which + // resulted in this lineage event. For streaming scenarios, it should be + // the beginning of the period from which the lineage is being reported. + StartTime string `json:"startTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "EndTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1LineageEvent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1LineageEvent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1Link: Links represent the data flow +// between **source** (upstream) and **target** (downstream) assets in +// transformation pipelines. Links are created when LineageEvents record +// data transformation between related assets. +type GoogleCloudDatacatalogLineageV1Link struct { + // EndTime: The end of the last event establishing this link. + EndTime string `json:"endTime,omitempty"` + + // Name: Output only. Immutable. The name of the link. Format: + // `projects/{project}/locations/{location}/links/{link}`. + Name string `json:"name,omitempty"` + + // Source: The pointer to the entity that is the **source** of this + // link. + Source *GoogleCloudDatacatalogLineageV1EntityReference `json:"source,omitempty"` + + // StartTime: The start of the first event establishing this link. + StartTime string `json:"startTime,omitempty"` + + // Target: The pointer to the entity that is the **target** of this + // link. + Target *GoogleCloudDatacatalogLineageV1EntityReference `json:"target,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1Link) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1Link + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1ListLineageEventsResponse: Response +// message for ListLineageEvents. +type GoogleCloudDatacatalogLineageV1ListLineageEventsResponse struct { + // LineageEvents: Lineage events from the specified project and + // location. + LineageEvents []*GoogleCloudDatacatalogLineageV1LineageEvent `json:"lineageEvents,omitempty"` + + // NextPageToken: The token to specify as `page_token` in the next call + // to get the next page. If this field is omitted, there are no + // subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "LineageEvents") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LineageEvents") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1ListLineageEventsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1ListLineageEventsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1ListProcessesResponse: Response +// message for ListProcesses. +type GoogleCloudDatacatalogLineageV1ListProcessesResponse struct { + // NextPageToken: The token to specify as `page_token` in the next call + // to get the next page. If this field is omitted, there are no + // subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Processes: The processes from the specified project and location. + Processes []*GoogleCloudDatacatalogLineageV1Process `json:"processes,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1ListProcessesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1ListProcessesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1ListRunsResponse: Response message for +// ListRuns. +type GoogleCloudDatacatalogLineageV1ListRunsResponse struct { + // NextPageToken: The token to specify as `page_token` in the next call + // to get the next page. If this field is omitted, there are no + // subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Runs: The runs from the specified project and location. + Runs []*GoogleCloudDatacatalogLineageV1Run `json:"runs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1ListRunsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1ListRunsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1OperationMetadata: Metadata describing +// the operation. +type GoogleCloudDatacatalogLineageV1OperationMetadata struct { + // CreateTime: Output only. The timestamp of the operation submission to + // the server. + CreateTime string `json:"createTime,omitempty"` + + // EndTime: Output only. The timestamp of the operation termination, + // regardless of its success. This field is unset if the operation is + // still ongoing. + EndTime string `json:"endTime,omitempty"` + + // OperationType: Output only. The type of the operation being + // performed. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Unused. + // "DELETE" - The resource deletion operation. + OperationType string `json:"operationType,omitempty"` + + // Resource: Output only. The [relative name] + // (https://cloud.google.com//apis/design/resource_names#relative_resource_name) + // of the resource being operated on. + Resource string `json:"resource,omitempty"` + + // ResourceUuid: Output only. The UUID of the resource being operated + // on. + ResourceUuid string `json:"resourceUuid,omitempty"` + + // State: Output only. The current operation state. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unused. + // "PENDING" - The operation has been created but is not yet started. + // "RUNNING" - The operation is underway. + // "SUCCEEDED" - The operation completed successfully. + // "FAILED" - The operation is no longer running and did not succeed. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1OperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1Origin: Origin of a process. +type GoogleCloudDatacatalogLineageV1Origin struct { + // Name: If the source_type isn't CUSTOM, the value of this field should + // be a Google Cloud resource name of the system, which reports lineage. + // The project and location parts of the resource name must match the + // project and location of the lineage resource being created. Examples: + // - `{source_type: COMPOSER, name: + // "projects/foo/locations/us/environments/bar"}` - `{source_type: + // BIGQUERY, name: "projects/foo/locations/eu"}` - `{source_type: + // CUSTOM, name: "myCustomIntegration"}` + Name string `json:"name,omitempty"` + + // SourceType: Type of the source. + // + // Possible values: + // "SOURCE_TYPE_UNSPECIFIED" - Source is Unspecified + // "CUSTOM" - A custom source + // "BIGQUERY" - BigQuery + // "DATA_FUSION" - Data Fusion + // "COMPOSER" - Composer + // "LOOKER_STUDIO" - Looker Studio + // "DATAPROC" - Dataproc + SourceType string `json:"sourceType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1Origin) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1Origin + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1Process: A process is the definition +// of a data transformation operation. +type GoogleCloudDatacatalogLineageV1Process struct { + // Attributes: Optional. The attributes of the process. Should only be + // used for the purpose of non-semantic management (classifying, + // describing or labeling the process). Up to 100 attributes are + // allowed. + Attributes googleapi.RawMessage `json:"attributes,omitempty"` + + // DisplayName: Optional. A human-readable name you can set to display + // in a user interface. Must be not longer than 200 characters and only + // contain UTF-8 letters or numbers, spaces or characters like `_-:&.` + DisplayName string `json:"displayName,omitempty"` + + // Name: Immutable. The resource name of the lineage process. Format: + // `projects/{project}/locations/{location}/processes/{process}`. Can be + // specified or auto-assigned. {process} must be not longer than 200 + // characters and only contain characters in a set: `a-zA-Z0-9_-:.` + Name string `json:"name,omitempty"` + + // Origin: Optional. The origin of this process and its runs and lineage + // events. + Origin *GoogleCloudDatacatalogLineageV1Origin `json:"origin,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Attributes") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Attributes") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1Process) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1Process + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1ProcessLinkInfo: Link details. +type GoogleCloudDatacatalogLineageV1ProcessLinkInfo struct { + // EndTime: The end of the last event establishing this link-process + // tuple. + EndTime string `json:"endTime,omitempty"` + + // Link: The name of the link in the format of + // `projects/{project}/locations/{location}/links/{link}`. + Link string `json:"link,omitempty"` + + // StartTime: The start of the first event establishing this + // link-process tuple. + StartTime string `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EndTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1ProcessLinkInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1ProcessLinkInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1ProcessLinks: Links associated with a +// specific process. +type GoogleCloudDatacatalogLineageV1ProcessLinks struct { + // Links: An array containing link details objects of the links provided + // in the original request. A single process can result in creating + // multiple links. If any of the links you provide in the request are + // created by the same process, they all are included in this array. + Links []*GoogleCloudDatacatalogLineageV1ProcessLinkInfo `json:"links,omitempty"` + + // Process: The process name in the format of + // `projects/{project}/locations/{location}/processes/{process}`. + Process string `json:"process,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Links") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Links") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1ProcessLinks) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1ProcessLinks + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1Run: A lineage run represents an +// execution of a process that creates lineage events. +type GoogleCloudDatacatalogLineageV1Run struct { + // Attributes: Optional. The attributes of the run. Should only be used + // for the purpose of non-semantic management (classifying, describing + // or labeling the run). Up to 100 attributes are allowed. + Attributes googleapi.RawMessage `json:"attributes,omitempty"` + + // DisplayName: Optional. A human-readable name you can set to display + // in a user interface. Must be not longer than 1024 characters and only + // contain UTF-8 letters or numbers, spaces or characters like `_-:&.` + DisplayName string `json:"displayName,omitempty"` + + // EndTime: Optional. The timestamp of the end of the run. + EndTime string `json:"endTime,omitempty"` + + // Name: Immutable. The resource name of the run. Format: + // `projects/{project}/locations/{location}/processes/{process}/runs/{run + // }`. Can be specified or auto-assigned. {run} must be not longer than + // 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.` + Name string `json:"name,omitempty"` + + // StartTime: Required. The timestamp of the start of the run. + StartTime string `json:"startTime,omitempty"` + + // State: Required. The state of the run. + // + // Possible values: + // "UNKNOWN" - The state is unknown. The true state may be any of the + // below or a different state that is not supported here explicitly. + // "STARTED" - The run is still executing. + // "COMPLETED" - The run completed. + // "FAILED" - The run failed. + // "ABORTED" - The run aborted. + State string `json:"state,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Attributes") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Attributes") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1Run) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1Run + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1SearchLinksRequest: Request message +// for SearchLinks. +type GoogleCloudDatacatalogLineageV1SearchLinksRequest struct { + // PageSize: Optional. The maximum number of links to return in a single + // page of the response. A page may contain fewer links than this value. + // If unspecified, at most 10 links are returned. Maximum value is 100; + // values greater than 100 are reduced to 100. + PageSize int64 `json:"pageSize,omitempty"` + + // PageToken: Optional. The page token received from a previous + // `SearchLinksRequest` call. Use it to get the next page. When + // requesting subsequent pages of a response, remember that all + // parameters must match the values you provided in the original + // request. + PageToken string `json:"pageToken,omitempty"` + + // Source: Optional. Send asset information in the **source** field to + // retrieve all links that lead from the specified asset to downstream + // assets. + Source *GoogleCloudDatacatalogLineageV1EntityReference `json:"source,omitempty"` + + // Target: Optional. Send asset information in the **target** field to + // retrieve all links that lead from upstream assets to the specified + // asset. + Target *GoogleCloudDatacatalogLineageV1EntityReference `json:"target,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PageSize") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PageSize") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1SearchLinksRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1SearchLinksRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDatacatalogLineageV1SearchLinksResponse: Response message +// for SearchLinks. +type GoogleCloudDatacatalogLineageV1SearchLinksResponse struct { + // Links: The list of links for a given asset. Can be empty if the asset + // has no relations of requested type (source or target). + Links []*GoogleCloudDatacatalogLineageV1Link `json:"links,omitempty"` + + // NextPageToken: The token to specify as `page_token` in the subsequent + // call to get the next page. Omitted if there are no more pages in the + // response. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Links") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Links") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDatacatalogLineageV1SearchLinksResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDatacatalogLineageV1SearchLinksResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningCancelOperationRequest: The request message for +// Operations.CancelOperation. +type GoogleLongrunningCancelOperationRequest struct { +} + +// GoogleLongrunningListOperationsResponse: The response message for +// Operations.ListOperations. +type GoogleLongrunningListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningOperation: This resource represents a long-running +// operation that is the result of a network API call. +type GoogleLongrunningOperation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *GoogleRpcStatus `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal response of the operation in case of success. If + // the original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Done") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleProtobufEmpty: A generic empty message that you can re-use to +// avoid defining duplicated empty messages in your APIs. A typical +// example is to use it as the request or the response type of an API +// method. For instance: service Foo { rpc Bar(google.protobuf.Empty) +// returns (google.protobuf.Empty); } +type GoogleProtobufEmpty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// GoogleRpcStatus: The `Status` type defines a logical error model that +// is suitable for different programming environments, including REST +// APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the API Design Guide +// (https://cloud.google.com/apis/design/errors). +type GoogleRpcStatus struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleRpcStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "datalineage.projects.locations.batchSearchLinkProcesses": + +type ProjectsLocationsBatchSearchLinkProcessesCall struct { + s *Service + parent string + googleclouddatacataloglineagev1batchsearchlinkprocessesrequest *GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchSearchLinkProcesses: Retrieve information about LineageProcesses +// associated with specific links. LineageProcesses are transformation +// pipelines that result in data flowing from **source** to **target** +// assets. Links between assets represent this operation. If you have +// specific link names, you can use this method to verify which +// LineageProcesses contribute to creating those links. See the +// SearchLinks method for more information on how to retrieve link name. +// You can retrieve the LineageProcess information in every project +// where you have the `datalineage.events.get` permission. The project +// provided in the URL is used for Billing and Quota. +// +// - parent: The project and location where you want to search. +func (r *ProjectsLocationsService) BatchSearchLinkProcesses(parent string, googleclouddatacataloglineagev1batchsearchlinkprocessesrequest *GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest) *ProjectsLocationsBatchSearchLinkProcessesCall { + c := &ProjectsLocationsBatchSearchLinkProcessesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatacataloglineagev1batchsearchlinkprocessesrequest = googleclouddatacataloglineagev1batchsearchlinkprocessesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsBatchSearchLinkProcessesCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchSearchLinkProcessesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsBatchSearchLinkProcessesCall) Context(ctx context.Context) *ProjectsLocationsBatchSearchLinkProcessesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsBatchSearchLinkProcessesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchSearchLinkProcessesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacataloglineagev1batchsearchlinkprocessesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:batchSearchLinkProcesses") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.batchSearchLinkProcesses" call. +// Exactly one of +// *GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse.Serve +// rResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsBatchSearchLinkProcessesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieve information about LineageProcesses associated with specific links. LineageProcesses are transformation pipelines that result in data flowing from **source** to **target** assets. Links between assets represent this operation. If you have specific link names, you can use this method to verify which LineageProcesses contribute to creating those links. See the SearchLinks method for more information on how to retrieve link name. You can retrieve the LineageProcess information in every project where you have the `datalineage.events.get` permission. The project provided in the URL is used for Billing and Quota.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:batchSearchLinkProcesses", + // "httpMethod": "POST", + // "id": "datalineage.projects.locations.batchSearchLinkProcesses", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The project and location where you want to search.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}:batchSearchLinkProcesses", + // "request": { + // "$ref": "GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest" + // }, + // "response": { + // "$ref": "GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsBatchSearchLinkProcessesCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.googleclouddatacataloglineagev1batchsearchlinkprocessesrequest.PageToken = pt }(c.googleclouddatacataloglineagev1batchsearchlinkprocessesrequest.PageToken) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.googleclouddatacataloglineagev1batchsearchlinkprocessesrequest.PageToken = x.NextPageToken + } +} + +// method id "datalineage.projects.locations.searchLinks": + +type ProjectsLocationsSearchLinksCall struct { + s *Service + parent string + googleclouddatacataloglineagev1searchlinksrequest *GoogleCloudDatacatalogLineageV1SearchLinksRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SearchLinks: Retrieve a list of links connected to a specific asset. +// Links represent the data flow between **source** (upstream) and +// **target** (downstream) assets in transformation pipelines. Links are +// stored in the same project as the Lineage Events that create them. +// You can retrieve links in every project where you have the +// `datalineage.events.get` permission. The project provided in the URL +// is used for Billing and Quota. +// +// - parent: The project and location you want search in. +func (r *ProjectsLocationsService) SearchLinks(parent string, googleclouddatacataloglineagev1searchlinksrequest *GoogleCloudDatacatalogLineageV1SearchLinksRequest) *ProjectsLocationsSearchLinksCall { + c := &ProjectsLocationsSearchLinksCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatacataloglineagev1searchlinksrequest = googleclouddatacataloglineagev1searchlinksrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsSearchLinksCall) Fields(s ...googleapi.Field) *ProjectsLocationsSearchLinksCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsSearchLinksCall) Context(ctx context.Context) *ProjectsLocationsSearchLinksCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsSearchLinksCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSearchLinksCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacataloglineagev1searchlinksrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:searchLinks") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.searchLinks" call. +// Exactly one of *GoogleCloudDatacatalogLineageV1SearchLinksResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatacatalogLineageV1SearchLinksResponse.ServerResponse.Hea +// der or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsSearchLinksCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1SearchLinksResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDatacatalogLineageV1SearchLinksResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieve a list of links connected to a specific asset. Links represent the data flow between **source** (upstream) and **target** (downstream) assets in transformation pipelines. Links are stored in the same project as the Lineage Events that create them. You can retrieve links in every project where you have the `datalineage.events.get` permission. The project provided in the URL is used for Billing and Quota.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:searchLinks", + // "httpMethod": "POST", + // "id": "datalineage.projects.locations.searchLinks", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The project and location you want search in.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}:searchLinks", + // "request": { + // "$ref": "GoogleCloudDatacatalogLineageV1SearchLinksRequest" + // }, + // "response": { + // "$ref": "GoogleCloudDatacatalogLineageV1SearchLinksResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsSearchLinksCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogLineageV1SearchLinksResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.googleclouddatacataloglineagev1searchlinksrequest.PageToken = pt }(c.googleclouddatacataloglineagev1searchlinksrequest.PageToken) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.googleclouddatacataloglineagev1searchlinksrequest.PageToken = x.NextPageToken + } +} + +// method id "datalineage.projects.locations.operations.cancel": + +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsOperationsCancelCall { + c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.operations.cancel" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "datalineage.projects.locations.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "request": { + // "$ref": "GoogleLongrunningCancelOperationRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalineage.projects.locations.operations.delete": + +type ProjectsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "datalineage.projects.locations.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalineage.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "datalineage.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalineage.projects.locations.operations.list": + +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "datalineage.projects.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/operations", + // "response": { + // "$ref": "GoogleLongrunningListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datalineage.projects.locations.processes.create": + +type ProjectsLocationsProcessesCreateCall struct { + s *Service + parent string + googleclouddatacataloglineagev1process *GoogleCloudDatacatalogLineageV1Process + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new process. +// +// - parent: The name of the project and its location that should own +// the process. +func (r *ProjectsLocationsProcessesService) Create(parent string, googleclouddatacataloglineagev1process *GoogleCloudDatacatalogLineageV1Process) *ProjectsLocationsProcessesCreateCall { + c := &ProjectsLocationsProcessesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatacataloglineagev1process = googleclouddatacataloglineagev1process + return c +} + +// RequestId sets the optional parameter "requestId": A unique +// identifier for this request. Restricted to 36 ASCII characters. A +// random UUID is recommended. This request is idempotent only if a +// `request_id` is provided. +func (c *ProjectsLocationsProcessesCreateCall) RequestId(requestId string) *ProjectsLocationsProcessesCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProcessesCreateCall) Context(ctx context.Context) *ProjectsLocationsProcessesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacataloglineagev1process) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/processes") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.processes.create" call. +// Exactly one of *GoogleCloudDatacatalogLineageV1Process or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudDatacatalogLineageV1Process.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsProcessesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1Process, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDatacatalogLineageV1Process{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new process.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes", + // "httpMethod": "POST", + // "id": "datalineage.projects.locations.processes.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The name of the project and its location that should own the process.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is idempotent only if a `request_id` is provided.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/processes", + // "request": { + // "$ref": "GoogleCloudDatacatalogLineageV1Process" + // }, + // "response": { + // "$ref": "GoogleCloudDatacatalogLineageV1Process" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalineage.projects.locations.processes.delete": + +type ProjectsLocationsProcessesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the process with the specified name. +// +// - name: The name of the process to delete. +func (r *ProjectsLocationsProcessesService) Delete(name string) *ProjectsLocationsProcessesDeleteCall { + c := &ProjectsLocationsProcessesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set to +// true and the process is not found, the request succeeds but the +// server doesn't perform any actions. +func (c *ProjectsLocationsProcessesDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsProcessesDeleteCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProcessesDeleteCall) Context(ctx context.Context) *ProjectsLocationsProcessesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.processes.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsProcessesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the process with the specified name.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}", + // "httpMethod": "DELETE", + // "id": "datalineage.projects.locations.processes.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "allowMissing": { + // "description": "If set to true and the process is not found, the request succeeds but the server doesn't perform any actions.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. The name of the process to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalineage.projects.locations.processes.get": + +type ProjectsLocationsProcessesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the details of the specified process. +// +// - name: The name of the process to get. +func (r *ProjectsLocationsProcessesService) Get(name string) *ProjectsLocationsProcessesGetCall { + c := &ProjectsLocationsProcessesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProcessesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProcessesGetCall) Context(ctx context.Context) *ProjectsLocationsProcessesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.processes.get" call. +// Exactly one of *GoogleCloudDatacatalogLineageV1Process or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudDatacatalogLineageV1Process.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsProcessesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1Process, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDatacatalogLineageV1Process{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the details of the specified process.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}", + // "httpMethod": "GET", + // "id": "datalineage.projects.locations.processes.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the process to get.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudDatacatalogLineageV1Process" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalineage.projects.locations.processes.list": + +type ProjectsLocationsProcessesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List processes in the given project and location. List order is +// descending by insertion time. +// +// - parent: The name of the project and its location that owns this +// collection of processes. +func (r *ProjectsLocationsProcessesService) List(parent string) *ProjectsLocationsProcessesListCall { + c := &ProjectsLocationsProcessesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of processes to return. The service may return fewer than this value. +// If unspecified, at most 50 processes are returned. The maximum value +// is 100; values greater than 100 are cut to 100. +func (c *ProjectsLocationsProcessesListCall) PageSize(pageSize int64) *ProjectsLocationsProcessesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token +// received from a previous `ListProcesses` call. Specify it to get the +// next page. When paginating, all other parameters specified in this +// call must match the parameters of the call that provided the page +// token. +func (c *ProjectsLocationsProcessesListCall) PageToken(pageToken string) *ProjectsLocationsProcessesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProcessesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProcessesListCall) Context(ctx context.Context) *ProjectsLocationsProcessesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/processes") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.processes.list" call. +// Exactly one of *GoogleCloudDatacatalogLineageV1ListProcessesResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudDatacatalogLineageV1ListProcessesResponse.ServerResponse.H +// eader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProcessesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1ListProcessesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDatacatalogLineageV1ListProcessesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "List processes in the given project and location. List order is descending by insertion time.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes", + // "httpMethod": "GET", + // "id": "datalineage.projects.locations.processes.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of processes to return. The service may return fewer than this value. If unspecified, at most 50 processes are returned. The maximum value is 100; values greater than 100 are cut to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The page token received from a previous `ListProcesses` call. Specify it to get the next page. When paginating, all other parameters specified in this call must match the parameters of the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the project and its location that owns this collection of processes.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/processes", + // "response": { + // "$ref": "GoogleCloudDatacatalogLineageV1ListProcessesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsProcessesListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogLineageV1ListProcessesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datalineage.projects.locations.processes.patch": + +type ProjectsLocationsProcessesPatchCall struct { + s *Service + name string + googleclouddatacataloglineagev1process *GoogleCloudDatacatalogLineageV1Process + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a process. +// +// - name: Immutable. The resource name of the lineage process. Format: +// `projects/{project}/locations/{location}/processes/{process}`. Can +// be specified or auto-assigned. {process} must be not longer than +// 200 characters and only contain characters in a set: +// `a-zA-Z0-9_-:.`. +func (r *ProjectsLocationsProcessesService) Patch(name string, googleclouddatacataloglineagev1process *GoogleCloudDatacatalogLineageV1Process) *ProjectsLocationsProcessesPatchCall { + c := &ProjectsLocationsProcessesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddatacataloglineagev1process = googleclouddatacataloglineagev1process + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set to +// true and the process is not found, the request inserts it. +func (c *ProjectsLocationsProcessesPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsProcessesPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to update. Currently not used. The whole message is updated. +func (c *ProjectsLocationsProcessesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProcessesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProcessesPatchCall) Context(ctx context.Context) *ProjectsLocationsProcessesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacataloglineagev1process) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.processes.patch" call. +// Exactly one of *GoogleCloudDatacatalogLineageV1Process or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudDatacatalogLineageV1Process.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsProcessesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1Process, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDatacatalogLineageV1Process{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a process.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}", + // "httpMethod": "PATCH", + // "id": "datalineage.projects.locations.processes.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "allowMissing": { + // "description": "If set to true and the process is not found, the request inserts it.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Immutable. The resource name of the lineage process. Format: `projects/{project}/locations/{location}/processes/{process}`. Can be specified or auto-assigned. {process} must be not longer than 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The list of fields to update. Currently not used. The whole message is updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudDatacatalogLineageV1Process" + // }, + // "response": { + // "$ref": "GoogleCloudDatacatalogLineageV1Process" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalineage.projects.locations.processes.runs.create": + +type ProjectsLocationsProcessesRunsCreateCall struct { + s *Service + parent string + googleclouddatacataloglineagev1run *GoogleCloudDatacatalogLineageV1Run + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new run. +// +// - parent: The name of the process that should own the run. +func (r *ProjectsLocationsProcessesRunsService) Create(parent string, googleclouddatacataloglineagev1run *GoogleCloudDatacatalogLineageV1Run) *ProjectsLocationsProcessesRunsCreateCall { + c := &ProjectsLocationsProcessesRunsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatacataloglineagev1run = googleclouddatacataloglineagev1run + return c +} + +// RequestId sets the optional parameter "requestId": A unique +// identifier for this request. Restricted to 36 ASCII characters. A +// random UUID is recommended. This request is idempotent only if a +// `request_id` is provided. +func (c *ProjectsLocationsProcessesRunsCreateCall) RequestId(requestId string) *ProjectsLocationsProcessesRunsCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessesRunsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProcessesRunsCreateCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessesRunsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessesRunsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacataloglineagev1run) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/runs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.processes.runs.create" call. +// Exactly one of *GoogleCloudDatacatalogLineageV1Run or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudDatacatalogLineageV1Run.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProcessesRunsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1Run, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDatacatalogLineageV1Run{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new run.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs", + // "httpMethod": "POST", + // "id": "datalineage.projects.locations.processes.runs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The name of the process that should own the run.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is idempotent only if a `request_id` is provided.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/runs", + // "request": { + // "$ref": "GoogleCloudDatacatalogLineageV1Run" + // }, + // "response": { + // "$ref": "GoogleCloudDatacatalogLineageV1Run" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalineage.projects.locations.processes.runs.delete": + +type ProjectsLocationsProcessesRunsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the run with the specified name. +// +// - name: The name of the run to delete. +func (r *ProjectsLocationsProcessesRunsService) Delete(name string) *ProjectsLocationsProcessesRunsDeleteCall { + c := &ProjectsLocationsProcessesRunsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set to +// true and the run is not found, the request succeeds but the server +// doesn't perform any actions. +func (c *ProjectsLocationsProcessesRunsDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsProcessesRunsDeleteCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessesRunsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProcessesRunsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessesRunsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessesRunsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.processes.runs.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsProcessesRunsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the run with the specified name.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}", + // "httpMethod": "DELETE", + // "id": "datalineage.projects.locations.processes.runs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "allowMissing": { + // "description": "If set to true and the run is not found, the request succeeds but the server doesn't perform any actions.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. The name of the run to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalineage.projects.locations.processes.runs.get": + +type ProjectsLocationsProcessesRunsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the details of the specified run. +// +// - name: The name of the run to get. +func (r *ProjectsLocationsProcessesRunsService) Get(name string) *ProjectsLocationsProcessesRunsGetCall { + c := &ProjectsLocationsProcessesRunsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessesRunsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProcessesRunsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessesRunsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProcessesRunsGetCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessesRunsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessesRunsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.processes.runs.get" call. +// Exactly one of *GoogleCloudDatacatalogLineageV1Run or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudDatacatalogLineageV1Run.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProcessesRunsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1Run, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDatacatalogLineageV1Run{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the details of the specified run.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}", + // "httpMethod": "GET", + // "id": "datalineage.projects.locations.processes.runs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the run to get.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudDatacatalogLineageV1Run" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalineage.projects.locations.processes.runs.list": + +type ProjectsLocationsProcessesRunsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists runs in the given project and location. List order is +// descending by `start_time`. +// +// - parent: The name of process that owns this collection of runs. +func (r *ProjectsLocationsProcessesRunsService) List(parent string) *ProjectsLocationsProcessesRunsListCall { + c := &ProjectsLocationsProcessesRunsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of runs to return. The service may return fewer than this value. If +// unspecified, at most 50 runs are returned. The maximum value is 100; +// values greater than 100 are cut to 100. +func (c *ProjectsLocationsProcessesRunsListCall) PageSize(pageSize int64) *ProjectsLocationsProcessesRunsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token +// received from a previous `ListRuns` call. Specify it to get the next +// page. When paginating, all other parameters specified in this call +// must match the parameters of the call that provided the page token. +func (c *ProjectsLocationsProcessesRunsListCall) PageToken(pageToken string) *ProjectsLocationsProcessesRunsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessesRunsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProcessesRunsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessesRunsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProcessesRunsListCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessesRunsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessesRunsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/runs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.processes.runs.list" call. +// Exactly one of *GoogleCloudDatacatalogLineageV1ListRunsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatacatalogLineageV1ListRunsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in +// +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProcessesRunsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1ListRunsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDatacatalogLineageV1ListRunsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists runs in the given project and location. List order is descending by `start_time`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs", + // "httpMethod": "GET", + // "id": "datalineage.projects.locations.processes.runs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of runs to return. The service may return fewer than this value. If unspecified, at most 50 runs are returned. The maximum value is 100; values greater than 100 are cut to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The page token received from a previous `ListRuns` call. Specify it to get the next page. When paginating, all other parameters specified in this call must match the parameters of the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of process that owns this collection of runs.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/runs", + // "response": { + // "$ref": "GoogleCloudDatacatalogLineageV1ListRunsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsProcessesRunsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogLineageV1ListRunsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datalineage.projects.locations.processes.runs.patch": + +type ProjectsLocationsProcessesRunsPatchCall struct { + s *Service + name string + googleclouddatacataloglineagev1run *GoogleCloudDatacatalogLineageV1Run + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a run. +// +// - name: Immutable. The resource name of the run. Format: +// `projects/{project}/locations/{location}/processes/{process}/runs/{r +// un}`. Can be specified or auto-assigned. {run} must be not longer +// than 200 characters and only contain characters in a set: +// `a-zA-Z0-9_-:.`. +func (r *ProjectsLocationsProcessesRunsService) Patch(name string, googleclouddatacataloglineagev1run *GoogleCloudDatacatalogLineageV1Run) *ProjectsLocationsProcessesRunsPatchCall { + c := &ProjectsLocationsProcessesRunsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddatacataloglineagev1run = googleclouddatacataloglineagev1run + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set to +// true and the run is not found, the request creates it. +func (c *ProjectsLocationsProcessesRunsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsProcessesRunsPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to update. Currently not used. The whole message is updated. +func (c *ProjectsLocationsProcessesRunsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsProcessesRunsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessesRunsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProcessesRunsPatchCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessesRunsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessesRunsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacataloglineagev1run) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.processes.runs.patch" call. +// Exactly one of *GoogleCloudDatacatalogLineageV1Run or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudDatacatalogLineageV1Run.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProcessesRunsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1Run, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDatacatalogLineageV1Run{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a run.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}", + // "httpMethod": "PATCH", + // "id": "datalineage.projects.locations.processes.runs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "allowMissing": { + // "description": "If set to true and the run is not found, the request creates it.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Immutable. The resource name of the run. Format: `projects/{project}/locations/{location}/processes/{process}/runs/{run}`. Can be specified or auto-assigned. {run} must be not longer than 200 characters and only contain characters in a set: `a-zA-Z0-9_-:.`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "The list of fields to update. Currently not used. The whole message is updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudDatacatalogLineageV1Run" + // }, + // "response": { + // "$ref": "GoogleCloudDatacatalogLineageV1Run" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalineage.projects.locations.processes.runs.lineageEvents.create": + +type ProjectsLocationsProcessesRunsLineageEventsCreateCall struct { + s *Service + parent string + googleclouddatacataloglineagev1lineageevent *GoogleCloudDatacatalogLineageV1LineageEvent + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new lineage event. +// +// - parent: The name of the run that should own the lineage event. +func (r *ProjectsLocationsProcessesRunsLineageEventsService) Create(parent string, googleclouddatacataloglineagev1lineageevent *GoogleCloudDatacatalogLineageV1LineageEvent) *ProjectsLocationsProcessesRunsLineageEventsCreateCall { + c := &ProjectsLocationsProcessesRunsLineageEventsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddatacataloglineagev1lineageevent = googleclouddatacataloglineagev1lineageevent + return c +} + +// RequestId sets the optional parameter "requestId": A unique +// identifier for this request. Restricted to 36 ASCII characters. A +// random UUID is recommended. This request is idempotent only if a +// `request_id` is provided. +func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) RequestId(requestId string) *ProjectsLocationsProcessesRunsLineageEventsCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsLineageEventsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsLineageEventsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatacataloglineagev1lineageevent) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/lineageEvents") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.processes.runs.lineageEvents.create" call. +// Exactly one of *GoogleCloudDatacatalogLineageV1LineageEvent or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatacatalogLineageV1LineageEvent.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProcessesRunsLineageEventsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1LineageEvent, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDatacatalogLineageV1LineageEvent{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new lineage event.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}/lineageEvents", + // "httpMethod": "POST", + // "id": "datalineage.projects.locations.processes.runs.lineageEvents.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The name of the run that should own the lineage event.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is recommended. This request is idempotent only if a `request_id` is provided.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/lineageEvents", + // "request": { + // "$ref": "GoogleCloudDatacatalogLineageV1LineageEvent" + // }, + // "response": { + // "$ref": "GoogleCloudDatacatalogLineageV1LineageEvent" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalineage.projects.locations.processes.runs.lineageEvents.delete": + +type ProjectsLocationsProcessesRunsLineageEventsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the lineage event with the specified name. +// +// - name: The name of the lineage event to delete. +func (r *ProjectsLocationsProcessesRunsLineageEventsService) Delete(name string) *ProjectsLocationsProcessesRunsLineageEventsDeleteCall { + c := &ProjectsLocationsProcessesRunsLineageEventsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set to +// true and the lineage event is not found, the request succeeds but the +// server doesn't perform any actions. +func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsProcessesRunsLineageEventsDeleteCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsLineageEventsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsLineageEventsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.processes.runs.lineageEvents.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsProcessesRunsLineageEventsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes the lineage event with the specified name.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}/lineageEvents/{lineageEventsId}", + // "httpMethod": "DELETE", + // "id": "datalineage.projects.locations.processes.runs.lineageEvents.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "allowMissing": { + // "description": "If set to true and the lineage event is not found, the request succeeds but the server doesn't perform any actions.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. The name of the lineage event to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+/lineageEvents/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalineage.projects.locations.processes.runs.lineageEvents.get": + +type ProjectsLocationsProcessesRunsLineageEventsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a specified lineage event. +// +// - name: The name of the lineage event to get. +func (r *ProjectsLocationsProcessesRunsLineageEventsService) Get(name string) *ProjectsLocationsProcessesRunsLineageEventsGetCall { + c := &ProjectsLocationsProcessesRunsLineageEventsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsLineageEventsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessesRunsLineageEventsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsLineageEventsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.processes.runs.lineageEvents.get" call. +// Exactly one of *GoogleCloudDatacatalogLineageV1LineageEvent or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatacatalogLineageV1LineageEvent.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProcessesRunsLineageEventsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1LineageEvent, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDatacatalogLineageV1LineageEvent{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a specified lineage event.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}/lineageEvents/{lineageEventsId}", + // "httpMethod": "GET", + // "id": "datalineage.projects.locations.processes.runs.lineageEvents.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the lineage event to get.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+/lineageEvents/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudDatacatalogLineageV1LineageEvent" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datalineage.projects.locations.processes.runs.lineageEvents.list": + +type ProjectsLocationsProcessesRunsLineageEventsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists lineage events in the given project and location. The +// list order is not defined. +// +// - parent: The name of the run that owns the collection of lineage +// events to get. +func (r *ProjectsLocationsProcessesRunsLineageEventsService) List(parent string) *ProjectsLocationsProcessesRunsLineageEventsListCall { + c := &ProjectsLocationsProcessesRunsLineageEventsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of lineage events to return. The service may return fewer events than +// this value. If unspecified, at most 50 events are returned. The +// maximum value is 100; values greater than 100 are cut to 100. +func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) PageSize(pageSize int64) *ProjectsLocationsProcessesRunsLineageEventsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token +// received from a previous `ListLineageEvents` call. Specify it to get +// the next page. When paginating, all other parameters specified in +// this call must match the parameters of the call that provided the +// page token. +func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) PageToken(pageToken string) *ProjectsLocationsProcessesRunsLineageEventsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProcessesRunsLineageEventsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProcessesRunsLineageEventsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) Context(ctx context.Context) *ProjectsLocationsProcessesRunsLineageEventsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/lineageEvents") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datalineage.projects.locations.processes.runs.lineageEvents.list" call. +// Exactly one of +// *GoogleCloudDatacatalogLineageV1ListLineageEventsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudDatacatalogLineageV1ListLineageEventsResponse.ServerRespon +// se.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatacatalogLineageV1ListLineageEventsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDatacatalogLineageV1ListLineageEventsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists lineage events in the given project and location. The list order is not defined.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/processes/{processesId}/runs/{runsId}/lineageEvents", + // "httpMethod": "GET", + // "id": "datalineage.projects.locations.processes.runs.lineageEvents.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of lineage events to return. The service may return fewer events than this value. If unspecified, at most 50 events are returned. The maximum value is 100; values greater than 100 are cut to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The page token received from a previous `ListLineageEvents` call. Specify it to get the next page. When paginating, all other parameters specified in this call must match the parameters of the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the run that owns the collection of lineage events to get.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/processes/[^/]+/runs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/lineageEvents", + // "response": { + // "$ref": "GoogleCloudDatacatalogLineageV1ListLineageEventsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsProcessesRunsLineageEventsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatacatalogLineageV1ListLineageEventsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index 016b5ef4aad..84956570eb5 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -3412,7 +3412,7 @@ } } }, - "revision": "20230206", + "revision": "20230304", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -5590,6 +5590,7 @@ "CHILE", "CHINA", "COLOMBIA", + "CROATIA", "DENMARK", "FRANCE", "FINLAND", @@ -5603,6 +5604,7 @@ "JAPAN", "KOREA", "MEXICO", + "NEW_ZEALAND", "THE_NETHERLANDS", "NORWAY", "PARAGUAY", @@ -5620,8 +5622,7 @@ "UNITED_STATES", "URUGUAY", "VENEZUELA", - "INTERNAL", - "NEW_ZEALAND" + "INTERNAL" ], "enumDescriptions": [ "Unused location", @@ -5634,6 +5635,7 @@ "The infoType is typically used in Chile.", "The infoType is typically used in China.", "The infoType is typically used in Colombia.", + "The infoType is typically used in Croatia.", "The infoType is typically used in Denmark.", "The infoType is typically used in France.", "The infoType is typically used in Finland.", @@ -5647,6 +5649,7 @@ "The infoType is typically used in Japan.", "The infoType is typically used in Korea.", "The infoType is typically used in Mexico.", + "The infoType is typically used in New Zealand.", "The infoType is typically used in the Netherlands.", "The infoType is typically used in Norway.", "The infoType is typically used in Paraguay.", @@ -5664,8 +5667,7 @@ "The infoType is typically used in the United States.", "The infoType is typically used in Uruguay.", "The infoType is typically used in Venezuela.", - "The infoType is typically used in Google internally.", - "The infoType is typically used in New Zealand." + "The infoType is typically used in Google internally." ], "type": "string" }, diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index a32f1bf55a4..221a599e77c 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -4491,6 +4491,7 @@ type GooglePrivacyDlpV2InfoTypeCategory struct { // "CHILE" - The infoType is typically used in Chile. // "CHINA" - The infoType is typically used in China. // "COLOMBIA" - The infoType is typically used in Colombia. + // "CROATIA" - The infoType is typically used in Croatia. // "DENMARK" - The infoType is typically used in Denmark. // "FRANCE" - The infoType is typically used in France. // "FINLAND" - The infoType is typically used in Finland. @@ -4504,6 +4505,7 @@ type GooglePrivacyDlpV2InfoTypeCategory struct { // "JAPAN" - The infoType is typically used in Japan. // "KOREA" - The infoType is typically used in Korea. // "MEXICO" - The infoType is typically used in Mexico. + // "NEW_ZEALAND" - The infoType is typically used in New Zealand. // "THE_NETHERLANDS" - The infoType is typically used in the // Netherlands. // "NORWAY" - The infoType is typically used in Norway. @@ -4525,7 +4527,6 @@ type GooglePrivacyDlpV2InfoTypeCategory struct { // "URUGUAY" - The infoType is typically used in Uruguay. // "VENEZUELA" - The infoType is typically used in Venezuela. // "INTERNAL" - The infoType is typically used in Google internally. - // "NEW_ZEALAND" - The infoType is typically used in New Zealand. LocationCategory string `json:"locationCategory,omitempty"` // TypeCategory: The class of identifiers where this infoType belongs diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 686d9246d47..b83f86807c8 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1042,9 +1042,53 @@ } } }, - "revision": "20230218", + "revision": "20230302", "rootUrl": "https://documentai.googleapis.com/", "schemas": { + "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { + "description": "Metadata of the auto-labeling documents operation.", + "id": "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata of the long running operation." + }, + "individualAutoLabelStatuses": { + "description": "The list of individual auto-labeling statuses of the dataset documents.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus" + }, + "type": "array" + }, + "totalDocumentCount": { + "description": "Total number of the auto-labeling documents.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus": { + "description": "The status of individual documents in the auto-labeling process.", + "id": "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus", + "properties": { + "gcsUri": { + "description": "The gcs_uri of the auto-labeling document, which uniquely identifies a dataset document.", + "type": "string" + }, + "status": { + "$ref": "GoogleRpcStatus", + "description": "The status of the document auto-labeling." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse": { + "description": "The response proto of AutoLabelDocuments method.", + "id": "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse", + "properties": {}, + "type": "object" + }, "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { "id": "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata", "properties": { diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index 13c1620dde4..be94cdbedd1 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -254,6 +254,82 @@ type ProjectsOperationsService struct { s *Service } +// GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata: Metadata of +// the auto-labeling documents operation. +type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata struct { + // CommonMetadata: The basic metadata of the long running operation. + CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` + + // IndividualAutoLabelStatuses: The list of individual auto-labeling + // statuses of the dataset documents. + IndividualAutoLabelStatuses []*GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus `json:"individualAutoLabelStatuses,omitempty"` + + // TotalDocumentCount: Total number of the auto-labeling documents. + TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAuto +// LabelStatus: The status of individual documents in the auto-labeling +// process. +type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus struct { + // GcsUri: The gcs_uri of the auto-labeling document, which uniquely + // identifies a dataset document. + GcsUri string `json:"gcsUri,omitempty"` + + // Status: The status of the document auto-labeling. + Status *GoogleRpcStatus `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcsUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GcsUri") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse: The +// response proto of AutoLabelDocuments method. +type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse struct { +} + type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata struct { // CommonMetadata: The basic metadata of the long running operation. CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` diff --git a/documentai/v1beta2/documentai-api.json b/documentai/v1beta2/documentai-api.json index 082464f0780..a29c32aeda8 100644 --- a/documentai/v1beta2/documentai-api.json +++ b/documentai/v1beta2/documentai-api.json @@ -292,9 +292,53 @@ } } }, - "revision": "20230202", + "revision": "20230302", "rootUrl": "https://documentai.googleapis.com/", "schemas": { + "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { + "description": "Metadata of the auto-labeling documents operation.", + "id": "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata of the long running operation." + }, + "individualAutoLabelStatuses": { + "description": "The list of individual auto-labeling statuses of the dataset documents.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus" + }, + "type": "array" + }, + "totalDocumentCount": { + "description": "Total number of the auto-labeling documents.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus": { + "description": "The status of individual documents in the auto-labeling process.", + "id": "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus", + "properties": { + "gcsUri": { + "description": "The gcs_uri of the auto-labeling document, which uniquely identifies a dataset document.", + "type": "string" + }, + "status": { + "$ref": "GoogleRpcStatus", + "description": "The status of the document auto-labeling." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse": { + "description": "The response proto of AutoLabelDocuments method.", + "id": "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse", + "properties": {}, + "type": "object" + }, "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { "id": "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata", "properties": { diff --git a/documentai/v1beta2/documentai-gen.go b/documentai/v1beta2/documentai-gen.go index 90cd54d71b7..f16adb8e208 100644 --- a/documentai/v1beta2/documentai-gen.go +++ b/documentai/v1beta2/documentai-gen.go @@ -206,6 +206,82 @@ type ProjectsOperationsService struct { s *Service } +// GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata: Metadata of +// the auto-labeling documents operation. +type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata struct { + // CommonMetadata: The basic metadata of the long running operation. + CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` + + // IndividualAutoLabelStatuses: The list of individual auto-labeling + // statuses of the dataset documents. + IndividualAutoLabelStatuses []*GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus `json:"individualAutoLabelStatuses,omitempty"` + + // TotalDocumentCount: Total number of the auto-labeling documents. + TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAuto +// LabelStatus: The status of individual documents in the auto-labeling +// process. +type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus struct { + // GcsUri: The gcs_uri of the auto-labeling document, which uniquely + // identifies a dataset document. + GcsUri string `json:"gcsUri,omitempty"` + + // Status: The status of the document auto-labeling. + Status *GoogleRpcStatus `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcsUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GcsUri") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse: The +// response proto of AutoLabelDocuments method. +type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse struct { +} + type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata struct { // CommonMetadata: The basic metadata of the long running operation. CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index 75f37478d42..d11893fba5b 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -984,9 +984,53 @@ } } }, - "revision": "20230218", + "revision": "20230302", "rootUrl": "https://documentai.googleapis.com/", "schemas": { + "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { + "description": "Metadata of the auto-labeling documents operation.", + "id": "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata", + "properties": { + "commonMetadata": { + "$ref": "GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata", + "description": "The basic metadata of the long running operation." + }, + "individualAutoLabelStatuses": { + "description": "The list of individual auto-labeling statuses of the dataset documents.", + "items": { + "$ref": "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus" + }, + "type": "array" + }, + "totalDocumentCount": { + "description": "Total number of the auto-labeling documents.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus": { + "description": "The status of individual documents in the auto-labeling process.", + "id": "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus", + "properties": { + "gcsUri": { + "description": "The gcs_uri of the auto-labeling document, which uniquely identifies a dataset document.", + "type": "string" + }, + "status": { + "$ref": "GoogleRpcStatus", + "description": "The status of the document auto-labeling." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse": { + "description": "The response proto of AutoLabelDocuments method.", + "id": "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse", + "properties": {}, + "type": "object" + }, "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { "id": "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata", "properties": { diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index 28d03b083e1..04c4e281944 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -230,6 +230,82 @@ type ProjectsLocationsProcessorsProcessorVersionsEvaluationsService struct { s *Service } +// GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata: Metadata of +// the auto-labeling documents operation. +type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata struct { + // CommonMetadata: The basic metadata of the long running operation. + CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` + + // IndividualAutoLabelStatuses: The list of individual auto-labeling + // statuses of the dataset documents. + IndividualAutoLabelStatuses []*GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus `json:"individualAutoLabelStatuses,omitempty"` + + // TotalDocumentCount: Total number of the auto-labeling documents. + TotalDocumentCount int64 `json:"totalDocumentCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommonMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CommonMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAuto +// LabelStatus: The status of individual documents in the auto-labeling +// process. +type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus struct { + // GcsUri: The gcs_uri of the auto-labeling document, which uniquely + // identifies a dataset document. + GcsUri string `json:"gcsUri,omitempty"` + + // Status: The status of the document auto-labeling. + Status *GoogleRpcStatus `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcsUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GcsUri") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadataIndividualAutoLabelStatus + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse: The +// response proto of AutoLabelDocuments method. +type GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsResponse struct { +} + type GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata struct { // CommonMetadata: The basic metadata of the long running operation. CommonMetadata *GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata `json:"commonMetadata,omitempty"` diff --git a/firebaseml/v1/firebaseml-api.json b/firebaseml/v1/firebaseml-api.json index 684470866f5..2220d158e40 100644 --- a/firebaseml/v1/firebaseml-api.json +++ b/firebaseml/v1/firebaseml-api.json @@ -161,7 +161,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/operations", "httpMethod": "GET", "id": "firebaseml.operations.list", @@ -204,7 +204,7 @@ } } }, - "revision": "20220321", + "revision": "20230306", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "CancelOperationRequest": { diff --git a/firebaseml/v1/firebaseml-gen.go b/firebaseml/v1/firebaseml-gen.go index ccbf2070376..9f33773d062 100644 --- a/firebaseml/v1/firebaseml-gen.go +++ b/firebaseml/v1/firebaseml-gen.go @@ -640,14 +640,7 @@ type OperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *OperationsService) List(name string) *OperationsListCall { @@ -776,7 +769,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/operations", // "httpMethod": "GET", // "id": "firebaseml.operations.list", diff --git a/iap/v1/iap-api.json b/iap/v1/iap-api.json index 68b7cf8c0dc..5bccc33892c 100644 --- a/iap/v1/iap-api.json +++ b/iap/v1/iap-api.json @@ -652,7 +652,7 @@ } } }, - "revision": "20230127", + "revision": "20230303", "rootUrl": "https://iap.googleapis.com/", "schemas": { "AccessDeniedPageSettings": { @@ -755,7 +755,7 @@ "type": "boolean" }, "expression": { - "description": "Raw string CEL expression. Must return a list of attributes. Maximum of 45 attributes can be selected. Expressions can select different attribute types from `attributes`: `attributes.saml_attributes`, `attributes.iap_attributes`. Limited functions are supported: - filter: .filter(, ) -\u003e returns a subset of where is true for every item - in: in -\u003e returns true if contains - selectByName: .selectByName() -\u003e returns the attribute in with the given name, otherwise returns empty. - emitAs: .emitAs() -\u003e sets the name field to the given for propagation in selected output credentials. - strict: .strict() -\u003e ignore the `x-goog-iap-attr-` prefix for the provided attribute when propagating via the `HEADER` output credential, i.e. request headers. - append: .append() OR .append() -\u003e append the provided or onto the end of Example expression: attributes.saml_attributes.filter(x, x.name in ['test']).append(attributes.iap_attributes.selectByName('exact').emitAs('custom').strict())", + "description": "Raw string CEL expression. Must return a list of attributes. A maximum of 45 attributes can be selected. Expressions can select different attribute types from `attributes`: `attributes.saml_attributes`, `attributes.iap_attributes`. The following functions are supported: - filter `.filter(, )`: Returns a subset of `` where `` is true for every item. - in ` in `: Returns true if `` contains ``. - selectByName `.selectByName()`: Returns the attribute in `` with the given `` name, otherwise returns empty. - emitAs `.emitAs()`: Sets the `` name field to the given `` for propagation in selected output credentials. - strict `.strict()`: Ignores the `x-goog-iap-attr-` prefix for the provided `` when propagating with the `HEADER` output credential, such as request headers. - append `.append()` OR `.append()`: Appends the provided `` or `` to the end of ``. Example expression: `attributes.saml_attributes.filter(x, x.name in ['test']).append(attributes.iap_attributes.selectByName('exact').emitAs('custom').strict())`", "type": "string" }, "outputCredentials": { @@ -768,10 +768,10 @@ "RCTOKEN" ], "enumDescriptions": [ - "No output credential. This is unsupported in IAP, there must be an output credential.", + "Output credential not provided. This is unsupported in IAP. An output credential is required.", "Propagate attributes in the headers with \"x-goog-iap-attr-\" prefix.", - "Propagate attributes in the JWT of the form: \"additional_claims\": { \"my_attribute\": [\"value1\", \"value2\"] }", - "Propagate attributes in the RCToken of the form: \"additional_claims\": { \"my_attribute\": [\"value1\", \"value2\"] }" + "Propagate attributes in the JWT of the form: `\"additional_claims\": { \"my_attribute\": [\"value1\", \"value2\"] }`", + "Propagate attributes in the RCToken of the form: `\"additional_claims\": { \"my_attribute\": [\"value1\", \"value2\"] }`" ], "type": "string" }, @@ -1107,7 +1107,7 @@ "enumDescriptions": [ "Reauthentication disabled.", "Prompts the user to log in again.", - "Deprecated, no longer accepted by IAP APIs.", + "Deprecated.", "User must use their secure key 2nd factor device.", "User can use any enabled 2nd factor." ], diff --git a/iap/v1/iap-gen.go b/iap/v1/iap-gen.go index efbe2eac535..c0ebe134b33 100644 --- a/iap/v1/iap-gen.go +++ b/iap/v1/iap-gen.go @@ -393,21 +393,22 @@ type AttributePropagationSettings struct { Enable bool `json:"enable,omitempty"` // Expression: Raw string CEL expression. Must return a list of - // attributes. Maximum of 45 attributes can be selected. Expressions can - // select different attribute types from `attributes`: - // `attributes.saml_attributes`, `attributes.iap_attributes`. Limited - // functions are supported: - filter: .filter(, ) -> returns a subset of - // where is true for every item - in: in -> returns true if contains - - // selectByName: .selectByName() -> returns the attribute in with the - // given name, otherwise returns empty. - emitAs: .emitAs() -> sets the - // name field to the given for propagation in selected output - // credentials. - strict: .strict() -> ignore the `x-goog-iap-attr-` - // prefix for the provided attribute when propagating via the `HEADER` - // output credential, i.e. request headers. - append: .append() OR - // .append() -> append the provided or onto the end of Example - // expression: attributes.saml_attributes.filter(x, x.name in + // attributes. A maximum of 45 attributes can be selected. Expressions + // can select different attribute types from `attributes`: + // `attributes.saml_attributes`, `attributes.iap_attributes`. The + // following functions are supported: - filter `.filter(, )`: Returns a + // subset of `` where `` is true for every item. - in ` in `: Returns + // true if `` contains ``. - selectByName `.selectByName()`: Returns the + // attribute in `` with the given `` name, otherwise returns empty. - + // emitAs `.emitAs()`: Sets the `` name field to the given `` for + // propagation in selected output credentials. - strict `.strict()`: + // Ignores the `x-goog-iap-attr-` prefix for the provided `` when + // propagating with the `HEADER` output credential, such as request + // headers. - append `.append()` OR `.append()`: Appends the provided `` + // or `` to the end of ``. Example expression: + // `attributes.saml_attributes.filter(x, x.name in // ['test']).append(attributes.iap_attributes.selectByName('exact').emitA - // s('custom').strict()) + // s('custom').strict())` Expression string `json:"expression,omitempty"` // OutputCredentials: Which output credentials attributes selected by @@ -415,14 +416,14 @@ type AttributePropagationSettings struct { // fully duplicated in each selected output credential. // // Possible values: - // "OUTPUT_CREDENTIALS_UNSPECIFIED" - No output credential. This is - // unsupported in IAP, there must be an output credential. + // "OUTPUT_CREDENTIALS_UNSPECIFIED" - Output credential not provided. + // This is unsupported in IAP. An output credential is required. // "HEADER" - Propagate attributes in the headers with // "x-goog-iap-attr-" prefix. // "JWT" - Propagate attributes in the JWT of the form: - // "additional_claims": { "my_attribute": ["value1", "value2"] } + // "additional_claims": { "my_attribute": ["value1", "value2"] }` // "RCTOKEN" - Propagate attributes in the RCToken of the form: - // "additional_claims": { "my_attribute": ["value1", "value2"] } + // "additional_claims": { "my_attribute": ["value1", "value2"] }` OutputCredentials []string `json:"outputCredentials,omitempty"` // ForceSendFields is a list of field names (e.g. "Enable") to @@ -1248,7 +1249,7 @@ type ReauthSettings struct { // Possible values: // "METHOD_UNSPECIFIED" - Reauthentication disabled. // "LOGIN" - Prompts the user to log in again. - // "PASSWORD" - Deprecated, no longer accepted by IAP APIs. + // "PASSWORD" - Deprecated. // "SECURE_KEY" - User must use their secure key 2nd factor device. // "ENROLLED_SECOND_FACTORS" - User can use any enabled 2nd factor. Method string `json:"method,omitempty"` diff --git a/integrations/v1alpha/integrations-api.json b/integrations/v1alpha/integrations-api.json index 5398c356005..cb0fdca6373 100644 --- a/integrations/v1alpha/integrations-api.json +++ b/integrations/v1alpha/integrations-api.json @@ -777,7 +777,7 @@ ], "parameters": { "filter": { - "description": "Optional. Standard filter field, we support filtering on all fields in EventExecutionParamIndexes table. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, ParameterType support for HAS For example: \"parameter_value\" HAS \\\"parameter1\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND event_execution_state=\\\"FAILED\\\"", + "description": "Optional. Standard filter field, we support filtering on following fields: workflow_name: the name of the integration. CreateTimestamp: the execution created time. event_execution_state: the state of the executions. execution_id: the id of the execution. trigger_id: the id of the trigger. parameter_type: the type of the parameters involved in the execution. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterType support for HAS For example: \"parameter_type\" HAS \\\"string\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND workflow_name=\\\"testWorkflow\\\"", "location": "query", "type": "string" }, @@ -1884,7 +1884,7 @@ ], "parameters": { "filter": { - "description": "Optional. Standard filter field, we support filtering on all fields in EventExecutionParamIndexes table. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, ParameterType support for HAS For example: \"parameter_value\" HAS \\\"parameter1\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND event_execution_state=\\\"FAILED\\\"", + "description": "Optional. Standard filter field, we support filtering on following fields: workflow_name: the name of the integration. CreateTimestamp: the execution created time. event_execution_state: the state of the executions. execution_id: the id of the execution. trigger_id: the id of the trigger. parameter_type: the type of the parameters involved in the execution. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterType support for HAS For example: \"parameter_type\" HAS \\\"string\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND workflow_name=\\\"testWorkflow\\\"", "location": "query", "type": "string" }, @@ -3202,7 +3202,7 @@ } } }, - "revision": "20230222", + "revision": "20230303", "rootUrl": "https://integrations.googleapis.com/", "schemas": { "CrmlogErrorCode": { @@ -3679,6 +3679,32 @@ }, "type": "object" }, + "EnterpriseCrmEventbusProtoCloudKmsConfig": { + "id": "EnterpriseCrmEventbusProtoCloudKmsConfig", + "properties": { + "gcpProjectId": { + "description": "Optional. The id of GCP project where the KMS key is stored. If not provided, assume the key is stored in the same GCP project defined in Client (tag 14).", + "type": "string" + }, + "keyName": { + "description": "A Cloud KMS key is a named object containing one or more key versions, along with metadata for the key. A key exists on exactly one key ring tied to a specific location.", + "type": "string" + }, + "keyRingName": { + "description": "A key ring organizes keys in a specific Google Cloud location and allows you to manage access control on groups of keys. A key ring's name does not need to be unique across a Google Cloud project, but must be unique within a given location.", + "type": "string" + }, + "keyVersionName": { + "description": "Optional. Each version of a key contains key material used for encryption or signing. A key's version is represented by an integer, starting at 1. To decrypt data or verify a signature, you must use the same key version that was used to encrypt or sign the data.", + "type": "string" + }, + "locationName": { + "description": "Location name of the key ring, e.g. \"us-west1\".", + "type": "string" + } + }, + "type": "object" + }, "EnterpriseCrmEventbusProtoCloudSchedulerConfig": { "description": "Cloud Scheduler Trigger configuration", "id": "EnterpriseCrmEventbusProtoCloudSchedulerConfig", @@ -5524,11 +5550,24 @@ "audit": { "$ref": "EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit" }, + "clientId": { + "description": "The event data user sends as request.", + "type": "string" + }, + "cloudKmsConfig": { + "$ref": "EnterpriseCrmEventbusProtoCloudKmsConfig", + "description": "KMS info, used by cmek/gmek integration" + }, "createdTimestamp": { "description": "Auto-generated.", "format": "google-datetime", "type": "string" }, + "encryptedSuspensionResolutionInfo": { + "description": "Encrypted SuspensionResolutionInfo", + "format": "byte", + "type": "string" + }, "eventExecutionInfoId": { "description": "Required. ID of the associated execution.", "type": "string" @@ -5585,6 +5624,11 @@ "workflowName": { "description": "Required. The name of the originating workflow.", "type": "string" + }, + "wrappedDek": { + "description": "Wrapped dek", + "format": "byte", + "type": "string" } }, "type": "object" @@ -7046,8 +7090,8 @@ "description": "If this config contains a TypedTask, allow validation to succeed if an input is read from the output of another TypedTask whose output type is declared as a superclass of the requested input type. For instance, if the previous task declares an output of type Message, any task with this flag enabled will pass validation when attempting to read any proto Message type from the resultant Event parameter.", "type": "boolean" }, - "errorCatcherConfigId": { - "description": "Optional Error catcher config id of the error catch flow which will be executed when execution error happens in the task", + "errorCatcherId": { + "description": "Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task", "type": "string" }, "externalTaskType": { @@ -7244,7 +7288,7 @@ "type": "object" }, "EnterpriseCrmFrontendsEventbusProtoTriggerConfig": { - "description": "Configuration detail of a trigger. Next available id: 18", + "description": "Configuration detail of a trigger. Next available id: 19", "id": "EnterpriseCrmFrontendsEventbusProtoTriggerConfig", "properties": { "alertConfig": { @@ -7268,8 +7312,8 @@ }, "type": "array" }, - "errorCatcherConfigId": { - "description": "Optional Error catcher config id of the error catch flow which will be executed when execution error happens in the task", + "errorCatcherId": { + "description": "Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task", "type": "string" }, "label": { @@ -8446,6 +8490,23 @@ }, "type": "object" }, + "GoogleCloudIntegrationsV1alphaCoordinate": { + "description": "Configuration detail of coordinate, it used for UI", + "id": "GoogleCloudIntegrationsV1alphaCoordinate", + "properties": { + "x": { + "description": "Required. X axis of the coordinate", + "format": "int32", + "type": "integer" + }, + "y": { + "description": "Required. Y axis of the coordinate", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest": { "description": "Request for CreateAppsScriptProject rpc call.", "id": "GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest", @@ -8591,8 +8652,8 @@ "description": "Optional. User-provided description intended to give more business context about the error catcher config.", "type": "string" }, - "errorCatchId": { - "description": "Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catch_id uniquely identifies an error catcher config among all error catcher configs for the workflow", + "errorCatcherId": { + "description": "Required. An error catcher id is string representation for the error catcher config. Within a workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher configs for the workflow", "type": "string" }, "errorCatcherNumber": { @@ -8603,6 +8664,10 @@ "description": "Optional. The user created label for a particular error catcher. Optional.", "type": "string" }, + "position": { + "$ref": "GoogleCloudIntegrationsV1alphaCoordinate", + "description": "Optional. Informs the front-end application where to draw this error catcher config on the UI." + }, "startErrorTasks": { "description": "Required. The set of start tasks that are to be executed for the error catch flow", "items": { @@ -10473,8 +10538,8 @@ "description": "Optional. User-provided label that is attached to this TaskConfig in the UI.", "type": "string" }, - "errorCatcherConfigId": { - "description": "Optional. Optional Error catcher config id of the error catch flow which will be executed when execution error happens in the task", + "errorCatcherId": { + "description": "Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task", "type": "string" }, "externalTaskType": { @@ -10541,6 +10606,10 @@ "description": "Optional. The customized parameters the user can pass to this task.", "type": "object" }, + "position": { + "$ref": "GoogleCloudIntegrationsV1alphaCoordinate", + "description": "Optional. Informs the front-end application where to draw this error catcher config on the UI." + }, "successPolicy": { "$ref": "GoogleCloudIntegrationsV1alphaSuccessPolicy", "description": "Optional. Determines what action to take upon successful task completion." @@ -10651,8 +10720,8 @@ "description": "Optional. User-provided description intended to give additional business context about the task.", "type": "string" }, - "errorCatcherConfigId": { - "description": "Optional. Optional Error catcher config id of the error catch flow which will be executed when execution error happens in the task", + "errorCatcherId": { + "description": "Optional. Optional Error catcher id of the error catch flow which will be executed when execution error happens in the task", "type": "string" }, "label": { @@ -10673,6 +10742,10 @@ ], "type": "string" }, + "position": { + "$ref": "GoogleCloudIntegrationsV1alphaCoordinate", + "description": "Optional. Informs the front-end application where to draw this error catcher config on the UI." + }, "properties": { "additionalProperties": { "type": "string" diff --git a/integrations/v1alpha/integrations-gen.go b/integrations/v1alpha/integrations-gen.go index 72cfd0cf99e..15755f7421e 100644 --- a/integrations/v1alpha/integrations-gen.go +++ b/integrations/v1alpha/integrations-gen.go @@ -1001,6 +1001,56 @@ func (s *EnterpriseCrmEventbusProtoBuganizerNotification) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type EnterpriseCrmEventbusProtoCloudKmsConfig struct { + // GcpProjectId: Optional. The id of GCP project where the KMS key is + // stored. If not provided, assume the key is stored in the same GCP + // project defined in Client (tag 14). + GcpProjectId string `json:"gcpProjectId,omitempty"` + + // KeyName: A Cloud KMS key is a named object containing one or more key + // versions, along with metadata for the key. A key exists on exactly + // one key ring tied to a specific location. + KeyName string `json:"keyName,omitempty"` + + // KeyRingName: A key ring organizes keys in a specific Google Cloud + // location and allows you to manage access control on groups of keys. A + // key ring's name does not need to be unique across a Google Cloud + // project, but must be unique within a given location. + KeyRingName string `json:"keyRingName,omitempty"` + + // KeyVersionName: Optional. Each version of a key contains key material + // used for encryption or signing. A key's version is represented by an + // integer, starting at 1. To decrypt data or verify a signature, you + // must use the same key version that was used to encrypt or sign the + // data. + KeyVersionName string `json:"keyVersionName,omitempty"` + + // LocationName: Location name of the key ring, e.g. "us-west1". + LocationName string `json:"locationName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GcpProjectId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GcpProjectId") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseCrmEventbusProtoCloudKmsConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseCrmEventbusProtoCloudKmsConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // EnterpriseCrmEventbusProtoCloudSchedulerConfig: Cloud Scheduler // Trigger configuration type EnterpriseCrmEventbusProtoCloudSchedulerConfig struct { @@ -3630,9 +3680,18 @@ func (s *EnterpriseCrmEventbusProtoSuspensionExpiration) MarshalJSON() ([]byte, type EnterpriseCrmEventbusProtoSuspensionResolutionInfo struct { Audit *EnterpriseCrmEventbusProtoSuspensionResolutionInfoAudit `json:"audit,omitempty"` + // ClientId: The event data user sends as request. + ClientId string `json:"clientId,omitempty"` + + // CloudKmsConfig: KMS info, used by cmek/gmek integration + CloudKmsConfig *EnterpriseCrmEventbusProtoCloudKmsConfig `json:"cloudKmsConfig,omitempty"` + // CreatedTimestamp: Auto-generated. CreatedTimestamp string `json:"createdTimestamp,omitempty"` + // EncryptedSuspensionResolutionInfo: Encrypted SuspensionResolutionInfo + EncryptedSuspensionResolutionInfo string `json:"encryptedSuspensionResolutionInfo,omitempty"` + // EventExecutionInfoId: Required. ID of the associated execution. EventExecutionInfoId string `json:"eventExecutionInfoId,omitempty"` @@ -3670,6 +3729,9 @@ type EnterpriseCrmEventbusProtoSuspensionResolutionInfo struct { // WorkflowName: Required. The name of the originating workflow. WorkflowName string `json:"workflowName,omitempty"` + // WrappedDek: Wrapped dek + WrappedDek string `json:"wrappedDek,omitempty"` + // ForceSendFields is a list of field names (e.g. "Audit") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -5551,10 +5613,9 @@ type EnterpriseCrmFrontendsEventbusProtoTaskConfig struct { // resultant Event parameter. DisableStrictTypeValidation bool `json:"disableStrictTypeValidation,omitempty"` - // ErrorCatcherConfigId: Optional Error catcher config id of the error - // catch flow which will be executed when execution error happens in the - // task - ErrorCatcherConfigId string `json:"errorCatcherConfigId,omitempty"` + // ErrorCatcherId: Optional Error catcher id of the error catch flow + // which will be executed when execution error happens in the task + ErrorCatcherId string `json:"errorCatcherId,omitempty"` // Possible values: // "EXTERNAL_TASK_TYPE_UNSPECIFIED" - Default value. External task @@ -5771,7 +5832,7 @@ func (s *EnterpriseCrmFrontendsEventbusProtoTaskEntity) MarshalJSON() ([]byte, e } // EnterpriseCrmFrontendsEventbusProtoTriggerConfig: Configuration -// detail of a trigger. Next available id: 18 +// detail of a trigger. Next available id: 19 type EnterpriseCrmFrontendsEventbusProtoTriggerConfig struct { // AlertConfig: An alert threshold configuration for the [trigger + // client + workflow] tuple. If these values are not specified in the @@ -5794,10 +5855,9 @@ type EnterpriseCrmFrontendsEventbusProtoTriggerConfig struct { // workflow execution is triggered on behalf of each enabled client. EnabledClients []string `json:"enabledClients,omitempty"` - // ErrorCatcherConfigId: Optional Error catcher config id of the error - // catch flow which will be executed when execution error happens in the - // task - ErrorCatcherConfigId string `json:"errorCatcherConfigId,omitempty"` + // ErrorCatcherId: Optional Error catcher id of the error catch flow + // which will be executed when execution error happens in the task + ErrorCatcherId string `json:"errorCatcherId,omitempty"` // Label: The user created label for a particular trigger. Label string `json:"label,omitempty"` @@ -7343,6 +7403,38 @@ func (s *GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata) MarshalJSON() ( return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudIntegrationsV1alphaCoordinate: Configuration detail of +// coordinate, it used for UI +type GoogleCloudIntegrationsV1alphaCoordinate struct { + // X: Required. X axis of the coordinate + X int64 `json:"x,omitempty"` + + // Y: Required. Y axis of the coordinate + Y int64 `json:"y,omitempty"` + + // ForceSendFields is a list of field names (e.g. "X") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "X") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudIntegrationsV1alphaCoordinate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudIntegrationsV1alphaCoordinate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest: Request // for CreateAppsScriptProject rpc call. type GoogleCloudIntegrationsV1alphaCreateAppsScriptProjectRequest struct { @@ -7587,11 +7679,11 @@ type GoogleCloudIntegrationsV1alphaErrorCatcherConfig struct { // more business context about the error catcher config. Description string `json:"description,omitempty"` - // ErrorCatchId: Required. An error catcher id is string representation - // for the error catcher config. Within a workflow, error_catch_id - // uniquely identifies an error catcher config among all error catcher - // configs for the workflow - ErrorCatchId string `json:"errorCatchId,omitempty"` + // ErrorCatcherId: Required. An error catcher id is string + // representation for the error catcher config. Within a workflow, + // error_catcher_id uniquely identifies an error catcher config among + // all error catcher configs for the workflow + ErrorCatcherId string `json:"errorCatcherId,omitempty"` // ErrorCatcherNumber: Required. A number to uniquely identify each // error catcher config within the workflow on UI. @@ -7601,6 +7693,10 @@ type GoogleCloudIntegrationsV1alphaErrorCatcherConfig struct { // catcher. Optional. Label string `json:"label,omitempty"` + // Position: Optional. Informs the front-end application where to draw + // this error catcher config on the UI. + Position *GoogleCloudIntegrationsV1alphaCoordinate `json:"position,omitempty"` + // StartErrorTasks: Required. The set of start tasks that are to be // executed for the error catch flow StartErrorTasks []*GoogleCloudIntegrationsV1alphaNextTask `json:"startErrorTasks,omitempty"` @@ -10394,10 +10490,10 @@ type GoogleCloudIntegrationsV1alphaTaskConfig struct { // TaskConfig in the UI. DisplayName string `json:"displayName,omitempty"` - // ErrorCatcherConfigId: Optional. Optional Error catcher config id of - // the error catch flow which will be executed when execution error - // happens in the task - ErrorCatcherConfigId string `json:"errorCatcherConfigId,omitempty"` + // ErrorCatcherId: Optional. Optional Error catcher id of the error + // catch flow which will be executed when execution error happens in the + // task + ErrorCatcherId string `json:"errorCatcherId,omitempty"` // ExternalTaskType: Optional. External task type of the task // @@ -10451,6 +10547,10 @@ type GoogleCloudIntegrationsV1alphaTaskConfig struct { // this task. Parameters map[string]GoogleCloudIntegrationsV1alphaEventParameter `json:"parameters,omitempty"` + // Position: Optional. Informs the front-end application where to draw + // this error catcher config on the UI. + Position *GoogleCloudIntegrationsV1alphaCoordinate `json:"position,omitempty"` + // SuccessPolicy: Optional. Determines what action to take upon // successful task completion. SuccessPolicy *GoogleCloudIntegrationsV1alphaSuccessPolicy `json:"successPolicy,omitempty"` @@ -10596,10 +10696,10 @@ type GoogleCloudIntegrationsV1alphaTriggerConfig struct { // additional business context about the task. Description string `json:"description,omitempty"` - // ErrorCatcherConfigId: Optional. Optional Error catcher config id of - // the error catch flow which will be executed when execution error - // happens in the task - ErrorCatcherConfigId string `json:"errorCatcherConfigId,omitempty"` + // ErrorCatcherId: Optional. Optional Error catcher id of the error + // catch flow which will be executed when execution error happens in the + // task + ErrorCatcherId string `json:"errorCatcherId,omitempty"` // Label: Optional. The user created label for a particular trigger. Label string `json:"label,omitempty"` @@ -10615,6 +10715,10 @@ type GoogleCloudIntegrationsV1alphaTriggerConfig struct { // associated condition. NextTasksExecutionPolicy string `json:"nextTasksExecutionPolicy,omitempty"` + // Position: Optional. Informs the front-end application where to draw + // this error catcher config on the UI. + Position *GoogleCloudIntegrationsV1alphaCoordinate `json:"position,omitempty"` + // Properties: Optional. Configurable properties of the trigger, not to // be confused with integration parameters. E.g. "name" is a property // for API triggers and "subscription" is a property for Pub/sub @@ -14150,12 +14254,16 @@ func (r *ProjectsLocationsIntegrationsExecutionsService) List(parent string) *Pr } // Filter sets the optional parameter "filter": Standard filter field, -// we support filtering on all fields in EventExecutionParamIndexes -// table. All fields support for EQUALS, in additional: CreateTimestamp -// support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, -// ParameterType support for HAS For example: "parameter_value" HAS -// \"parameter1\" Also supports operators like AND, OR, NOT For example, -// trigger_id=\"id1\" AND event_execution_state=\"FAILED\" +// we support filtering on following fields: workflow_name: the name of +// the integration. CreateTimestamp: the execution created time. +// event_execution_state: the state of the executions. execution_id: the +// id of the execution. trigger_id: the id of the trigger. +// parameter_type: the type of the parameters involved in the execution. +// All fields support for EQUALS, in additional: CreateTimestamp support +// for LESS_THAN, GREATER_THAN ParameterType support for HAS For +// example: "parameter_type" HAS \"string\" Also supports operators like +// AND, OR, NOT For example, trigger_id=\"id1\" AND +// workflow_name=\"testWorkflow\" func (c *ProjectsLocationsIntegrationsExecutionsListCall) Filter(filter string) *ProjectsLocationsIntegrationsExecutionsListCall { c.urlParams_.Set("filter", filter) return c @@ -14409,7 +14517,7 @@ func (c *ProjectsLocationsIntegrationsExecutionsListCall) Do(opts ...googleapi.C // ], // "parameters": { // "filter": { - // "description": "Optional. Standard filter field, we support filtering on all fields in EventExecutionParamIndexes table. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, ParameterType support for HAS For example: \"parameter_value\" HAS \\\"parameter1\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND event_execution_state=\\\"FAILED\\\"", + // "description": "Optional. Standard filter field, we support filtering on following fields: workflow_name: the name of the integration. CreateTimestamp: the execution created time. event_execution_state: the state of the executions. execution_id: the id of the execution. trigger_id: the id of the trigger. parameter_type: the type of the parameters involved in the execution. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterType support for HAS For example: \"parameter_type\" HAS \\\"string\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND workflow_name=\\\"testWorkflow\\\"", // "location": "query", // "type": "string" // }, @@ -19470,12 +19578,16 @@ func (r *ProjectsLocationsProductsIntegrationsExecutionsService) List(parent str } // Filter sets the optional parameter "filter": Standard filter field, -// we support filtering on all fields in EventExecutionParamIndexes -// table. All fields support for EQUALS, in additional: CreateTimestamp -// support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, -// ParameterType support for HAS For example: "parameter_value" HAS -// \"parameter1\" Also supports operators like AND, OR, NOT For example, -// trigger_id=\"id1\" AND event_execution_state=\"FAILED\" +// we support filtering on following fields: workflow_name: the name of +// the integration. CreateTimestamp: the execution created time. +// event_execution_state: the state of the executions. execution_id: the +// id of the execution. trigger_id: the id of the trigger. +// parameter_type: the type of the parameters involved in the execution. +// All fields support for EQUALS, in additional: CreateTimestamp support +// for LESS_THAN, GREATER_THAN ParameterType support for HAS For +// example: "parameter_type" HAS \"string\" Also supports operators like +// AND, OR, NOT For example, trigger_id=\"id1\" AND +// workflow_name=\"testWorkflow\" func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Filter(filter string) *ProjectsLocationsProductsIntegrationsExecutionsListCall { c.urlParams_.Set("filter", filter) return c @@ -19729,7 +19841,7 @@ func (c *ProjectsLocationsProductsIntegrationsExecutionsListCall) Do(opts ...goo // ], // "parameters": { // "filter": { - // "description": "Optional. Standard filter field, we support filtering on all fields in EventExecutionParamIndexes table. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterKey, ParameterValue, ParameterType support for HAS For example: \"parameter_value\" HAS \\\"parameter1\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND event_execution_state=\\\"FAILED\\\"", + // "description": "Optional. Standard filter field, we support filtering on following fields: workflow_name: the name of the integration. CreateTimestamp: the execution created time. event_execution_state: the state of the executions. execution_id: the id of the execution. trigger_id: the id of the trigger. parameter_type: the type of the parameters involved in the execution. All fields support for EQUALS, in additional: CreateTimestamp support for LESS_THAN, GREATER_THAN ParameterType support for HAS For example: \"parameter_type\" HAS \\\"string\\\" Also supports operators like AND, OR, NOT For example, trigger_id=\\\"id1\\\" AND workflow_name=\\\"testWorkflow\\\"", // "location": "query", // "type": "string" // }, diff --git a/ml/v1/ml-api.json b/ml/v1/ml-api.json index 4fa081f40a5..0fd5fb5cce6 100644 --- a/ml/v1/ml-api.json +++ b/ml/v1/ml-api.json @@ -1441,7 +1441,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/operations", "httpMethod": "GET", "id": "ml.projects.operations.list", @@ -1486,7 +1486,7 @@ } } }, - "revision": "20230228", + "revision": "20230304", "rootUrl": "https://ml.googleapis.com/", "schemas": { "GoogleApi__HttpBody": { diff --git a/ml/v1/ml-gen.go b/ml/v1/ml-gen.go index 2bbb466df99..d1950d7e92f 100644 --- a/ml/v1/ml-gen.go +++ b/ml/v1/ml-gen.go @@ -11683,14 +11683,7 @@ type ProjectsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall { @@ -11821,7 +11814,7 @@ func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLo } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/operations", // "httpMethod": "GET", // "id": "ml.projects.operations.list", diff --git a/policysimulator/v1/policysimulator-api.json b/policysimulator/v1/policysimulator-api.json index 42b8e6f0faf..43840d54c87 100644 --- a/policysimulator/v1/policysimulator-api.json +++ b/policysimulator/v1/policysimulator-api.json @@ -227,7 +227,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/replays/{replaysId}/operations", "httpMethod": "GET", "id": "policysimulator.folders.locations.replays.operations.list", @@ -343,7 +343,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/operations", "httpMethod": "GET", "id": "policysimulator.operations.list", @@ -507,7 +507,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/replays/{replaysId}/operations", "httpMethod": "GET", "id": "policysimulator.organizations.locations.replays.operations.list", @@ -717,7 +717,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/replays/{replaysId}/operations", "httpMethod": "GET", "id": "policysimulator.projects.locations.replays.operations.list", @@ -806,7 +806,7 @@ } } }, - "revision": "20230219", + "revision": "20230304", "rootUrl": "https://policysimulator.googleapis.com/", "schemas": { "GoogleCloudPolicysimulatorV1AccessStateDiff": { @@ -1254,119 +1254,6 @@ }, "type": "object" }, - "GoogleCloudPolicysimulatorV1beta1Replay": { - "description": "A resource describing a `Replay`, or simulation.", - "id": "GoogleCloudPolicysimulatorV1beta1Replay", - "properties": { - "config": { - "$ref": "GoogleCloudPolicysimulatorV1beta1ReplayConfig", - "description": "Required. The configuration used for the `Replay`." - }, - "name": { - "description": "Output only. The resource name of the `Replay`, which has the following format: `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where `{resource-id}` is the ID of the project, folder, or organization that owns the Replay. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`", - "readOnly": true, - "type": "string" - }, - "resultsSummary": { - "$ref": "GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary", - "description": "Output only. Summary statistics about the replayed log entries.", - "readOnly": true - }, - "state": { - "description": "Output only. The current state of the `Replay`.", - "enum": [ - "STATE_UNSPECIFIED", - "PENDING", - "RUNNING", - "SUCCEEDED", - "FAILED" - ], - "enumDescriptions": [ - "The state is unspecified.", - "The `Replay` has not started yet.", - "The `Replay` is currently running.", - "The `Replay` has successfully completed.", - "The `Replay` has finished with an error." - ], - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudPolicysimulatorV1beta1ReplayConfig": { - "description": "The configuration used for a Replay.", - "id": "GoogleCloudPolicysimulatorV1beta1ReplayConfig", - "properties": { - "logSource": { - "description": "The logs to use as input for the Replay.", - "enum": [ - "LOG_SOURCE_UNSPECIFIED", - "RECENT_ACCESSES" - ], - "enumDescriptions": [ - "An unspecified log source. If the log source is unspecified, the Replay defaults to using `RECENT_ACCESSES`.", - "All access logs from the last 90 days. These logs may not include logs from the most recent 7 days." - ], - "type": "string" - }, - "policyOverlay": { - "additionalProperties": { - "$ref": "GoogleIamV1Policy" - }, - "description": "A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example, `//cloudresourcemanager.googleapis.com/projects/my-project`. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.", - "type": "object" - } - }, - "type": "object" - }, - "GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata": { - "description": "Metadata about a Replay operation.", - "id": "GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata", - "properties": { - "startTime": { - "description": "Time when the request was received.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary": { - "description": "Summary statistics about the replayed log entries.", - "id": "GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary", - "properties": { - "differenceCount": { - "description": "The number of replayed log entries with a difference between baseline and simulated policies.", - "format": "int32", - "type": "integer" - }, - "errorCount": { - "description": "The number of log entries that could not be replayed.", - "format": "int32", - "type": "integer" - }, - "logCount": { - "description": "The total number of log entries replayed.", - "format": "int32", - "type": "integer" - }, - "newestDate": { - "$ref": "GoogleTypeDate", - "description": "The date of the newest log entry replayed." - }, - "oldestDate": { - "$ref": "GoogleTypeDate", - "description": "The date of the oldest log entry replayed." - }, - "unchangedCount": { - "description": "The number of replayed log entries with no difference between baseline and simulated policies.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, "GoogleIamV1AuditConfig": { "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", "id": "GoogleIamV1AuditConfig", diff --git a/policysimulator/v1/policysimulator-gen.go b/policysimulator/v1/policysimulator-gen.go index 2382b4ceb41..7b2be902a79 100644 --- a/policysimulator/v1/policysimulator-gen.go +++ b/policysimulator/v1/policysimulator-gen.go @@ -1133,183 +1133,6 @@ func (s *GoogleCloudPolicysimulatorV1ReplayResultsSummary) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudPolicysimulatorV1beta1Replay: A resource describing a -// `Replay`, or simulation. -type GoogleCloudPolicysimulatorV1beta1Replay struct { - // Config: Required. The configuration used for the `Replay`. - Config *GoogleCloudPolicysimulatorV1beta1ReplayConfig `json:"config,omitempty"` - - // Name: Output only. The resource name of the `Replay`, which has the - // following format: - // `{projects|folders|organizations}/{resource-id}/locations/global/repla - // ys/{replay-id}`, where `{resource-id}` is the ID of the project, - // folder, or organization that owns the Replay. Example: - // `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d - // 7d-8e03-479ce1833c36` - Name string `json:"name,omitempty"` - - // ResultsSummary: Output only. Summary statistics about the replayed - // log entries. - ResultsSummary *GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary `json:"resultsSummary,omitempty"` - - // State: Output only. The current state of the `Replay`. - // - // Possible values: - // "STATE_UNSPECIFIED" - The state is unspecified. - // "PENDING" - The `Replay` has not started yet. - // "RUNNING" - The `Replay` is currently running. - // "SUCCEEDED" - The `Replay` has successfully completed. - // "FAILED" - The `Replay` has finished with an error. - State string `json:"state,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudPolicysimulatorV1beta1Replay) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudPolicysimulatorV1beta1Replay - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudPolicysimulatorV1beta1ReplayConfig: The configuration used -// for a Replay. -type GoogleCloudPolicysimulatorV1beta1ReplayConfig struct { - // LogSource: The logs to use as input for the Replay. - // - // Possible values: - // "LOG_SOURCE_UNSPECIFIED" - An unspecified log source. If the log - // source is unspecified, the Replay defaults to using - // `RECENT_ACCESSES`. - // "RECENT_ACCESSES" - All access logs from the last 90 days. These - // logs may not include logs from the most recent 7 days. - LogSource string `json:"logSource,omitempty"` - - // PolicyOverlay: A mapping of the resources that you want to simulate - // policies for and the policies that you want to simulate. Keys are the - // full resource names for the resources. For example, - // `//cloudresourcemanager.googleapis.com/projects/my-project`. For - // examples of full resource names for Google Cloud services, see - // https://cloud.google.com/iam/help/troubleshooter/full-resource-names. - // Values are Policy objects representing the policies that you want to - // simulate. Replays automatically take into account any IAM policies - // inherited through the resource hierarchy, and any policies set on - // descendant resources. You do not need to include these policies in - // the policy overlay. - PolicyOverlay map[string]GoogleIamV1Policy `json:"policyOverlay,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LogSource") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogSource") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudPolicysimulatorV1beta1ReplayConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudPolicysimulatorV1beta1ReplayConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata: Metadata -// about a Replay operation. -type GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata struct { - // StartTime: Time when the request was received. - StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "StartTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StartTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary: Summary -// statistics about the replayed log entries. -type GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary struct { - // DifferenceCount: The number of replayed log entries with a difference - // between baseline and simulated policies. - DifferenceCount int64 `json:"differenceCount,omitempty"` - - // ErrorCount: The number of log entries that could not be replayed. - ErrorCount int64 `json:"errorCount,omitempty"` - - // LogCount: The total number of log entries replayed. - LogCount int64 `json:"logCount,omitempty"` - - // NewestDate: The date of the newest log entry replayed. - NewestDate *GoogleTypeDate `json:"newestDate,omitempty"` - - // OldestDate: The date of the oldest log entry replayed. - OldestDate *GoogleTypeDate `json:"oldestDate,omitempty"` - - // UnchangedCount: The number of replayed log entries with no difference - // between baseline and simulated policies. - UnchangedCount int64 `json:"unchangedCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DifferenceCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DifferenceCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleIamV1AuditConfig: Specifies the audit configuration for a // service. The configuration determines which permission types are // logged, and what identities, if any, are exempted from logging. An @@ -2448,14 +2271,7 @@ type FoldersLocationsReplaysOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *FoldersLocationsReplaysOperationsService) List(name string) *FoldersLocationsReplaysOperationsListCall { @@ -2585,7 +2401,7 @@ func (c *FoldersLocationsReplaysOperationsListCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/replays/{replaysId}/operations", // "httpMethod": "GET", // "id": "policysimulator.folders.locations.replays.operations.list", @@ -3013,14 +2829,7 @@ type OperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *OperationsService) List(name string) *OperationsListCall { @@ -3150,7 +2959,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/operations", // "httpMethod": "GET", // "id": "policysimulator.operations.list", @@ -3820,14 +3629,7 @@ type OrganizationsLocationsReplaysOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *OrganizationsLocationsReplaysOperationsService) List(name string) *OrganizationsLocationsReplaysOperationsListCall { @@ -3957,7 +3759,7 @@ func (c *OrganizationsLocationsReplaysOperationsListCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/replays/{replaysId}/operations", // "httpMethod": "GET", // "id": "policysimulator.organizations.locations.replays.operations.list", @@ -4830,14 +4632,7 @@ type ProjectsLocationsReplaysOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsReplaysOperationsService) List(name string) *ProjectsLocationsReplaysOperationsListCall { @@ -4967,7 +4762,7 @@ func (c *ProjectsLocationsReplaysOperationsListCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/replays/{replaysId}/operations", // "httpMethod": "GET", // "id": "policysimulator.projects.locations.replays.operations.list", diff --git a/policysimulator/v1alpha/policysimulator-api.json b/policysimulator/v1alpha/policysimulator-api.json index b3c1a2d2aeb..33554397537 100644 --- a/policysimulator/v1alpha/policysimulator-api.json +++ b/policysimulator/v1alpha/policysimulator-api.json @@ -172,7 +172,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1alpha/folders/{foldersId}/locations/{locationsId}/replays/{replaysId}/operations", "httpMethod": "GET", "id": "policysimulator.folders.locations.replays.operations.list", @@ -248,7 +248,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1alpha/operations", "httpMethod": "GET", "id": "policysimulator.operations.list", @@ -357,7 +357,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/replays/{replaysId}/operations", "httpMethod": "GET", "id": "policysimulator.organizations.locations.replays.operations.list", @@ -472,7 +472,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/replays/{replaysId}/operations", "httpMethod": "GET", "id": "policysimulator.projects.locations.replays.operations.list", @@ -521,7 +521,7 @@ } } }, - "revision": "20230219", + "revision": "20230304", "rootUrl": "https://policysimulator.googleapis.com/", "schemas": { "GoogleCloudPolicysimulatorV1Replay": { @@ -637,119 +637,6 @@ }, "type": "object" }, - "GoogleCloudPolicysimulatorV1beta1Replay": { - "description": "A resource describing a `Replay`, or simulation.", - "id": "GoogleCloudPolicysimulatorV1beta1Replay", - "properties": { - "config": { - "$ref": "GoogleCloudPolicysimulatorV1beta1ReplayConfig", - "description": "Required. The configuration used for the `Replay`." - }, - "name": { - "description": "Output only. The resource name of the `Replay`, which has the following format: `{projects|folders|organizations}/{resource-id}/locations/global/replays/{replay-id}`, where `{resource-id}` is the ID of the project, folder, or organization that owns the Replay. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`", - "readOnly": true, - "type": "string" - }, - "resultsSummary": { - "$ref": "GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary", - "description": "Output only. Summary statistics about the replayed log entries.", - "readOnly": true - }, - "state": { - "description": "Output only. The current state of the `Replay`.", - "enum": [ - "STATE_UNSPECIFIED", - "PENDING", - "RUNNING", - "SUCCEEDED", - "FAILED" - ], - "enumDescriptions": [ - "The state is unspecified.", - "The `Replay` has not started yet.", - "The `Replay` is currently running.", - "The `Replay` has successfully completed.", - "The `Replay` has finished with an error." - ], - "readOnly": true, - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudPolicysimulatorV1beta1ReplayConfig": { - "description": "The configuration used for a Replay.", - "id": "GoogleCloudPolicysimulatorV1beta1ReplayConfig", - "properties": { - "logSource": { - "description": "The logs to use as input for the Replay.", - "enum": [ - "LOG_SOURCE_UNSPECIFIED", - "RECENT_ACCESSES" - ], - "enumDescriptions": [ - "An unspecified log source. If the log source is unspecified, the Replay defaults to using `RECENT_ACCESSES`.", - "All access logs from the last 90 days. These logs may not include logs from the most recent 7 days." - ], - "type": "string" - }, - "policyOverlay": { - "additionalProperties": { - "$ref": "GoogleIamV1Policy" - }, - "description": "A mapping of the resources that you want to simulate policies for and the policies that you want to simulate. Keys are the full resource names for the resources. For example, `//cloudresourcemanager.googleapis.com/projects/my-project`. For examples of full resource names for Google Cloud services, see https://cloud.google.com/iam/help/troubleshooter/full-resource-names. Values are Policy objects representing the policies that you want to simulate. Replays automatically take into account any IAM policies inherited through the resource hierarchy, and any policies set on descendant resources. You do not need to include these policies in the policy overlay.", - "type": "object" - } - }, - "type": "object" - }, - "GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata": { - "description": "Metadata about a Replay operation.", - "id": "GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata", - "properties": { - "startTime": { - "description": "Time when the request was received.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" - }, - "GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary": { - "description": "Summary statistics about the replayed log entries.", - "id": "GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary", - "properties": { - "differenceCount": { - "description": "The number of replayed log entries with a difference between baseline and simulated policies.", - "format": "int32", - "type": "integer" - }, - "errorCount": { - "description": "The number of log entries that could not be replayed.", - "format": "int32", - "type": "integer" - }, - "logCount": { - "description": "The total number of log entries replayed.", - "format": "int32", - "type": "integer" - }, - "newestDate": { - "$ref": "GoogleTypeDate", - "description": "The date of the newest log entry replayed." - }, - "oldestDate": { - "$ref": "GoogleTypeDate", - "description": "The date of the oldest log entry replayed." - }, - "unchangedCount": { - "description": "The number of replayed log entries with no difference between baseline and simulated policies.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, "GoogleIamV1AuditConfig": { "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", "id": "GoogleIamV1AuditConfig", diff --git a/policysimulator/v1alpha/policysimulator-gen.go b/policysimulator/v1alpha/policysimulator-gen.go index be578193676..1ca766bb7b1 100644 --- a/policysimulator/v1alpha/policysimulator-gen.go +++ b/policysimulator/v1alpha/policysimulator-gen.go @@ -539,183 +539,6 @@ func (s *GoogleCloudPolicysimulatorV1ReplayResultsSummary) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudPolicysimulatorV1beta1Replay: A resource describing a -// `Replay`, or simulation. -type GoogleCloudPolicysimulatorV1beta1Replay struct { - // Config: Required. The configuration used for the `Replay`. - Config *GoogleCloudPolicysimulatorV1beta1ReplayConfig `json:"config,omitempty"` - - // Name: Output only. The resource name of the `Replay`, which has the - // following format: - // `{projects|folders|organizations}/{resource-id}/locations/global/repla - // ys/{replay-id}`, where `{resource-id}` is the ID of the project, - // folder, or organization that owns the Replay. Example: - // `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d - // 7d-8e03-479ce1833c36` - Name string `json:"name,omitempty"` - - // ResultsSummary: Output only. Summary statistics about the replayed - // log entries. - ResultsSummary *GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary `json:"resultsSummary,omitempty"` - - // State: Output only. The current state of the `Replay`. - // - // Possible values: - // "STATE_UNSPECIFIED" - The state is unspecified. - // "PENDING" - The `Replay` has not started yet. - // "RUNNING" - The `Replay` is currently running. - // "SUCCEEDED" - The `Replay` has successfully completed. - // "FAILED" - The `Replay` has finished with an error. - State string `json:"state,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Config") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Config") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudPolicysimulatorV1beta1Replay) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudPolicysimulatorV1beta1Replay - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudPolicysimulatorV1beta1ReplayConfig: The configuration used -// for a Replay. -type GoogleCloudPolicysimulatorV1beta1ReplayConfig struct { - // LogSource: The logs to use as input for the Replay. - // - // Possible values: - // "LOG_SOURCE_UNSPECIFIED" - An unspecified log source. If the log - // source is unspecified, the Replay defaults to using - // `RECENT_ACCESSES`. - // "RECENT_ACCESSES" - All access logs from the last 90 days. These - // logs may not include logs from the most recent 7 days. - LogSource string `json:"logSource,omitempty"` - - // PolicyOverlay: A mapping of the resources that you want to simulate - // policies for and the policies that you want to simulate. Keys are the - // full resource names for the resources. For example, - // `//cloudresourcemanager.googleapis.com/projects/my-project`. For - // examples of full resource names for Google Cloud services, see - // https://cloud.google.com/iam/help/troubleshooter/full-resource-names. - // Values are Policy objects representing the policies that you want to - // simulate. Replays automatically take into account any IAM policies - // inherited through the resource hierarchy, and any policies set on - // descendant resources. You do not need to include these policies in - // the policy overlay. - PolicyOverlay map[string]GoogleIamV1Policy `json:"policyOverlay,omitempty"` - - // ForceSendFields is a list of field names (e.g. "LogSource") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "LogSource") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudPolicysimulatorV1beta1ReplayConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudPolicysimulatorV1beta1ReplayConfig - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata: Metadata -// about a Replay operation. -type GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata struct { - // StartTime: Time when the request was received. - StartTime string `json:"startTime,omitempty"` - - // ForceSendFields is a list of field names (e.g. "StartTime") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "StartTime") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudPolicysimulatorV1beta1ReplayOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary: Summary -// statistics about the replayed log entries. -type GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary struct { - // DifferenceCount: The number of replayed log entries with a difference - // between baseline and simulated policies. - DifferenceCount int64 `json:"differenceCount,omitempty"` - - // ErrorCount: The number of log entries that could not be replayed. - ErrorCount int64 `json:"errorCount,omitempty"` - - // LogCount: The total number of log entries replayed. - LogCount int64 `json:"logCount,omitempty"` - - // NewestDate: The date of the newest log entry replayed. - NewestDate *GoogleTypeDate `json:"newestDate,omitempty"` - - // OldestDate: The date of the oldest log entry replayed. - OldestDate *GoogleTypeDate `json:"oldestDate,omitempty"` - - // UnchangedCount: The number of replayed log entries with no difference - // between baseline and simulated policies. - UnchangedCount int64 `json:"unchangedCount,omitempty"` - - // ForceSendFields is a list of field names (e.g. "DifferenceCount") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "DifferenceCount") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudPolicysimulatorV1beta1ReplayResultsSummary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleIamV1AuditConfig: Specifies the audit configuration for a // service. The configuration determines which permission types are // logged, and what identities, if any, are exempted from logging. An @@ -1557,14 +1380,7 @@ type FoldersLocationsReplaysOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *FoldersLocationsReplaysOperationsService) List(name string) *FoldersLocationsReplaysOperationsListCall { @@ -1694,7 +1510,7 @@ func (c *FoldersLocationsReplaysOperationsListCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1alpha/folders/{foldersId}/locations/{locationsId}/replays/{replaysId}/operations", // "httpMethod": "GET", // "id": "policysimulator.folders.locations.replays.operations.list", @@ -1919,14 +1735,7 @@ type OperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *OperationsService) List(name string) *OperationsListCall { @@ -2056,7 +1865,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunnin } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1alpha/operations", // "httpMethod": "GET", // "id": "policysimulator.operations.list", @@ -2429,14 +2238,7 @@ type OrganizationsLocationsReplaysOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *OrganizationsLocationsReplaysOperationsService) List(name string) *OrganizationsLocationsReplaysOperationsListCall { @@ -2566,7 +2368,7 @@ func (c *OrganizationsLocationsReplaysOperationsListCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/replays/{replaysId}/operations", // "httpMethod": "GET", // "id": "policysimulator.organizations.locations.replays.operations.list", @@ -2939,14 +2741,7 @@ type ProjectsLocationsReplaysOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsReplaysOperationsService) List(name string) *ProjectsLocationsReplaysOperationsListCall { @@ -3076,7 +2871,7 @@ func (c *ProjectsLocationsReplaysOperationsListCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/replays/{replaysId}/operations", // "httpMethod": "GET", // "id": "policysimulator.projects.locations.replays.operations.list", diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 94a384363a0..bafaed79010 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -533,7 +533,7 @@ "products": { "methods": { "addFulfillmentPlaces": { - "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", + "description": "It is recommended to use the ProductService.AddLocalInventories method instead of ProductService.AddFulfillmentPlaces. ProductService.AddLocalInventories achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addFulfillmentPlaces", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces", @@ -786,7 +786,7 @@ ] }, "removeFulfillmentPlaces": { - "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", + "description": "It is recommended to use the ProductService.RemoveLocalInventories method instead of ProductService.RemoveFulfillmentPlaces. ProductService.RemoveLocalInventories achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeFulfillmentPlaces", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces", @@ -1127,6 +1127,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "get": { + "description": "Gets a model.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/models/{modelsId}", + "httpMethod": "GET", + "id": "retail.projects.locations.catalogs.models.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the Model to get. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog}/models/{model_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleCloudRetailV2Model" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Lists all the models linked to this event store.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/models", @@ -2001,7 +2026,7 @@ } } }, - "revision": "20230202", + "revision": "20230306", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3611,7 +3636,7 @@ "type": "string" }, "localInventories": { - "description": "Output only. A list of local inventories specific to different places. This is only available for users who have Retail Search enabled, and it can be managed by ProductService.AddLocalInventories and ProductService.RemoveLocalInventories APIs.", + "description": "Output only. A list of local inventories specific to different places. This field can be managed by ProductService.AddLocalInventories and ProductService.RemoveLocalInventories APIs if fine-grained, high-volume updates are necessary.", "items": { "$ref": "GoogleCloudRetailV2LocalInventory" }, @@ -4953,6 +4978,10 @@ "$ref": "GoogleCloudRetailV2CompletionDetail", "description": "The main auto-completion details related to the event. This field should be set for `search` event when autocomplete function is enabled and the user clicks a suggestion for search." }, + "domain": { + "description": "Represents the domain of the user event, for projects that combine domains. For example: retailer can have events from multiple domains like retailer-main, retailer-baby, retailer-meds, etc. under one project.", + "type": "string" + }, "eventTime": { "description": "Only required for UserEventService.ImportUserEvents method. Timestamp of when the user event happened.", "format": "google-datetime", diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index d99a8fedf10..44cbd5ec110 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -3368,10 +3368,10 @@ type GoogleCloudRetailV2Product struct { LanguageCode string `json:"languageCode,omitempty"` // LocalInventories: Output only. A list of local inventories specific - // to different places. This is only available for users who have Retail - // Search enabled, and it can be managed by + // to different places. This field can be managed by // ProductService.AddLocalInventories and - // ProductService.RemoveLocalInventories APIs. + // ProductService.RemoveLocalInventories APIs if fine-grained, + // high-volume updates are necessary. LocalInventories []*GoogleCloudRetailV2LocalInventory `json:"localInventories,omitempty"` // Materials: The material of the product. For example, "leather", @@ -5998,6 +5998,12 @@ type GoogleCloudRetailV2UserEvent struct { // function is enabled and the user clicks a suggestion for search. CompletionDetail *GoogleCloudRetailV2CompletionDetail `json:"completionDetail,omitempty"` + // Domain: Represents the domain of the user event, for projects that + // combine domains. For example: retailer can have events from multiple + // domains like retailer-main, retailer-baby, retailer-meds, etc. under + // one project. + Domain string `json:"domain,omitempty"` + // EventTime: Only required for UserEventService.ImportUserEvents // method. Timestamp of when the user event happened. EventTime string `json:"eventTime,omitempty"` @@ -10727,7 +10733,12 @@ type ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall struct { header_ http.Header } -// AddFulfillmentPlaces: Incrementally adds place IDs to +// AddFulfillmentPlaces: It is recommended to use the +// ProductService.AddLocalInventories method instead of +// ProductService.AddFulfillmentPlaces. +// ProductService.AddLocalInventories achieves the same results but +// provides more fine-grained control over ingesting local inventory +// data. Incrementally adds place IDs to // Product.fulfillment_info.place_ids. This process is asynchronous and // does not require the Product to exist before updating fulfillment // information. If the request is valid, the update will be enqueued and @@ -10842,7 +10853,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall) Do(o } return ret, nil // { - // "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", + // "description": "It is recommended to use the ProductService.AddLocalInventories method instead of ProductService.AddFulfillmentPlaces. ProductService.AddLocalInventories achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addFulfillmentPlaces", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces", @@ -12066,7 +12077,12 @@ type ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall struct header_ http.Header } -// RemoveFulfillmentPlaces: Incrementally removes place IDs from a +// RemoveFulfillmentPlaces: It is recommended to use the +// ProductService.RemoveLocalInventories method instead of +// ProductService.RemoveFulfillmentPlaces. +// ProductService.RemoveLocalInventories achieves the same results but +// provides more fine-grained control over ingesting local inventory +// data. Incrementally removes place IDs from a // Product.fulfillment_info.place_ids. This process is asynchronous and // does not require the Product to exist before updating fulfillment // information. If the request is valid, the update will be enqueued and @@ -12181,7 +12197,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall) D } return ret, nil // { - // "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", + // "description": "It is recommended to use the ProductService.RemoveLocalInventories method instead of ProductService.RemoveFulfillmentPlaces. ProductService.RemoveLocalInventories achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeFulfillmentPlaces", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces", @@ -13789,6 +13805,154 @@ func (c *ProjectsLocationsCatalogsModelsDeleteCall) Do(opts ...googleapi.CallOpt } +// method id "retail.projects.locations.catalogs.models.get": + +type ProjectsLocationsCatalogsModelsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a model. +// +// - name: The resource name of the Model to get. Format: +// `projects/{project_number}/locations/{location_id}/catalogs/{catalog +// }/models/{model_id}`. +func (r *ProjectsLocationsCatalogsModelsService) Get(name string) *ProjectsLocationsCatalogsModelsGetCall { + c := &ProjectsLocationsCatalogsModelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCatalogsModelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCatalogsModelsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsCatalogsModelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCatalogsModelsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsCatalogsModelsGetCall) Context(ctx context.Context) *ProjectsLocationsCatalogsModelsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsCatalogsModelsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCatalogsModelsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "retail.projects.locations.catalogs.models.get" call. +// Exactly one of *GoogleCloudRetailV2Model or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRetailV2Model.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsCatalogsModelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRetailV2Model, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudRetailV2Model{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets a model.", + // "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/models/{modelsId}", + // "httpMethod": "GET", + // "id": "retail.projects.locations.catalogs.models.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the Model to get. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog}/models/{model_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/models/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "GoogleCloudRetailV2Model" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "retail.projects.locations.catalogs.models.list": type ProjectsLocationsCatalogsModelsListCall struct { diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 1594e98bb97..a328b89f2da 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -599,7 +599,7 @@ "products": { "methods": { "addFulfillmentPlaces": { - "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", + "description": "It is recommended to use the ProductService.AddLocalInventories method instead of ProductService.AddFulfillmentPlaces. ProductService.AddLocalInventories achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addFulfillmentPlaces", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces", @@ -890,7 +890,7 @@ ] }, "removeFulfillmentPlaces": { - "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", + "description": "It is recommended to use the ProductService.RemoveLocalInventories method instead of ProductService.RemoveFulfillmentPlaces. ProductService.RemoveLocalInventories achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeFulfillmentPlaces", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces", @@ -2130,7 +2130,7 @@ } } }, - "revision": "20230202", + "revision": "20230306", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -4476,7 +4476,7 @@ "type": "string" }, "localInventories": { - "description": "Output only. A list of local inventories specific to different places. This is only available for users who have Retail Search enabled, and it can be managed by ProductService.AddLocalInventories and ProductService.RemoveLocalInventories APIs.", + "description": "Output only. A list of local inventories specific to different places. This field can be managed by ProductService.AddLocalInventories and ProductService.RemoveLocalInventories APIs if fine-grained, high-volume updates are necessary.", "items": { "$ref": "GoogleCloudRetailV2alphaLocalInventory" }, @@ -5914,6 +5914,10 @@ "$ref": "GoogleCloudRetailV2alphaCompletionDetail", "description": "The main auto-completion details related to the event. This field should be set for `search` event when autocomplete function is enabled and the user clicks a suggestion for search." }, + "domain": { + "description": "Represents the domain of the user event, for projects that combine domains. For example: retailer can have events from multiple domains like retailer-main, retailer-baby, retailer-meds, etc. under one project.", + "type": "string" + }, "eventTime": { "description": "Only required for UserEventService.ImportUserEvents method. Timestamp of when the user event happened.", "format": "google-datetime", diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index f430b644549..44c668a1055 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -4747,10 +4747,10 @@ type GoogleCloudRetailV2alphaProduct struct { LanguageCode string `json:"languageCode,omitempty"` // LocalInventories: Output only. A list of local inventories specific - // to different places. This is only available for users who have Retail - // Search enabled, and it can be managed by + // to different places. This field can be managed by // ProductService.AddLocalInventories and - // ProductService.RemoveLocalInventories APIs. + // ProductService.RemoveLocalInventories APIs if fine-grained, + // high-volume updates are necessary. LocalInventories []*GoogleCloudRetailV2alphaLocalInventory `json:"localInventories,omitempty"` // Materials: The material of the product. For example, "leather", @@ -7557,6 +7557,12 @@ type GoogleCloudRetailV2alphaUserEvent struct { // function is enabled and the user clicks a suggestion for search. CompletionDetail *GoogleCloudRetailV2alphaCompletionDetail `json:"completionDetail,omitempty"` + // Domain: Represents the domain of the user event, for projects that + // combine domains. For example: retailer can have events from multiple + // domains like retailer-main, retailer-baby, retailer-meds, etc. under + // one project. + Domain string `json:"domain,omitempty"` + // EventTime: Only required for UserEventService.ImportUserEvents // method. Timestamp of when the user event happened. EventTime string `json:"eventTime,omitempty"` @@ -11427,7 +11433,12 @@ type ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall struct { header_ http.Header } -// AddFulfillmentPlaces: Incrementally adds place IDs to +// AddFulfillmentPlaces: It is recommended to use the +// ProductService.AddLocalInventories method instead of +// ProductService.AddFulfillmentPlaces. +// ProductService.AddLocalInventories achieves the same results but +// provides more fine-grained control over ingesting local inventory +// data. Incrementally adds place IDs to // Product.fulfillment_info.place_ids. This process is asynchronous and // does not require the Product to exist before updating fulfillment // information. If the request is valid, the update will be enqueued and @@ -11542,7 +11553,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall) Do(o } return ret, nil // { - // "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", + // "description": "It is recommended to use the ProductService.AddLocalInventories method instead of ProductService.AddFulfillmentPlaces. ProductService.AddLocalInventories achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addFulfillmentPlaces", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces", @@ -12950,7 +12961,12 @@ type ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall struct header_ http.Header } -// RemoveFulfillmentPlaces: Incrementally removes place IDs from a +// RemoveFulfillmentPlaces: It is recommended to use the +// ProductService.RemoveLocalInventories method instead of +// ProductService.RemoveFulfillmentPlaces. +// ProductService.RemoveLocalInventories achieves the same results but +// provides more fine-grained control over ingesting local inventory +// data. Incrementally removes place IDs from a // Product.fulfillment_info.place_ids. This process is asynchronous and // does not require the Product to exist before updating fulfillment // information. If the request is valid, the update will be enqueued and @@ -13065,7 +13081,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall) D } return ret, nil // { - // "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", + // "description": "It is recommended to use the ProductService.RemoveLocalInventories method instead of ProductService.RemoveFulfillmentPlaces. ProductService.RemoveLocalInventories achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", // "flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeFulfillmentPlaces", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces", diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 5ebf980c709..085be5378f6 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -561,7 +561,7 @@ "products": { "methods": { "addFulfillmentPlaces": { - "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", + "description": "It is recommended to use the ProductService.AddLocalInventories method instead of ProductService.AddFulfillmentPlaces. ProductService.AddLocalInventories achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addFulfillmentPlaces", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces", @@ -814,7 +814,7 @@ ] }, "removeFulfillmentPlaces": { - "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", + "description": "It is recommended to use the ProductService.RemoveLocalInventories method instead of ProductService.RemoveFulfillmentPlaces. ProductService.RemoveLocalInventories achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeFulfillmentPlaces", "httpMethod": "POST", "id": "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces", @@ -2054,7 +2054,7 @@ } } }, - "revision": "20230202", + "revision": "20230306", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -4937,7 +4937,7 @@ "type": "string" }, "localInventories": { - "description": "Output only. A list of local inventories specific to different places. This is only available for users who have Retail Search enabled, and it can be managed by ProductService.AddLocalInventories and ProductService.RemoveLocalInventories APIs.", + "description": "Output only. A list of local inventories specific to different places. This field can be managed by ProductService.AddLocalInventories and ProductService.RemoveLocalInventories APIs if fine-grained, high-volume updates are necessary.", "items": { "$ref": "GoogleCloudRetailV2betaLocalInventory" }, @@ -6279,6 +6279,10 @@ "$ref": "GoogleCloudRetailV2betaCompletionDetail", "description": "The main auto-completion details related to the event. This field should be set for `search` event when autocomplete function is enabled and the user clicks a suggestion for search." }, + "domain": { + "description": "Represents the domain of the user event, for projects that combine domains. For example: retailer can have events from multiple domains like retailer-main, retailer-baby, retailer-meds, etc. under one project.", + "type": "string" + }, "eventTime": { "description": "Only required for UserEventService.ImportUserEvents method. Timestamp of when the user event happened.", "format": "google-datetime", diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 15ffcb61b85..dc8381f29e2 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -5665,10 +5665,10 @@ type GoogleCloudRetailV2betaProduct struct { LanguageCode string `json:"languageCode,omitempty"` // LocalInventories: Output only. A list of local inventories specific - // to different places. This is only available for users who have Retail - // Search enabled, and it can be managed by + // to different places. This field can be managed by // ProductService.AddLocalInventories and - // ProductService.RemoveLocalInventories APIs. + // ProductService.RemoveLocalInventories APIs if fine-grained, + // high-volume updates are necessary. LocalInventories []*GoogleCloudRetailV2betaLocalInventory `json:"localInventories,omitempty"` // Materials: The material of the product. For example, "leather", @@ -8295,6 +8295,12 @@ type GoogleCloudRetailV2betaUserEvent struct { // function is enabled and the user clicks a suggestion for search. CompletionDetail *GoogleCloudRetailV2betaCompletionDetail `json:"completionDetail,omitempty"` + // Domain: Represents the domain of the user event, for projects that + // combine domains. For example: retailer can have events from multiple + // domains like retailer-main, retailer-baby, retailer-meds, etc. under + // one project. + Domain string `json:"domain,omitempty"` + // EventTime: Only required for UserEventService.ImportUserEvents // method. Timestamp of when the user event happened. EventTime string `json:"eventTime,omitempty"` @@ -11120,7 +11126,12 @@ type ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall struct { header_ http.Header } -// AddFulfillmentPlaces: Incrementally adds place IDs to +// AddFulfillmentPlaces: It is recommended to use the +// ProductService.AddLocalInventories method instead of +// ProductService.AddFulfillmentPlaces. +// ProductService.AddLocalInventories achieves the same results but +// provides more fine-grained control over ingesting local inventory +// data. Incrementally adds place IDs to // Product.fulfillment_info.place_ids. This process is asynchronous and // does not require the Product to exist before updating fulfillment // information. If the request is valid, the update will be enqueued and @@ -11235,7 +11246,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsAddFulfillmentPlacesCall) Do(o } return ret, nil // { - // "description": "Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", + // "description": "It is recommended to use the ProductService.AddLocalInventories method instead of ProductService.AddFulfillmentPlaces. ProductService.AddLocalInventories achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally adds place IDs to Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", // "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:addFulfillmentPlaces", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.addFulfillmentPlaces", @@ -12460,7 +12471,12 @@ type ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall struct header_ http.Header } -// RemoveFulfillmentPlaces: Incrementally removes place IDs from a +// RemoveFulfillmentPlaces: It is recommended to use the +// ProductService.RemoveLocalInventories method instead of +// ProductService.RemoveFulfillmentPlaces. +// ProductService.RemoveLocalInventories achieves the same results but +// provides more fine-grained control over ingesting local inventory +// data. Incrementally removes place IDs from a // Product.fulfillment_info.place_ids. This process is asynchronous and // does not require the Product to exist before updating fulfillment // information. If the request is valid, the update will be enqueued and @@ -12575,7 +12591,7 @@ func (c *ProjectsLocationsCatalogsBranchesProductsRemoveFulfillmentPlacesCall) D } return ret, nil // { - // "description": "Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", + // "description": "It is recommended to use the ProductService.RemoveLocalInventories method instead of ProductService.RemoveFulfillmentPlaces. ProductService.RemoveLocalInventories achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally removes place IDs from a Product.fulfillment_info.place_ids. This process is asynchronous and does not require the Product to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the Product queried by ProductService.GetProduct or ProductService.ListProducts. The returned Operations will be obsolete after 1 day, and GetOperation API will return NOT_FOUND afterwards. If conflicting updates are issued, the Operations associated with the stale updates will not be marked as done until being obsolete.", // "flatPath": "v2beta/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}:removeFulfillmentPlaces", // "httpMethod": "POST", // "id": "retail.projects.locations.catalogs.branches.products.removeFulfillmentPlaces", diff --git a/storagetransfer/v1/storagetransfer-api.json b/storagetransfer/v1/storagetransfer-api.json index 96b07c0a16d..e2fc024b39a 100644 --- a/storagetransfer/v1/storagetransfer-api.json +++ b/storagetransfer/v1/storagetransfer-api.json @@ -632,7 +632,7 @@ } } }, - "revision": "20221201", + "revision": "20230307", "rootUrl": "https://storagetransfer.googleapis.com/", "schemas": { "AgentPool": { @@ -1718,6 +1718,10 @@ }, "type": "array" }, + "loggingConfig": { + "$ref": "LoggingConfig", + "description": "Cloud Logging configuration." + }, "name": { "description": "A globally unique ID assigned by the system.", "type": "string" diff --git a/storagetransfer/v1/storagetransfer-gen.go b/storagetransfer/v1/storagetransfer-gen.go index 0250c6c9b26..c170440717f 100644 --- a/storagetransfer/v1/storagetransfer-gen.go +++ b/storagetransfer/v1/storagetransfer-gen.go @@ -2012,6 +2012,9 @@ type TransferOperation struct { // entries. ErrorBreakdowns []*ErrorSummary `json:"errorBreakdowns,omitempty"` + // LoggingConfig: Cloud Logging configuration. + LoggingConfig *LoggingConfig `json:"loggingConfig,omitempty"` + // Name: A globally unique ID assigned by the system. Name string `json:"name,omitempty"` diff --git a/streetviewpublish/v1/streetviewpublish-api.json b/streetviewpublish/v1/streetviewpublish-api.json index 73c81131ace..180f878c196 100644 --- a/streetviewpublish/v1/streetviewpublish-api.json +++ b/streetviewpublish/v1/streetviewpublish-api.json @@ -225,7 +225,7 @@ "type": "string" }, "updateMask": { - "description": "Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.latLngPair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` \u003e Note: When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains `connections` and `UpdatePhotoRequest.photo.connections` is empty, all connections are removed.", + "description": "Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.lat_lng_pair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` \u003e Note: When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains `connections` and `UpdatePhotoRequest.photo.connections` is empty, all connections are removed.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -533,7 +533,7 @@ } } }, - "revision": "20230116", + "revision": "20230307", "rootUrl": "https://streetviewpublish.googleapis.com/", "schemas": { "BatchDeletePhotosRequest": { @@ -1302,7 +1302,7 @@ "description": "Required. Photo object containing the new metadata." }, "updateMask": { - "description": "Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.latLngPair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` \u003e Note: When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains `connections` and `UpdatePhotoRequest.photo.connections` is empty, all connections are removed.", + "description": "Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.lat_lng_pair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` \u003e Note: When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains `connections` and `UpdatePhotoRequest.photo.connections` is empty, all connections are removed.", "format": "google-fieldmask", "type": "string" } diff --git a/streetviewpublish/v1/streetviewpublish-gen.go b/streetviewpublish/v1/streetviewpublish-gen.go index 29f372c697f..f631f63172d 100644 --- a/streetviewpublish/v1/streetviewpublish-gen.go +++ b/streetviewpublish/v1/streetviewpublish-gen.go @@ -1482,7 +1482,7 @@ type UpdatePhotoRequest struct { // entirely replaced with the new Photo metadata in this request. The // update fails if invalid fields are specified. Multiple fields can be // specified in a comma-delimited list. The following fields are valid: - // * `pose.heading` * `pose.latLngPair` * `pose.pitch` * `pose.roll` * + // * `pose.heading` * `pose.lat_lng_pair` * `pose.pitch` * `pose.roll` * // `pose.level` * `pose.altitude` * `connections` * `places` > Note: // When updateMask contains repeated fields, the entire set of repeated // values get replaced with the new contents. For example, if updateMask @@ -2190,7 +2190,7 @@ func (r *PhotoService) Update(id string, photo *Photo) *PhotoUpdateCall { // Photo metadata in this request. The update fails if invalid fields // are specified. Multiple fields can be specified in a comma-delimited // list. The following fields are valid: * `pose.heading` * -// `pose.latLngPair` * `pose.pitch` * `pose.roll` * `pose.level` * +// `pose.lat_lng_pair` * `pose.pitch` * `pose.roll` * `pose.level` * // `pose.altitude` * `connections` * `places` > Note: When updateMask // contains repeated fields, the entire set of repeated values get // replaced with the new contents. For example, if updateMask contains @@ -2307,7 +2307,7 @@ func (c *PhotoUpdateCall) Do(opts ...googleapi.CallOption) (*Photo, error) { // "type": "string" // }, // "updateMask": { - // "description": "Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.latLngPair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` \u003e Note: When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains `connections` and `UpdatePhotoRequest.photo.connections` is empty, all connections are removed.", + // "description": "Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * `pose.heading` * `pose.lat_lng_pair` * `pose.pitch` * `pose.roll` * `pose.level` * `pose.altitude` * `connections` * `places` \u003e Note: When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains `connections` and `UpdatePhotoRequest.photo.connections` is empty, all connections are removed.", // "format": "google-fieldmask", // "location": "query", // "type": "string" diff --git a/translate/v3/translate-api.json b/translate/v3/translate-api.json index 1e659668fac..14c5979f72d 100644 --- a/translate/v3/translate-api.json +++ b/translate/v3/translate-api.json @@ -1209,7 +1209,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "translate.projects.locations.operations.list", @@ -1286,7 +1286,7 @@ } } }, - "revision": "20230224", + "revision": "20230303", "rootUrl": "https://translation.googleapis.com/", "schemas": { "BatchDocumentInputConfig": { @@ -1319,6 +1319,10 @@ "description": "Optional. This flag is to support user customized attribution. If not provided, the default is `Machine Translated by Google`. Customized attribution should follow rules in https://cloud.google.com/translate/attribution#attribution_and_logos", "type": "string" }, + "enableShadowRemovalNativePdf": { + "description": "Optional. If true, use the text removal server to remove the shadow text on background image for native pdf translation. Shadow removal feature can only be enabled when is_translate_native_pdf_only: false \u0026\u0026 pdf_native_only: false", + "type": "boolean" + }, "formatConversions": { "additionalProperties": { "type": "string" diff --git a/translate/v3/translate-gen.go b/translate/v3/translate-gen.go index 996274f1d66..d8cbd9c0f31 100644 --- a/translate/v3/translate-gen.go +++ b/translate/v3/translate-gen.go @@ -358,6 +358,12 @@ type BatchTranslateDocumentRequest struct { // https://cloud.google.com/translate/attribution#attribution_and_logos CustomizedAttribution string `json:"customizedAttribution,omitempty"` + // EnableShadowRemovalNativePdf: Optional. If true, use the text removal + // server to remove the shadow text on background image for native pdf + // translation. Shadow removal feature can only be enabled when + // is_translate_native_pdf_only: false && pdf_native_only: false + EnableShadowRemovalNativePdf bool `json:"enableShadowRemovalNativePdf,omitempty"` + // FormatConversions: Optional. FormatConversions map[string]string `json:"formatConversions,omitempty"` @@ -8113,14 +8119,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -8249,7 +8248,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "translate.projects.locations.operations.list", diff --git a/translate/v3beta1/translate-api.json b/translate/v3beta1/translate-api.json index 5584c87f3b8..60c83cf4ba4 100644 --- a/translate/v3beta1/translate-api.json +++ b/translate/v3beta1/translate-api.json @@ -667,7 +667,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "translate.projects.locations.operations.list", @@ -744,7 +744,7 @@ } } }, - "revision": "20230210", + "revision": "20230303", "rootUrl": "https://translation.googleapis.com/", "schemas": { "BatchDocumentInputConfig": { @@ -777,6 +777,10 @@ "description": "Optional. This flag is to support user customized attribution. If not provided, the default is `Machine Translated by Google`. Customized attribution should follow rules in https://cloud.google.com/translate/attribution#attribution_and_logos", "type": "string" }, + "enableShadowRemovalNativePdf": { + "description": "Optional. If true, use the text removal server to remove the shadow text on background image for native pdf translation. Shadow removal feature can only be enabled when is_translate_native_pdf_only: false \u0026\u0026 pdf_native_only: false", + "type": "boolean" + }, "formatConversions": { "additionalProperties": { "type": "string" diff --git a/translate/v3beta1/translate-gen.go b/translate/v3beta1/translate-gen.go index 2ab93c41a77..80a50f7bfae 100644 --- a/translate/v3beta1/translate-gen.go +++ b/translate/v3beta1/translate-gen.go @@ -310,6 +310,12 @@ type BatchTranslateDocumentRequest struct { // https://cloud.google.com/translate/attribution#attribution_and_logos CustomizedAttribution string `json:"customizedAttribution,omitempty"` + // EnableShadowRemovalNativePdf: Optional. If true, use the text removal + // server to remove the shadow text on background image for native pdf + // translation. Shadow removal feature can only be enabled when + // is_translate_native_pdf_only: false && pdf_native_only: false + EnableShadowRemovalNativePdf bool `json:"enableShadowRemovalNativePdf,omitempty"` + // FormatConversions: Optional. FormatConversions map[string]string `json:"formatConversions,omitempty"` @@ -4699,14 +4705,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -4835,7 +4834,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "translate.projects.locations.operations.list", diff --git a/videointelligence/v1/videointelligence-api.json b/videointelligence/v1/videointelligence-api.json index 9300b19b86a..72cd32f960c 100644 --- a/videointelligence/v1/videointelligence-api.json +++ b/videointelligence/v1/videointelligence-api.json @@ -281,7 +281,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", "httpMethod": "GET", "id": "videointelligence.projects.locations.operations.list", @@ -350,7 +350,7 @@ } } }, - "revision": "20220913", + "revision": "20230303", "rootUrl": "https://videointelligence.googleapis.com/", "schemas": { "GoogleCloudVideointelligenceV1_AnnotateVideoProgress": { diff --git a/videointelligence/v1/videointelligence-gen.go b/videointelligence/v1/videointelligence-gen.go index 6148937dd56..aa94cbaca99 100644 --- a/videointelligence/v1/videointelligence-gen.go +++ b/videointelligence/v1/videointelligence-gen.go @@ -9369,14 +9369,7 @@ type ProjectsLocationsOperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { @@ -9506,7 +9499,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", // "httpMethod": "GET", // "id": "videointelligence.projects.locations.operations.list", diff --git a/vision/v1/vision-api.json b/vision/v1/vision-api.json index 10618501d29..376264af6ba 100644 --- a/vision/v1/vision-api.json +++ b/vision/v1/vision-api.json @@ -310,7 +310,7 @@ ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", "flatPath": "v1/operations", "httpMethod": "GET", "id": "vision.operations.list", @@ -1282,7 +1282,7 @@ } } }, - "revision": "20220926", + "revision": "20230303", "rootUrl": "https://vision.googleapis.com/", "schemas": { "AddProductToProductSetRequest": { diff --git a/vision/v1/vision-gen.go b/vision/v1/vision-gen.go index 747d79fe517..67aa5c84b45 100644 --- a/vision/v1/vision-gen.go +++ b/vision/v1/vision-gen.go @@ -15058,14 +15058,7 @@ type OperationsListCall struct { // List: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to -// override the binding to use different resource name schemes, such as -// `users/*/operations`. To override the binding, API services can add a -// binding such as "/v1/{name=users/*}/operations" to their service -// configuration. For backwards compatibility, the default name includes -// the operations collection id, however overriding users must ensure -// the name binding is the parent resource, without the operations -// collection id. +// `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. func (r *OperationsService) List(name string) *OperationsListCall { @@ -15194,7 +15187,7 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", // "flatPath": "v1/operations", // "httpMethod": "GET", // "id": "vision.operations.list", diff --git a/workloadmanager/v1/workloadmanager-api.json b/workloadmanager/v1/workloadmanager-api.json index 0062e0bc738..20b41b5a855 100644 --- a/workloadmanager/v1/workloadmanager-api.json +++ b/workloadmanager/v1/workloadmanager-api.json @@ -189,19 +189,19 @@ ], "parameters": { "evaluationId": { - "description": "Required. Id of the requesting object If auto-generating Id server-side, remove this field and evaluation_id from the method_signature of Create RPC", + "description": "Required. Id of the requesting object", "location": "query", "type": "string" }, "parent": { - "description": "Required. The resource name of the evaluation location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region.", + "description": "Required. The resource prefix of the evaluation location using the form: `projects/{project_id}/locations/{location_id}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" }, "requestId": { - "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", "location": "query", "type": "string" } @@ -450,7 +450,7 @@ } } }, - "revision": "20221213", + "revision": "20230301", "rootUrl": "https://workloadmanager.googleapis.com/", "schemas": { "CancelOperationRequest": { @@ -1002,7 +1002,7 @@ "description": "Required. The metrics data details." }, "requestId": { - "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", "type": "string" } }, diff --git a/workloadmanager/v1/workloadmanager-gen.go b/workloadmanager/v1/workloadmanager-gen.go index d0c4fe28176..cc996206618 100644 --- a/workloadmanager/v1/workloadmanager-gen.go +++ b/workloadmanager/v1/workloadmanager-gen.go @@ -989,7 +989,7 @@ type WriteInsightRequest struct { // the server will know to ignore the request if it has already been // completed. The server will guarantee that for at least 60 minutes // since the first request. For example, consider a situation where you - // make an initial request and t he request times out. If you make the + // make an initial request and the request times out. If you make the // request again with the same request ID, the server can check if // original operation with the same request ID was received, and if so, // will ignore the second request. This prevents clients from @@ -1396,9 +1396,8 @@ type ProjectsLocationsEvaluationsCreateCall struct { // Create: Creates a new Evaluation in a given project and location. // -// - parent: The resource name of the evaluation location using the -// form: `projects/{project_id}/locations/{location_id}` where -// `location_id` refers to a GCP region. +// - parent: The resource prefix of the evaluation location using the +// form: `projects/{project_id}/locations/{location_id}`. func (r *ProjectsLocationsEvaluationsService) Create(parent string, evaluation *Evaluation) *ProjectsLocationsEvaluationsCreateCall { c := &ProjectsLocationsEvaluationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1407,8 +1406,7 @@ func (r *ProjectsLocationsEvaluationsService) Create(parent string, evaluation * } // EvaluationId sets the optional parameter "evaluationId": Required. Id -// of the requesting object If auto-generating Id server-side, remove -// this field and evaluation_id from the method_signature of Create RPC +// of the requesting object func (c *ProjectsLocationsEvaluationsCreateCall) EvaluationId(evaluationId string) *ProjectsLocationsEvaluationsCreateCall { c.urlParams_.Set("evaluationId", evaluationId) return c @@ -1419,7 +1417,7 @@ func (c *ProjectsLocationsEvaluationsCreateCall) EvaluationId(evaluationId strin // if you must retry your request, the server will know to ignore the // request if it has already been completed. The server will guarantee // that for at least 60 minutes since the first request. For example, -// consider a situation where you make an initial request and t he +// consider a situation where you make an initial request and the // request times out. If you make the request again with the same // request ID, the server can check if original operation with the same // request ID was received, and if so, will ignore the second request. @@ -1532,19 +1530,19 @@ func (c *ProjectsLocationsEvaluationsCreateCall) Do(opts ...googleapi.CallOption // ], // "parameters": { // "evaluationId": { - // "description": "Required. Id of the requesting object If auto-generating Id server-side, remove this field and evaluation_id from the method_signature of Create RPC", + // "description": "Required. Id of the requesting object", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the evaluation location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region.", + // "description": "Required. The resource prefix of the evaluation location using the form: `projects/{project_id}/locations/{location_id}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // }, // "requestId": { - // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", // "location": "query", // "type": "string" // }