From b60428acf98df8a71bc800574823220280a1d858 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 21 Jan 2025 08:10:58 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- .../v1alpha/adsenseplatform-api.json | 36 +++++- .../v1alpha/adsenseplatform-gen.go | 116 ++++++++++++++++++ aiplatform/v1/aiplatform-api.json | 16 ++- aiplatform/v1/aiplatform-gen.go | 26 ++-- aiplatform/v1beta1/aiplatform-api.json | 16 ++- aiplatform/v1beta1/aiplatform-gen.go | 26 ++-- netapp/v1/netapp-api.json | 7 +- netapp/v1/netapp-gen.go | 2 + netapp/v1beta1/netapp-api.json | 7 +- netapp/v1beta1/netapp-gen.go | 2 + 10 files changed, 225 insertions(+), 29 deletions(-) diff --git a/adsenseplatform/v1alpha/adsenseplatform-api.json b/adsenseplatform/v1alpha/adsenseplatform-api.json index 5bee5b992f..3f78427196 100644 --- a/adsenseplatform/v1alpha/adsenseplatform-api.json +++ b/adsenseplatform/v1alpha/adsenseplatform-api.json @@ -217,6 +217,40 @@ "https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly" ] + }, + "patch": { + "description": "Update a Platform Child Site.", + "flatPath": "v1alpha/accounts/{accountsId}/platforms/{platformsId}/childAccounts/{childAccountsId}/sites/{sitesId}", + "httpMethod": "PATCH", + "id": "adsenseplatform.accounts.platforms.childAccounts.sites.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Format: accounts/{account}/platforms/{platform}/childAccounts/{child}/sites/{platformChildSite}", + "location": "path", + "pattern": "^accounts/[^/]+/platforms/[^/]+/childAccounts/[^/]+/sites/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Optional. The list of fields to update - currently only supports updating the `platform_group` field.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "PlatformChildSite" + }, + "response": { + "$ref": "PlatformChildSite" + }, + "scopes": [ + "https://www.googleapis.com/auth/adsense" + ] } } } @@ -605,7 +639,7 @@ } } }, - "revision": "20250115", + "revision": "20250120", "rootUrl": "https://adsenseplatform.googleapis.com/", "schemas": { "Account": { diff --git a/adsenseplatform/v1alpha/adsenseplatform-gen.go b/adsenseplatform/v1alpha/adsenseplatform-gen.go index 25dfa07c50..3d8c1d47bc 100644 --- a/adsenseplatform/v1alpha/adsenseplatform-gen.go +++ b/adsenseplatform/v1alpha/adsenseplatform-gen.go @@ -729,6 +729,9 @@ type PlatformChildSite struct { // PlatformGroup: Resource name of the Platform Group of the Platform Child // Site. PlatformGroup string `json:"platformGroup,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Domain") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -1265,6 +1268,119 @@ func (c *AccountsPlatformsChildAccountsSitesListCall) Pages(ctx context.Context, } } +type AccountsPlatformsChildAccountsSitesPatchCall struct { + s *Service + name string + platformchildsite *PlatformChildSite + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update a Platform Child Site. +// +// - name: Identifier. Format: +// accounts/{account}/platforms/{platform}/childAccounts/{child}/sites/{platfo +// rmChildSite}. +func (r *AccountsPlatformsChildAccountsSitesService) Patch(name string, platformchildsite *PlatformChildSite) *AccountsPlatformsChildAccountsSitesPatchCall { + c := &AccountsPlatformsChildAccountsSitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.platformchildsite = platformchildsite + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of fields to +// update - currently only supports updating the `platform_group` field. +func (c *AccountsPlatformsChildAccountsSitesPatchCall) UpdateMask(updateMask string) *AccountsPlatformsChildAccountsSitesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *AccountsPlatformsChildAccountsSitesPatchCall) Fields(s ...googleapi.Field) *AccountsPlatformsChildAccountsSitesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsPlatformsChildAccountsSitesPatchCall) Context(ctx context.Context) *AccountsPlatformsChildAccountsSitesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *AccountsPlatformsChildAccountsSitesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsPlatformsChildAccountsSitesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.platformchildsite) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "adsenseplatform.accounts.platforms.childAccounts.sites.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "adsenseplatform.accounts.platforms.childAccounts.sites.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *PlatformChildSite.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 *AccountsPlatformsChildAccountsSitesPatchCall) Do(opts ...googleapi.CallOption) (*PlatformChildSite, 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 := &PlatformChildSite{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "adsenseplatform.accounts.platforms.childAccounts.sites.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type AccountsPlatformsGroupsListCall struct { s *Service parent string diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index b6b88d1fe5..feec576134 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -19327,7 +19327,7 @@ } } }, - "revision": "20250107", + "revision": "20250114", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -41855,6 +41855,14 @@ "description": "Tuning data statistics for Supervised Tuning.", "id": "GoogleCloudAiplatformV1SupervisedTuningDataStats", "properties": { + "droppedExampleReasons": { + "description": "Output only. For each index in `truncated_example_indices`, the user-facing reason why the example was dropped. Must not include example itself.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "totalBillableCharacterCount": { "deprecated": true, "description": "Output only. Number of billable characters in the tuning dataset.", @@ -41869,8 +41877,9 @@ "type": "string" }, "totalTruncatedExampleCount": { - "description": "The number of examples in the dataset that have been truncated by any amount.", + "description": "Output only. The number of examples in the dataset that have been dropped. An example can be dropped for reasons including: too many tokens, contains an invalid image, contains too many images, etc.", "format": "int64", + "readOnly": true, "type": "string" }, "totalTuningCharacterCount": { @@ -41880,11 +41889,12 @@ "type": "string" }, "truncatedExampleIndices": { - "description": "A partial sample of the indices (starting from 1) of the truncated examples.", + "description": "Output only. A partial sample of the indices (starting from 1) of the dropped examples.", "items": { "format": "int64", "type": "string" }, + "readOnly": true, "type": "array" }, "tuningDatasetExampleCount": { diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 8ebeffab46..b9949b3d8a 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -34238,20 +34238,26 @@ func (s *GoogleCloudAiplatformV1SupervisedHyperParameters) UnmarshalJSON(data [] // GoogleCloudAiplatformV1SupervisedTuningDataStats: Tuning data statistics for // Supervised Tuning. type GoogleCloudAiplatformV1SupervisedTuningDataStats struct { + // DroppedExampleReasons: Output only. For each index in + // `truncated_example_indices`, the user-facing reason why the example was + // dropped. Must not include example itself. + DroppedExampleReasons []string `json:"droppedExampleReasons,omitempty"` // TotalBillableCharacterCount: Output only. Number of billable characters in // the tuning dataset. TotalBillableCharacterCount int64 `json:"totalBillableCharacterCount,omitempty,string"` // TotalBillableTokenCount: Output only. Number of billable tokens in the // tuning dataset. TotalBillableTokenCount int64 `json:"totalBillableTokenCount,omitempty,string"` - // TotalTruncatedExampleCount: The number of examples in the dataset that have - // been truncated by any amount. + // TotalTruncatedExampleCount: Output only. The number of examples in the + // dataset that have been dropped. An example can be dropped for reasons + // including: too many tokens, contains an invalid image, contains too many + // images, etc. TotalTruncatedExampleCount int64 `json:"totalTruncatedExampleCount,omitempty,string"` // TotalTuningCharacterCount: Output only. Number of tuning characters in the // tuning dataset. TotalTuningCharacterCount int64 `json:"totalTuningCharacterCount,omitempty,string"` - // TruncatedExampleIndices: A partial sample of the indices (starting from 1) - // of the truncated examples. + // TruncatedExampleIndices: Output only. A partial sample of the indices + // (starting from 1) of the dropped examples. TruncatedExampleIndices googleapi.Int64s `json:"truncatedExampleIndices,omitempty"` // TuningDatasetExampleCount: Output only. Number of examples in the tuning // dataset. @@ -34270,13 +34276,13 @@ type GoogleCloudAiplatformV1SupervisedTuningDataStats struct { // UserOutputTokenDistribution: Output only. Dataset distributions for the user // output tokens. UserOutputTokenDistribution *GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution `json:"userOutputTokenDistribution,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "TotalBillableCharacterCount") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. + // ForceSendFields is a list of field names (e.g. "DroppedExampleReasons") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "TotalBillableCharacterCount") to + // NullFields is a list of field names (e.g. "DroppedExampleReasons") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index ace3caf56a..e2b8668061 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -21964,7 +21964,7 @@ } } }, - "revision": "20250107", + "revision": "20250114", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -47674,6 +47674,14 @@ "description": "Tuning data statistics for Supervised Tuning.", "id": "GoogleCloudAiplatformV1beta1SupervisedTuningDataStats", "properties": { + "droppedExampleReasons": { + "description": "Output only. For each index in `truncated_example_indices`, the user-facing reason why the example was dropped. Must not include example itself.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "totalBillableCharacterCount": { "deprecated": true, "description": "Output only. Number of billable characters in the tuning dataset.", @@ -47688,8 +47696,9 @@ "type": "string" }, "totalTruncatedExampleCount": { - "description": "The number of examples in the dataset that have been truncated by any amount.", + "description": "Output only. The number of examples in the dataset that have been dropped. An example can be dropped for reasons including: too many tokens, contains an invalid image, contains too many images, etc.", "format": "int64", + "readOnly": true, "type": "string" }, "totalTuningCharacterCount": { @@ -47699,11 +47708,12 @@ "type": "string" }, "truncatedExampleIndices": { - "description": "A partial sample of the indices (starting from 1) of the truncated examples.", + "description": "Output only. A partial sample of the indices (starting from 1) of the dropped examples.", "items": { "format": "int64", "type": "string" }, + "readOnly": true, "type": "array" }, "tuningDatasetExampleCount": { diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index 00583458f0..ae3752d17b 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -38989,20 +38989,26 @@ func (s *GoogleCloudAiplatformV1beta1SupervisedHyperParameters) UnmarshalJSON(da // GoogleCloudAiplatformV1beta1SupervisedTuningDataStats: Tuning data // statistics for Supervised Tuning. type GoogleCloudAiplatformV1beta1SupervisedTuningDataStats struct { + // DroppedExampleReasons: Output only. For each index in + // `truncated_example_indices`, the user-facing reason why the example was + // dropped. Must not include example itself. + DroppedExampleReasons []string `json:"droppedExampleReasons,omitempty"` // TotalBillableCharacterCount: Output only. Number of billable characters in // the tuning dataset. TotalBillableCharacterCount int64 `json:"totalBillableCharacterCount,omitempty,string"` // TotalBillableTokenCount: Output only. Number of billable tokens in the // tuning dataset. TotalBillableTokenCount int64 `json:"totalBillableTokenCount,omitempty,string"` - // TotalTruncatedExampleCount: The number of examples in the dataset that have - // been truncated by any amount. + // TotalTruncatedExampleCount: Output only. The number of examples in the + // dataset that have been dropped. An example can be dropped for reasons + // including: too many tokens, contains an invalid image, contains too many + // images, etc. TotalTruncatedExampleCount int64 `json:"totalTruncatedExampleCount,omitempty,string"` // TotalTuningCharacterCount: Output only. Number of tuning characters in the // tuning dataset. TotalTuningCharacterCount int64 `json:"totalTuningCharacterCount,omitempty,string"` - // TruncatedExampleIndices: A partial sample of the indices (starting from 1) - // of the truncated examples. + // TruncatedExampleIndices: Output only. A partial sample of the indices + // (starting from 1) of the dropped examples. TruncatedExampleIndices googleapi.Int64s `json:"truncatedExampleIndices,omitempty"` // TuningDatasetExampleCount: Output only. Number of examples in the tuning // dataset. @@ -39021,13 +39027,13 @@ type GoogleCloudAiplatformV1beta1SupervisedTuningDataStats struct { // UserOutputTokenDistribution: Output only. Dataset distributions for the user // output tokens. UserOutputTokenDistribution *GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution `json:"userOutputTokenDistribution,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "TotalBillableCharacterCount") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. + // ForceSendFields is a list of field names (e.g. "DroppedExampleReasons") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "TotalBillableCharacterCount") to + // NullFields is a list of field names (e.g. "DroppedExampleReasons") to // include in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/netapp/v1/netapp-api.json b/netapp/v1/netapp-api.json index 41c29d6fbe..8d02c1714b 100644 --- a/netapp/v1/netapp-api.json +++ b/netapp/v1/netapp-api.json @@ -2097,7 +2097,7 @@ } } }, - "revision": "20241209", + "revision": "20250116", "rootUrl": "https://netapp.googleapis.com/", "schemas": { "ActiveDirectory": { @@ -3117,6 +3117,11 @@ "description": "Instructions for mounting", "type": "string" }, + "ipAddress": { + "description": "Output only. IP Address.", + "readOnly": true, + "type": "string" + }, "protocol": { "description": "Protocol to mount with.", "enum": [ diff --git a/netapp/v1/netapp-gen.go b/netapp/v1/netapp-gen.go index 2375481a5b..9f25a0f929 100644 --- a/netapp/v1/netapp-gen.go +++ b/netapp/v1/netapp-gen.go @@ -1395,6 +1395,8 @@ type MountOption struct { ExportFull string `json:"exportFull,omitempty"` // Instructions: Instructions for mounting Instructions string `json:"instructions,omitempty"` + // IpAddress: Output only. IP Address. + IpAddress string `json:"ipAddress,omitempty"` // Protocol: Protocol to mount with. // // Possible values: diff --git a/netapp/v1beta1/netapp-api.json b/netapp/v1beta1/netapp-api.json index 43c00d1324..d4013ffdc1 100644 --- a/netapp/v1beta1/netapp-api.json +++ b/netapp/v1beta1/netapp-api.json @@ -2097,7 +2097,7 @@ } } }, - "revision": "20241209", + "revision": "20250116", "rootUrl": "https://netapp.googleapis.com/", "schemas": { "ActiveDirectory": { @@ -3117,6 +3117,11 @@ "description": "Instructions for mounting", "type": "string" }, + "ipAddress": { + "description": "Output only. IP Address.", + "readOnly": true, + "type": "string" + }, "protocol": { "description": "Protocol to mount with.", "enum": [ diff --git a/netapp/v1beta1/netapp-gen.go b/netapp/v1beta1/netapp-gen.go index 3bb76f6ce0..8417fb9f9a 100644 --- a/netapp/v1beta1/netapp-gen.go +++ b/netapp/v1beta1/netapp-gen.go @@ -1395,6 +1395,8 @@ type MountOption struct { ExportFull string `json:"exportFull,omitempty"` // Instructions: Instructions for mounting Instructions string `json:"instructions,omitempty"` + // IpAddress: Output only. IP Address. + IpAddress string `json:"ipAddress,omitempty"` // Protocol: Protocol to mount with. // // Possible values: