diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index 6d0677dfdf4..2df3a008948 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -4731,7 +4731,7 @@ } } }, - "revision": "20240417", + "revision": "20240418", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "Abi": { @@ -7486,6 +7486,12 @@ }, "type": "object" }, + "OtherRecurringProduct": { + "description": "Details of a recurring external transaction product which doesn't belong to any other more specific category.", + "id": "OtherRecurringProduct", + "properties": {}, + "type": "object" + }, "OtherRegionsBasePlanConfig": { "description": "Pricing information for any new locations Play may launch in.", "id": "OtherRegionsBasePlanConfig", @@ -7524,6 +7530,10 @@ "$ref": "OtherRegionsSubscriptionOfferPhasePrices", "description": "The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for any new locations Play may launch in." }, + "free": { + "$ref": "OtherRegionsSubscriptionOfferPhaseFreePriceOverride", + "description": "Set to specify this offer is free to obtain." + }, "otherRegionsPrices": { "$ref": "OtherRegionsSubscriptionOfferPhasePrices", "description": "The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for any new locations Play may launch in." @@ -7536,6 +7546,12 @@ }, "type": "object" }, + "OtherRegionsSubscriptionOfferPhaseFreePriceOverride": { + "description": "Represents the free price override configuration for any new locations Play may launch for a single offer phase.", + "id": "OtherRegionsSubscriptionOfferPhaseFreePriceOverride", + "properties": {}, + "type": "object" + }, "OtherRegionsSubscriptionOfferPhasePrices": { "description": "Pricing information for any new locations Play may launch in.", "id": "OtherRegionsSubscriptionOfferPhasePrices", @@ -7766,6 +7782,10 @@ "Alternative billing only, where users may only use developer-manager billing." ], "type": "string" + }, + "otherRecurringProduct": { + "$ref": "OtherRecurringProduct", + "description": "Details of a recurring external transaction product which doesn't belong to any other specific category." } }, "type": "object" diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index a0aadee35aa..a9e9ca45396 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -5301,6 +5301,11 @@ func (s *OneTimeExternalTransaction) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// OtherRecurringProduct: Details of a recurring external transaction +// product which doesn't belong to any other more specific category. +type OtherRecurringProduct struct { +} + // OtherRegionsBasePlanConfig: Pricing information for any new locations // Play may launch in. type OtherRegionsBasePlanConfig struct { @@ -5385,6 +5390,9 @@ type OtherRegionsSubscriptionOfferPhaseConfig struct { // for any new locations Play may launch in. AbsoluteDiscounts *OtherRegionsSubscriptionOfferPhasePrices `json:"absoluteDiscounts,omitempty"` + // Free: Set to specify this offer is free to obtain. + Free *OtherRegionsSubscriptionOfferPhaseFreePriceOverride `json:"free,omitempty"` + // OtherRegionsPrices: The absolute price the user pays for this offer // phase. The price must not be smaller than the minimum price allowed // for any new locations Play may launch in. @@ -5440,6 +5448,12 @@ func (s *OtherRegionsSubscriptionOfferPhaseConfig) UnmarshalJSON(data []byte) er return nil } +// OtherRegionsSubscriptionOfferPhaseFreePriceOverride: Represents the +// free price override configuration for any new locations Play may +// launch for a single offer phase. +type OtherRegionsSubscriptionOfferPhaseFreePriceOverride struct { +} + // OtherRegionsSubscriptionOfferPhasePrices: Pricing information for any // new locations Play may launch in. type OtherRegionsSubscriptionOfferPhasePrices struct { @@ -5853,6 +5867,10 @@ type RecurringExternalTransaction struct { // may only use developer-manager billing. MigratedTransactionProgram string `json:"migratedTransactionProgram,omitempty"` + // OtherRecurringProduct: Details of a recurring external transaction + // product which doesn't belong to any other specific category. + OtherRecurringProduct *OtherRecurringProduct `json:"otherRecurringProduct,omitempty"` + // ForceSendFields is a list of field names (e.g. // "ExternalSubscription") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API diff --git a/appengine/v1/appengine-api.json b/appengine/v1/appengine-api.json index 0589a143938..6c0782b8935 100644 --- a/appengine/v1/appengine-api.json +++ b/appengine/v1/appengine-api.json @@ -1718,7 +1718,7 @@ } } }, - "revision": "20240226", + "revision": "20240415", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -3290,8 +3290,9 @@ "type": "string" }, "phase": { + "description": "Phase indicates when in the container event propagation this event is being communicated. Events are sent before and after the per-resource events are propagated. required", "enum": [ - "UNKNOWN", + "CONTAINER_EVENT_PHASE_UNSPECIFIED", "BEFORE_RESOURCE_HANDLING", "AFTER_RESOURCE_HANDLING" ], @@ -3308,7 +3309,7 @@ }, "state": { "$ref": "ContainerState", - "description": "The state of the project that led to this event." + "description": "The state of the organization that led to this event." } }, "type": "object" diff --git a/appengine/v1/appengine-gen.go b/appengine/v1/appengine-gen.go index e985eb0c522..677e4262563 100644 --- a/appengine/v1/appengine-gen.go +++ b/appengine/v1/appengine-gen.go @@ -3023,8 +3023,12 @@ type ProjectEvent struct { // value to dedup repeated calls. required EventId string `json:"eventId,omitempty"` + // Phase: Phase indicates when in the container event propagation this + // event is being communicated. Events are sent before and after the + // per-resource events are propagated. required + // // Possible values: - // "UNKNOWN" + // "CONTAINER_EVENT_PHASE_UNSPECIFIED" // "BEFORE_RESOURCE_HANDLING" // "AFTER_RESOURCE_HANDLING" Phase string `json:"phase,omitempty"` @@ -3032,7 +3036,7 @@ type ProjectEvent struct { // ProjectMetadata: The projects metadata for this project. required ProjectMetadata *ProjectsMetadata `json:"projectMetadata,omitempty"` - // State: The state of the project that led to this event. + // State: The state of the organization that led to this event. State *ContainerState `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "EventId") to diff --git a/appengine/v1alpha/appengine-api.json b/appengine/v1alpha/appengine-api.json index 0883cd9eeaa..433baa51c4f 100644 --- a/appengine/v1alpha/appengine-api.json +++ b/appengine/v1alpha/appengine-api.json @@ -946,7 +946,7 @@ } } }, - "revision": "20240226", + "revision": "20240415", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "AuthorizedCertificate": { @@ -1498,8 +1498,9 @@ "type": "string" }, "phase": { + "description": "Phase indicates when in the container event propagation this event is being communicated. Events are sent before and after the per-resource events are propagated. required", "enum": [ - "UNKNOWN", + "CONTAINER_EVENT_PHASE_UNSPECIFIED", "BEFORE_RESOURCE_HANDLING", "AFTER_RESOURCE_HANDLING" ], @@ -1516,7 +1517,7 @@ }, "state": { "$ref": "ContainerState", - "description": "The state of the project that led to this event." + "description": "The state of the organization that led to this event." } }, "type": "object" diff --git a/appengine/v1alpha/appengine-gen.go b/appengine/v1alpha/appengine-gen.go index 4169606e789..2e9f7187442 100644 --- a/appengine/v1alpha/appengine-gen.go +++ b/appengine/v1alpha/appengine-gen.go @@ -1299,8 +1299,12 @@ type ProjectEvent struct { // value to dedup repeated calls. required EventId string `json:"eventId,omitempty"` + // Phase: Phase indicates when in the container event propagation this + // event is being communicated. Events are sent before and after the + // per-resource events are propagated. required + // // Possible values: - // "UNKNOWN" + // "CONTAINER_EVENT_PHASE_UNSPECIFIED" // "BEFORE_RESOURCE_HANDLING" // "AFTER_RESOURCE_HANDLING" Phase string `json:"phase,omitempty"` @@ -1308,7 +1312,7 @@ type ProjectEvent struct { // ProjectMetadata: The projects metadata for this project. required ProjectMetadata *ProjectsMetadata `json:"projectMetadata,omitempty"` - // State: The state of the project that led to this event. + // State: The state of the organization that led to this event. State *ContainerState `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "EventId") to diff --git a/appengine/v1beta/appengine-api.json b/appengine/v1beta/appengine-api.json index 3aa25a3e49c..c18f2b71f69 100644 --- a/appengine/v1beta/appengine-api.json +++ b/appengine/v1beta/appengine-api.json @@ -1918,7 +1918,7 @@ } } }, - "revision": "20240226", + "revision": "20240415", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -3541,8 +3541,9 @@ "type": "string" }, "phase": { + "description": "Phase indicates when in the container event propagation this event is being communicated. Events are sent before and after the per-resource events are propagated. required", "enum": [ - "UNKNOWN", + "CONTAINER_EVENT_PHASE_UNSPECIFIED", "BEFORE_RESOURCE_HANDLING", "AFTER_RESOURCE_HANDLING" ], @@ -3559,7 +3560,7 @@ }, "state": { "$ref": "ContainerState", - "description": "The state of the project that led to this event." + "description": "The state of the organization that led to this event." } }, "type": "object" diff --git a/appengine/v1beta/appengine-gen.go b/appengine/v1beta/appengine-gen.go index 2889ec65fc3..b7701954c17 100644 --- a/appengine/v1beta/appengine-gen.go +++ b/appengine/v1beta/appengine-gen.go @@ -3132,8 +3132,12 @@ type ProjectEvent struct { // value to dedup repeated calls. required EventId string `json:"eventId,omitempty"` + // Phase: Phase indicates when in the container event propagation this + // event is being communicated. Events are sent before and after the + // per-resource events are propagated. required + // // Possible values: - // "UNKNOWN" + // "CONTAINER_EVENT_PHASE_UNSPECIFIED" // "BEFORE_RESOURCE_HANDLING" // "AFTER_RESOURCE_HANDLING" Phase string `json:"phase,omitempty"` @@ -3141,7 +3145,7 @@ type ProjectEvent struct { // ProjectMetadata: The projects metadata for this project. required ProjectMetadata *ProjectsMetadata `json:"projectMetadata,omitempty"` - // State: The state of the project that led to this event. + // State: The state of the organization that led to this event. State *ContainerState `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "EventId") to diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json index 703cc75b153..304ac9bb635 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-api.json @@ -107,6 +107,51 @@ "resources": { "bidders": { "resources": { + "auctionPackages": { + "methods": { + "list": { + "description": "List the auction packages. Buyers can use the URL path \"/v1/buyers/{accountId}/auctionPackages\" to list auction packages for the current buyer and its clients. Bidders can use the URL path \"/v1/bidders/{accountId}/auctionPackages\" to list auction packages for the bidder, its media planners, its buyers, and all their clients.", + "flatPath": "v1/bidders/{biddersId}/auctionPackages", + "httpMethod": "GET", + "id": "authorizedbuyersmarketplace.bidders.auctionPackages.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Optional query string using the [Cloud API list filtering syntax](/authorized-buyers/apis/guides/list-filters). Only supported when parent is bidder. Supported columns for filtering are: * displayName * createTime * updateTime * eligibleSeatIds", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Requested page size. The server may return fewer results than requested. Max allowed page size is 500.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The page token as returned. ListAuctionPackagesResponse.nextPageToken", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the parent buyer that can access the auction package. Format: `buyers/{accountId}`. When used with a bidder account, the auction packages that the bidder, its media planners, its buyers and clients are subscribed to will be listed, in the format `bidders/{accountId}`.", + "location": "path", + "pattern": "^bidders/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/auctionPackages", + "response": { + "$ref": "ListAuctionPackagesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/authorized-buyers-marketplace" + ] + } + } + }, "finalizedDeals": { "methods": { "list": { @@ -189,7 +234,7 @@ ] }, "list": { - "description": "List the auction packages subscribed by a buyer and its clients.", + "description": "List the auction packages. Buyers can use the URL path \"/v1/buyers/{accountId}/auctionPackages\" to list auction packages for the current buyer and its clients. Bidders can use the URL path \"/v1/bidders/{accountId}/auctionPackages\" to list auction packages for the bidder, its media planners, its buyers, and all their clients.", "flatPath": "v1/buyers/{buyersId}/auctionPackages", "httpMethod": "GET", "id": "authorizedbuyersmarketplace.buyers.auctionPackages.list", @@ -198,7 +243,7 @@ ], "parameters": { "filter": { - "description": "Optional. Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Only supported when parent is bidder. Supported columns for filtering are: * displayName * createTime * updateTime * eligibleSeatIds", + "description": "Optional. Optional query string using the [Cloud API list filtering syntax](/authorized-buyers/apis/guides/list-filters). Only supported when parent is bidder. Supported columns for filtering are: * displayName * createTime * updateTime * eligibleSeatIds", "location": "query", "type": "string" }, @@ -214,7 +259,7 @@ "type": "string" }, "parent": { - "description": "Required. Name of the parent buyer that can access the auction package. Format: `buyers/{accountId}`", + "description": "Required. Name of the parent buyer that can access the auction package. Format: `buyers/{accountId}`. When used with a bidder account, the auction packages that the bidder, its media planners, its buyers and clients are subscribed to will be listed, in the format `bidders/{accountId}`.", "location": "path", "pattern": "^buyers/[^/]+$", "required": true, @@ -1312,7 +1357,7 @@ } } }, - "revision": "20240417", + "revision": "20240418", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "schemas": { "AcceptProposalRequest": { @@ -1420,18 +1465,42 @@ "description": "The display_name assigned to the auction package.", "type": "string" }, + "eligibleSeatIds": { + "description": "Output only. If set, this field contains the list of DSP specific seat ids set by media planners that are eligible to transact on this deal. The seat ID is in the calling DSP's namespace.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "name": { "description": "Immutable. The unique identifier for the auction package. Format: `buyers/{accountId}/auctionPackages/{auctionPackageId}` The auction_package_id part of name is sent in the BidRequest to all RTB bidders and is returned as deal_id by the bidder in the BidResponse.", "type": "string" }, + "subscribedBuyers": { + "description": "Output only. The list of buyers that are subscribed to the AuctionPackage. This field is only populated when calling as a bidder. Format: `buyers/{buyerAccountId}`", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "subscribedClients": { - "description": "Output only. The list of clients of the current buyer that are subscribed to the AuctionPackage. Format: `buyers/{buyerAccountId}/clients/{clientAccountId}`", + "description": "Output only. When calling as a buyer, the list of clients of the current buyer that are subscribed to the AuctionPackage. When calling as a bidder, the list of clients that are subscribed to the AuctionPackage owned by the bidder or its buyers. Format: `buyers/{buyerAccountId}/clients/{clientAccountId}`", "items": { "type": "string" }, "readOnly": true, "type": "array" }, + "subscribedMediaPlanners": { + "description": "Output only. The list of media planners that are subscribed to the AuctionPackage. This field is only populated when calling as a bidder.", + "items": { + "$ref": "MediaPlanner" + }, + "readOnly": true, + "type": "array" + }, "updateTime": { "description": "Output only. Time the auction package was last updated. This value is only increased when this auction package is updated but never when a buyer subscribed.", "format": "google-datetime", diff --git a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go index b37010a2ec4..8eb7469a6a9 100644 --- a/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1/authorizedbuyersmarketplace-gen.go @@ -160,6 +160,7 @@ func (s *Service) userAgent() string { func NewBiddersService(s *Service) *BiddersService { rs := &BiddersService{s: s} + rs.AuctionPackages = NewBiddersAuctionPackagesService(s) rs.FinalizedDeals = NewBiddersFinalizedDealsService(s) return rs } @@ -167,9 +168,20 @@ func NewBiddersService(s *Service) *BiddersService { type BiddersService struct { s *Service + AuctionPackages *BiddersAuctionPackagesService + FinalizedDeals *BiddersFinalizedDealsService } +func NewBiddersAuctionPackagesService(s *Service) *BiddersAuctionPackagesService { + rs := &BiddersAuctionPackagesService{s: s} + return rs +} + +type BiddersAuctionPackagesService struct { + s *Service +} + func NewBiddersFinalizedDealsService(s *Service) *BiddersFinalizedDealsService { rs := &BiddersFinalizedDealsService{s: s} return rs @@ -433,17 +445,34 @@ type AuctionPackage struct { // DisplayName: The display_name assigned to the auction package. DisplayName string `json:"displayName,omitempty"` + // EligibleSeatIds: Output only. If set, this field contains the list of + // DSP specific seat ids set by media planners that are eligible to + // transact on this deal. The seat ID is in the calling DSP's namespace. + EligibleSeatIds []string `json:"eligibleSeatIds,omitempty"` + // Name: Immutable. The unique identifier for the auction package. // Format: `buyers/{accountId}/auctionPackages/{auctionPackageId}` The // auction_package_id part of name is sent in the BidRequest to all RTB // bidders and is returned as deal_id by the bidder in the BidResponse. Name string `json:"name,omitempty"` - // SubscribedClients: Output only. The list of clients of the current - // buyer that are subscribed to the AuctionPackage. Format: - // `buyers/{buyerAccountId}/clients/{clientAccountId}` + // SubscribedBuyers: Output only. The list of buyers that are subscribed + // to the AuctionPackage. This field is only populated when calling as a + // bidder. Format: `buyers/{buyerAccountId}` + SubscribedBuyers []string `json:"subscribedBuyers,omitempty"` + + // SubscribedClients: Output only. When calling as a buyer, the list of + // clients of the current buyer that are subscribed to the + // AuctionPackage. When calling as a bidder, the list of clients that + // are subscribed to the AuctionPackage owned by the bidder or its + // buyers. Format: `buyers/{buyerAccountId}/clients/{clientAccountId}` SubscribedClients []string `json:"subscribedClients,omitempty"` + // SubscribedMediaPlanners: Output only. The list of media planners that + // are subscribed to the AuctionPackage. This field is only populated + // when calling as a bidder. + SubscribedMediaPlanners []*MediaPlanner `json:"subscribedMediaPlanners,omitempty"` + // UpdateTime: Output only. Time the auction package was last updated. // This value is only increased when this auction package is updated but // never when a buyer subscribed. @@ -2990,6 +3019,223 @@ func (s *VideoTargeting) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// method id "authorizedbuyersmarketplace.bidders.auctionPackages.list": + +type BiddersAuctionPackagesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List the auction packages. Buyers can use the URL path +// "/v1/buyers/{accountId}/auctionPackages" to list auction packages for +// the current buyer and its clients. Bidders can use the URL path +// "/v1/bidders/{accountId}/auctionPackages" to list auction packages +// for the bidder, its media planners, its buyers, and all their +// clients. +// +// - parent: Name of the parent buyer that can access the auction +// package. Format: `buyers/{accountId}`. When used with a bidder +// account, the auction packages that the bidder, its media planners, +// its buyers and clients are subscribed to will be listed, in the +// format `bidders/{accountId}`. +func (r *BiddersAuctionPackagesService) List(parent string) *BiddersAuctionPackagesListCall { + c := &BiddersAuctionPackagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Optional query string +// using the Cloud API list filtering syntax +// (/authorized-buyers/apis/guides/list-filters). Only supported when +// parent is bidder. Supported columns for filtering are: * displayName +// * createTime * updateTime * eligibleSeatIds +func (c *BiddersAuctionPackagesListCall) Filter(filter string) *BiddersAuctionPackagesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// The server may return fewer results than requested. Max allowed page +// size is 500. +func (c *BiddersAuctionPackagesListCall) PageSize(pageSize int64) *BiddersAuctionPackagesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token as +// returned. ListAuctionPackagesResponse.nextPageToken +func (c *BiddersAuctionPackagesListCall) PageToken(pageToken string) *BiddersAuctionPackagesListCall { + 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 *BiddersAuctionPackagesListCall) Fields(s ...googleapi.Field) *BiddersAuctionPackagesListCall { + 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 *BiddersAuctionPackagesListCall) IfNoneMatch(entityTag string) *BiddersAuctionPackagesListCall { + 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 *BiddersAuctionPackagesListCall) Context(ctx context.Context) *BiddersAuctionPackagesListCall { + 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 *BiddersAuctionPackagesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BiddersAuctionPackagesListCall) 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}/auctionPackages") + 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 "authorizedbuyersmarketplace.bidders.auctionPackages.list" call. +// Exactly one of *ListAuctionPackagesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListAuctionPackagesResponse.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 *BiddersAuctionPackagesListCall) Do(opts ...googleapi.CallOption) (*ListAuctionPackagesResponse, 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 := &ListAuctionPackagesResponse{ + 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 the auction packages. Buyers can use the URL path \"/v1/buyers/{accountId}/auctionPackages\" to list auction packages for the current buyer and its clients. Bidders can use the URL path \"/v1/bidders/{accountId}/auctionPackages\" to list auction packages for the bidder, its media planners, its buyers, and all their clients.", + // "flatPath": "v1/bidders/{biddersId}/auctionPackages", + // "httpMethod": "GET", + // "id": "authorizedbuyersmarketplace.bidders.auctionPackages.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. Optional query string using the [Cloud API list filtering syntax](/authorized-buyers/apis/guides/list-filters). Only supported when parent is bidder. Supported columns for filtering are: * displayName * createTime * updateTime * eligibleSeatIds", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Requested page size. The server may return fewer results than requested. Max allowed page size is 500.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The page token as returned. ListAuctionPackagesResponse.nextPageToken", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the parent buyer that can access the auction package. Format: `buyers/{accountId}`. When used with a bidder account, the auction packages that the bidder, its media planners, its buyers and clients are subscribed to will be listed, in the format `bidders/{accountId}`.", + // "location": "path", + // "pattern": "^bidders/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/auctionPackages", + // "response": { + // "$ref": "ListAuctionPackagesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/authorized-buyers-marketplace" + // ] + // } + +} + +// 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 *BiddersAuctionPackagesListCall) Pages(ctx context.Context, f func(*ListAuctionPackagesResponse) 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 "authorizedbuyersmarketplace.bidders.finalizedDeals.list": type BiddersFinalizedDealsListCall struct { @@ -3387,11 +3633,18 @@ type BuyersAuctionPackagesListCall struct { header_ http.Header } -// List: List the auction packages subscribed by a buyer and its +// List: List the auction packages. Buyers can use the URL path +// "/v1/buyers/{accountId}/auctionPackages" to list auction packages for +// the current buyer and its clients. Bidders can use the URL path +// "/v1/bidders/{accountId}/auctionPackages" to list auction packages +// for the bidder, its media planners, its buyers, and all their // clients. // // - parent: Name of the parent buyer that can access the auction -// package. Format: `buyers/{accountId}`. +// package. Format: `buyers/{accountId}`. When used with a bidder +// account, the auction packages that the bidder, its media planners, +// its buyers and clients are subscribed to will be listed, in the +// format `bidders/{accountId}`. func (r *BuyersAuctionPackagesService) List(parent string) *BuyersAuctionPackagesListCall { c := &BuyersAuctionPackagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -3400,9 +3653,9 @@ func (r *BuyersAuctionPackagesService) List(parent string) *BuyersAuctionPackage // Filter sets the optional parameter "filter": Optional query string // using the Cloud API list filtering syntax -// (https://developers.google.com/authorized-buyers/apis/guides/list-filters) -// Only supported when parent is bidder. Supported columns for filtering -// are: * displayName * createTime * updateTime * eligibleSeatIds +// (/authorized-buyers/apis/guides/list-filters). Only supported when +// parent is bidder. Supported columns for filtering are: * displayName +// * createTime * updateTime * eligibleSeatIds func (c *BuyersAuctionPackagesListCall) Filter(filter string) *BuyersAuctionPackagesListCall { c.urlParams_.Set("filter", filter) return c @@ -3522,7 +3775,7 @@ func (c *BuyersAuctionPackagesListCall) Do(opts ...googleapi.CallOption) (*ListA } return ret, nil // { - // "description": "List the auction packages subscribed by a buyer and its clients.", + // "description": "List the auction packages. Buyers can use the URL path \"/v1/buyers/{accountId}/auctionPackages\" to list auction packages for the current buyer and its clients. Bidders can use the URL path \"/v1/bidders/{accountId}/auctionPackages\" to list auction packages for the bidder, its media planners, its buyers, and all their clients.", // "flatPath": "v1/buyers/{buyersId}/auctionPackages", // "httpMethod": "GET", // "id": "authorizedbuyersmarketplace.buyers.auctionPackages.list", @@ -3531,7 +3784,7 @@ func (c *BuyersAuctionPackagesListCall) Do(opts ...googleapi.CallOption) (*ListA // ], // "parameters": { // "filter": { - // "description": "Optional. Optional query string using the [Cloud API list filtering syntax](https://developers.google.com/authorized-buyers/apis/guides/list-filters) Only supported when parent is bidder. Supported columns for filtering are: * displayName * createTime * updateTime * eligibleSeatIds", + // "description": "Optional. Optional query string using the [Cloud API list filtering syntax](/authorized-buyers/apis/guides/list-filters). Only supported when parent is bidder. Supported columns for filtering are: * displayName * createTime * updateTime * eligibleSeatIds", // "location": "query", // "type": "string" // }, @@ -3547,7 +3800,7 @@ func (c *BuyersAuctionPackagesListCall) Do(opts ...googleapi.CallOption) (*ListA // "type": "string" // }, // "parent": { - // "description": "Required. Name of the parent buyer that can access the auction package. Format: `buyers/{accountId}`", + // "description": "Required. Name of the parent buyer that can access the auction package. Format: `buyers/{accountId}`. When used with a bidder account, the auction packages that the bidder, its media planners, its buyers and clients are subscribed to will be listed, in the format `bidders/{accountId}`.", // "location": "path", // "pattern": "^buyers/[^/]+$", // "required": true, diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 4d6990a0461..43dd3a255c3 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -41579,7 +41579,7 @@ } } }, - "revision": "20240326", + "revision": "20240407", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -64607,7 +64607,13 @@ "description": "Metadata defined as annotations on the network endpoint.", "type": "object" }, + "clientDestinationPort": { + "description": "Represents the port number to which PSC consumer sends packets. Only valid for network endpoint groups created with GCE_VM_IP_PORTMAP endpoint type.", + "format": "int32", + "type": "integer" + }, "clientPort": { + "deprecated": true, "description": "Represents the port number to which PSC consumer sends packets. Only valid for network endpoint groups created with CLIENT_PORT_PER_ENDPOINT mapping mode.", "format": "int32", "type": "integer" @@ -64652,6 +64658,7 @@ "description": "Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set." }, "clientPortMappingMode": { + "deprecated": true, "description": "Only valid when networkEndpointType is GCE_VM_IP_PORT and the NEG is regional.", "enum": [ "CLIENT_PORT_PER_ENDPOINT", @@ -64708,10 +64715,11 @@ "type": "string" }, "networkEndpointType": { - "description": "Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT.", + "description": "Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP.", "enum": [ "GCE_VM_IP", "GCE_VM_IP_PORT", + "GCE_VM_IP_PORTMAP", "INTERNET_FQDN_PORT", "INTERNET_IP_PORT", "NON_GCP_PRIVATE_IP_PORT", @@ -64721,6 +64729,7 @@ "enumDescriptions": [ "The network endpoint is represented by an IP address.", "The network endpoint is represented by IP address and port pair.", + "The network endpoint is represented by an IP, Port and Client Destination Port.", "The network endpoint is represented by fully qualified domain name and port.", "The network endpoint is represented by an internet IP address and port.", "The network endpoint is represented by an IP address and port. The endpoint belongs to a VM or pod running in a customer's on-premises.", @@ -69400,7 +69409,7 @@ "type": "array" }, "cidrRanges": { - "description": "One or more IPv4 or IPv6 CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use \"0.0.0.0/0,::/0\". Note: Support for IPv6 traffic is in preview.", + "description": "One or more IPv4 or IPv6 CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use \"0.0.0.0/0,::/0\".", "items": { "type": "string" }, @@ -71662,6 +71671,127 @@ "description": "[Output Only] Name of the resource.", "type": "string" }, + "quotaStatusWarning": { + "description": "[Output Only] Warning of fetching the `quotas` field for this region. This field is populated only if fetching of the `quotas` field fails.", + "properties": { + "code": { + "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", + "enum": [ + "CLEANUP_FAILED", + "DEPRECATED_RESOURCE_USED", + "DEPRECATED_TYPE_USED", + "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", + "EXPERIMENTAL_TYPE_USED", + "EXTERNAL_API_WARNING", + "FIELD_VALUE_OVERRIDEN", + "INJECTED_KERNELS_DEPRECATED", + "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", + "LARGE_DEPLOYMENT_WARNING", + "LIST_OVERHEAD_QUOTA_EXCEED", + "MISSING_TYPE_DEPENDENCY", + "NEXT_HOP_ADDRESS_NOT_ASSIGNED", + "NEXT_HOP_CANNOT_IP_FORWARD", + "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", + "NEXT_HOP_INSTANCE_NOT_FOUND", + "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", + "NEXT_HOP_NOT_RUNNING", + "NOT_CRITICAL_ERROR", + "NO_RESULTS_ON_PAGE", + "PARTIAL_SUCCESS", + "REQUIRED_TOS_AGREEMENT", + "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", + "RESOURCE_NOT_DELETED", + "SCHEMA_VALIDATION_IGNORED", + "SINGLE_INSTANCE_PROPERTY_TEMPLATE", + "UNDECLARED_PROPERTIES", + "UNREACHABLE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], + "enumDescriptions": [ + "Warning about failed cleanup of transient changes made by a failed operation.", + "A link to a deprecated resource was created.", + "When deploying and at least one of the resources has a type marked as deprecated", + "The user created a boot disk that is larger than image size.", + "When deploying and at least one of the resources has a type marked as experimental", + "Warning that is present in an external api call", + "Warning that value of a field has been overridden. Deprecated unused field.", + "The operation involved use of an injected kernel, which is deprecated.", + "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", + "When deploying a deployment with a exceedingly large number of resources", + "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", + "A resource depends on a missing type", + "The route's nextHopIp address is not assigned to an instance on the network.", + "The route's next hop instance cannot ip forward.", + "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", + "The route's nextHopInstance URL refers to an instance that does not exist.", + "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", + "The route's next hop instance does not have a status of RUNNING.", + "Error which is not critical. We decided to continue the process despite the mentioned error.", + "No results are present on a particular list page.", + "Success is reported, but some results may be missing due to errors", + "The user attempted to use a resource that requires a TOS they have not accepted.", + "Warning that a resource is in use.", + "One or more of the resources set to auto-delete could not be deleted because they were in use.", + "When a resource schema validation is ignored.", + "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", + "When undeclared properties in the schema are present", + "A given scope cannot be reached." + ], + "type": "string" + }, + "data": { + "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", + "items": { + "properties": { + "key": { + "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", + "type": "string" + }, + "value": { + "description": "[Output Only] A warning data value corresponding to the key.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "[Output Only] A human-readable description of the warning code.", + "type": "string" + } + }, + "type": "object" + }, "quotas": { "description": "[Output Only] Quotas assigned to this region.", "items": { @@ -74362,7 +74492,7 @@ "type": "object" }, "ResourcePolicyGroupPlacementPolicy": { - "description": "A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure bucket separation as well as network locality", + "description": "A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure bucket separation", "id": "ResourcePolicyGroupPlacementPolicy", "properties": { "availabilityDomainCount": { @@ -79155,14 +79285,14 @@ "type": "string" }, "consumerAcceptLists": { - "description": "Projects that are allowed to connect to this service attachment.", + "description": "Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.", "items": { "$ref": "ServiceAttachmentConsumerProjectLimit" }, "type": "array" }, "consumerRejectLists": { - "description": "Projects that are not allowed to connect to this service attachment. The project can be specified using its id or number.", + "description": "Specifies a list of projects or networks that are not allowed to connect to this service attachment. The project can be specified using its project ID or project number and the network can be specified using its URL. A given service attachment can manage connections at either the project or network level. Therefore, both the reject and accept lists for a given service attachment must contain either only projects or only networks.", "items": { "type": "string" }, diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index f876047969f..9ac907d1e4b 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -34696,6 +34696,11 @@ type NetworkEndpoint struct { // Annotations: Metadata defined as annotations on the network endpoint. Annotations map[string]string `json:"annotations,omitempty"` + // ClientDestinationPort: Represents the port number to which PSC + // consumer sends packets. Only valid for network endpoint groups + // created with GCE_VM_IP_PORTMAP endpoint type. + ClientDestinationPort int64 `json:"clientDestinationPort,omitempty"` + // ClientPort: Represents the port number to which PSC consumer sends // packets. Only valid for network endpoint groups created with // CLIENT_PORT_PER_ENDPOINT mapping mode. @@ -34835,12 +34840,14 @@ type NetworkEndpointGroup struct { // NetworkEndpointType: Type of network endpoints in this network // endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, // NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, - // SERVERLESS, PRIVATE_SERVICE_CONNECT. + // SERVERLESS, PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP. // // Possible values: // "GCE_VM_IP" - The network endpoint is represented by an IP address. // "GCE_VM_IP_PORT" - The network endpoint is represented by IP // address and port pair. + // "GCE_VM_IP_PORTMAP" - The network endpoint is represented by an IP, + // Port and Client Destination Port. // "INTERNET_FQDN_PORT" - The network endpoint is represented by fully // qualified domain name and port. // "INTERNET_IP_PORT" - The network endpoint is represented by an @@ -41157,8 +41164,7 @@ type PacketMirroringFilter struct { // If no ranges are specified, all IPv4 traffic that matches the // specified IPProtocols is mirrored. If neither cidrRanges nor // IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all - // IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0". Note: Support for IPv6 - // traffic is in preview. + // IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0". CidrRanges []string `json:"cidrRanges,omitempty"` // Direction: Direction of traffic to mirror, either INGRESS, EGRESS, or @@ -44191,6 +44197,11 @@ type Region struct { // Name: [Output Only] Name of the resource. Name string `json:"name,omitempty"` + // QuotaStatusWarning: [Output Only] Warning of fetching the `quotas` + // field for this region. This field is populated only if fetching of + // the `quotas` field fails. + QuotaStatusWarning *RegionQuotaStatusWarning `json:"quotaStatusWarning,omitempty"` + // Quotas: [Output Only] Quotas assigned to this region. Quotas []*Quota `json:"quotas,omitempty"` @@ -44239,6 +44250,146 @@ func (s *Region) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RegionQuotaStatusWarning: [Output Only] Warning of fetching the +// `quotas` field for this region. This field is populated only if +// fetching of the `quotas` field fails. +type RegionQuotaStatusWarning struct { + // Code: [Output Only] A warning code, if applicable. For example, + // Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in + // the response. + // + // Possible values: + // "CLEANUP_FAILED" - Warning about failed cleanup of transient + // changes made by a failed operation. + // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was + // created. + // "DEPRECATED_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as deprecated + // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk + // that is larger than image size. + // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the + // resources has a type marked as experimental + // "EXTERNAL_API_WARNING" - Warning that is present in an external api + // call + // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been + // overridden. Deprecated unused field. + // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an + // injected kernel, which is deprecated. + // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV + // backend service is associated with a health check that is not of type + // HTTP/HTTPS/HTTP2. + // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a + // exceedingly large number of resources + // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to + // list overhead quota exceed which captures the amount of resources + // filtered out by user-defined list filter. + // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type + // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is + // not assigned to an instance on the network. + // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot + // ip forward. + // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's + // nextHopInstance URL refers to an instance that does not have an ipv6 + // interface on the same network as the route. + // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL + // refers to an instance that does not exist. + // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance + // URL refers to an instance that is not on the same network as the + // route. + // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not + // have a status of RUNNING. + // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to + // continue the process despite the mentioned error. + // "NO_RESULTS_ON_PAGE" - No results are present on a particular list + // page. + // "PARTIAL_SUCCESS" - Success is reported, but some results may be + // missing due to errors + // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource + // that requires a TOS they have not accepted. + // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a + // resource is in use. + // "RESOURCE_NOT_DELETED" - One or more of the resources set to + // auto-delete could not be deleted because they were in use. + // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is + // ignored. + // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in + // instance group manager is valid as such, but its application does not + // make a lot of sense, because it allows only single instance in + // instance group. + // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema + // are present + // "UNREACHABLE" - A given scope cannot be reached. + Code string `json:"code,omitempty"` + + // Data: [Output Only] Metadata about this warning in key: value format. + // For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" + // } + Data []*RegionQuotaStatusWarningData `json:"data,omitempty"` + + // Message: [Output Only] A human-readable description of the warning + // code. + 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 *RegionQuotaStatusWarning) MarshalJSON() ([]byte, error) { + type NoMethod RegionQuotaStatusWarning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type RegionQuotaStatusWarningData struct { + // Key: [Output Only] A key that provides more detail on the warning + // being returned. For example, for warnings where there are no results + // in a list request for a particular zone, this key might be scope and + // the key value might be the zone name. Other examples might be a key + // indicating a deprecated resource and a suggested replacement, or a + // warning about invalid network settings (for example, if an instance + // attempts to perform IP forwarding but is not enabled for IP + // forwarding). + Key string `json:"key,omitempty"` + + // Value: [Output Only] A warning data value corresponding to the key. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 *RegionQuotaStatusWarningData) MarshalJSON() ([]byte, error) { + type NoMethod RegionQuotaStatusWarningData + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type RegionAddressesMoveRequest struct { // Description: An optional destination address description if intended // to be different from the source. @@ -48119,7 +48270,7 @@ type ResourcePolicyDiskConsistencyGroupPolicy struct { // ResourcePolicyGroupPlacementPolicy: A GroupPlacementPolicy specifies // resource placement configuration. It specifies the failure bucket -// separation as well as network locality +// separation type ResourcePolicyGroupPlacementPolicy struct { // AvailabilityDomainCount: The number of availability domains to spread // instances across. If two instances are in different availability @@ -54747,13 +54898,21 @@ type ServiceAttachment struct { // "CONNECTION_PREFERENCE_UNSPECIFIED" ConnectionPreference string `json:"connectionPreference,omitempty"` - // ConsumerAcceptLists: Projects that are allowed to connect to this - // service attachment. + // ConsumerAcceptLists: Specifies which consumer projects or networks + // are allowed to connect to the service attachment. Each project or + // network has a connection limit. A given service attachment can manage + // connections at either the project or network level. Therefore, both + // the accept and reject lists for a given service attachment must + // contain either only projects or only networks. ConsumerAcceptLists []*ServiceAttachmentConsumerProjectLimit `json:"consumerAcceptLists,omitempty"` - // ConsumerRejectLists: Projects that are not allowed to connect to this - // service attachment. The project can be specified using its id or - // number. + // ConsumerRejectLists: Specifies a list of projects or networks that + // are not allowed to connect to this service attachment. The project + // can be specified using its project ID or project number and the + // network can be specified using its URL. A given service attachment + // can manage connections at either the project or network level. + // Therefore, both the reject and accept lists for a given service + // attachment must contain either only projects or only networks. ConsumerRejectLists []string `json:"consumerRejectLists,omitempty"` // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json index 0772662f9d9..04174db00ce 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-api.json @@ -512,7 +512,7 @@ } } }, - "revision": "20240207", + "revision": "20240416", "rootUrl": "https://contactcenteraiplatform.googleapis.com/", "schemas": { "AdminUser": { @@ -537,7 +537,7 @@ "type": "object" }, "ContactCenter": { - "description": "Message describing ContactCenter object Next ID: 20", + "description": "Message describing ContactCenter object Next ID: 22", "id": "ContactCenter", "properties": { "adminUser": { diff --git a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go index d58bb82c7af..aa7c5b1467e 100644 --- a/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go +++ b/contactcenteraiplatform/v1alpha1/contactcenteraiplatform-gen.go @@ -237,7 +237,7 @@ func (s *AdminUser) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } -// ContactCenter: Message describing ContactCenter object Next ID: 20 +// ContactCenter: Message describing ContactCenter object Next ID: 22 type ContactCenter struct { // AdminUser: Optional. Info about the first admin user, such as given // name and family name. diff --git a/customsearch/v1/customsearch-api.json b/customsearch/v1/customsearch-api.json index d3c600a0064..84291cf3bc3 100644 --- a/customsearch/v1/customsearch-api.json +++ b/customsearch/v1/customsearch-api.json @@ -372,6 +372,12 @@ "location": "query", "type": "string" }, + "snippetLength": { + "description": "Optional. Maximum length of snippet text, in characters, to be returned with results. Note: this feature is limited to specific engines. * Valid values are integers between 161 and 1000, inclusive.", + "format": "int32", + "location": "query", + "type": "integer" + }, "sort": { "description": "The sort expression to apply to the results. The sort parameter specifies that the results be sorted according to the specified expression i.e. sort by date. [Example: sort=date](https://developers.google.com/custom-search/docs/structured_search#sort-by-attribute).", "location": "query", @@ -668,6 +674,12 @@ "location": "query", "type": "string" }, + "snippetLength": { + "description": "Optional. Maximum length of snippet text, in characters, to be returned with results. Note: this feature is limited to specific engines. * Valid values are integers between 161 and 1000, inclusive.", + "format": "int32", + "location": "query", + "type": "integer" + }, "sort": { "description": "The sort expression to apply to the results. The sort parameter specifies that the results be sorted according to the specified expression i.e. sort by date. [Example: sort=date](https://developers.google.com/custom-search/docs/structured_search#sort-by-attribute).", "location": "query", @@ -690,7 +702,7 @@ } } }, - "revision": "20240326", + "revision": "20240417", "rootUrl": "https://customsearch.googleapis.com/", "schemas": { "Promotion": { diff --git a/customsearch/v1/customsearch-gen.go b/customsearch/v1/customsearch-gen.go index 383eac94220..aa55dbdc3ba 100644 --- a/customsearch/v1/customsearch-gen.go +++ b/customsearch/v1/customsearch-gen.go @@ -1694,6 +1694,15 @@ func (c *CseListCall) SiteSearchFilter(siteSearchFilter string) *CseListCall { return c } +// SnippetLength sets the optional parameter "snippetLength": Maximum +// length of snippet text, in characters, to be returned with results. +// Note: this feature is limited to specific engines. * Valid values are +// integers between 161 and 1000, inclusive. +func (c *CseListCall) SnippetLength(snippetLength int64) *CseListCall { + c.urlParams_.Set("snippetLength", fmt.Sprint(snippetLength)) + return c +} + // Sort sets the optional parameter "sort": The sort expression to apply // to the results. The sort parameter specifies that the results be // sorted according to the specified expression i.e. sort by date. @@ -2086,6 +2095,12 @@ func (c *CseListCall) Do(opts ...googleapi.CallOption) (*Search, error) { // "location": "query", // "type": "string" // }, + // "snippetLength": { + // "description": "Optional. Maximum length of snippet text, in characters, to be returned with results. Note: this feature is limited to specific engines. * Valid values are integers between 161 and 1000, inclusive.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, // "sort": { // "description": "The sort expression to apply to the results. The sort parameter specifies that the results be sorted according to the specified expression i.e. sort by date. [Example: sort=date](https://developers.google.com/custom-search/docs/structured_search#sort-by-attribute).", // "location": "query", @@ -2473,6 +2488,15 @@ func (c *CseSiterestrictListCall) SiteSearchFilter(siteSearchFilter string) *Cse return c } +// SnippetLength sets the optional parameter "snippetLength": Maximum +// length of snippet text, in characters, to be returned with results. +// Note: this feature is limited to specific engines. * Valid values are +// integers between 161 and 1000, inclusive. +func (c *CseSiterestrictListCall) SnippetLength(snippetLength int64) *CseSiterestrictListCall { + c.urlParams_.Set("snippetLength", fmt.Sprint(snippetLength)) + return c +} + // Sort sets the optional parameter "sort": The sort expression to apply // to the results. The sort parameter specifies that the results be // sorted according to the specified expression i.e. sort by date. @@ -2865,6 +2889,12 @@ func (c *CseSiterestrictListCall) Do(opts ...googleapi.CallOption) (*Search, err // "location": "query", // "type": "string" // }, + // "snippetLength": { + // "description": "Optional. Maximum length of snippet text, in characters, to be returned with results. Note: this feature is limited to specific engines. * Valid values are integers between 161 and 1000, inclusive.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, // "sort": { // "description": "The sort expression to apply to the results. The sort parameter specifies that the results be sorted according to the specified expression i.e. sort by date. [Example: sort=date](https://developers.google.com/custom-search/docs/structured_search#sort-by-attribute).", // "location": "query", diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index 9541ae408a0..ea0cd67ea91 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -4578,7 +4578,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_KEYWORD`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -4725,7 +4725,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_KEYWORD`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -9267,7 +9267,7 @@ } } }, - "revision": "20240404", + "revision": "20240418", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -10649,14 +10649,14 @@ "id": "BulkEditAdvertiserAssignedTargetingOptionsRequest", "properties": { "createRequests": { - "description": "The assigned targeting options to create in batch, specified as a list of `CreateAssignedTargetingOptionsRequest`. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + "description": "The assigned targeting options to create in batch, specified as a list of `CreateAssignedTargetingOptionsRequest`. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_KEYWORD`", "items": { "$ref": "CreateAssignedTargetingOptionsRequest" }, "type": "array" }, "deleteRequests": { - "description": "The assigned targeting options to delete in batch, specified as a list of `DeleteAssignedTargetingOptionsRequest`. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + "description": "The assigned targeting options to delete in batch, specified as a list of `DeleteAssignedTargetingOptionsRequest`. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_KEYWORD`", "items": { "$ref": "DeleteAssignedTargetingOptionsRequest" }, diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index 527f44657f0..ec9833cb575 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -2976,6 +2976,7 @@ type BulkEditAdvertiserAssignedTargetingOptionsRequest struct { // Supported targeting types: * `TARGETING_TYPE_CHANNEL` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` + // * `TARGETING_TYPE_KEYWORD` CreateRequests []*CreateAssignedTargetingOptionsRequest `json:"createRequests,omitempty"` // DeleteRequests: The assigned targeting options to delete in batch, @@ -2983,6 +2984,7 @@ type BulkEditAdvertiserAssignedTargetingOptionsRequest struct { // Supported targeting types: * `TARGETING_TYPE_CHANNEL` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` + // * `TARGETING_TYPE_KEYWORD` DeleteRequests []*DeleteAssignedTargetingOptionsRequest `json:"deleteRequests,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateRequests") to @@ -34962,7 +34964,8 @@ type AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall struct { // option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_KEYWORD`. func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) Create(advertiserId int64, targetingType string, assignedtargetingoption *AssignedTargetingOption) *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall { c := &AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -35081,7 +35084,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) Do(opts .. // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_KEYWORD`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -35225,7 +35228,8 @@ type AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall struct { // option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_KEYWORD`. func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) Delete(advertiserId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall { c := &AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -35348,7 +35352,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) Do(opts .. // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_KEYWORD`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", diff --git a/displayvideo/v3/displayvideo-api.json b/displayvideo/v3/displayvideo-api.json index f3023f7f5f9..418eee1cd62 100644 --- a/displayvideo/v3/displayvideo-api.json +++ b/displayvideo/v3/displayvideo-api.json @@ -4898,7 +4898,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_KEYWORD`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -5045,7 +5045,7 @@ "type": "string" }, "targetingType": { - "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_KEYWORD`", "enum": [ "TARGETING_TYPE_UNSPECIFIED", "TARGETING_TYPE_CHANNEL", @@ -9222,7 +9222,7 @@ } } }, - "revision": "20240404", + "revision": "20240418", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -11222,14 +11222,14 @@ "id": "BulkEditAdvertiserAssignedTargetingOptionsRequest", "properties": { "createRequests": { - "description": "The assigned targeting options to create in batch, specified as a list of `CreateAssignedTargetingOptionsRequest`. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + "description": "The assigned targeting options to create in batch, specified as a list of `CreateAssignedTargetingOptionsRequest`. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_KEYWORD`", "items": { "$ref": "CreateAssignedTargetingOptionsRequest" }, "type": "array" }, "deleteRequests": { - "description": "The assigned targeting options to delete in batch, specified as a list of `DeleteAssignedTargetingOptionsRequest`. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + "description": "The assigned targeting options to delete in batch, specified as a list of `DeleteAssignedTargetingOptionsRequest`. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_KEYWORD`", "items": { "$ref": "DeleteAssignedTargetingOptionsRequest" }, @@ -17850,6 +17850,11 @@ "description": "Settings that control the key performance indicator, or KPI, of an insertion order.", "id": "Kpi", "properties": { + "kpiAlgorithmId": { + "description": "Optional. Custom Bidding Algorithm ID associated with KPI_CUSTOM_IMPRESSION_VALUE_OVER_COST. This field is ignored if the proper KPI is not selected.", + "format": "int64", + "type": "string" + }, "kpiAmountMicros": { "description": "The goal amount, in micros of the advertiser's currency. Applicable when kpi_type is one of: * `KPI_TYPE_CPM` * `KPI_TYPE_CPC` * `KPI_TYPE_CPA` * `KPI_TYPE_CPIAVC` * `KPI_TYPE_VCPM` For example: 1500000 represents 1.5 standard units of the currency.", "format": "int64", @@ -17875,12 +17880,18 @@ "KPI_TYPE_VIEWABILITY", "KPI_TYPE_CPIAVC", "KPI_TYPE_CPE", + "KPI_TYPE_CPV", "KPI_TYPE_CLICK_CVR", "KPI_TYPE_IMPRESSION_CVR", "KPI_TYPE_VCPM", "KPI_TYPE_VTR", "KPI_TYPE_AUDIO_COMPLETION_RATE", "KPI_TYPE_VIDEO_COMPLETION_RATE", + "KPI_TYPE_CPCL", + "KPI_TYPE_CPCV", + "KPI_TYPE_TOS10", + "KPI_TYPE_MAXIMIZE_PACING", + "KPI_TYPE_CUSTOM_IMPRESSION_VALUE_OVER_COST", "KPI_TYPE_OTHER" ], "enumDescriptions": [ @@ -17892,12 +17903,18 @@ "The KPI is Viewability percentage.", "The KPI is CPIAVC (cost per impression audible and visible at completion).", "The KPI is CPE (cost per engagement).", + "The KPI is set in CPV (cost per view).", "The KPI is click conversion rate (conversions per click) percentage.", "The KPI is impression conversion rate (conversions per impression) percentage.", "The KPI is VCPM (cost per thousand viewable impressions).", "The KPI is YouTube view rate (YouTube views per impression) percentage.", "The KPI is audio completion rate (complete audio listens per impression) percentage.", "The KPI is video completion rate (complete video views per impression) percentage.", + "The KPI is set in CPCL (cost per complete audio listen).", + "The KPI is set in CPCV (cost per complete video view).", + "The KPI is set in rate of time on screen 10+ seconds (Percentage of measurable, non-skippable impressions that were on the screen for at least 10 seconds).", + "The KPI is set to maximize brand impact while prioritizing spending the full budget.", + "The KPI is set in custom impression value divided by cost.", "The KPI is some other value." ], "type": "string" diff --git a/displayvideo/v3/displayvideo-gen.go b/displayvideo/v3/displayvideo-gen.go index 91b709e2aa0..9c55b459df5 100644 --- a/displayvideo/v3/displayvideo-gen.go +++ b/displayvideo/v3/displayvideo-gen.go @@ -3713,6 +3713,7 @@ type BulkEditAdvertiserAssignedTargetingOptionsRequest struct { // Supported targeting types: * `TARGETING_TYPE_CHANNEL` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` + // * `TARGETING_TYPE_KEYWORD` CreateRequests []*CreateAssignedTargetingOptionsRequest `json:"createRequests,omitempty"` // DeleteRequests: The assigned targeting options to delete in batch, @@ -3720,6 +3721,7 @@ type BulkEditAdvertiserAssignedTargetingOptionsRequest struct { // Supported targeting types: * `TARGETING_TYPE_CHANNEL` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` + // * `TARGETING_TYPE_KEYWORD` DeleteRequests []*DeleteAssignedTargetingOptionsRequest `json:"deleteRequests,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateRequests") to @@ -12507,6 +12509,11 @@ func (s *KeywordAssignedTargetingOptionDetails) MarshalJSON() ([]byte, error) { // Kpi: Settings that control the key performance indicator, or KPI, of // an insertion order. type Kpi struct { + // KpiAlgorithmId: Optional. Custom Bidding Algorithm ID associated with + // KPI_CUSTOM_IMPRESSION_VALUE_OVER_COST. This field is ignored if the + // proper KPI is not selected. + KpiAlgorithmId int64 `json:"kpiAlgorithmId,omitempty,string"` + // KpiAmountMicros: The goal amount, in micros of the advertiser's // currency. Applicable when kpi_type is one of: * `KPI_TYPE_CPM` * // `KPI_TYPE_CPC` * `KPI_TYPE_CPA` * `KPI_TYPE_CPIAVC` * `KPI_TYPE_VCPM` @@ -12539,6 +12546,7 @@ type Kpi struct { // "KPI_TYPE_CPIAVC" - The KPI is CPIAVC (cost per impression audible // and visible at completion). // "KPI_TYPE_CPE" - The KPI is CPE (cost per engagement). + // "KPI_TYPE_CPV" - The KPI is set in CPV (cost per view). // "KPI_TYPE_CLICK_CVR" - The KPI is click conversion rate // (conversions per click) percentage. // "KPI_TYPE_IMPRESSION_CVR" - The KPI is impression conversion rate @@ -12551,10 +12559,21 @@ type Kpi struct { // (complete audio listens per impression) percentage. // "KPI_TYPE_VIDEO_COMPLETION_RATE" - The KPI is video completion rate // (complete video views per impression) percentage. + // "KPI_TYPE_CPCL" - The KPI is set in CPCL (cost per complete audio + // listen). + // "KPI_TYPE_CPCV" - The KPI is set in CPCV (cost per complete video + // view). + // "KPI_TYPE_TOS10" - The KPI is set in rate of time on screen 10+ + // seconds (Percentage of measurable, non-skippable impressions that + // were on the screen for at least 10 seconds). + // "KPI_TYPE_MAXIMIZE_PACING" - The KPI is set to maximize brand + // impact while prioritizing spending the full budget. + // "KPI_TYPE_CUSTOM_IMPRESSION_VALUE_OVER_COST" - The KPI is set in + // custom impression value divided by cost. // "KPI_TYPE_OTHER" - The KPI is some other value. KpiType string `json:"kpiType,omitempty"` - // ForceSendFields is a list of field names (e.g. "KpiAmountMicros") to + // ForceSendFields is a list of field names (e.g. "KpiAlgorithmId") 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 @@ -12562,7 +12581,7 @@ type Kpi struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "KpiAmountMicros") to + // NullFields is a list of field names (e.g. "KpiAlgorithmId") 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 @@ -36328,7 +36347,8 @@ type AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall struct { // option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_KEYWORD`. func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) Create(advertiserId int64, targetingType string, assignedtargetingoption *AssignedTargetingOption) *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall { c := &AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -36447,7 +36467,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsCreateCall) Do(opts .. // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_KEYWORD`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", @@ -36591,7 +36611,8 @@ type AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall struct { // option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * // `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * // `TARGETING_TYPE_OMID` * -// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. +// `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * +// `TARGETING_TYPE_KEYWORD`. func (r *AdvertisersTargetingTypesAssignedTargetingOptionsService) Delete(advertiserId int64, targetingType string, assignedTargetingOptionId string) *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall { c := &AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.advertiserId = advertiserId @@ -36714,7 +36735,7 @@ func (c *AdvertisersTargetingTypesAssignedTargetingOptionsDeleteCall) Do(opts .. // "type": "string" // }, // "targetingType": { - // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`", + // "description": "Required. Identifies the type of this assigned targeting option. Supported targeting types: * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_KEYWORD`", // "enum": [ // "TARGETING_TYPE_UNSPECIFIED", // "TARGETING_TYPE_CHANNEL", diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index 8bd4bdf6c9a..80cfb4f12a3 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -4451,7 +4451,7 @@ } } }, - "revision": "20240331", + "revision": "20240414", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -7536,7 +7536,7 @@ "type": "object" }, "GooglePrivacyDlpV2InfoTypeCategory": { - "description": "Classification of infoTypes to organize them according to geographic location, industry, and data type.", + "description": "Classification of infoTypes to organize them according to geographic location, industry, and data type. NEXT_ID: 47", "id": "GooglePrivacyDlpV2InfoTypeCategory", "properties": { "industryCategory": { @@ -7589,6 +7589,7 @@ "PERU", "POLAND", "PORTUGAL", + "RUSSIA", "SINGAPORE", "SOUTH_AFRICA", "SPAIN", @@ -7597,9 +7598,11 @@ "TAIWAN", "THAILAND", "TURKEY", + "UKRAINE", "UNITED_KINGDOM", "UNITED_STATES", "URUGUAY", + "UZBEKISTAN", "VENEZUELA", "INTERNAL" ], @@ -7635,6 +7638,7 @@ "The infoType is typically used in Peru.", "The infoType is typically used in Poland.", "The infoType is typically used in Portugal.", + "The infoType is typically used in Russia.", "The infoType is typically used in Singapore.", "The infoType is typically used in South Africa.", "The infoType is typically used in Spain.", @@ -7643,9 +7647,11 @@ "The infoType is typically used in Taiwan.", "The infoType is typically used in Thailand.", "The infoType is typically used in Turkey.", + "The infoType is typically used in Ukraine.", "The infoType is typically used in the United Kingdom.", "The infoType is typically used in the United States.", "The infoType is typically used in Uruguay.", + "The infoType is typically used in Uzbekistan.", "The infoType is typically used in Venezuela.", "The infoType is typically used in Google internally." ], @@ -10322,7 +10328,7 @@ "id": "GooglePrivacyDlpV2TimespanConfig", "properties": { "enableAutoPopulationOfTimespanConfig": { - "description": "When the job is started by a JobTrigger we will automatically figure out a valid start_time to avoid scanning files that have not been modified since the last time the JobTrigger executed. This will be based on the time of the execution of the last run of the JobTrigger or the timespan end_time used in the last run of the JobTrigger.", + "description": "When the job is started by a JobTrigger we will automatically figure out a valid start_time to avoid scanning files that have not been modified since the last time the JobTrigger executed. This will be based on the time of the execution of the last run of the JobTrigger or the timespan end_time used in the last run of the JobTrigger. *For BigQuery* Inspect jobs triggered by automatic population will scan data that is at least three hours old when the job starts. This is because streaming buffer rows are not read during inspection and reading up to the current timestamp will result in skipped rows. See the [known issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) related to this operation.", "type": "boolean" }, "endTime": { diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 385a1520a55..cf4d4e29b7d 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -6131,7 +6131,7 @@ func (s *GooglePrivacyDlpV2InfoType) MarshalJSON() ([]byte, error) { // GooglePrivacyDlpV2InfoTypeCategory: Classification of infoTypes to // organize them according to geographic location, industry, and data -// type. +// type. NEXT_ID: 47 type GooglePrivacyDlpV2InfoTypeCategory struct { // IndustryCategory: The group of relevant businesses where this // infoType is commonly used @@ -6181,6 +6181,7 @@ type GooglePrivacyDlpV2InfoTypeCategory struct { // "PERU" - The infoType is typically used in Peru. // "POLAND" - The infoType is typically used in Poland. // "PORTUGAL" - The infoType is typically used in Portugal. + // "RUSSIA" - The infoType is typically used in Russia. // "SINGAPORE" - The infoType is typically used in Singapore. // "SOUTH_AFRICA" - The infoType is typically used in South Africa. // "SPAIN" - The infoType is typically used in Spain. @@ -6189,11 +6190,13 @@ type GooglePrivacyDlpV2InfoTypeCategory struct { // "TAIWAN" - The infoType is typically used in Taiwan. // "THAILAND" - The infoType is typically used in Thailand. // "TURKEY" - The infoType is typically used in Turkey. + // "UKRAINE" - The infoType is typically used in Ukraine. // "UNITED_KINGDOM" - The infoType is typically used in the United // Kingdom. // "UNITED_STATES" - The infoType is typically used in the United // States. // "URUGUAY" - The infoType is typically used in Uruguay. + // "UZBEKISTAN" - The infoType is typically used in Uzbekistan. // "VENEZUELA" - The infoType is typically used in Venezuela. // "INTERNAL" - The infoType is typically used in Google internally. LocationCategory string `json:"locationCategory,omitempty"` @@ -10890,7 +10893,13 @@ type GooglePrivacyDlpV2TimespanConfig struct { // avoid scanning files that have not been modified since the last time // the JobTrigger executed. This will be based on the time of the // execution of the last run of the JobTrigger or the timespan end_time - // used in the last run of the JobTrigger. + // used in the last run of the JobTrigger. *For BigQuery* Inspect jobs + // triggered by automatic population will scan data that is at least + // three hours old when the job starts. This is because streaming buffer + // rows are not read during inspection and reading up to the current + // timestamp will result in skipped rows. See the known issue + // (https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) + // related to this operation. EnableAutoPopulationOfTimespanConfig bool `json:"enableAutoPopulationOfTimespanConfig,omitempty"` // EndTime: Exclude files, tables, or rows newer than this value. If not diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 5f7efa7265c..9d20b28ef30 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1042,7 +1042,7 @@ } } }, - "revision": "20240328", + "revision": "20240417", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -3113,19 +3113,19 @@ "type": "number" }, "smallcaps": { - "description": "Whether the text is in small caps.", + "description": "Whether the text is in small caps. This feature is not supported yet.", "type": "boolean" }, "strikeout": { - "description": "Whether the text is strikethrough.", + "description": "Whether the text is strikethrough. This feature is not supported yet.", "type": "boolean" }, "subscript": { - "description": "Whether the text is a subscript.", + "description": "Whether the text is a subscript. This feature is not supported yet.", "type": "boolean" }, "superscript": { - "description": "Whether the text is a superscript.", + "description": "Whether the text is a superscript. This feature is not supported yet.", "type": "boolean" }, "textColor": { @@ -5672,19 +5672,19 @@ "type": "number" }, "smallcaps": { - "description": "Whether the text is in small caps.", + "description": "Whether the text is in small caps. This feature is not supported yet.", "type": "boolean" }, "strikeout": { - "description": "Whether the text is strikethrough.", + "description": "Whether the text is strikethrough. This feature is not supported yet.", "type": "boolean" }, "subscript": { - "description": "Whether the text is a subscript.", + "description": "Whether the text is a subscript. This feature is not supported yet.", "type": "boolean" }, "superscript": { - "description": "Whether the text is a superscript.", + "description": "Whether the text is a superscript. This feature is not supported yet.", "type": "boolean" }, "textColor": { @@ -7073,19 +7073,19 @@ "type": "number" }, "smallcaps": { - "description": "Whether the text is in small caps.", + "description": "Whether the text is in small caps. This feature is not supported yet.", "type": "boolean" }, "strikeout": { - "description": "Whether the text is strikethrough.", + "description": "Whether the text is strikethrough. This feature is not supported yet.", "type": "boolean" }, "subscript": { - "description": "Whether the text is a subscript.", + "description": "Whether the text is a subscript. This feature is not supported yet.", "type": "boolean" }, "superscript": { - "description": "Whether the text is a superscript.", + "description": "Whether the text is a superscript. This feature is not supported yet.", "type": "boolean" }, "textColor": { diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index ddeffaabe7d..d6e2f34eb76 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -3763,16 +3763,20 @@ type GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo struct { // _resolution_ ÷ `72.0`. PixelFontSize float64 `json:"pixelFontSize,omitempty"` - // Smallcaps: Whether the text is in small caps. + // Smallcaps: Whether the text is in small caps. This feature is not + // supported yet. Smallcaps bool `json:"smallcaps,omitempty"` - // Strikeout: Whether the text is strikethrough. + // Strikeout: Whether the text is strikethrough. This feature is not + // supported yet. Strikeout bool `json:"strikeout,omitempty"` - // Subscript: Whether the text is a subscript. + // Subscript: Whether the text is a subscript. This feature is not + // supported yet. Subscript bool `json:"subscript,omitempty"` - // Superscript: Whether the text is a superscript. + // Superscript: Whether the text is a superscript. This feature is not + // supported yet. Superscript bool `json:"superscript,omitempty"` // TextColor: Color of the text. @@ -8025,16 +8029,20 @@ type GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo struct { // _resolution_ ÷ `72.0`. PixelFontSize float64 `json:"pixelFontSize,omitempty"` - // Smallcaps: Whether the text is in small caps. + // Smallcaps: Whether the text is in small caps. This feature is not + // supported yet. Smallcaps bool `json:"smallcaps,omitempty"` - // Strikeout: Whether the text is strikethrough. + // Strikeout: Whether the text is strikethrough. This feature is not + // supported yet. Strikeout bool `json:"strikeout,omitempty"` - // Subscript: Whether the text is a subscript. + // Subscript: Whether the text is a subscript. This feature is not + // supported yet. Subscript bool `json:"subscript,omitempty"` - // Superscript: Whether the text is a superscript. + // Superscript: Whether the text is a superscript. This feature is not + // supported yet. Superscript bool `json:"superscript,omitempty"` // TextColor: Color of the text. @@ -10297,16 +10305,20 @@ type GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo struct { // _resolution_ ÷ `72.0`. PixelFontSize float64 `json:"pixelFontSize,omitempty"` - // Smallcaps: Whether the text is in small caps. + // Smallcaps: Whether the text is in small caps. This feature is not + // supported yet. Smallcaps bool `json:"smallcaps,omitempty"` - // Strikeout: Whether the text is strikethrough. + // Strikeout: Whether the text is strikethrough. This feature is not + // supported yet. Strikeout bool `json:"strikeout,omitempty"` - // Subscript: Whether the text is a subscript. + // Subscript: Whether the text is a subscript. This feature is not + // supported yet. Subscript bool `json:"subscript,omitempty"` - // Superscript: Whether the text is a superscript. + // Superscript: Whether the text is a superscript. This feature is not + // supported yet. Superscript bool `json:"superscript,omitempty"` // TextColor: Color of the text. diff --git a/documentai/v1beta2/documentai-api.json b/documentai/v1beta2/documentai-api.json index 63eaa0dc081..5105a6f54cd 100644 --- a/documentai/v1beta2/documentai-api.json +++ b/documentai/v1beta2/documentai-api.json @@ -292,7 +292,7 @@ } } }, - "revision": "20240223", + "revision": "20240417", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -2483,19 +2483,19 @@ "type": "number" }, "smallcaps": { - "description": "Whether the text is in small caps.", + "description": "Whether the text is in small caps. This feature is not supported yet.", "type": "boolean" }, "strikeout": { - "description": "Whether the text is strikethrough.", + "description": "Whether the text is strikethrough. This feature is not supported yet.", "type": "boolean" }, "subscript": { - "description": "Whether the text is a subscript.", + "description": "Whether the text is a subscript. This feature is not supported yet.", "type": "boolean" }, "superscript": { - "description": "Whether the text is a superscript.", + "description": "Whether the text is a superscript. This feature is not supported yet.", "type": "boolean" }, "textColor": { @@ -3909,19 +3909,19 @@ "type": "number" }, "smallcaps": { - "description": "Whether the text is in small caps.", + "description": "Whether the text is in small caps. This feature is not supported yet.", "type": "boolean" }, "strikeout": { - "description": "Whether the text is strikethrough.", + "description": "Whether the text is strikethrough. This feature is not supported yet.", "type": "boolean" }, "subscript": { - "description": "Whether the text is a subscript.", + "description": "Whether the text is a subscript. This feature is not supported yet.", "type": "boolean" }, "superscript": { - "description": "Whether the text is a superscript.", + "description": "Whether the text is a superscript. This feature is not supported yet.", "type": "boolean" }, "textColor": { diff --git a/documentai/v1beta2/documentai-gen.go b/documentai/v1beta2/documentai-gen.go index afd99a38d49..faf50e5141f 100644 --- a/documentai/v1beta2/documentai-gen.go +++ b/documentai/v1beta2/documentai-gen.go @@ -3962,16 +3962,20 @@ type GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo struct { // _resolution_ ÷ `72.0`. PixelFontSize float64 `json:"pixelFontSize,omitempty"` - // Smallcaps: Whether the text is in small caps. + // Smallcaps: Whether the text is in small caps. This feature is not + // supported yet. Smallcaps bool `json:"smallcaps,omitempty"` - // Strikeout: Whether the text is strikethrough. + // Strikeout: Whether the text is strikethrough. This feature is not + // supported yet. Strikeout bool `json:"strikeout,omitempty"` - // Subscript: Whether the text is a subscript. + // Subscript: Whether the text is a subscript. This feature is not + // supported yet. Subscript bool `json:"subscript,omitempty"` - // Superscript: Whether the text is a superscript. + // Superscript: Whether the text is a superscript. This feature is not + // supported yet. Superscript bool `json:"superscript,omitempty"` // TextColor: Color of the text. @@ -6298,16 +6302,20 @@ type GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo struct { // _resolution_ ÷ `72.0`. PixelFontSize float64 `json:"pixelFontSize,omitempty"` - // Smallcaps: Whether the text is in small caps. + // Smallcaps: Whether the text is in small caps. This feature is not + // supported yet. Smallcaps bool `json:"smallcaps,omitempty"` - // Strikeout: Whether the text is strikethrough. + // Strikeout: Whether the text is strikethrough. This feature is not + // supported yet. Strikeout bool `json:"strikeout,omitempty"` - // Subscript: Whether the text is a subscript. + // Subscript: Whether the text is a subscript. This feature is not + // supported yet. Subscript bool `json:"subscript,omitempty"` - // Superscript: Whether the text is a superscript. + // Superscript: Whether the text is a superscript. This feature is not + // supported yet. Superscript bool `json:"superscript,omitempty"` // TextColor: Color of the text. diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index d2702a2f6f6..6b833caa62b 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -1284,7 +1284,7 @@ } } }, - "revision": "20240328", + "revision": "20240417", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -3475,19 +3475,19 @@ "type": "number" }, "smallcaps": { - "description": "Whether the text is in small caps.", + "description": "Whether the text is in small caps. This feature is not supported yet.", "type": "boolean" }, "strikeout": { - "description": "Whether the text is strikethrough.", + "description": "Whether the text is strikethrough. This feature is not supported yet.", "type": "boolean" }, "subscript": { - "description": "Whether the text is a subscript.", + "description": "Whether the text is a subscript. This feature is not supported yet.", "type": "boolean" }, "superscript": { - "description": "Whether the text is a superscript.", + "description": "Whether the text is a superscript. This feature is not supported yet.", "type": "boolean" }, "textColor": { @@ -4876,19 +4876,19 @@ "type": "number" }, "smallcaps": { - "description": "Whether the text is in small caps.", + "description": "Whether the text is in small caps. This feature is not supported yet.", "type": "boolean" }, "strikeout": { - "description": "Whether the text is strikethrough.", + "description": "Whether the text is strikethrough. This feature is not supported yet.", "type": "boolean" }, "subscript": { - "description": "Whether the text is a subscript.", + "description": "Whether the text is a subscript. This feature is not supported yet.", "type": "boolean" }, "superscript": { - "description": "Whether the text is a superscript.", + "description": "Whether the text is a superscript. This feature is not supported yet.", "type": "boolean" }, "textColor": { @@ -5862,11 +5862,19 @@ "description": "Document represents the canonical document resource in Document AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document AI to iterate and optimize for quality.", "id": "GoogleCloudDocumentaiV1beta3Document", "properties": { + "chunkedDocument": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocument", + "description": "Document chunked based on chunking config." + }, "content": { "description": "Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.", "format": "byte", "type": "string" }, + "documentLayout": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayout", + "description": "Parsed layout of the document." + }, "entities": { "description": "A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.", "items": { @@ -5933,6 +5941,275 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3DocumentChunkedDocument": { + "description": "Represents the chunks that the document is divided into.", + "id": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocument", + "properties": { + "chunks": { + "description": "List of chunks.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk": { + "description": "Represents a chunk.", + "id": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk", + "properties": { + "chunkId": { + "description": "ID of the chunk.", + "type": "string" + }, + "content": { + "description": "Text content of the chunk.", + "type": "string" + }, + "pageFooters": { + "description": "Page footers associated with the chunk.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter" + }, + "type": "array" + }, + "pageHeaders": { + "description": "Page headers associated with the chunk.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader" + }, + "type": "array" + }, + "pageSpan": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan", + "description": "Page span of the chunk." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter": { + "description": "Represents the page footer associated with the chunk.", + "id": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter", + "properties": { + "pageSpan": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan", + "description": "Page span of the footer." + }, + "text": { + "description": "Footer in text format.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader": { + "description": "Represents the page header associated with the chunk.", + "id": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader", + "properties": { + "pageSpan": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan", + "description": "Page span of the header." + }, + "text": { + "description": "Header in text format.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan": { + "description": "Represents where the chunk starts and ends in the document.", + "id": "GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan", + "properties": { + "pageEnd": { + "description": "Page where chunk ends in the document.", + "format": "int32", + "type": "integer" + }, + "pageStart": { + "description": "Page where chunk starts in the document.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentDocumentLayout": { + "description": "Represents the parsed layout of a document as a collection of blocks that the document is divided into.", + "id": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayout", + "properties": { + "blocks": { + "description": "List of blocks in the document.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock": { + "description": "Represents a block. A block could be one of the various types (text, table, list) supported.", + "id": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock", + "properties": { + "blockId": { + "description": "ID of the block.", + "type": "string" + }, + "listBlock": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock", + "description": "Block consisting of list content/structure." + }, + "pageSpan": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan", + "description": "Page span of the block." + }, + "tableBlock": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock", + "description": "Block consisting of table content/structure." + }, + "textBlock": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock", + "description": "Block consisting of text content." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock": { + "description": "Represents a list type block.", + "id": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock", + "properties": { + "listEntries": { + "description": "List entries that constitute a list block.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry" + }, + "type": "array" + }, + "type": { + "description": "Type of the list_entries (if exist). Available options are `ordered` and `unordered`.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry": { + "description": "Represents an entry in the list.", + "id": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry", + "properties": { + "blocks": { + "description": "A list entry is a list of blocks. Repeated blocks support further hierarchies and nested blocks.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan": { + "description": "Represents where the block starts and ends in the document.", + "id": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan", + "properties": { + "pageEnd": { + "description": "Page where block ends in the document.", + "format": "int32", + "type": "integer" + }, + "pageStart": { + "description": "Page where block starts in the document.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock": { + "description": "Represents a table type block.", + "id": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock", + "properties": { + "bodyRows": { + "description": "Body rows containing main table content.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow" + }, + "type": "array" + }, + "caption": { + "description": "Table caption/title.", + "type": "string" + }, + "headerRows": { + "description": "Header rows at the top of the table.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell": { + "description": "Represents a cell in a table row.", + "id": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell", + "properties": { + "blocks": { + "description": "A table cell is a list of blocks. Repeated blocks support further hierarchies and nested blocks.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock" + }, + "type": "array" + }, + "colSpan": { + "description": "How many columns this cell spans.", + "format": "int32", + "type": "integer" + }, + "rowSpan": { + "description": "How many rows this cell spans.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow": { + "description": "Represents a row in a table.", + "id": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow", + "properties": { + "cells": { + "description": "A table row is a list of table cells.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock": { + "description": "Represents a text type block.", + "id": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock", + "properties": { + "blocks": { + "description": "A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.", + "items": { + "$ref": "GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock" + }, + "type": "array" + }, + "text": { + "description": "Text content stored in the block.", + "type": "string" + }, + "type": { + "description": "Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3DocumentEntity": { "description": "An entity that could be a phrase in the text or a property that belongs to the document. It is a known entity type, such as a person, an organization, or location.", "id": "GoogleCloudDocumentaiV1beta3DocumentEntity", @@ -6856,19 +7133,19 @@ "type": "number" }, "smallcaps": { - "description": "Whether the text is in small caps.", + "description": "Whether the text is in small caps. This feature is not supported yet.", "type": "boolean" }, "strikeout": { - "description": "Whether the text is strikethrough.", + "description": "Whether the text is strikethrough. This feature is not supported yet.", "type": "boolean" }, "subscript": { - "description": "Whether the text is a subscript.", + "description": "Whether the text is a subscript. This feature is not supported yet.", "type": "boolean" }, "superscript": { - "description": "Whether the text is a superscript.", + "description": "Whether the text is a superscript. This feature is not supported yet.", "type": "boolean" }, "textColor": { @@ -8127,6 +8404,10 @@ "$ref": "GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector", "description": "Which pages to process (1-indexed)." }, + "layoutConfig": { + "$ref": "GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig", + "description": "Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. Returns error if set on other processor types." + }, "ocrConfig": { "$ref": "GoogleCloudDocumentaiV1beta3OcrConfig", "description": "Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor types." @@ -8153,6 +8434,42 @@ }, "type": "object" }, + "GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig": { + "description": "Serving config for layout parser processor.", + "id": "GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig", + "properties": { + "chunkingConfig": { + "$ref": "GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig", + "description": "Optional. Config for chunking in layout parser processor." + } + }, + "type": "object" + }, + "GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig": { + "description": "Serving config for chunking.", + "id": "GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig", + "properties": { + "breakpointPercentileThreshold": { + "description": "Optional. The percentile of cosine dissimilarity that must be exceeded between a group of tokens and the next. The smaller this number is, the more chunks will be generated.", + "format": "int32", + "type": "integer" + }, + "chunkSize": { + "description": "Optional. The chunk sizes to use when splitting documents, in order of level.", + "format": "int32", + "type": "integer" + }, + "includeAncestorHeadings": { + "description": "Optional. Whether or not to include ancestor headings when splitting.", + "type": "boolean" + }, + "semanticChunkingGroupSize": { + "description": "Optional. The number of tokens to group together when evaluating semantic similarity.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudDocumentaiV1beta3ProcessRequest": { "description": "Request message for the ProcessDocument method.", "id": "GoogleCloudDocumentaiV1beta3ProcessRequest", diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index cbb34df6e66..045cb91b1cf 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -3998,16 +3998,20 @@ type GoogleCloudDocumentaiV1beta1DocumentPageTokenStyleInfo struct { // _resolution_ ÷ `72.0`. PixelFontSize float64 `json:"pixelFontSize,omitempty"` - // Smallcaps: Whether the text is in small caps. + // Smallcaps: Whether the text is in small caps. This feature is not + // supported yet. Smallcaps bool `json:"smallcaps,omitempty"` - // Strikeout: Whether the text is strikethrough. + // Strikeout: Whether the text is strikethrough. This feature is not + // supported yet. Strikeout bool `json:"strikeout,omitempty"` - // Subscript: Whether the text is a subscript. + // Subscript: Whether the text is a subscript. This feature is not + // supported yet. Subscript bool `json:"subscript,omitempty"` - // Superscript: Whether the text is a superscript. + // Superscript: Whether the text is a superscript. This feature is not + // supported yet. Superscript bool `json:"superscript,omitempty"` // TextColor: Color of the text. @@ -6270,16 +6274,20 @@ type GoogleCloudDocumentaiV1beta2DocumentPageTokenStyleInfo struct { // _resolution_ ÷ `72.0`. PixelFontSize float64 `json:"pixelFontSize,omitempty"` - // Smallcaps: Whether the text is in small caps. + // Smallcaps: Whether the text is in small caps. This feature is not + // supported yet. Smallcaps bool `json:"smallcaps,omitempty"` - // Strikeout: Whether the text is strikethrough. + // Strikeout: Whether the text is strikethrough. This feature is not + // supported yet. Strikeout bool `json:"strikeout,omitempty"` - // Subscript: Whether the text is a subscript. + // Subscript: Whether the text is a subscript. This feature is not + // supported yet. Subscript bool `json:"subscript,omitempty"` - // Superscript: Whether the text is a superscript. + // Superscript: Whether the text is a superscript. This feature is not + // supported yet. Superscript bool `json:"superscript,omitempty"` // TextColor: Color of the text. @@ -8007,11 +8015,17 @@ type GoogleCloudDocumentaiV1beta3DisableProcessorResponse struct { // collaboration between users and Document AI to iterate and optimize // for quality. type GoogleCloudDocumentaiV1beta3Document struct { + // ChunkedDocument: Document chunked based on chunking config. + ChunkedDocument *GoogleCloudDocumentaiV1beta3DocumentChunkedDocument `json:"chunkedDocument,omitempty"` + // Content: Optional. Inline document content, represented as a stream // of bytes. Note: As with all `bytes` fields, protobuffers use a pure // binary representation, whereas JSON representations use base64. Content string `json:"content,omitempty"` + // DocumentLayout: Parsed layout of the document. + DocumentLayout *GoogleCloudDocumentaiV1beta3DocumentDocumentLayout `json:"documentLayout,omitempty"` + // Entities: A list of entities detected on Document.text. For document // shards, entities in this list may cross shard boundaries. Entities []*GoogleCloudDocumentaiV1beta3DocumentEntity `json:"entities,omitempty"` @@ -8056,7 +8070,7 @@ type GoogleCloudDocumentaiV1beta3Document struct { // Request URIs (https://cloud.google.com/storage/docs/reference-uris). Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "Content") to + // ForceSendFields is a list of field names (e.g. "ChunkedDocument") 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 @@ -8064,7 +8078,78 @@ type GoogleCloudDocumentaiV1beta3Document struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Content") to include in + // NullFields is a list of field names (e.g. "ChunkedDocument") 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 *GoogleCloudDocumentaiV1beta3Document) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3Document + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentChunkedDocument: Represents the +// chunks that the document is divided into. +type GoogleCloudDocumentaiV1beta3DocumentChunkedDocument struct { + // Chunks: List of chunks. + Chunks []*GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk `json:"chunks,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Chunks") 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. "Chunks") 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 *GoogleCloudDocumentaiV1beta3DocumentChunkedDocument) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocument + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk: Represents +// a chunk. +type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk struct { + // ChunkId: ID of the chunk. + ChunkId string `json:"chunkId,omitempty"` + + // Content: Text content of the chunk. + Content string `json:"content,omitempty"` + + // PageFooters: Page footers associated with the chunk. + PageFooters []*GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter `json:"pageFooters,omitempty"` + + // PageHeaders: Page headers associated with the chunk. + PageHeaders []*GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader `json:"pageHeaders,omitempty"` + + // PageSpan: Page span of the chunk. + PageSpan *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan `json:"pageSpan,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ChunkId") 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. "ChunkId") 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 @@ -8073,8 +8158,413 @@ type GoogleCloudDocumentaiV1beta3Document struct { NullFields []string `json:"-"` } -func (s *GoogleCloudDocumentaiV1beta3Document) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudDocumentaiV1beta3Document +func (s *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunk + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFoote +// r: Represents the page footer associated with the chunk. +type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter struct { + // PageSpan: Page span of the footer. + PageSpan *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan `json:"pageSpan,omitempty"` + + // Text: Footer in text format. + Text string `json:"text,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PageSpan") 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. "PageSpan") 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 *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageFooter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeade +// r: Represents the page header associated with the chunk. +type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader struct { + // PageSpan: Page span of the header. + PageSpan *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan `json:"pageSpan,omitempty"` + + // Text: Header in text format. + Text string `json:"text,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PageSpan") 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. "PageSpan") 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 *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageHeader + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan: +// +// Represents where the chunk starts and ends in the document. +type GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan struct { + // PageEnd: Page where chunk ends in the document. + PageEnd int64 `json:"pageEnd,omitempty"` + + // PageStart: Page where chunk starts in the document. + PageStart int64 `json:"pageStart,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PageEnd") 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. "PageEnd") 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 *GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentChunkedDocumentChunkChunkPageSpan + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentDocumentLayout: Represents the +// parsed layout of a document as a collection of blocks that the +// document is divided into. +type GoogleCloudDocumentaiV1beta3DocumentDocumentLayout struct { + // Blocks: List of blocks in the document. + Blocks []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Blocks") 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. "Blocks") 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 *GoogleCloudDocumentaiV1beta3DocumentDocumentLayout) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayout + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock: +// +// Represents a block. A block could be one of the various types (text, +// +// table, list) supported. +type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock struct { + // BlockId: ID of the block. + BlockId string `json:"blockId,omitempty"` + + // ListBlock: Block consisting of list content/structure. + ListBlock *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock `json:"listBlock,omitempty"` + + // PageSpan: Page span of the block. + PageSpan *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan `json:"pageSpan,omitempty"` + + // TableBlock: Block consisting of table content/structure. + TableBlock *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock `json:"tableBlock,omitempty"` + + // TextBlock: Block consisting of text content. + TextBlock *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock `json:"textBlock,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BlockId") 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. "BlockId") 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 *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockL +// ayoutListBlock: Represents a list type block. +type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock struct { + // ListEntries: List entries that constitute a list block. + ListEntries []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry `json:"listEntries,omitempty"` + + // Type: Type of the list_entries (if exist). Available options are + // `ordered` and `unordered`. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ListEntries") 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. "ListEntries") 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 *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockL +// ayoutListEntry: Represents an entry in the list. +type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry struct { + // Blocks: A list entry is a list of blocks. Repeated blocks support + // further hierarchies and nested blocks. + Blocks []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Blocks") 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. "Blocks") 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 *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockL +// ayoutPageSpan: Represents where the block starts and ends in the +// document. +type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan struct { + // PageEnd: Page where block ends in the document. + PageEnd int64 `json:"pageEnd,omitempty"` + + // PageStart: Page where block starts in the document. + PageStart int64 `json:"pageStart,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PageEnd") 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. "PageEnd") 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 *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockL +// ayoutTableBlock: Represents a table type block. +type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock struct { + // BodyRows: Body rows containing main table content. + BodyRows []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow `json:"bodyRows,omitempty"` + + // Caption: Table caption/title. + Caption string `json:"caption,omitempty"` + + // HeaderRows: Header rows at the top of the table. + HeaderRows []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow `json:"headerRows,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BodyRows") 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. "BodyRows") 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 *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockL +// ayoutTableCell: Represents a cell in a table row. +type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell struct { + // Blocks: A table cell is a list of blocks. Repeated blocks support + // further hierarchies and nested blocks. + Blocks []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"` + + // ColSpan: How many columns this cell spans. + ColSpan int64 `json:"colSpan,omitempty"` + + // RowSpan: How many rows this cell spans. + RowSpan int64 `json:"rowSpan,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Blocks") 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. "Blocks") 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 *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockL +// ayoutTableRow: Represents a row in a table. +type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow struct { + // Cells: A table row is a list of table cells. + Cells []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell `json:"cells,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cells") 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. "Cells") 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 *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockL +// ayoutTextBlock: Represents a text type block. +type GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock struct { + // Blocks: A text block could further have child blocks. Repeated blocks + // support further hierarchies and nested blocks. + Blocks []*GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock `json:"blocks,omitempty"` + + // Text: Text content stored in the block. + Text string `json:"text,omitempty"` + + // Type: Type of the text in the block. Available options are: + // `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, + // `heading-4`, `heading-5`, `header`, `footer`. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Blocks") 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. "Blocks") 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 *GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -9525,16 +10015,20 @@ type GoogleCloudDocumentaiV1beta3DocumentPageTokenStyleInfo struct { // _resolution_ ÷ `72.0`. PixelFontSize float64 `json:"pixelFontSize,omitempty"` - // Smallcaps: Whether the text is in small caps. + // Smallcaps: Whether the text is in small caps. This feature is not + // supported yet. Smallcaps bool `json:"smallcaps,omitempty"` - // Strikeout: Whether the text is strikethrough. + // Strikeout: Whether the text is strikethrough. This feature is not + // supported yet. Strikeout bool `json:"strikeout,omitempty"` - // Subscript: Whether the text is a subscript. + // Subscript: Whether the text is a subscript. This feature is not + // supported yet. Subscript bool `json:"subscript,omitempty"` - // Superscript: Whether the text is a superscript. + // Superscript: Whether the text is a superscript. This feature is not + // supported yet. Superscript bool `json:"superscript,omitempty"` // TextColor: Color of the text. @@ -11874,6 +12368,10 @@ type GoogleCloudDocumentaiV1beta3ProcessOptions struct { // IndividualPageSelector: Which pages to process (1-indexed). IndividualPageSelector *GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector `json:"individualPageSelector,omitempty"` + // LayoutConfig: Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. + // Returns error if set on other processor types. + LayoutConfig *GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig `json:"layoutConfig,omitempty"` + // OcrConfig: Only applicable to `OCR_PROCESSOR` and // `FORM_PARSER_PROCESSOR`. Returns error if set on other processor // types. @@ -11937,6 +12435,82 @@ func (s *GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector) Marsh return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig: Serving +// config for layout parser processor. +type GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig struct { + // ChunkingConfig: Optional. Config for chunking in layout parser + // processor. + ChunkingConfig *GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig `json:"chunkingConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ChunkingConfig") 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. "ChunkingConfig") 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 *GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig: +// Serving config for chunking. +type GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig struct { + // BreakpointPercentileThreshold: Optional. The percentile of cosine + // dissimilarity that must be exceeded between a group of tokens and the + // next. The smaller this number is, the more chunks will be generated. + BreakpointPercentileThreshold int64 `json:"breakpointPercentileThreshold,omitempty"` + + // ChunkSize: Optional. The chunk sizes to use when splitting documents, + // in order of level. + ChunkSize int64 `json:"chunkSize,omitempty"` + + // IncludeAncestorHeadings: Optional. Whether or not to include ancestor + // headings when splitting. + IncludeAncestorHeadings bool `json:"includeAncestorHeadings,omitempty"` + + // SemanticChunkingGroupSize: Optional. The number of tokens to group + // together when evaluating semantic similarity. + SemanticChunkingGroupSize bool `json:"semanticChunkingGroupSize,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "BreakpointPercentileThreshold") 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. + // "BreakpointPercentileThreshold") 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 *GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfigChunkingConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDocumentaiV1beta3ProcessRequest: Request message for the // ProcessDocument method. type GoogleCloudDocumentaiV1beta3ProcessRequest struct { diff --git a/identitytoolkit/v2/identitytoolkit-api.json b/identitytoolkit/v2/identitytoolkit-api.json index 59ad027c39f..af8586a860c 100644 --- a/identitytoolkit/v2/identitytoolkit-api.json +++ b/identitytoolkit/v2/identitytoolkit-api.json @@ -1638,7 +1638,7 @@ ], "enumDescriptions": [ "The reCAPTCHA version is not specified.", - "Use reCAPTCHA Enterprise." + "The reCAPTCHA enterprise." ], "location": "query", "type": "string" @@ -1655,7 +1655,7 @@ } } }, - "revision": "20240313", + "revision": "20240415", "rootUrl": "https://identitytoolkit.googleapis.com/", "schemas": { "GoogleCloudIdentitytoolkitAdminV2AllowByDefault": { diff --git a/identitytoolkit/v2/identitytoolkit-gen.go b/identitytoolkit/v2/identitytoolkit-gen.go index a2dbc6e9027..cd567444e77 100644 --- a/identitytoolkit/v2/identitytoolkit-gen.go +++ b/identitytoolkit/v2/identitytoolkit-gen.go @@ -11947,7 +11947,7 @@ func (c *V2GetRecaptchaConfigCall) TenantId(tenantId string) *V2GetRecaptchaConf // // specified. // -// "RECAPTCHA_ENTERPRISE" - Use reCAPTCHA Enterprise. +// "RECAPTCHA_ENTERPRISE" - The reCAPTCHA enterprise. func (c *V2GetRecaptchaConfigCall) Version(version string) *V2GetRecaptchaConfigCall { c.urlParams_.Set("version", version) return c @@ -12087,7 +12087,7 @@ func (c *V2GetRecaptchaConfigCall) Do(opts ...googleapi.CallOption) (*GoogleClou // ], // "enumDescriptions": [ // "The reCAPTCHA version is not specified.", - // "Use reCAPTCHA Enterprise." + // "The reCAPTCHA enterprise." // ], // "location": "query", // "type": "string" diff --git a/migrationcenter/v1/migrationcenter-api.json b/migrationcenter/v1/migrationcenter-api.json index 33c78ec20bc..8ab5ff98073 100644 --- a/migrationcenter/v1/migrationcenter-api.json +++ b/migrationcenter/v1/migrationcenter-api.json @@ -2309,7 +2309,7 @@ } } }, - "revision": "20240321", + "revision": "20240411", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -2343,7 +2343,7 @@ "type": "array" }, "filter": { - "description": "The aggregation will be performed on assets that match the provided filter.", + "description": "Optional. The aggregation will be performed on assets that match the provided filter.", "type": "string" } }, @@ -4492,11 +4492,11 @@ "type": "object" }, "MachineSeries": { - "description": "A Compute Engine machine series.", + "description": "A machine series, for a target product (e.g. Compute Engine, Google Cloud VMware Engine).", "id": "MachineSeries", "properties": { "code": { - "description": "Code to identify a Compute Engine machine series. Consult https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison for more details on the available series.", + "description": "Code to identify a machine series. Consult this for more details on the available series for Compute Engine: https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison Consult this for more details on the available series for Google Cloud VMware Engine: https://cloud.google.com/vmware-engine/pricing", "type": "string" } }, @@ -4969,7 +4969,7 @@ }, "virtualMachinePreferences": { "$ref": "VirtualMachinePreferences", - "description": "A set of preferences that applies to all virtual machines in the context." + "description": "Optional. A set of preferences that applies to all virtual machines in the context." } }, "type": "object" diff --git a/migrationcenter/v1/migrationcenter-gen.go b/migrationcenter/v1/migrationcenter-gen.go index c9529e86dad..88392a1580c 100644 --- a/migrationcenter/v1/migrationcenter-gen.go +++ b/migrationcenter/v1/migrationcenter-gen.go @@ -365,8 +365,8 @@ type AggregateAssetsValuesRequest struct { // can be defined. Aggregations []*Aggregation `json:"aggregations,omitempty"` - // Filter: The aggregation will be performed on assets that match the - // provided filter. + // Filter: Optional. The aggregation will be performed on assets that + // match the provided filter. Filter string `json:"filter,omitempty"` // ForceSendFields is a list of field names (e.g. "Aggregations") to @@ -3666,11 +3666,14 @@ func (s *MachinePreferences) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MachineSeries: A Compute Engine machine series. +// MachineSeries: A machine series, for a target product (e.g. Compute +// Engine, Google Cloud VMware Engine). type MachineSeries struct { - // Code: Code to identify a Compute Engine machine series. Consult + // Code: Code to identify a machine series. Consult this for more + // details on the available series for Compute Engine: // https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison - // for more details on the available series. + // Consult this for more details on the available series for Google + // Cloud VMware Engine: https://cloud.google.com/vmware-engine/pricing Code string `json:"code,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to @@ -4456,8 +4459,8 @@ type PreferenceSet struct { // last updated. UpdateTime string `json:"updateTime,omitempty"` - // VirtualMachinePreferences: A set of preferences that applies to all - // virtual machines in the context. + // VirtualMachinePreferences: Optional. A set of preferences that + // applies to all virtual machines in the context. VirtualMachinePreferences *VirtualMachinePreferences `json:"virtualMachinePreferences,omitempty"` // ServerResponse contains the HTTP response code and headers from the diff --git a/migrationcenter/v1alpha1/migrationcenter-api.json b/migrationcenter/v1alpha1/migrationcenter-api.json index 0c0f937694d..331668cf7b2 100644 --- a/migrationcenter/v1alpha1/migrationcenter-api.json +++ b/migrationcenter/v1alpha1/migrationcenter-api.json @@ -2317,7 +2317,7 @@ } } }, - "revision": "20240321", + "revision": "20240411", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -2351,7 +2351,7 @@ "type": "array" }, "filter": { - "description": "The aggregation will be performed on assets that match the provided filter.", + "description": "Optional. The aggregation will be performed on assets that match the provided filter.", "type": "string" }, "showHidden": { @@ -2554,6 +2554,16 @@ "readOnly": true, "type": "string" }, + "databaseDeploymentDetails": { + "$ref": "DatabaseDeploymentDetails", + "description": "Output only. Asset information specific for database deployments.", + "readOnly": true + }, + "databaseDetails": { + "$ref": "DatabaseDetails", + "description": "Output only. Asset information specific for logical databases.", + "readOnly": true + }, "hidden": { "description": "Optional. Indicates if the asset is hidden.", "type": "boolean" @@ -2598,6 +2608,11 @@ "readOnly": true, "type": "array" }, + "title": { + "description": "Output only. Server generated human readable name of the asset.", + "readOnly": true, + "type": "string" + }, "updateTime": { "description": "Output only. The timestamp when the asset was last updated.", "format": "google-datetime", @@ -2643,6 +2658,14 @@ ], "type": "string" }, + "databaseDeploymentDetails": { + "$ref": "DatabaseDeploymentDetails", + "description": "Asset information specific for database deployments." + }, + "databaseDetails": { + "$ref": "DatabaseDetails", + "description": "Asset information specific for logical databases." + }, "labels": { "additionalProperties": { "type": "string" @@ -2814,6 +2837,300 @@ "properties": {}, "type": "object" }, + "CloudDatabaseMigrationTarget": { + "description": "Cloud database migration target.", + "id": "CloudDatabaseMigrationTarget", + "properties": { + "cloudSqlForMysqlShape": { + "$ref": "CloudSqlForMySqlShape", + "description": "Cloud SQL for MySQL database shape." + }, + "cloudSqlForPostgresqlShape": { + "$ref": "CloudSqlForPostgreSqlShape", + "description": "Cloud SQL for Postgres database shape." + }, + "cloudSqlShape": { + "$ref": "CloudSqlForSqlServerShape", + "description": "Cloud SQL for SQL Server database shape." + } + }, + "type": "object" + }, + "CloudSqlForMySqlShape": { + "description": "Cloud SQL for MySQL database shape.", + "id": "CloudSqlForMySqlShape", + "properties": { + "backupStorageGb": { + "description": "Output only. Predicted backup storage size in GiB.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "edition": { + "description": "Output only. Cloud SQL edition.", + "enum": [ + "CLOUD_SQL_EDITION_UNSPECIFIED", + "CLOUD_SQL_EDITION_ENTERPRISE", + "CLOUD_SQL_EDITION_ENTERPRISE_PLUS" + ], + "enumDescriptions": [ + "An unspecified Cloud SQL edition.", + "Provides all core capabilities of Cloud SQL and is suitable for applications requiring a balance of performance, availability, and cost.", + "Provides the best performance and availability to run applications requiring the highest level of availability and performance in addition to the capabilities of the Cloud SQL Enterprise edition. Note: SQL Server is not available in Enterprise Plus edition. For SQL Server, Enterprise will always be recommended." + ], + "readOnly": true, + "type": "string" + }, + "egressGbPerMonth": { + "description": "Output only. Predicted Network Out traffic GiB per month.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "logicalCoreCount": { + "description": "Output only. Number of logical cores.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "memoryMb": { + "description": "Output only. Predicted amount of memory in MiB.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "storage": { + "$ref": "ComputeStorageDescriptor", + "description": "Output only. Predicted storage shape.", + "readOnly": true + }, + "version": { + "description": "Output only. MySQL version to be used on the Cloud SQL for MySQL instance.", + "enum": [ + "MY_SQL_VERSION_UNSPECIFIED", + "MY_SQL_VERSION_5_6", + "MY_SQL_VERSION_5_7", + "MY_SQL_VERSION_8_0" + ], + "enumDescriptions": [ + "Unspecified MySQL version.", + "MySQL 5.6.", + "MySQL 5.7.", + "MySQL 8.0." + ], + "readOnly": true, + "type": "string" + }, + "zoneAvailability": { + "description": "Output only. Cloud SQL zone availability.", + "enum": [ + "CLOUD_SQL_ZONE_AVAILABILITY_UNSPECIFIED", + "CLOUD_SQL_ZONE_AVAILABILITY_ZONAL", + "CLOUD_SQL_ZONE_AVAILABILITY_REGIONAL" + ], + "enumDescriptions": [ + "An unspecified Cloud SQL zone availability.", + "The instance serves data from only one zone. In case of outage, no failover. Not recommended for production.", + "The instance can serve data from multiple zones in a region. Highly available. Automatic failover to another zone within your selected region. Recommended for production instances. Increases cost." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "CloudSqlForPostgreSqlShape": { + "description": "Cloud SQL for Postgres database shape.", + "id": "CloudSqlForPostgreSqlShape", + "properties": { + "backupStorageGb": { + "description": "Output only. Predicted backup storage size in GiB.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "edition": { + "description": "Output only. Cloud SQL edition.", + "enum": [ + "CLOUD_SQL_EDITION_UNSPECIFIED", + "CLOUD_SQL_EDITION_ENTERPRISE", + "CLOUD_SQL_EDITION_ENTERPRISE_PLUS" + ], + "enumDescriptions": [ + "An unspecified Cloud SQL edition.", + "Provides all core capabilities of Cloud SQL and is suitable for applications requiring a balance of performance, availability, and cost.", + "Provides the best performance and availability to run applications requiring the highest level of availability and performance in addition to the capabilities of the Cloud SQL Enterprise edition. Note: SQL Server is not available in Enterprise Plus edition. For SQL Server, Enterprise will always be recommended." + ], + "readOnly": true, + "type": "string" + }, + "egressGbPerMonth": { + "description": "Output only. Predicted Network Out traffic GiB per month.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "logicalCoreCount": { + "description": "Output only. Number of logical cores.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "memoryMb": { + "description": "Output only. Predicted amount of memory in MiB.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "storage": { + "$ref": "ComputeStorageDescriptor", + "description": "Output only. Predicted storage shape.", + "readOnly": true + }, + "version": { + "description": "Output only. PostgreSql version to be used on the Cloud SQL for PostgreSql instance.", + "enum": [ + "POSTGRESQL_VERSION_UNSPECIFIED", + "POSTGRESQL_VERSION_9_6", + "POSTGRESQL_VERSION_10", + "POSTGRESQL_VERSION_11", + "POSTGRESQL_VERSION_12", + "POSTGRESQL_VERSION_13", + "POSTGRESQL_VERSION_14", + "POSTGRESQL_VERSION_15" + ], + "enumDescriptions": [ + "Unspecified PostgreSQL version.", + "PostgreSQL 9.6.", + "PostgreSQL 10", + "PostgreSQL 11", + "PostgreSQL 12", + "PostgreSQL 13", + "PostgreSQL 14", + "PostgreSQL 15" + ], + "readOnly": true, + "type": "string" + }, + "zoneAvailability": { + "description": "Output only. Cloud SQL zone availability.", + "enum": [ + "CLOUD_SQL_ZONE_AVAILABILITY_UNSPECIFIED", + "CLOUD_SQL_ZONE_AVAILABILITY_ZONAL", + "CLOUD_SQL_ZONE_AVAILABILITY_REGIONAL" + ], + "enumDescriptions": [ + "An unspecified Cloud SQL zone availability.", + "The instance serves data from only one zone. In case of outage, no failover. Not recommended for production.", + "The instance can serve data from multiple zones in a region. Highly available. Automatic failover to another zone within your selected region. Recommended for production instances. Increases cost." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "CloudSqlForSqlServerShape": { + "description": "Cloud SQL for SQL Server database shape.", + "id": "CloudSqlForSqlServerShape", + "properties": { + "backupStorageGb": { + "description": "Output only. Predicted backup storage size in GiB.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "edition": { + "description": "Output only. Cloud SQL edition.", + "enum": [ + "CLOUD_SQL_EDITION_UNSPECIFIED", + "CLOUD_SQL_EDITION_ENTERPRISE", + "CLOUD_SQL_EDITION_ENTERPRISE_PLUS" + ], + "enumDescriptions": [ + "An unspecified Cloud SQL edition.", + "Provides all core capabilities of Cloud SQL and is suitable for applications requiring a balance of performance, availability, and cost.", + "Provides the best performance and availability to run applications requiring the highest level of availability and performance in addition to the capabilities of the Cloud SQL Enterprise edition. Note: SQL Server is not available in Enterprise Plus edition. For SQL Server, Enterprise will always be recommended." + ], + "readOnly": true, + "type": "string" + }, + "egressGbPerMonth": { + "description": "Output only. Predicted Network Out traffic GiB per month.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "logicalCoreCount": { + "description": "Output only. Number of logical cores.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "memoryMb": { + "description": "Output only. Predicted amount of memory in MiB.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "storage": { + "$ref": "ComputeStorageDescriptor", + "description": "Output only. Predicted storage shape.", + "readOnly": true + }, + "version": { + "description": "Output only. Microsoft SQL Server version to be used on the Cloud SQL for SQL server instance.", + "enum": [ + "SQL_SERVER_VERSION_UNSPECIFIED", + "SQL_SERVER_VERSION_2017_EXPRESS", + "SQL_SERVER_VERSION_2017_WEB", + "SQL_SERVER_VERSION_2017_STANDARD", + "SQL_SERVER_VERSION_2017_ENTERPRISE", + "SQL_SERVER_VERSION_2019_EXPRESS", + "SQL_SERVER_VERSION_2019_WEB", + "SQL_SERVER_VERSION_2019_STANDARD", + "SQL_SERVER_VERSION_2019_ENTERPRISE", + "SQL_SERVER_VERSION_2022_EXPRESS", + "SQL_SERVER_VERSION_2022_WEB", + "SQL_SERVER_VERSION_2022_STANDARD", + "SQL_SERVER_VERSION_2022_ENTERPRISE" + ], + "enumDescriptions": [ + "Unspecified SQL Server version.", + "The database version is SQL Server 2017 Express.", + "The database version is SQL Server 2017 Web.", + "The database version is SQL Server 2017 Standard.", + "The database version is SQL Server 2017 Enterprise.", + "The database version is SQL Server 2019 Express.", + "The database version is SQL Server 2019 Web.", + "The database version is SQL Server 2019 Standard.", + "The database version is SQL Server 2019 Enterprise.", + "The database version is SQL Server 2022 Express.", + "The database version is SQL Server 2022 Web.", + "The database version is SQL Server 2022 Standard.", + "The database version is SQL Server 2022 Enterprise." + ], + "readOnly": true, + "type": "string" + }, + "zoneAvailability": { + "description": "Output only. Cloud SQL zone availability.", + "enum": [ + "CLOUD_SQL_ZONE_AVAILABILITY_UNSPECIFIED", + "CLOUD_SQL_ZONE_AVAILABILITY_ZONAL", + "CLOUD_SQL_ZONE_AVAILABILITY_REGIONAL" + ], + "enumDescriptions": [ + "An unspecified Cloud SQL zone availability.", + "The instance serves data from only one zone. In case of outage, no failover. Not recommended for production.", + "The instance can serve data from multiple zones in a region. Highly available. Automatic failover to another zone within your selected region. Recommended for production instances. Increases cost." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ComputeEngineMigrationTarget": { "description": "Compute engine migration target.", "id": "ComputeEngineMigrationTarget", @@ -2871,33 +3188,39 @@ "id": "ComputeEngineShapeDescriptor", "properties": { "logicalCoreCount": { - "description": "Number of logical cores.", + "description": "Output only. Number of logical cores.", "format": "int32", + "readOnly": true, "type": "integer" }, "machineType": { - "description": "Compute Engine machine type.", + "description": "Output only. Compute Engine machine type.", + "readOnly": true, "type": "string" }, "memoryMb": { - "description": "Memory in mebibytes.", + "description": "Output only. Memory in mebibytes.", "format": "int32", + "readOnly": true, "type": "integer" }, "physicalCoreCount": { - "description": "Number of physical cores.", + "description": "Output only. Number of physical cores.", "format": "int32", + "readOnly": true, "type": "integer" }, "series": { - "description": "Compute Engine machine series.", + "description": "Output only. Compute Engine machine series.", + "readOnly": true, "type": "string" }, "storage": { - "description": "Compute Engine storage. Never empty.", + "description": "Output only. Compute Engine storage. Never empty.", "items": { "$ref": "ComputeStorageDescriptor" }, + "readOnly": true, "type": "array" } }, @@ -2994,6 +3317,14 @@ "iops": { "$ref": "DailyResourceUsageAggregationStats", "description": "Disk I/O operations per second." + }, + "readIops": { + "$ref": "DailyResourceUsageAggregationStats", + "description": "Disk read I/O operations per second." + }, + "writeIops": { + "$ref": "DailyResourceUsageAggregationStats", + "description": "Disk write I/O operations per second." } }, "type": "object" @@ -3017,36 +3348,479 @@ "$ref": "DailyResourceUsageAggregationStats", "description": "Network egress in B/s." }, - "ingressBps": { - "$ref": "DailyResourceUsageAggregationStats", - "description": "Network ingress in B/s." + "ingressBps": { + "$ref": "DailyResourceUsageAggregationStats", + "description": "Network ingress in B/s." + } + }, + "type": "object" + }, + "DailyResourceUsageAggregationStats": { + "description": "Statistical aggregation of samples for a single resource usage.", + "id": "DailyResourceUsageAggregationStats", + "properties": { + "average": { + "description": "Average usage value.", + "format": "float", + "type": "number" + }, + "median": { + "description": "Median usage value.", + "format": "float", + "type": "number" + }, + "ninteyFifthPercentile": { + "description": "95th percentile usage value.", + "format": "float", + "type": "number" + }, + "peak": { + "description": "Peak usage value.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "DatabaseDeploymentDetails": { + "description": "The details of a database deployment asset.", + "id": "DatabaseDeploymentDetails", + "properties": { + "aggregatedStats": { + "$ref": "DatabaseDeploymentDetailsAggregatedStats", + "description": "Output only. Aggregated stats for the database deployment.", + "readOnly": true + }, + "edition": { + "description": "The database deployment edition.", + "type": "string" + }, + "generatedId": { + "description": "The database deployment generated ID.", + "type": "string" + }, + "manualUniqueId": { + "description": "A manual unique ID set by the user.", + "type": "string" + }, + "mysql": { + "$ref": "MysqlDatabaseDeployment", + "description": "Details of a MYSQL database deployment." + }, + "postgresql": { + "$ref": "PostgreSqlDatabaseDeployment", + "description": "Details of a PostgreSQL database deployment." + }, + "sqlServer": { + "$ref": "SqlServerDatabaseDeployment", + "description": "Details of a Microsoft SQL Server database deployment." + }, + "topology": { + "$ref": "DatabaseDeploymentTopology", + "description": "Details of the database deployment topology." + }, + "version": { + "description": "The database deployment version.", + "type": "string" + } + }, + "type": "object" + }, + "DatabaseDeploymentDetailsAggregatedStats": { + "description": "Aggregated stats for the database deployment.", + "id": "DatabaseDeploymentDetailsAggregatedStats", + "properties": { + "databaseCount": { + "description": "Output only. The number of databases in the deployment.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, + "DatabaseDeploymentTopology": { + "description": "Details of database deployment's topology.", + "id": "DatabaseDeploymentTopology", + "properties": { + "coreCount": { + "description": "Optional. Number of total cores.", + "format": "int32", + "type": "integer" + }, + "coreLimit": { + "description": "Optional. Number of total cores limited by db deployment.", + "format": "int32", + "type": "integer" + }, + "diskAllocatedBytes": { + "description": "Optional. Disk allocated in bytes.", + "format": "int64", + "type": "string" + }, + "diskUsedBytes": { + "description": "Optional. Disk used in bytes.", + "format": "int64", + "type": "string" + }, + "instances": { + "description": "Optional. List of database instances.", + "items": { + "$ref": "DatabaseInstance" + }, + "type": "array" + }, + "memoryBytes": { + "description": "Optional. Total memory in bytes.", + "format": "int64", + "type": "string" + }, + "memoryLimitBytes": { + "description": "Optional. Total memory in bytes limited by db deployment.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "DatabaseDetails": { + "description": "Details of a logical database.", + "id": "DatabaseDetails", + "properties": { + "allocatedStorageBytes": { + "description": "The allocated storage for the database in bytes.", + "format": "int64", + "type": "string" + }, + "databaseName": { + "description": "The name of the database.", + "type": "string" + }, + "parentDatabaseDeployment": { + "$ref": "DatabaseDetailsParentDatabaseDeployment", + "description": "The parent database deployment that contains the logical database." + }, + "schemas": { + "description": "The database schemas.", + "items": { + "$ref": "DatabaseSchema" + }, + "type": "array" + } + }, + "type": "object" + }, + "DatabaseDetailsParentDatabaseDeployment": { + "description": "The identifiers of the parent database deployment.", + "id": "DatabaseDetailsParentDatabaseDeployment", + "properties": { + "generatedId": { + "description": "The parent database deployment generated ID.", + "type": "string" + }, + "manualUniqueId": { + "description": "The parent database deployment optional manual unique ID set by the user.", + "type": "string" + } + }, + "type": "object" + }, + "DatabaseInstance": { + "description": "Details of a database instance.", + "id": "DatabaseInstance", + "properties": { + "hosts": { + "description": "Optional. The instance's hosts.", + "items": { + "$ref": "DatabaseInstanceHost" + }, + "type": "array" + }, + "instanceName": { + "description": "The instance's name.", + "type": "string" + }, + "role": { + "description": "The instance role in the database engine.", + "enum": [ + "ROLE_UNSPECIFIED", + "PRIMARY", + "SECONDARY", + "ARBITER" + ], + "enumDescriptions": [ + "Unspecified.", + "Primary.", + "Secondary.", + "Arbiter." + ], + "type": "string" + } + }, + "type": "object" + }, + "DatabaseInstanceHost": { + "description": "Details of a host of a database instance.", + "id": "DatabaseInstanceHost", + "properties": { + "hostName": { + "description": "Optional. The host name of the host.", + "type": "string" + } + }, + "type": "object" + }, + "DatabaseObjects": { + "description": "Details of a group of database objects.", + "id": "DatabaseObjects", + "properties": { + "category": { + "description": "The category of the objects.", + "enum": [ + "CATEGORY_UNSPECIFIED", + "TABLE", + "INDEX", + "CONSTRAINTS", + "VIEWS", + "SOURCE_CODE", + "OTHER" + ], + "enumDescriptions": [ + "Unspecified type.", + "Table.", + "Index.", + "Constraints.", + "Views.", + "Source code, e.g. procedures.", + "Uncategorized objects." + ], + "type": "string" + }, + "count": { + "description": "The number of objects.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "DatabasePreferences": { + "description": "DatabasePreferences enables you to create sets of preferences for your migrated databases.", + "id": "DatabasePreferences", + "properties": { + "mssqlToCloudSqlForSqlServerPreferences": { + "$ref": "DatabasePreferencesCloudSqlSqlServer", + "description": "Optional. Preferences for target SQL Server on Cloud SQL when migrating from source Microsoft SQL server." + }, + "mysqlToCloudSqlForMysqlPreferences": { + "$ref": "DatabasePreferencesCloudSqlMySql", + "description": "Optional. Preferences for target MySQL on Cloud SQL when migrating from source MySQL." + }, + "postgresqlToCloudSqlForPostgresqlPreferences": { + "$ref": "DatabasePreferencesCloudSqlPostgreSql", + "description": "Optional. Preferences for target PostgreSQL on Cloud SQL when migrating from source PostgreSQL." + } + }, + "type": "object" + }, + "DatabasePreferencesCloudSqlCommon": { + "description": "Preferences common to Cloud SQL databases.", + "id": "DatabasePreferencesCloudSqlCommon", + "properties": { + "backup": { + "$ref": "DatabasePreferencesCloudSqlCommonBackup", + "description": "Optional. Preferences for database backups." + }, + "commitmentPlan": { + "description": "Optional. Commitment plan to consider when calculating costs. Only regular CUDs (not flexible) are currently available.", + "enum": [ + "COMMITMENT_PLAN_UNSPECIFIED", + "COMMITMENT_PLAN_NONE", + "COMMITMENT_PLAN_ONE_YEAR", + "COMMITMENT_PLAN_THREE_YEARS" + ], + "enumDescriptions": [ + "Unspecified commitment plan.", + "No commitment plan.", + "1-year regular committed use discount.", + "3-year regular committed use discount." + ], + "type": "string" + }, + "edition": { + "description": "Optional. Cloud SQL edition. For SQL Server, only Enterprise is available.", + "enum": [ + "CLOUD_SQL_EDITION_UNSPECIFIED", + "CLOUD_SQL_EDITION_ENTERPRISE", + "CLOUD_SQL_EDITION_ENTERPRISE_PLUS" + ], + "enumDescriptions": [ + "An unspecified Cloud SQL edition.", + "Provides all core capabilities of Cloud SQL and is suitable for applications requiring a balance of performance, availability, and cost.", + "Provides the best performance and availability to run applications requiring the highest level of availability and performance in addition to the capabilities of the Cloud SQL Enterprise edition. Note: SQL Server is not available in Enterprise Plus edition. For SQL Server, Enterprise will always be recommended." + ], + "type": "string" + }, + "persistentDiskType": { + "description": "Optional. Persistent disk type to use. If unspecified, a disk type is recommended based on available usage data. For SQL Server, only SSD is available. For MySQL and PostgreSQL, only STANDARD (HDD) and SSD types are available.", + "enum": [ + "PERSISTENT_DISK_TYPE_UNSPECIFIED", + "PERSISTENT_DISK_TYPE_STANDARD", + "PERSISTENT_DISK_TYPE_BALANCED", + "PERSISTENT_DISK_TYPE_SSD" + ], + "enumDescriptions": [ + "Unspecified (default value). Selecting this value allows the system to use any disk type according to reported usage. This a good value to start with.", + "Standard HDD Persistent Disk.", + "Balanced Persistent Disk.", + "SSD Persistent Disk." + ], + "type": "string" + }, + "sizingOptimizationStrategy": { + "description": "Optional. Sizing optimization strategy of the database. Currently supported for Cloud SQL are just two values: SIZING_OPTIMIZATION_STRATEGY_MODERATE and SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE. SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED will behave like SIZING_OPTIMIZATION_STRATEGY_MODERATE.", + "enum": [ + "SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED", + "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE", + "SIZING_OPTIMIZATION_STRATEGY_MODERATE", + "SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE", + "SIZING_OPTIMIZATION_STRATEGY_CUSTOM" + ], + "enumDescriptions": [ + "Unspecified (default value).", + "No optimization applied. Virtual machine sizing matches as closely as possible the machine shape on the source site, not considering any actual performance data.", + "Virtual machine sizing will match the reported usage and shape, with some slack. This a good value to start with.", + "Virtual machine sizing will match the reported usage, with little slack. Using this option can help reduce costs.", + "Virtual machine sizing will be determined by custom parameters. While not supported in the v1 API, this value is converted to UNSPECIFIED in conversions to the v1 API." + ], + "type": "string" + }, + "zoneAvailability": { + "description": "Optional. Preferred zone availability.", + "enum": [ + "CLOUD_SQL_ZONE_AVAILABILITY_UNSPECIFIED", + "CLOUD_SQL_ZONE_AVAILABILITY_ZONAL", + "CLOUD_SQL_ZONE_AVAILABILITY_REGIONAL" + ], + "enumDescriptions": [ + "An unspecified Cloud SQL zone availability.", + "The instance serves data from only one zone. In case of outage, no failover. Not recommended for production.", + "The instance can serve data from multiple zones in a region. Highly available. Automatic failover to another zone within your selected region. Recommended for production instances. Increases cost." + ], + "type": "string" + } + }, + "type": "object" + }, + "DatabasePreferencesCloudSqlCommonBackup": { + "description": "Preferences for database backups.", + "id": "DatabasePreferencesCloudSqlCommonBackup", + "properties": { + "backupMode": { + "description": "Optional. Mode of automated backups.", + "enum": [ + "BACKUP_MODE_UNSPECIFIED", + "BACKUP_MODE_DISABLED", + "BACKUP_MODE_ENABLED" + ], + "enumDescriptions": [ + "An unspecified database backup mode.", + "Automatic backups disabled, no additional charges for storage.", + "Automatic backups enabled, there will be additional charges for storage." + ], + "type": "string" + } + }, + "type": "object" + }, + "DatabasePreferencesCloudSqlMySql": { + "description": "Preferences for MySQL on Cloud SQL.", + "id": "DatabasePreferencesCloudSqlMySql", + "properties": { + "common": { + "$ref": "DatabasePreferencesCloudSqlCommon", + "description": "Optional. Preferences to Cloud SQL databases." + } + }, + "type": "object" + }, + "DatabasePreferencesCloudSqlPostgreSql": { + "description": "Preferences for PostgreSQL on Cloud SQL.", + "id": "DatabasePreferencesCloudSqlPostgreSql", + "properties": { + "common": { + "$ref": "DatabasePreferencesCloudSqlCommon", + "description": "Optional. Preferences to Cloud SQL databases." + } + }, + "type": "object" + }, + "DatabasePreferencesCloudSqlSqlServer": { + "description": "Preferences for SQL Server on Cloud SQL.", + "id": "DatabasePreferencesCloudSqlSqlServer", + "properties": { + "common": { + "$ref": "DatabasePreferencesCloudSqlCommon", + "description": "Optional. Preferences to Cloud SQL databases." + }, + "multithreading": { + "description": "Optional. Preferences for multithreading support.", + "enum": [ + "MULTITHREADING_UNSPECIFIED", + "MULTITHREADING_DISABLED", + "MULTITHREADING_ENABLED", + "MULTITHREADING_AUTO_SELECT" + ], + "enumDescriptions": [ + "Same as MULTITHREADING_AUTO_SELECT.", + "No multithreading support.", + "Allow multithreading support.", + "Choose to enable/disable multithreading according to which is lowest cost for your workload." + ], + "type": "string" + }, + "versionType": { + "description": "Optional. Edition of Microsoft SQL version that is used on a Cloud SQL for SQL server instance.", + "enum": [ + "VERSION_TYPE_UNSPECIFIED", + "VERSION_TYPE_AUTO", + "VERSION_TYPE_EXPRESS", + "VERSION_TYPE_WEB", + "VERSION_TYPE_STANDARD", + "VERSION_TYPE_ENTERPRISE" + ], + "enumDescriptions": [ + "Unspecified SQL Server version type.", + "Version will be deduced from the source asset.", + "Version will be one of \"Express\" versions.", + "Version will be one of \"Web\" versions.", + "Version will be one of \"Standard\" versions.", + "Version will be one of \"Enterprise\" versions." + ], + "type": "string" } }, "type": "object" }, - "DailyResourceUsageAggregationStats": { - "description": "Statistical aggregation of samples for a single resource usage.", - "id": "DailyResourceUsageAggregationStats", + "DatabaseSchema": { + "description": "Details of a database schema.", + "id": "DatabaseSchema", "properties": { - "average": { - "description": "Average usage value.", - "format": "float", - "type": "number" - }, - "median": { - "description": "Median usage value.", - "format": "float", - "type": "number" + "objects": { + "description": "List of details of objects by category.", + "items": { + "$ref": "DatabaseObjects" + }, + "type": "array" }, - "ninteyFifthPercentile": { - "description": "95th percentile usage value.", - "format": "float", - "type": "number" + "schemaName": { + "description": "The name of the schema.", + "type": "string" }, - "peak": { - "description": "Peak usage value.", - "format": "float", - "type": "number" + "tablesSizeBytes": { + "description": "The total size of tables in bytes.", + "format": "int64", + "type": "string" } }, "type": "object" @@ -3359,6 +4133,16 @@ "description": "Average IOPS sampled over a short window. Must be non-negative. Must be equal to the sum of read and write if one of them is positive. if both read and write are zero they are ignored.", "format": "float", "type": "number" + }, + "averageReadIops": { + "description": "Average read IOPS sampled over a short window. Must be non-negative.", + "format": "float", + "type": "number" + }, + "averageWriteIops": { + "description": "Average write IOPS sampled over a short window. Must be non-negative.", + "format": "float", + "type": "number" } }, "type": "object" @@ -3570,7 +4354,8 @@ "IMPORT_JOB_FORMAT_RVTOOLS_CSV", "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV", "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV", - "IMPORT_JOB_FORMAT_MANUAL_CSV" + "IMPORT_JOB_FORMAT_MANUAL_CSV", + "IMPORT_JOB_FORMAT_DATABASE_ZIP" ], "enumDeprecated": [ false, @@ -3579,6 +4364,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -3588,7 +4374,8 @@ "RVTools format (CSV).", "CSV format exported from AWS using the [AWS collection script](https://github.com/GoogleCloudPlatform/aws-to-stratozone-export).", "CSV format exported from Azure using the [Azure collection script](https://github.com/GoogleCloudPlatform/azure-to-stratozone-export).", - "CSV format created manually. For more information, see [Manually create and upload data tables](https://cloud.google.com/migrate/stratozone/docs/import-data-portal)." + "CSV format created manually. For more information, see [Manually create and upload data tables](https://cloud.google.com/migrate/stratozone/docs/import-data-portal).", + "ZIP file with nested CSV files generated by a database collector." ], "type": "string" }, @@ -3865,7 +4652,8 @@ "IMPORT_JOB_FORMAT_RVTOOLS_CSV", "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV", "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV", - "IMPORT_JOB_FORMAT_MANUAL_CSV" + "IMPORT_JOB_FORMAT_MANUAL_CSV", + "IMPORT_JOB_FORMAT_DATABASE_ZIP" ], "enumDeprecated": [ false, @@ -3874,6 +4662,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -3883,7 +4672,8 @@ "RVTools format (CSV).", "CSV format exported from AWS using the [AWS collection script](https://github.com/GoogleCloudPlatform/aws-to-stratozone-export).", "CSV format exported from Azure using the [Azure collection script](https://github.com/GoogleCloudPlatform/azure-to-stratozone-export).", - "CSV format created manually. For more information, see [Manually create and upload data tables](https://cloud.google.com/migrate/stratozone/docs/import-data-portal)." + "CSV format created manually. For more information, see [Manually create and upload data tables](https://cloud.google.com/migrate/stratozone/docs/import-data-portal).", + "ZIP file with nested CSV files generated by a database collector." ], "type": "string" }, @@ -4034,6 +4824,18 @@ "description": "A resource that reports the import job errors at row level.", "id": "ImportRowError", "properties": { + "archiveError": { + "$ref": "ImportRowErrorArchiveErrorDetails", + "description": "Error details for an archive file." + }, + "assetTitle": { + "description": "The asset title.", + "type": "string" + }, + "csvError": { + "$ref": "ImportRowErrorCsvErrorDetails", + "description": "Error details for a CSV file." + }, "errors": { "description": "The list of errors detected in the row.", "items": { @@ -4041,6 +4843,10 @@ }, "type": "array" }, + "jsonError": { + "$ref": "ImportRowErrorJsonErrorDetails", + "description": "Error details for a JSON file." + }, "rowNumber": { "deprecated": true, "description": "The row number where the error was detected.", @@ -4054,6 +4860,59 @@ "vmUuid": { "description": "The VM UUID.", "type": "string" + }, + "xlsxError": { + "$ref": "ImportRowErrorXlsxErrorDetails", + "description": "Error details for an XLSX file." + } + }, + "type": "object" + }, + "ImportRowErrorArchiveErrorDetails": { + "description": "Error details for an archive file.", + "id": "ImportRowErrorArchiveErrorDetails", + "properties": { + "csvError": { + "$ref": "ImportRowErrorCsvErrorDetails", + "description": "Error details for a CSV file." + }, + "filePath": { + "description": "The file path inside the archive where the error was detected.", + "type": "string" + } + }, + "type": "object" + }, + "ImportRowErrorCsvErrorDetails": { + "description": "Error details for a CSV file.", + "id": "ImportRowErrorCsvErrorDetails", + "properties": { + "rowNumber": { + "description": "The row number where the error was detected.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "ImportRowErrorJsonErrorDetails": { + "description": "Error details for a JSON file.", + "id": "ImportRowErrorJsonErrorDetails", + "properties": {}, + "type": "object" + }, + "ImportRowErrorXlsxErrorDetails": { + "description": "Error details for an XLSX file.", + "id": "ImportRowErrorXlsxErrorDetails", + "properties": { + "rowNumber": { + "description": "The row number where the error was detected.", + "format": "int32", + "type": "integer" + }, + "sheet": { + "description": "The name of the sheet where the error was detected.", + "type": "string" } }, "type": "object" @@ -4071,7 +4930,8 @@ "IMPORT_JOB_FORMAT_RVTOOLS_CSV", "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV", "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV", - "IMPORT_JOB_FORMAT_MANUAL_CSV" + "IMPORT_JOB_FORMAT_MANUAL_CSV", + "IMPORT_JOB_FORMAT_DATABASE_ZIP" ], "enumDeprecated": [ false, @@ -4080,6 +4940,7 @@ false, false, false, + false, false ], "enumDescriptions": [ @@ -4089,7 +4950,8 @@ "RVTools format (CSV).", "CSV format exported from AWS using the [AWS collection script](https://github.com/GoogleCloudPlatform/aws-to-stratozone-export).", "CSV format exported from Azure using the [Azure collection script](https://github.com/GoogleCloudPlatform/azure-to-stratozone-export).", - "CSV format created manually. For more information, see [Manually create and upload data tables](https://cloud.google.com/migrate/stratozone/docs/import-data-portal)." + "CSV format created manually. For more information, see [Manually create and upload data tables](https://cloud.google.com/migrate/stratozone/docs/import-data-portal).", + "ZIP file with nested CSV files generated by a database collector." ], "type": "string" }, @@ -4146,6 +5008,73 @@ }, "type": "object" }, + "Issue": { + "description": "An issue associated with a migration.", + "id": "Issue", + "properties": { + "compatibilityIssue": { + "$ref": "IssueCompatibilityIssue", + "description": "Output only. Details about a compatibility issue.", + "readOnly": true + }, + "description": { + "description": "Output only. English description of the issue.", + "readOnly": true, + "type": "string" + }, + "issueCode": { + "description": "Output only. Unique identifier for this issue type.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "IssueCompatibilityIssue": { + "description": "Details about a compatibility issue.", + "id": "IssueCompatibilityIssue", + "properties": { + "associatedObject": { + "description": "Output only. Name of the object associated with this compatibility issue relative to the relevant asset. Does not represent a fully qualified resource name and is not intended for programmatic use.", + "readOnly": true, + "type": "string" + }, + "associatedObjectType": { + "description": "Output only. Type of object associated with this migration compatibility issue.", + "enum": [ + "OBJECT_TYPE_UNSPECIFIED", + "DATABASE_DEPLOYMENT" + ], + "enumDescriptions": [ + "An unspecified object type.", + "A database deployment object type." + ], + "readOnly": true, + "type": "string" + }, + "associatedValue": { + "description": "Output only. A string representation of actual value associated with this issue. Some values may contain aggregated information, such as a flag name and the actual value assigned to it.", + "readOnly": true, + "type": "string" + }, + "category": { + "description": "Output only. Category of this compatibility issue.", + "enum": [ + "CATEGORY_UNSPECIFIED", + "DATABASE_FLAG", + "DATABASE_FEATURE" + ], + "enumDescriptions": [ + "An unspecified compatibility category.", + "Database flag compatibility category.", + "Database feature compatibility category." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ListAssetsResponse": { "description": "Response message for listing assets.", "id": "ListAssetsResponse", @@ -4481,11 +5410,11 @@ "type": "object" }, "MachineSeries": { - "description": "A Compute Engine machine series.", + "description": "A machine series, for a target product (e.g. Compute Engine, Google Cloud VMware Engine).", "id": "MachineSeries", "properties": { "code": { - "description": "Code to identify a Compute Engine machine series. Consult https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison for more details on the available series.", + "description": "Code to identify a machine series. Consult this for more details on the available series for Compute Engine: https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison Consult this for more details on the available series for Google Cloud VMware Engine: https://cloud.google.com/vmware-engine/pricing", "type": "string" } }, @@ -4507,6 +5436,11 @@ "description": "An insight about potential migrations for an asset.", "id": "MigrationInsight", "properties": { + "cloudDatabaseTarget": { + "$ref": "CloudDatabaseMigrationTarget", + "description": "Output only. A Cloud database migration target.", + "readOnly": true + }, "computeEngineSoleTenantTarget": { "$ref": "ComputeEngineSoleTenantMigrationTarget", "description": "Output only. A Google Compute Engine Sole Tenant target.", @@ -4527,6 +5461,14 @@ "description": "Output only. A Google Kubernetes Engine target.", "readOnly": true }, + "issues": { + "description": "Output only. Issues associated with this migration.", + "items": { + "$ref": "Issue" + }, + "readOnly": true, + "type": "array" + }, "vmwareEngineTarget": { "$ref": "VmwareEngineMigrationTarget", "description": "Output only. A VMWare Engine target.", @@ -4556,6 +5498,39 @@ }, "type": "object" }, + "MysqlDatabaseDeployment": { + "description": "Specific details for a Mysql database deployment.", + "id": "MysqlDatabaseDeployment", + "properties": { + "plugins": { + "description": "Optional. List of Mysql plugins.", + "items": { + "$ref": "MysqlPlugin" + }, + "type": "array" + } + }, + "type": "object" + }, + "MysqlPlugin": { + "description": "Mysql plugin.", + "id": "MysqlPlugin", + "properties": { + "enabled": { + "description": "Required. The plugin is active.", + "type": "boolean" + }, + "plugin": { + "description": "Required. The plugin name.", + "type": "string" + }, + "version": { + "description": "Required. The plugin version.", + "type": "string" + } + }, + "type": "object" + }, "NetworkAdapterDetails": { "description": "Details of network adapter.", "id": "NetworkAdapterDetails", @@ -4942,6 +5917,12 @@ }, "type": "object" }, + "PostgreSqlDatabaseDeployment": { + "description": "Specific details for a PostgreSQL database deployment.", + "id": "PostgreSqlDatabaseDeployment", + "properties": {}, + "type": "object" + }, "PreferenceSet": { "description": "The preferences that apply to all assets in a given context.", "id": "PreferenceSet", @@ -4952,6 +5933,10 @@ "readOnly": true, "type": "string" }, + "databasePreferences": { + "$ref": "DatabasePreferences", + "description": "Optional. A set of preferences that applies to all databases in the context." + }, "description": { "description": "A description of the preference set.", "type": "string" @@ -4965,6 +5950,10 @@ "readOnly": true, "type": "string" }, + "regionPreferences": { + "$ref": "RegionPreferences", + "description": "Optional. Region preferences for assets using this preference set. If you are unsure which value to set, the migration service API region is often a good value to start with. If unspecified, VirtualMachinePreferences.RegionPreferences is used." + }, "updateTime": { "description": "Output only. The timestamp when the preference set was last updated.", "format": "google-datetime", @@ -5144,12 +6133,22 @@ "$ref": "ReportSummaryAssetAggregateStats", "description": "Aggregate statistics for unique assets across all the groups." }, + "databaseStats": { + "$ref": "ReportSummaryAssetAggregateStats", + "description": "Output only. Aggregate statistics for unique database assets across all the groups.", + "readOnly": true + }, "groupFindings": { "description": "Findings for each Group included in this report.", "items": { "$ref": "ReportSummaryGroupFinding" }, "type": "array" + }, + "virtualMachineStats": { + "$ref": "ReportSummaryAssetAggregateStats", + "description": "Output only. Aggregate statistics for unique virtual machine assets across all the groups.", + "readOnly": true } }, "type": "object" @@ -5167,6 +6166,11 @@ "$ref": "ReportSummaryHistogramChartData", "description": "Histogram showing a distribution of CPU core counts." }, + "databaseTypes": { + "$ref": "ReportSummaryChartData", + "description": "Output only. Count of assets grouped by database type. Keys here are taken from DatabaseType enum. Only present for databases.", + "readOnly": true + }, "memoryBytesHistogram": { "$ref": "ReportSummaryHistogramChartData", "description": "Histogram showing a distribution of memory sizes." @@ -5250,6 +6254,25 @@ }, "type": "object" }, + "ReportSummaryDatabaseFinding": { + "description": "DatabaseFinding contains an aggregate costs and shapes for a single database type.", + "id": "ReportSummaryDatabaseFinding", + "properties": { + "allocatedAssetCount": { + "description": "Output only. Number of database assets which were successfully assigned in this finding.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "totalAssets": { + "description": "Output only. Number of database assets in this finding.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ReportSummaryGroupFinding": { "description": "Summary Findings for a specific Group.", "id": "ReportSummaryGroupFinding", @@ -5258,6 +6281,38 @@ "$ref": "ReportSummaryAssetAggregateStats", "description": "Summary statistics for all the assets in this group." }, + "assetType": { + "description": "Output only. Asset type for the group finding.", + "enum": [ + "ASSET_TYPE_UNSPECIFIED", + "VIRTUAL_MACHINE", + "DATABASE" + ], + "enumDescriptions": [ + "Unknown asset type.", + "Virtual Machine asset type", + "Database asset type" + ], + "readOnly": true, + "type": "string" + }, + "databaseType": { + "description": "Output only. Source asset database type for the group finding. Only present for databases.", + "enum": [ + "DATABASE_TYPE_UNSPECIFIED", + "SQL_SERVER", + "MYSQL", + "POSTGRES" + ], + "enumDescriptions": [ + "Unknown database type.", + "SQL Server database.", + "MySQL database.", + "Postgres database." + ], + "readOnly": true, + "type": "string" + }, "description": { "description": "Description for this group finding.", "type": "string" @@ -5266,6 +6321,11 @@ "description": "Display Name for this group finding.", "type": "string" }, + "group": { + "description": "Output only. Full name of the group.", + "readOnly": true, + "type": "string" + }, "overlappingAssetCount": { "deprecated": true, "description": "This field is deprecated, do not rely on it having a value.", @@ -5286,6 +6346,11 @@ "description": "Summary Findings for a specific Group/PreferenceSet combination.", "id": "ReportSummaryGroupPreferenceSetFinding", "properties": { + "databaseFinding": { + "$ref": "ReportSummaryDatabaseFinding", + "description": "Output only. Details about databases in this finding. Only present for databases.", + "readOnly": true + }, "description": { "description": "Description for the Preference Set.", "type": "string" @@ -5307,6 +6372,16 @@ "$ref": "Money", "description": "Compute monthly cost for this preference set." }, + "monthlyCostDatabaseBackup": { + "$ref": "Money", + "description": "Output only. Backup monthly cost for this preference set. Only present for databases.", + "readOnly": true + }, + "monthlyCostDatabaseLicensing": { + "$ref": "Money", + "description": "Output only. Database licensing monthly cost for this preference set. For virtual machines denotes the cost of licenses for hosted databases.", + "readOnly": true + }, "monthlyCostNetworkEgress": { "$ref": "Money", "description": "Network Egress monthly cost for this preference set. Only present for virtual machines." @@ -5327,6 +6402,11 @@ "$ref": "Money", "description": "Total monthly cost for this preference set." }, + "preferenceSet": { + "$ref": "PreferenceSet", + "description": "Output only. A copy of the preference set used for this finding.", + "readOnly": true + }, "preferredRegion": { "deprecated": true, "description": "Target region for this Preference Set", @@ -5914,6 +6994,95 @@ }, "type": "object" }, + "SqlServerDatabaseDeployment": { + "description": "Specific details for a Microsoft SQL Server database deployment.", + "id": "SqlServerDatabaseDeployment", + "properties": { + "features": { + "description": "Optional. List of SQL Server features.", + "items": { + "$ref": "SqlServerFeature" + }, + "type": "array" + }, + "serverFlags": { + "description": "Optional. List of SQL Server server flags.", + "items": { + "$ref": "SqlServerServerFlag" + }, + "type": "array" + }, + "traceFlags": { + "description": "Optional. List of SQL Server trace flags.", + "items": { + "$ref": "SqlServerTraceFlag" + }, + "type": "array" + } + }, + "type": "object" + }, + "SqlServerFeature": { + "description": "SQL Server feature details.", + "id": "SqlServerFeature", + "properties": { + "enabled": { + "description": "Required. Field enabled is set when a feature is used on the source deployment.", + "type": "boolean" + }, + "featureName": { + "description": "Required. The feature name.", + "type": "string" + } + }, + "type": "object" + }, + "SqlServerServerFlag": { + "description": "SQL Server server flag details.", + "id": "SqlServerServerFlag", + "properties": { + "serverFlagName": { + "description": "Required. The server flag name.", + "type": "string" + }, + "value": { + "description": "Required. The server flag value set by the user.", + "type": "string" + }, + "valueInUse": { + "description": "Required. The server flag actual value. If `value_in_use` is different from `value` it means that either the configuration change was not applied or it is an expected behavior. See SQL Server documentation for more details.", + "type": "string" + } + }, + "type": "object" + }, + "SqlServerTraceFlag": { + "description": "SQL Server trace flag details.", + "id": "SqlServerTraceFlag", + "properties": { + "scope": { + "description": "Required. The trace flag scope.", + "enum": [ + "SCOPE_UNSPECIFIED", + "OFF", + "GLOBAL", + "SESSION" + ], + "enumDescriptions": [ + "Unspecified.", + "Off.", + "Global.", + "Session." + ], + "type": "string" + }, + "traceFlagName": { + "description": "Required. The trace flag name.", + "type": "string" + } + }, + "type": "object" + }, "Status": { "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": "Status", diff --git a/migrationcenter/v1alpha1/migrationcenter-gen.go b/migrationcenter/v1alpha1/migrationcenter-gen.go index bf0b2aad411..de46d6da0f6 100644 --- a/migrationcenter/v1alpha1/migrationcenter-gen.go +++ b/migrationcenter/v1alpha1/migrationcenter-gen.go @@ -365,8 +365,8 @@ type AggregateAssetsValuesRequest struct { // can be defined. Aggregations []*Aggregation `json:"aggregations,omitempty"` - // Filter: The aggregation will be performed on assets that match the - // provided filter. + // Filter: Optional. The aggregation will be performed on assets that + // match the provided filter. Filter string `json:"filter,omitempty"` // ShowHidden: Optional. When this value is set to 'true' the response @@ -766,6 +766,14 @@ type Asset struct { // CreateTime: Output only. The timestamp when the asset was created. CreateTime string `json:"createTime,omitempty"` + // DatabaseDeploymentDetails: Output only. Asset information specific + // for database deployments. + DatabaseDeploymentDetails *DatabaseDeploymentDetails `json:"databaseDeploymentDetails,omitempty"` + + // DatabaseDetails: Output only. Asset information specific for logical + // databases. + DatabaseDetails *DatabaseDetails `json:"databaseDetails,omitempty"` + // Hidden: Optional. Indicates if the asset is hidden. Hidden bool `json:"hidden,omitempty"` @@ -793,6 +801,10 @@ type Asset struct { // Sources: Output only. The list of sources contributing to the asset. Sources []string `json:"sources,omitempty"` + // Title: Output only. Server generated human readable name of the + // asset. + Title string `json:"title,omitempty"` + // UpdateTime: Output only. The timestamp when the asset was last // updated. UpdateTime string `json:"updateTime,omitempty"` @@ -848,6 +860,13 @@ type AssetFrame struct { // "SOURCE_TYPE_DISCOVERY_CLIENT" - Discovery clients CollectionType string `json:"collectionType,omitempty"` + // DatabaseDeploymentDetails: Asset information specific for database + // deployments. + DatabaseDeploymentDetails *DatabaseDeploymentDetails `json:"databaseDeploymentDetails,omitempty"` + + // DatabaseDetails: Asset information specific for logical databases. + DatabaseDetails *DatabaseDetails `json:"databaseDetails,omitempty"` + // Labels: Labels as key value pairs. Labels map[string]string `json:"labels,omitempty"` @@ -1158,6 +1177,310 @@ func (s *BiosDetails) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } +// CloudDatabaseMigrationTarget: Cloud database migration target. +type CloudDatabaseMigrationTarget struct { + // CloudSqlForMysqlShape: Cloud SQL for MySQL database shape. + CloudSqlForMysqlShape *CloudSqlForMySqlShape `json:"cloudSqlForMysqlShape,omitempty"` + + // CloudSqlForPostgresqlShape: Cloud SQL for Postgres database shape. + CloudSqlForPostgresqlShape *CloudSqlForPostgreSqlShape `json:"cloudSqlForPostgresqlShape,omitempty"` + + // CloudSqlShape: Cloud SQL for SQL Server database shape. + CloudSqlShape *CloudSqlForSqlServerShape `json:"cloudSqlShape,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CloudSqlForMysqlShape") 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. "CloudSqlForMysqlShape") 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 *CloudDatabaseMigrationTarget) MarshalJSON() ([]byte, error) { + type NoMethod CloudDatabaseMigrationTarget + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudSqlForMySqlShape: Cloud SQL for MySQL database shape. +type CloudSqlForMySqlShape struct { + // BackupStorageGb: Output only. Predicted backup storage size in GiB. + BackupStorageGb int64 `json:"backupStorageGb,omitempty"` + + // Edition: Output only. Cloud SQL edition. + // + // Possible values: + // "CLOUD_SQL_EDITION_UNSPECIFIED" - An unspecified Cloud SQL edition. + // "CLOUD_SQL_EDITION_ENTERPRISE" - Provides all core capabilities of + // Cloud SQL and is suitable for applications requiring a balance of + // performance, availability, and cost. + // "CLOUD_SQL_EDITION_ENTERPRISE_PLUS" - Provides the best performance + // and availability to run applications requiring the highest level of + // availability and performance in addition to the capabilities of the + // Cloud SQL Enterprise edition. Note: SQL Server is not available in + // Enterprise Plus edition. For SQL Server, Enterprise will always be + // recommended. + Edition string `json:"edition,omitempty"` + + // EgressGbPerMonth: Output only. Predicted Network Out traffic GiB per + // month. + EgressGbPerMonth int64 `json:"egressGbPerMonth,omitempty,string"` + + // LogicalCoreCount: Output only. Number of logical cores. + LogicalCoreCount int64 `json:"logicalCoreCount,omitempty"` + + // MemoryMb: Output only. Predicted amount of memory in MiB. + MemoryMb int64 `json:"memoryMb,omitempty"` + + // Storage: Output only. Predicted storage shape. + Storage *ComputeStorageDescriptor `json:"storage,omitempty"` + + // Version: Output only. MySQL version to be used on the Cloud SQL for + // MySQL instance. + // + // Possible values: + // "MY_SQL_VERSION_UNSPECIFIED" - Unspecified MySQL version. + // "MY_SQL_VERSION_5_6" - MySQL 5.6. + // "MY_SQL_VERSION_5_7" - MySQL 5.7. + // "MY_SQL_VERSION_8_0" - MySQL 8.0. + Version string `json:"version,omitempty"` + + // ZoneAvailability: Output only. Cloud SQL zone availability. + // + // Possible values: + // "CLOUD_SQL_ZONE_AVAILABILITY_UNSPECIFIED" - An unspecified Cloud + // SQL zone availability. + // "CLOUD_SQL_ZONE_AVAILABILITY_ZONAL" - The instance serves data from + // only one zone. In case of outage, no failover. Not recommended for + // production. + // "CLOUD_SQL_ZONE_AVAILABILITY_REGIONAL" - The instance can serve + // data from multiple zones in a region. Highly available. Automatic + // failover to another zone within your selected region. Recommended for + // production instances. Increases cost. + ZoneAvailability string `json:"zoneAvailability,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BackupStorageGb") 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. "BackupStorageGb") 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 *CloudSqlForMySqlShape) MarshalJSON() ([]byte, error) { + type NoMethod CloudSqlForMySqlShape + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudSqlForPostgreSqlShape: Cloud SQL for Postgres database shape. +type CloudSqlForPostgreSqlShape struct { + // BackupStorageGb: Output only. Predicted backup storage size in GiB. + BackupStorageGb int64 `json:"backupStorageGb,omitempty"` + + // Edition: Output only. Cloud SQL edition. + // + // Possible values: + // "CLOUD_SQL_EDITION_UNSPECIFIED" - An unspecified Cloud SQL edition. + // "CLOUD_SQL_EDITION_ENTERPRISE" - Provides all core capabilities of + // Cloud SQL and is suitable for applications requiring a balance of + // performance, availability, and cost. + // "CLOUD_SQL_EDITION_ENTERPRISE_PLUS" - Provides the best performance + // and availability to run applications requiring the highest level of + // availability and performance in addition to the capabilities of the + // Cloud SQL Enterprise edition. Note: SQL Server is not available in + // Enterprise Plus edition. For SQL Server, Enterprise will always be + // recommended. + Edition string `json:"edition,omitempty"` + + // EgressGbPerMonth: Output only. Predicted Network Out traffic GiB per + // month. + EgressGbPerMonth int64 `json:"egressGbPerMonth,omitempty,string"` + + // LogicalCoreCount: Output only. Number of logical cores. + LogicalCoreCount int64 `json:"logicalCoreCount,omitempty"` + + // MemoryMb: Output only. Predicted amount of memory in MiB. + MemoryMb int64 `json:"memoryMb,omitempty"` + + // Storage: Output only. Predicted storage shape. + Storage *ComputeStorageDescriptor `json:"storage,omitempty"` + + // Version: Output only. PostgreSql version to be used on the Cloud SQL + // for PostgreSql instance. + // + // Possible values: + // "POSTGRESQL_VERSION_UNSPECIFIED" - Unspecified PostgreSQL version. + // "POSTGRESQL_VERSION_9_6" - PostgreSQL 9.6. + // "POSTGRESQL_VERSION_10" - PostgreSQL 10 + // "POSTGRESQL_VERSION_11" - PostgreSQL 11 + // "POSTGRESQL_VERSION_12" - PostgreSQL 12 + // "POSTGRESQL_VERSION_13" - PostgreSQL 13 + // "POSTGRESQL_VERSION_14" - PostgreSQL 14 + // "POSTGRESQL_VERSION_15" - PostgreSQL 15 + Version string `json:"version,omitempty"` + + // ZoneAvailability: Output only. Cloud SQL zone availability. + // + // Possible values: + // "CLOUD_SQL_ZONE_AVAILABILITY_UNSPECIFIED" - An unspecified Cloud + // SQL zone availability. + // "CLOUD_SQL_ZONE_AVAILABILITY_ZONAL" - The instance serves data from + // only one zone. In case of outage, no failover. Not recommended for + // production. + // "CLOUD_SQL_ZONE_AVAILABILITY_REGIONAL" - The instance can serve + // data from multiple zones in a region. Highly available. Automatic + // failover to another zone within your selected region. Recommended for + // production instances. Increases cost. + ZoneAvailability string `json:"zoneAvailability,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BackupStorageGb") 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. "BackupStorageGb") 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 *CloudSqlForPostgreSqlShape) MarshalJSON() ([]byte, error) { + type NoMethod CloudSqlForPostgreSqlShape + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudSqlForSqlServerShape: Cloud SQL for SQL Server database shape. +type CloudSqlForSqlServerShape struct { + // BackupStorageGb: Output only. Predicted backup storage size in GiB. + BackupStorageGb int64 `json:"backupStorageGb,omitempty"` + + // Edition: Output only. Cloud SQL edition. + // + // Possible values: + // "CLOUD_SQL_EDITION_UNSPECIFIED" - An unspecified Cloud SQL edition. + // "CLOUD_SQL_EDITION_ENTERPRISE" - Provides all core capabilities of + // Cloud SQL and is suitable for applications requiring a balance of + // performance, availability, and cost. + // "CLOUD_SQL_EDITION_ENTERPRISE_PLUS" - Provides the best performance + // and availability to run applications requiring the highest level of + // availability and performance in addition to the capabilities of the + // Cloud SQL Enterprise edition. Note: SQL Server is not available in + // Enterprise Plus edition. For SQL Server, Enterprise will always be + // recommended. + Edition string `json:"edition,omitempty"` + + // EgressGbPerMonth: Output only. Predicted Network Out traffic GiB per + // month. + EgressGbPerMonth int64 `json:"egressGbPerMonth,omitempty,string"` + + // LogicalCoreCount: Output only. Number of logical cores. + LogicalCoreCount int64 `json:"logicalCoreCount,omitempty"` + + // MemoryMb: Output only. Predicted amount of memory in MiB. + MemoryMb int64 `json:"memoryMb,omitempty"` + + // Storage: Output only. Predicted storage shape. + Storage *ComputeStorageDescriptor `json:"storage,omitempty"` + + // Version: Output only. Microsoft SQL Server version to be used on the + // Cloud SQL for SQL server instance. + // + // Possible values: + // "SQL_SERVER_VERSION_UNSPECIFIED" - Unspecified SQL Server version. + // "SQL_SERVER_VERSION_2017_EXPRESS" - The database version is SQL + // Server 2017 Express. + // "SQL_SERVER_VERSION_2017_WEB" - The database version is SQL Server + // 2017 Web. + // "SQL_SERVER_VERSION_2017_STANDARD" - The database version is SQL + // Server 2017 Standard. + // "SQL_SERVER_VERSION_2017_ENTERPRISE" - The database version is SQL + // Server 2017 Enterprise. + // "SQL_SERVER_VERSION_2019_EXPRESS" - The database version is SQL + // Server 2019 Express. + // "SQL_SERVER_VERSION_2019_WEB" - The database version is SQL Server + // 2019 Web. + // "SQL_SERVER_VERSION_2019_STANDARD" - The database version is SQL + // Server 2019 Standard. + // "SQL_SERVER_VERSION_2019_ENTERPRISE" - The database version is SQL + // Server 2019 Enterprise. + // "SQL_SERVER_VERSION_2022_EXPRESS" - The database version is SQL + // Server 2022 Express. + // "SQL_SERVER_VERSION_2022_WEB" - The database version is SQL Server + // 2022 Web. + // "SQL_SERVER_VERSION_2022_STANDARD" - The database version is SQL + // Server 2022 Standard. + // "SQL_SERVER_VERSION_2022_ENTERPRISE" - The database version is SQL + // Server 2022 Enterprise. + Version string `json:"version,omitempty"` + + // ZoneAvailability: Output only. Cloud SQL zone availability. + // + // Possible values: + // "CLOUD_SQL_ZONE_AVAILABILITY_UNSPECIFIED" - An unspecified Cloud + // SQL zone availability. + // "CLOUD_SQL_ZONE_AVAILABILITY_ZONAL" - The instance serves data from + // only one zone. In case of outage, no failover. Not recommended for + // production. + // "CLOUD_SQL_ZONE_AVAILABILITY_REGIONAL" - The instance can serve + // data from multiple zones in a region. Highly available. Automatic + // failover to another zone within your selected region. Recommended for + // production instances. Increases cost. + ZoneAvailability string `json:"zoneAvailability,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BackupStorageGb") 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. "BackupStorageGb") 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 *CloudSqlForSqlServerShape) MarshalJSON() ([]byte, error) { + type NoMethod CloudSqlForSqlServerShape + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ComputeEngineMigrationTarget: Compute engine migration target. type ComputeEngineMigrationTarget struct { // Shape: Description of the suggested shape for the migration target. @@ -1243,22 +1566,22 @@ func (s *ComputeEnginePreferences) MarshalJSON() ([]byte, error) { // ComputeEngineShapeDescriptor: Compute Engine target shape descriptor. type ComputeEngineShapeDescriptor struct { - // LogicalCoreCount: Number of logical cores. + // LogicalCoreCount: Output only. Number of logical cores. LogicalCoreCount int64 `json:"logicalCoreCount,omitempty"` - // MachineType: Compute Engine machine type. + // MachineType: Output only. Compute Engine machine type. MachineType string `json:"machineType,omitempty"` - // MemoryMb: Memory in mebibytes. + // MemoryMb: Output only. Memory in mebibytes. MemoryMb int64 `json:"memoryMb,omitempty"` - // PhysicalCoreCount: Number of physical cores. + // PhysicalCoreCount: Output only. Number of physical cores. PhysicalCoreCount int64 `json:"physicalCoreCount,omitempty"` - // Series: Compute Engine machine series. + // Series: Output only. Compute Engine machine series. Series string `json:"series,omitempty"` - // Storage: Compute Engine storage. Never empty. + // Storage: Output only. Compute Engine storage. Never empty. Storage []*ComputeStorageDescriptor `json:"storage,omitempty"` // ForceSendFields is a list of field names (e.g. "LogicalCoreCount") to @@ -1430,29 +1753,688 @@ type DailyResourceUsageAggregationCPU struct { // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "UtilizationPercentage") 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. "UtilizationPercentage") 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 *DailyResourceUsageAggregationCPU) MarshalJSON() ([]byte, error) { + type NoMethod DailyResourceUsageAggregationCPU + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DailyResourceUsageAggregationDisk: Statistical aggregation of disk +// usage. +type DailyResourceUsageAggregationDisk struct { + // Iops: Disk I/O operations per second. + Iops *DailyResourceUsageAggregationStats `json:"iops,omitempty"` + + // ReadIops: Disk read I/O operations per second. + ReadIops *DailyResourceUsageAggregationStats `json:"readIops,omitempty"` + + // WriteIops: Disk write I/O operations per second. + WriteIops *DailyResourceUsageAggregationStats `json:"writeIops,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Iops") 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. "Iops") 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 *DailyResourceUsageAggregationDisk) MarshalJSON() ([]byte, error) { + type NoMethod DailyResourceUsageAggregationDisk + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DailyResourceUsageAggregationMemory: Statistical aggregation of +// memory usage. +type DailyResourceUsageAggregationMemory struct { + // UtilizationPercentage: Memory utilization percentage. + UtilizationPercentage *DailyResourceUsageAggregationStats `json:"utilizationPercentage,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "UtilizationPercentage") 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. "UtilizationPercentage") 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 *DailyResourceUsageAggregationMemory) MarshalJSON() ([]byte, error) { + type NoMethod DailyResourceUsageAggregationMemory + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DailyResourceUsageAggregationNetwork: Statistical aggregation of +// network usage. +type DailyResourceUsageAggregationNetwork struct { + // EgressBps: Network egress in B/s. + EgressBps *DailyResourceUsageAggregationStats `json:"egressBps,omitempty"` + + // IngressBps: Network ingress in B/s. + IngressBps *DailyResourceUsageAggregationStats `json:"ingressBps,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EgressBps") 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. "EgressBps") 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 *DailyResourceUsageAggregationNetwork) MarshalJSON() ([]byte, error) { + type NoMethod DailyResourceUsageAggregationNetwork + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DailyResourceUsageAggregationStats: Statistical aggregation of +// samples for a single resource usage. +type DailyResourceUsageAggregationStats struct { + // Average: Average usage value. + Average float64 `json:"average,omitempty"` + + // Median: Median usage value. + Median float64 `json:"median,omitempty"` + + // NinteyFifthPercentile: 95th percentile usage value. + NinteyFifthPercentile float64 `json:"ninteyFifthPercentile,omitempty"` + + // Peak: Peak usage value. + Peak float64 `json:"peak,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Average") 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. "Average") 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 *DailyResourceUsageAggregationStats) MarshalJSON() ([]byte, error) { + type NoMethod DailyResourceUsageAggregationStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *DailyResourceUsageAggregationStats) UnmarshalJSON(data []byte) error { + type NoMethod DailyResourceUsageAggregationStats + var s1 struct { + Average gensupport.JSONFloat64 `json:"average"` + Median gensupport.JSONFloat64 `json:"median"` + NinteyFifthPercentile gensupport.JSONFloat64 `json:"ninteyFifthPercentile"` + Peak gensupport.JSONFloat64 `json:"peak"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Average = float64(s1.Average) + s.Median = float64(s1.Median) + s.NinteyFifthPercentile = float64(s1.NinteyFifthPercentile) + s.Peak = float64(s1.Peak) + return nil +} + +// DatabaseDeploymentDetails: The details of a database deployment +// asset. +type DatabaseDeploymentDetails struct { + // AggregatedStats: Output only. Aggregated stats for the database + // deployment. + AggregatedStats *DatabaseDeploymentDetailsAggregatedStats `json:"aggregatedStats,omitempty"` + + // Edition: The database deployment edition. + Edition string `json:"edition,omitempty"` + + // GeneratedId: The database deployment generated ID. + GeneratedId string `json:"generatedId,omitempty"` + + // ManualUniqueId: A manual unique ID set by the user. + ManualUniqueId string `json:"manualUniqueId,omitempty"` + + // Mysql: Details of a MYSQL database deployment. + Mysql *MysqlDatabaseDeployment `json:"mysql,omitempty"` + + // Postgresql: Details of a PostgreSQL database deployment. + Postgresql *PostgreSqlDatabaseDeployment `json:"postgresql,omitempty"` + + // SqlServer: Details of a Microsoft SQL Server database deployment. + SqlServer *SqlServerDatabaseDeployment `json:"sqlServer,omitempty"` + + // Topology: Details of the database deployment topology. + Topology *DatabaseDeploymentTopology `json:"topology,omitempty"` + + // Version: The database deployment version. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AggregatedStats") 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. "AggregatedStats") 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 *DatabaseDeploymentDetails) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseDeploymentDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DatabaseDeploymentDetailsAggregatedStats: Aggregated stats for the +// database deployment. +type DatabaseDeploymentDetailsAggregatedStats struct { + // DatabaseCount: Output only. The number of databases in the + // deployment. + DatabaseCount int64 `json:"databaseCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DatabaseCount") 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. "DatabaseCount") 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 *DatabaseDeploymentDetailsAggregatedStats) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseDeploymentDetailsAggregatedStats + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DatabaseDeploymentTopology: Details of database deployment's +// topology. +type DatabaseDeploymentTopology struct { + // CoreCount: Optional. Number of total cores. + CoreCount int64 `json:"coreCount,omitempty"` + + // CoreLimit: Optional. Number of total cores limited by db deployment. + CoreLimit int64 `json:"coreLimit,omitempty"` + + // DiskAllocatedBytes: Optional. Disk allocated in bytes. + DiskAllocatedBytes int64 `json:"diskAllocatedBytes,omitempty,string"` + + // DiskUsedBytes: Optional. Disk used in bytes. + DiskUsedBytes int64 `json:"diskUsedBytes,omitempty,string"` + + // Instances: Optional. List of database instances. + Instances []*DatabaseInstance `json:"instances,omitempty"` + + // MemoryBytes: Optional. Total memory in bytes. + MemoryBytes int64 `json:"memoryBytes,omitempty,string"` + + // MemoryLimitBytes: Optional. Total memory in bytes limited by db + // deployment. + MemoryLimitBytes int64 `json:"memoryLimitBytes,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "CoreCount") 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. "CoreCount") 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 *DatabaseDeploymentTopology) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseDeploymentTopology + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DatabaseDetails: Details of a logical database. +type DatabaseDetails struct { + // AllocatedStorageBytes: The allocated storage for the database in + // bytes. + AllocatedStorageBytes int64 `json:"allocatedStorageBytes,omitempty,string"` + + // DatabaseName: The name of the database. + DatabaseName string `json:"databaseName,omitempty"` + + // ParentDatabaseDeployment: The parent database deployment that + // contains the logical database. + ParentDatabaseDeployment *DatabaseDetailsParentDatabaseDeployment `json:"parentDatabaseDeployment,omitempty"` + + // Schemas: The database schemas. + Schemas []*DatabaseSchema `json:"schemas,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AllocatedStorageBytes") 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. "AllocatedStorageBytes") 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 *DatabaseDetails) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DatabaseDetailsParentDatabaseDeployment: The identifiers of the +// parent database deployment. +type DatabaseDetailsParentDatabaseDeployment struct { + // GeneratedId: The parent database deployment generated ID. + GeneratedId string `json:"generatedId,omitempty"` + + // ManualUniqueId: The parent database deployment optional manual unique + // ID set by the user. + ManualUniqueId string `json:"manualUniqueId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GeneratedId") 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. "GeneratedId") 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 *DatabaseDetailsParentDatabaseDeployment) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseDetailsParentDatabaseDeployment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DatabaseInstance: Details of a database instance. +type DatabaseInstance struct { + // Hosts: Optional. The instance's hosts. + Hosts []*DatabaseInstanceHost `json:"hosts,omitempty"` + + // InstanceName: The instance's name. + InstanceName string `json:"instanceName,omitempty"` + + // Role: The instance role in the database engine. + // + // Possible values: + // "ROLE_UNSPECIFIED" - Unspecified. + // "PRIMARY" - Primary. + // "SECONDARY" - Secondary. + // "ARBITER" - Arbiter. + Role string `json:"role,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Hosts") 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. "Hosts") 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 *DatabaseInstance) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseInstance + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DatabaseInstanceHost: Details of a host of a database instance. +type DatabaseInstanceHost struct { + // HostName: Optional. The host name of the host. + HostName string `json:"hostName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "HostName") 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. "HostName") 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 *DatabaseInstanceHost) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseInstanceHost + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DatabaseObjects: Details of a group of database objects. +type DatabaseObjects struct { + // Category: The category of the objects. + // + // Possible values: + // "CATEGORY_UNSPECIFIED" - Unspecified type. + // "TABLE" - Table. + // "INDEX" - Index. + // "CONSTRAINTS" - Constraints. + // "VIEWS" - Views. + // "SOURCE_CODE" - Source code, e.g. procedures. + // "OTHER" - Uncategorized objects. + Category string `json:"category,omitempty"` + + // Count: The number of objects. + Count int64 `json:"count,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "Category") 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. "Category") 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 *DatabaseObjects) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseObjects + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DatabasePreferences: DatabasePreferences enables you to create sets +// of preferences for your migrated databases. +type DatabasePreferences struct { + // MssqlToCloudSqlForSqlServerPreferences: Optional. Preferences for + // target SQL Server on Cloud SQL when migrating from source Microsoft + // SQL server. + MssqlToCloudSqlForSqlServerPreferences *DatabasePreferencesCloudSqlSqlServer `json:"mssqlToCloudSqlForSqlServerPreferences,omitempty"` + + // MysqlToCloudSqlForMysqlPreferences: Optional. Preferences for target + // MySQL on Cloud SQL when migrating from source MySQL. + MysqlToCloudSqlForMysqlPreferences *DatabasePreferencesCloudSqlMySql `json:"mysqlToCloudSqlForMysqlPreferences,omitempty"` + + // PostgresqlToCloudSqlForPostgresqlPreferences: Optional. Preferences + // for target PostgreSQL on Cloud SQL when migrating from source + // PostgreSQL. + PostgresqlToCloudSqlForPostgresqlPreferences *DatabasePreferencesCloudSqlPostgreSql `json:"postgresqlToCloudSqlForPostgresqlPreferences,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "MssqlToCloudSqlForSqlServerPreferences") 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. + // "MssqlToCloudSqlForSqlServerPreferences") 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 *DatabasePreferences) MarshalJSON() ([]byte, error) { + type NoMethod DatabasePreferences + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DatabasePreferencesCloudSqlCommon: Preferences common to Cloud SQL +// databases. +type DatabasePreferencesCloudSqlCommon struct { + // Backup: Optional. Preferences for database backups. + Backup *DatabasePreferencesCloudSqlCommonBackup `json:"backup,omitempty"` + + // CommitmentPlan: Optional. Commitment plan to consider when + // calculating costs. Only regular CUDs (not flexible) are currently + // available. + // + // Possible values: + // "COMMITMENT_PLAN_UNSPECIFIED" - Unspecified commitment plan. + // "COMMITMENT_PLAN_NONE" - No commitment plan. + // "COMMITMENT_PLAN_ONE_YEAR" - 1-year regular committed use discount. + // "COMMITMENT_PLAN_THREE_YEARS" - 3-year regular committed use + // discount. + CommitmentPlan string `json:"commitmentPlan,omitempty"` + + // Edition: Optional. Cloud SQL edition. For SQL Server, only Enterprise + // is available. + // + // Possible values: + // "CLOUD_SQL_EDITION_UNSPECIFIED" - An unspecified Cloud SQL edition. + // "CLOUD_SQL_EDITION_ENTERPRISE" - Provides all core capabilities of + // Cloud SQL and is suitable for applications requiring a balance of + // performance, availability, and cost. + // "CLOUD_SQL_EDITION_ENTERPRISE_PLUS" - Provides the best performance + // and availability to run applications requiring the highest level of + // availability and performance in addition to the capabilities of the + // Cloud SQL Enterprise edition. Note: SQL Server is not available in + // Enterprise Plus edition. For SQL Server, Enterprise will always be + // recommended. + Edition string `json:"edition,omitempty"` + + // PersistentDiskType: Optional. Persistent disk type to use. If + // unspecified, a disk type is recommended based on available usage + // data. For SQL Server, only SSD is available. For MySQL and + // PostgreSQL, only STANDARD (HDD) and SSD types are available. + // + // Possible values: + // "PERSISTENT_DISK_TYPE_UNSPECIFIED" - Unspecified (default value). + // Selecting this value allows the system to use any disk type according + // to reported usage. This a good value to start with. + // "PERSISTENT_DISK_TYPE_STANDARD" - Standard HDD Persistent Disk. + // "PERSISTENT_DISK_TYPE_BALANCED" - Balanced Persistent Disk. + // "PERSISTENT_DISK_TYPE_SSD" - SSD Persistent Disk. + PersistentDiskType string `json:"persistentDiskType,omitempty"` + + // SizingOptimizationStrategy: Optional. Sizing optimization strategy of + // the database. Currently supported for Cloud SQL are just two values: + // SIZING_OPTIMIZATION_STRATEGY_MODERATE and + // SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE. + // SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED will behave like + // SIZING_OPTIMIZATION_STRATEGY_MODERATE. + // + // Possible values: + // "SIZING_OPTIMIZATION_STRATEGY_UNSPECIFIED" - Unspecified (default + // value). + // "SIZING_OPTIMIZATION_STRATEGY_SAME_AS_SOURCE" - No optimization + // applied. Virtual machine sizing matches as closely as possible the + // machine shape on the source site, not considering any actual + // performance data. + // "SIZING_OPTIMIZATION_STRATEGY_MODERATE" - Virtual machine sizing + // will match the reported usage and shape, with some slack. This a good + // value to start with. + // "SIZING_OPTIMIZATION_STRATEGY_AGGRESSIVE" - Virtual machine sizing + // will match the reported usage, with little slack. Using this option + // can help reduce costs. + // "SIZING_OPTIMIZATION_STRATEGY_CUSTOM" - Virtual machine sizing will + // be determined by custom parameters. While not supported in the v1 + // API, this value is converted to UNSPECIFIED in conversions to the v1 + // API. + SizingOptimizationStrategy string `json:"sizingOptimizationStrategy,omitempty"` + + // ZoneAvailability: Optional. Preferred zone availability. + // + // Possible values: + // "CLOUD_SQL_ZONE_AVAILABILITY_UNSPECIFIED" - An unspecified Cloud + // SQL zone availability. + // "CLOUD_SQL_ZONE_AVAILABILITY_ZONAL" - The instance serves data from + // only one zone. In case of outage, no failover. Not recommended for + // production. + // "CLOUD_SQL_ZONE_AVAILABILITY_REGIONAL" - The instance can serve + // data from multiple zones in a region. Highly available. Automatic + // failover to another zone within your selected region. Recommended for + // production instances. Increases cost. + ZoneAvailability string `json:"zoneAvailability,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Backup") 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. "Backup") 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 *DatabasePreferencesCloudSqlCommon) MarshalJSON() ([]byte, error) { + type NoMethod DatabasePreferencesCloudSqlCommon + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DatabasePreferencesCloudSqlCommonBackup: Preferences for database +// backups. +type DatabasePreferencesCloudSqlCommonBackup struct { + // BackupMode: Optional. Mode of automated backups. + // + // Possible values: + // "BACKUP_MODE_UNSPECIFIED" - An unspecified database backup mode. + // "BACKUP_MODE_DISABLED" - Automatic backups disabled, no additional + // charges for storage. + // "BACKUP_MODE_ENABLED" - Automatic backups enabled, there will be + // additional charges for storage. + BackupMode string `json:"backupMode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BackupMode") 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. "BackupMode") 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 *DailyResourceUsageAggregationCPU) MarshalJSON() ([]byte, error) { - type NoMethod DailyResourceUsageAggregationCPU +func (s *DatabasePreferencesCloudSqlCommonBackup) MarshalJSON() ([]byte, error) { + type NoMethod DatabasePreferencesCloudSqlCommonBackup raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DailyResourceUsageAggregationDisk: Statistical aggregation of disk -// usage. -type DailyResourceUsageAggregationDisk struct { - // Iops: Disk I/O operations per second. - Iops *DailyResourceUsageAggregationStats `json:"iops,omitempty"` +// DatabasePreferencesCloudSqlMySql: Preferences for MySQL on Cloud SQL. +type DatabasePreferencesCloudSqlMySql struct { + // Common: Optional. Preferences to Cloud SQL databases. + Common *DatabasePreferencesCloudSqlCommon `json:"common,omitempty"` - // ForceSendFields is a list of field names (e.g. "Iops") to + // ForceSendFields is a list of field names (e.g. "Common") 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 @@ -1460,7 +2442,7 @@ type DailyResourceUsageAggregationDisk struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Iops") to include in API + // NullFields is a list of field names (e.g. "Common") 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 @@ -1469,53 +2451,73 @@ type DailyResourceUsageAggregationDisk struct { NullFields []string `json:"-"` } -func (s *DailyResourceUsageAggregationDisk) MarshalJSON() ([]byte, error) { - type NoMethod DailyResourceUsageAggregationDisk +func (s *DatabasePreferencesCloudSqlMySql) MarshalJSON() ([]byte, error) { + type NoMethod DatabasePreferencesCloudSqlMySql raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DailyResourceUsageAggregationMemory: Statistical aggregation of -// memory usage. -type DailyResourceUsageAggregationMemory struct { - // UtilizationPercentage: Memory utilization percentage. - UtilizationPercentage *DailyResourceUsageAggregationStats `json:"utilizationPercentage,omitempty"` +// DatabasePreferencesCloudSqlPostgreSql: Preferences for PostgreSQL on +// Cloud SQL. +type DatabasePreferencesCloudSqlPostgreSql struct { + // Common: Optional. Preferences to Cloud SQL databases. + Common *DatabasePreferencesCloudSqlCommon `json:"common,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "UtilizationPercentage") 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 is a list of field names (e.g. "Common") 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. "UtilizationPercentage") 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. "Common") 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 *DailyResourceUsageAggregationMemory) MarshalJSON() ([]byte, error) { - type NoMethod DailyResourceUsageAggregationMemory +func (s *DatabasePreferencesCloudSqlPostgreSql) MarshalJSON() ([]byte, error) { + type NoMethod DatabasePreferencesCloudSqlPostgreSql raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DailyResourceUsageAggregationNetwork: Statistical aggregation of -// network usage. -type DailyResourceUsageAggregationNetwork struct { - // EgressBps: Network egress in B/s. - EgressBps *DailyResourceUsageAggregationStats `json:"egressBps,omitempty"` - - // IngressBps: Network ingress in B/s. - IngressBps *DailyResourceUsageAggregationStats `json:"ingressBps,omitempty"` +// DatabasePreferencesCloudSqlSqlServer: Preferences for SQL Server on +// Cloud SQL. +type DatabasePreferencesCloudSqlSqlServer struct { + // Common: Optional. Preferences to Cloud SQL databases. + Common *DatabasePreferencesCloudSqlCommon `json:"common,omitempty"` - // ForceSendFields is a list of field names (e.g. "EgressBps") to + // Multithreading: Optional. Preferences for multithreading support. + // + // Possible values: + // "MULTITHREADING_UNSPECIFIED" - Same as MULTITHREADING_AUTO_SELECT. + // "MULTITHREADING_DISABLED" - No multithreading support. + // "MULTITHREADING_ENABLED" - Allow multithreading support. + // "MULTITHREADING_AUTO_SELECT" - Choose to enable/disable + // multithreading according to which is lowest cost for your workload. + Multithreading string `json:"multithreading,omitempty"` + + // VersionType: Optional. Edition of Microsoft SQL version that is used + // on a Cloud SQL for SQL server instance. + // + // Possible values: + // "VERSION_TYPE_UNSPECIFIED" - Unspecified SQL Server version type. + // "VERSION_TYPE_AUTO" - Version will be deduced from the source + // asset. + // "VERSION_TYPE_EXPRESS" - Version will be one of "Express" versions. + // "VERSION_TYPE_WEB" - Version will be one of "Web" versions. + // "VERSION_TYPE_STANDARD" - Version will be one of "Standard" + // versions. + // "VERSION_TYPE_ENTERPRISE" - Version will be one of "Enterprise" + // versions. + VersionType string `json:"versionType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Common") 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 @@ -1523,8 +2525,8 @@ type DailyResourceUsageAggregationNetwork struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EgressBps") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Common") 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. @@ -1532,28 +2534,24 @@ type DailyResourceUsageAggregationNetwork struct { NullFields []string `json:"-"` } -func (s *DailyResourceUsageAggregationNetwork) MarshalJSON() ([]byte, error) { - type NoMethod DailyResourceUsageAggregationNetwork +func (s *DatabasePreferencesCloudSqlSqlServer) MarshalJSON() ([]byte, error) { + type NoMethod DatabasePreferencesCloudSqlSqlServer raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DailyResourceUsageAggregationStats: Statistical aggregation of -// samples for a single resource usage. -type DailyResourceUsageAggregationStats struct { - // Average: Average usage value. - Average float64 `json:"average,omitempty"` - - // Median: Median usage value. - Median float64 `json:"median,omitempty"` +// DatabaseSchema: Details of a database schema. +type DatabaseSchema struct { + // Objects: List of details of objects by category. + Objects []*DatabaseObjects `json:"objects,omitempty"` - // NinteyFifthPercentile: 95th percentile usage value. - NinteyFifthPercentile float64 `json:"ninteyFifthPercentile,omitempty"` + // SchemaName: The name of the schema. + SchemaName string `json:"schemaName,omitempty"` - // Peak: Peak usage value. - Peak float64 `json:"peak,omitempty"` + // TablesSizeBytes: The total size of tables in bytes. + TablesSizeBytes int64 `json:"tablesSizeBytes,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Average") to + // ForceSendFields is a list of field names (e.g. "Objects") 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 @@ -1561,7 +2559,7 @@ type DailyResourceUsageAggregationStats struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Average") to include in + // NullFields is a list of field names (e.g. "Objects") 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 @@ -1570,32 +2568,12 @@ type DailyResourceUsageAggregationStats struct { NullFields []string `json:"-"` } -func (s *DailyResourceUsageAggregationStats) MarshalJSON() ([]byte, error) { - type NoMethod DailyResourceUsageAggregationStats +func (s *DatabaseSchema) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseSchema raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func (s *DailyResourceUsageAggregationStats) UnmarshalJSON(data []byte) error { - type NoMethod DailyResourceUsageAggregationStats - var s1 struct { - Average gensupport.JSONFloat64 `json:"average"` - Median gensupport.JSONFloat64 `json:"median"` - NinteyFifthPercentile gensupport.JSONFloat64 `json:"ninteyFifthPercentile"` - Peak gensupport.JSONFloat64 `json:"peak"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Average = float64(s1.Average) - s.Median = float64(s1.Median) - s.NinteyFifthPercentile = float64(s1.NinteyFifthPercentile) - s.Peak = float64(s1.Peak) - return nil -} - // Date: Represents a whole or partial calendar date, such as a // birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian @@ -2013,6 +2991,14 @@ type DiskUsageSample struct { // them is positive. if both read and write are zero they are ignored. AverageIops float64 `json:"averageIops,omitempty"` + // AverageReadIops: Average read IOPS sampled over a short window. Must + // be non-negative. + AverageReadIops float64 `json:"averageReadIops,omitempty"` + + // AverageWriteIops: Average write IOPS sampled over a short window. + // Must be non-negative. + AverageWriteIops float64 `json:"averageWriteIops,omitempty"` + // ForceSendFields is a list of field names (e.g. "AverageIops") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2039,7 +3025,9 @@ func (s *DiskUsageSample) MarshalJSON() ([]byte, error) { func (s *DiskUsageSample) UnmarshalJSON(data []byte) error { type NoMethod DiskUsageSample var s1 struct { - AverageIops gensupport.JSONFloat64 `json:"averageIops"` + AverageIops gensupport.JSONFloat64 `json:"averageIops"` + AverageReadIops gensupport.JSONFloat64 `json:"averageReadIops"` + AverageWriteIops gensupport.JSONFloat64 `json:"averageWriteIops"` *NoMethod } s1.NoMethod = (*NoMethod)(s) @@ -2047,6 +3035,8 @@ func (s *DiskUsageSample) UnmarshalJSON(data []byte) error { return err } s.AverageIops = float64(s1.AverageIops) + s.AverageReadIops = float64(s1.AverageReadIops) + s.AverageWriteIops = float64(s1.AverageWriteIops) return nil } @@ -2374,6 +3364,8 @@ type GCSPayloadInfo struct { // more information, see [Manually create and upload data // tables](https://cloud.google.com/migrate/stratozone/docs/import-data-p // ortal). + // "IMPORT_JOB_FORMAT_DATABASE_ZIP" - ZIP file with nested CSV files + // generated by a database collector. Format string `json:"format,omitempty"` // Path: The payload path in Google Cloud Storage. @@ -2810,6 +3802,8 @@ type ImportDataFile struct { // more information, see [Manually create and upload data // tables](https://cloud.google.com/migrate/stratozone/docs/import-data-p // ortal). + // "IMPORT_JOB_FORMAT_DATABASE_ZIP" - ZIP file with nested CSV files + // generated by a database collector. Format string `json:"format,omitempty"` // Name: Output only. The name of the file. @@ -2982,9 +3976,21 @@ func (s *ImportJob) MarshalJSON() ([]byte, error) { // ImportRowError: A resource that reports the import job errors at row // level. type ImportRowError struct { + // ArchiveError: Error details for an archive file. + ArchiveError *ImportRowErrorArchiveErrorDetails `json:"archiveError,omitempty"` + + // AssetTitle: The asset title. + AssetTitle string `json:"assetTitle,omitempty"` + + // CsvError: Error details for a CSV file. + CsvError *ImportRowErrorCsvErrorDetails `json:"csvError,omitempty"` + // Errors: The list of errors detected in the row. Errors []*ImportError `json:"errors,omitempty"` + // JsonError: Error details for a JSON file. + JsonError *ImportRowErrorJsonErrorDetails `json:"jsonError,omitempty"` + // RowNumber: The row number where the error was detected. RowNumber int64 `json:"rowNumber,omitempty"` @@ -2994,7 +4000,10 @@ type ImportRowError struct { // VmUuid: The VM UUID. VmUuid string `json:"vmUuid,omitempty"` - // ForceSendFields is a list of field names (e.g. "Errors") to + // XlsxError: Error details for an XLSX file. + XlsxError *ImportRowErrorXlsxErrorDetails `json:"xlsxError,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ArchiveError") 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 @@ -3002,10 +4011,10 @@ type ImportRowError 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 - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "ArchiveError") 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:"-"` @@ -3017,6 +4026,101 @@ func (s *ImportRowError) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ImportRowErrorArchiveErrorDetails: Error details for an archive file. +type ImportRowErrorArchiveErrorDetails struct { + // CsvError: Error details for a CSV file. + CsvError *ImportRowErrorCsvErrorDetails `json:"csvError,omitempty"` + + // FilePath: The file path inside the archive where the error was + // detected. + FilePath string `json:"filePath,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CsvError") 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. "CsvError") 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 *ImportRowErrorArchiveErrorDetails) MarshalJSON() ([]byte, error) { + type NoMethod ImportRowErrorArchiveErrorDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ImportRowErrorCsvErrorDetails: Error details for a CSV file. +type ImportRowErrorCsvErrorDetails struct { + // RowNumber: The row number where the error was detected. + RowNumber int64 `json:"rowNumber,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RowNumber") 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. "RowNumber") 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 *ImportRowErrorCsvErrorDetails) MarshalJSON() ([]byte, error) { + type NoMethod ImportRowErrorCsvErrorDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ImportRowErrorJsonErrorDetails: Error details for a JSON file. +type ImportRowErrorJsonErrorDetails struct { +} + +// ImportRowErrorXlsxErrorDetails: Error details for an XLSX file. +type ImportRowErrorXlsxErrorDetails struct { + // RowNumber: The row number where the error was detected. + RowNumber int64 `json:"rowNumber,omitempty"` + + // Sheet: The name of the sheet where the error was detected. + Sheet string `json:"sheet,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RowNumber") 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. "RowNumber") 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 *ImportRowErrorXlsxErrorDetails) MarshalJSON() ([]byte, error) { + type NoMethod ImportRowErrorXlsxErrorDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // InlinePayloadInfo: A resource that represents the inline import job // payload. type InlinePayloadInfo struct { @@ -3039,6 +4143,8 @@ type InlinePayloadInfo struct { // more information, see [Manually create and upload data // tables](https://cloud.google.com/migrate/stratozone/docs/import-data-p // ortal). + // "IMPORT_JOB_FORMAT_DATABASE_ZIP" - ZIP file with nested CSV files + // generated by a database collector. Format string `json:"format,omitempty"` // Payload: List of payload files. @@ -3080,15 +4186,81 @@ type Insight struct { // on an asset. SoftwareInsight *SoftwareInsight `json:"softwareInsight,omitempty"` - // ForceSendFields is a list of field names (e.g. "GenericInsight") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "GenericInsight") 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. "GenericInsight") 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 *Insight) MarshalJSON() ([]byte, error) { + type NoMethod Insight + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// InsightList: Message containing insights list. +type InsightList struct { + // Insights: Output only. Insights of the list. + Insights []*Insight `json:"insights,omitempty"` + + // UpdateTime: Output only. Update timestamp. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Insights") 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. "Insights") 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 *InsightList) MarshalJSON() ([]byte, error) { + type NoMethod InsightList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Issue: An issue associated with a migration. +type Issue struct { + // CompatibilityIssue: Output only. Details about a compatibility issue. + CompatibilityIssue *IssueCompatibilityIssue `json:"compatibilityIssue,omitempty"` + + // Description: Output only. English description of the issue. + Description string `json:"description,omitempty"` + + // IssueCode: Output only. Unique identifier for this issue type. + IssueCode string `json:"issueCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CompatibilityIssue") + // 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. "GenericInsight") to + // NullFields is a list of field names (e.g. "CompatibilityIssue") 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 @@ -3098,21 +4270,42 @@ type Insight struct { NullFields []string `json:"-"` } -func (s *Insight) MarshalJSON() ([]byte, error) { - type NoMethod Insight +func (s *Issue) MarshalJSON() ([]byte, error) { + type NoMethod Issue raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// InsightList: Message containing insights list. -type InsightList struct { - // Insights: Output only. Insights of the list. - Insights []*Insight `json:"insights,omitempty"` +// IssueCompatibilityIssue: Details about a compatibility issue. +type IssueCompatibilityIssue struct { + // AssociatedObject: Output only. Name of the object associated with + // this compatibility issue relative to the relevant asset. Does not + // represent a fully qualified resource name and is not intended for + // programmatic use. + AssociatedObject string `json:"associatedObject,omitempty"` - // UpdateTime: Output only. Update timestamp. - UpdateTime string `json:"updateTime,omitempty"` + // AssociatedObjectType: Output only. Type of object associated with + // this migration compatibility issue. + // + // Possible values: + // "OBJECT_TYPE_UNSPECIFIED" - An unspecified object type. + // "DATABASE_DEPLOYMENT" - A database deployment object type. + AssociatedObjectType string `json:"associatedObjectType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Insights") to + // AssociatedValue: Output only. A string representation of actual value + // associated with this issue. Some values may contain aggregated + // information, such as a flag name and the actual value assigned to it. + AssociatedValue string `json:"associatedValue,omitempty"` + + // Category: Output only. Category of this compatibility issue. + // + // Possible values: + // "CATEGORY_UNSPECIFIED" - An unspecified compatibility category. + // "DATABASE_FLAG" - Database flag compatibility category. + // "DATABASE_FEATURE" - Database feature compatibility category. + Category string `json:"category,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AssociatedObject") 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 @@ -3120,17 +4313,18 @@ type InsightList struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Insights") 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. "AssociatedObject") 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 *InsightList) MarshalJSON() ([]byte, error) { - type NoMethod InsightList +func (s *IssueCompatibilityIssue) MarshalJSON() ([]byte, error) { + type NoMethod IssueCompatibilityIssue raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -3691,11 +4885,14 @@ func (s *MachinePreferences) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MachineSeries: A Compute Engine machine series. +// MachineSeries: A machine series, for a target product (e.g. Compute +// Engine, Google Cloud VMware Engine). type MachineSeries struct { - // Code: Code to identify a Compute Engine machine series. Consult + // Code: Code to identify a machine series. Consult this for more + // details on the available series for Compute Engine: // https://cloud.google.com/compute/docs/machine-resource#machine_type_comparison - // for more details on the available series. + // Consult this for more details on the available series for Google + // Cloud VMware Engine: https://cloud.google.com/vmware-engine/pricing Code string `json:"code,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to @@ -3767,6 +4964,9 @@ func (s *MemoryUsageSample) UnmarshalJSON(data []byte) error { // MigrationInsight: An insight about potential migrations for an asset. type MigrationInsight struct { + // CloudDatabaseTarget: Output only. A Cloud database migration target. + CloudDatabaseTarget *CloudDatabaseMigrationTarget `json:"cloudDatabaseTarget,omitempty"` + // ComputeEngineSoleTenantTarget: Output only. A Google Compute Engine // Sole Tenant target. ComputeEngineSoleTenantTarget *ComputeEngineSoleTenantMigrationTarget `json:"computeEngineSoleTenantTarget,omitempty"` @@ -3781,25 +4981,27 @@ type MigrationInsight struct { // GkeTarget: Output only. A Google Kubernetes Engine target. GkeTarget *GoogleKubernetesEngineMigrationTarget `json:"gkeTarget,omitempty"` + // Issues: Output only. Issues associated with this migration. + Issues []*Issue `json:"issues,omitempty"` + // VmwareEngineTarget: Output only. A VMWare Engine target. VmwareEngineTarget *VmwareEngineMigrationTarget `json:"vmwareEngineTarget,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "ComputeEngineSoleTenantTarget") 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 is a list of field names (e.g. "CloudDatabaseTarget") + // 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. - // "ComputeEngineSoleTenantTarget") 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. "CloudDatabaseTarget") 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:"-"` } @@ -3849,6 +5051,69 @@ func (s *Money) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MysqlDatabaseDeployment: Specific details for a Mysql database +// deployment. +type MysqlDatabaseDeployment struct { + // Plugins: Optional. List of Mysql plugins. + Plugins []*MysqlPlugin `json:"plugins,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Plugins") 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. "Plugins") 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 *MysqlDatabaseDeployment) MarshalJSON() ([]byte, error) { + type NoMethod MysqlDatabaseDeployment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MysqlPlugin: Mysql plugin. +type MysqlPlugin struct { + // Enabled: Required. The plugin is active. + Enabled bool `json:"enabled,omitempty"` + + // Plugin: Required. The plugin name. + Plugin string `json:"plugin,omitempty"` + + // Version: Required. The plugin version. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") 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 *MysqlPlugin) MarshalJSON() ([]byte, error) { + type NoMethod MysqlPlugin + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // NetworkAdapterDetails: Details of network adapter. type NetworkAdapterDetails struct { // AdapterType: Network adapter type (e.g. VMXNET3). @@ -4495,6 +5760,11 @@ func (s *PlatformDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PostgreSqlDatabaseDeployment: Specific details for a PostgreSQL +// database deployment. +type PostgreSqlDatabaseDeployment struct { +} + // PreferenceSet: The preferences that apply to all assets in a given // context. type PreferenceSet struct { @@ -4502,6 +5772,10 @@ type PreferenceSet struct { // created. CreateTime string `json:"createTime,omitempty"` + // DatabasePreferences: Optional. A set of preferences that applies to + // all databases in the context. + DatabasePreferences *DatabasePreferences `json:"databasePreferences,omitempty"` + // Description: A description of the preference set. Description string `json:"description,omitempty"` @@ -4512,6 +5786,12 @@ type PreferenceSet struct { // Name: Output only. Name of the preference set. Name string `json:"name,omitempty"` + // RegionPreferences: Optional. Region preferences for assets using this + // preference set. If you are unsure which value to set, the migration + // service API region is often a good value to start with. If + // unspecified, VirtualMachinePreferences.RegionPreferences is used. + RegionPreferences *RegionPreferences `json:"regionPreferences,omitempty"` + // UpdateTime: Output only. The timestamp when the preference set was // last updated. UpdateTime string `json:"updateTime,omitempty"` @@ -4794,9 +6074,17 @@ type ReportSummary struct { // groups. AllAssetsStats *ReportSummaryAssetAggregateStats `json:"allAssetsStats,omitempty"` + // DatabaseStats: Output only. Aggregate statistics for unique database + // assets across all the groups. + DatabaseStats *ReportSummaryAssetAggregateStats `json:"databaseStats,omitempty"` + // GroupFindings: Findings for each Group included in this report. GroupFindings []*ReportSummaryGroupFinding `json:"groupFindings,omitempty"` + // VirtualMachineStats: Output only. Aggregate statistics for unique + // virtual machine assets across all the groups. + VirtualMachineStats *ReportSummaryAssetAggregateStats `json:"virtualMachineStats,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllAssetsStats") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -4831,6 +6119,11 @@ type ReportSummaryAssetAggregateStats struct { // counts. CoreCountHistogram *ReportSummaryHistogramChartData `json:"coreCountHistogram,omitempty"` + // DatabaseTypes: Output only. Count of assets grouped by database type. + // Keys here are taken from DatabaseType enum. Only present for + // databases. + DatabaseTypes *ReportSummaryChartData `json:"databaseTypes,omitempty"` + // MemoryBytesHistogram: Histogram showing a distribution of memory // sizes. MemoryBytesHistogram *ReportSummaryHistogramChartData `json:"memoryBytesHistogram,omitempty"` @@ -4970,18 +6263,73 @@ func (s *ReportSummaryChartDataDataPoint) UnmarshalJSON(data []byte) error { return nil } +// ReportSummaryDatabaseFinding: DatabaseFinding contains an aggregate +// costs and shapes for a single database type. +type ReportSummaryDatabaseFinding struct { + // AllocatedAssetCount: Output only. Number of database assets which + // were successfully assigned in this finding. + AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"` + + // TotalAssets: Output only. Number of database assets in this finding. + TotalAssets int64 `json:"totalAssets,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") + // 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. "AllocatedAssetCount") 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 *ReportSummaryDatabaseFinding) MarshalJSON() ([]byte, error) { + type NoMethod ReportSummaryDatabaseFinding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ReportSummaryGroupFinding: Summary Findings for a specific Group. type ReportSummaryGroupFinding struct { // AssetAggregateStats: Summary statistics for all the assets in this // group. AssetAggregateStats *ReportSummaryAssetAggregateStats `json:"assetAggregateStats,omitempty"` + // AssetType: Output only. Asset type for the group finding. + // + // Possible values: + // "ASSET_TYPE_UNSPECIFIED" - Unknown asset type. + // "VIRTUAL_MACHINE" - Virtual Machine asset type + // "DATABASE" - Database asset type + AssetType string `json:"assetType,omitempty"` + + // DatabaseType: Output only. Source asset database type for the group + // finding. Only present for databases. + // + // Possible values: + // "DATABASE_TYPE_UNSPECIFIED" - Unknown database type. + // "SQL_SERVER" - SQL Server database. + // "MYSQL" - MySQL database. + // "POSTGRES" - Postgres database. + DatabaseType string `json:"databaseType,omitempty"` + // Description: Description for this group finding. Description string `json:"description,omitempty"` // DisplayName: Display Name for this group finding. DisplayName string `json:"displayName,omitempty"` + // Group: Output only. Full name of the group. + Group string `json:"group,omitempty"` + // OverlappingAssetCount: This field is deprecated, do not rely on it // having a value. OverlappingAssetCount int64 `json:"overlappingAssetCount,omitempty,string"` @@ -5017,6 +6365,10 @@ func (s *ReportSummaryGroupFinding) MarshalJSON() ([]byte, error) { // ReportSummaryGroupPreferenceSetFinding: Summary Findings for a // specific Group/PreferenceSet combination. type ReportSummaryGroupPreferenceSetFinding struct { + // DatabaseFinding: Output only. Details about databases in this + // finding. Only present for databases. + DatabaseFinding *ReportSummaryDatabaseFinding `json:"databaseFinding,omitempty"` + // Description: Description for the Preference Set. Description string `json:"description,omitempty"` @@ -5034,6 +6386,15 @@ type ReportSummaryGroupPreferenceSetFinding struct { // MonthlyCostCompute: Compute monthly cost for this preference set. MonthlyCostCompute *Money `json:"monthlyCostCompute,omitempty"` + // MonthlyCostDatabaseBackup: Output only. Backup monthly cost for this + // preference set. Only present for databases. + MonthlyCostDatabaseBackup *Money `json:"monthlyCostDatabaseBackup,omitempty"` + + // MonthlyCostDatabaseLicensing: Output only. Database licensing monthly + // cost for this preference set. For virtual machines denotes the cost + // of licenses for hosted databases. + MonthlyCostDatabaseLicensing *Money `json:"monthlyCostDatabaseLicensing,omitempty"` + // MonthlyCostNetworkEgress: Network Egress monthly cost for this // preference set. Only present for virtual machines. MonthlyCostNetworkEgress *Money `json:"monthlyCostNetworkEgress,omitempty"` @@ -5051,6 +6412,10 @@ type ReportSummaryGroupPreferenceSetFinding struct { // MonthlyCostTotal: Total monthly cost for this preference set. MonthlyCostTotal *Money `json:"monthlyCostTotal,omitempty"` + // PreferenceSet: Output only. A copy of the preference set used for + // this finding. + PreferenceSet *PreferenceSet `json:"preferenceSet,omitempty"` + // PreferredRegion: Target region for this Preference Set PreferredRegion string `json:"preferredRegion,omitempty"` @@ -5070,7 +6435,7 @@ type ReportSummaryGroupPreferenceSetFinding struct { // machines in the input. Only present for virtual machines. VmwareEngineFinding *ReportSummaryVMWareEngineFinding `json:"vmwareEngineFinding,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to + // ForceSendFields is a list of field names (e.g. "DatabaseFinding") 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 @@ -5078,12 +6443,13 @@ type ReportSummaryGroupPreferenceSetFinding struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") 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. "DatabaseFinding") 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:"-"` } @@ -5989,6 +7355,148 @@ func (s *Source) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SqlServerDatabaseDeployment: Specific details for a Microsoft SQL +// Server database deployment. +type SqlServerDatabaseDeployment struct { + // Features: Optional. List of SQL Server features. + Features []*SqlServerFeature `json:"features,omitempty"` + + // ServerFlags: Optional. List of SQL Server server flags. + ServerFlags []*SqlServerServerFlag `json:"serverFlags,omitempty"` + + // TraceFlags: Optional. List of SQL Server trace flags. + TraceFlags []*SqlServerTraceFlag `json:"traceFlags,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Features") 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. "Features") 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 *SqlServerDatabaseDeployment) MarshalJSON() ([]byte, error) { + type NoMethod SqlServerDatabaseDeployment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SqlServerFeature: SQL Server feature details. +type SqlServerFeature struct { + // Enabled: Required. Field enabled is set when a feature is used on the + // source deployment. + Enabled bool `json:"enabled,omitempty"` + + // FeatureName: Required. The feature name. + FeatureName string `json:"featureName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") 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. "Enabled") 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 *SqlServerFeature) MarshalJSON() ([]byte, error) { + type NoMethod SqlServerFeature + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SqlServerServerFlag: SQL Server server flag details. +type SqlServerServerFlag struct { + // ServerFlagName: Required. The server flag name. + ServerFlagName string `json:"serverFlagName,omitempty"` + + // Value: Required. The server flag value set by the user. + Value string `json:"value,omitempty"` + + // ValueInUse: Required. The server flag actual value. If `value_in_use` + // is different from `value` it means that either the configuration + // change was not applied or it is an expected behavior. See SQL Server + // documentation for more details. + ValueInUse string `json:"valueInUse,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ServerFlagName") 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. "ServerFlagName") 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 *SqlServerServerFlag) MarshalJSON() ([]byte, error) { + type NoMethod SqlServerServerFlag + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SqlServerTraceFlag: SQL Server trace flag details. +type SqlServerTraceFlag struct { + // Scope: Required. The trace flag scope. + // + // Possible values: + // "SCOPE_UNSPECIFIED" - Unspecified. + // "OFF" - Off. + // "GLOBAL" - Global. + // "SESSION" - Session. + Scope string `json:"scope,omitempty"` + + // TraceFlagName: Required. The trace flag name. + TraceFlagName string `json:"traceFlagName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Scope") 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. "Scope") 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 *SqlServerTraceFlag) MarshalJSON() ([]byte, error) { + type NoMethod SqlServerTraceFlag + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Status: 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 diff --git a/serviceconsumermanagement/v1/serviceconsumermanagement-api.json b/serviceconsumermanagement/v1/serviceconsumermanagement-api.json index 390578a7224..669d8ffe93a 100644 --- a/serviceconsumermanagement/v1/serviceconsumermanagement-api.json +++ b/serviceconsumermanagement/v1/serviceconsumermanagement-api.json @@ -542,7 +542,7 @@ } } }, - "revision": "20231217", + "revision": "20240414", "rootUrl": "https://serviceconsumermanagement.googleapis.com/", "schemas": { "AddTenantProjectRequest": { @@ -1826,10 +1826,10 @@ }, "longRunning": { "$ref": "LongRunning", - "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes" + "description": "Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: 60s # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: 360s # 6 minutes total_poll_timeout: 54000s # 90 minutes" }, "selector": { - "description": "The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options.", + "description": "The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options. Example: publishing: method_settings: - selector: google.storage.control.v2.StorageControl.CreateFolder # method settings for CreateFolder...", "type": "string" } }, diff --git a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go index b414187f0f1..7b1d2d5ac4a 100644 --- a/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go +++ b/serviceconsumermanagement/v1/serviceconsumermanagement-gen.go @@ -2613,14 +2613,16 @@ type MethodSettings struct { // annotations in google/longrunning/operations.proto. Example of a YAML // configuration:: publishing: method_settings: - selector: // google.cloud.speech.v2.Speech.BatchRecognize long_running: - // initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 - // max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: - // 54000 # 90 minutes + // initial_poll_delay: 60s # 1 minute poll_delay_multiplier: 1.5 + // max_poll_delay: 360s # 6 minutes total_poll_timeout: 54000s # 90 + // minutes LongRunning *LongRunning `json:"longRunning,omitempty"` // Selector: The fully qualified name of the method, for which the // options below apply. This is used to find the method to apply the - // options. + // options. Example: publishing: method_settings: - selector: + // google.storage.control.v2.StorageControl.CreateFolder # method + // settings for CreateFolder... Selector string `json:"selector,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoPopulatedFields") diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index cc4b44c5413..d84189069aa 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -2970,7 +2970,7 @@ } } }, - "revision": "20240320", + "revision": "20240410", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "AutoscalingConfig": { @@ -3289,7 +3289,7 @@ "id": "CommitRequest", "properties": { "maxCommitDelay": { - "description": "Optional. The amount of latency this request is willing to incur in order to improve throughput. If this field is not set, Spanner assumes requests are relatively latency sensitive and automatically determines an appropriate delay time. You can specify a batching delay value between 0 and 500 ms.", + "description": "Optional. The amount of latency this request is configured to incur in order to improve throughput. If this field is not set, Spanner assumes requests are relatively latency sensitive and automatically determines an appropriate delay time. You can specify a commit delay value between 0 and 500 ms.", "format": "google-duration", "type": "string" }, diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index 432594e2631..6a1caece49f 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -1029,10 +1029,10 @@ func (s *ChildLink) MarshalJSON() ([]byte, error) { // CommitRequest: The request for Commit. type CommitRequest struct { // MaxCommitDelay: Optional. The amount of latency this request is - // willing to incur in order to improve throughput. If this field is not - // set, Spanner assumes requests are relatively latency sensitive and - // automatically determines an appropriate delay time. You can specify a - // batching delay value between 0 and 500 ms. + // configured to incur in order to improve throughput. If this field is + // not set, Spanner assumes requests are relatively latency sensitive + // and automatically determines an appropriate delay time. You can + // specify a commit delay value between 0 and 500 ms. MaxCommitDelay string `json:"maxCommitDelay,omitempty"` // Mutations: The mutations to be executed when this transaction diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index e649f11e904..4661cec9053 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -4037,7 +4037,7 @@ } } }, - "revision": "20240414", + "revision": "20240417", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { @@ -8285,6 +8285,7 @@ "type": "boolean" }, "startWithSlate": { + "deprecated": true, "description": "This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.", "type": "boolean" },