From 6923ec8ab79fa209cbe9bcea6f193155965ee030 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 11 May 2024 00:22:18 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2581) --- admin/directory/v1/admin-api.json | 25 +- admin/directory/v1/admin-gen.go | 21 +- clouddeploy/v1/clouddeploy-api.json | 30 +- clouddeploy/v1/clouddeploy-gen.go | 43 +- container/v1beta1/container-api.json | 28 +- container/v1beta1/container-gen.go | 18 + .../v1/containeranalysis-api.json | 57 +- containeranalysis/v1/containeranalysis-gen.go | 87 +- .../v1alpha1/containeranalysis-api.json | 53 +- .../v1alpha1/containeranalysis-gen.go | 85 +- .../v1beta1/containeranalysis-api.json | 53 +- .../v1beta1/containeranalysis-gen.go | 85 +- dialogflow/v2/dialogflow-api.json | 22 +- dialogflow/v2/dialogflow-gen.go | 12 + dialogflow/v2beta1/dialogflow-api.json | 22 +- dialogflow/v2beta1/dialogflow-gen.go | 12 + dialogflow/v3/dialogflow-api.json | 30 +- dialogflow/v3/dialogflow-gen.go | 17 +- dialogflow/v3beta1/dialogflow-api.json | 30 +- dialogflow/v3beta1/dialogflow-gen.go | 17 +- logging/v2/logging-api.json | 7 +- logging/v2/logging-gen.go | 3 + .../v1beta1/networkmanagement-api.json | 312 +------- .../v1beta1/networkmanagement-gen.go | 744 ------------------ orgpolicy/v2/orgpolicy-api.json | 8 +- orgpolicy/v2/orgpolicy-gen.go | 1 + pagespeedonline/v5/pagespeedonline-api.json | 15 +- pagespeedonline/v5/pagespeedonline-gen.go | 4 +- 28 files changed, 716 insertions(+), 1125 deletions(-) diff --git a/admin/directory/v1/admin-api.json b/admin/directory/v1/admin-api.json index 502f32aa870..d9f70e99465 100644 --- a/admin/directory/v1/admin-api.json +++ b/admin/directory/v1/admin-api.json @@ -403,7 +403,7 @@ }, "maxResults": { "default": "100", - "description": "Maximum number of results to return.", + "description": "Maximum number of results to return, value should not exceed 300.", "format": "int32", "location": "query", "minimum": "1", @@ -441,7 +441,7 @@ "type": "string" }, "projection": { - "description": "Restrict information returned to a set of selected fields.", + "description": "Determines whether the response contains the full list of properties or only a subset.", "enum": [ "BASIC", "FULL" @@ -535,7 +535,7 @@ "type": "string" }, "projection": { - "description": "Restrict information returned to a set of selected fields.", + "description": "Determines whether the response contains the full list of properties or only a subset.", "enum": [ "BASIC", "FULL" @@ -582,7 +582,7 @@ "type": "string" }, "projection": { - "description": "Restrict information returned to a set of selected fields.", + "description": "Determines whether the response contains the full list of properties or only a subset.", "enum": [ "BASIC", "FULL" @@ -4671,7 +4671,7 @@ } } }, - "revision": "20240507", + "revision": "20240509", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Alias": { @@ -5425,6 +5425,21 @@ "description": "The boot mode for the device. The possible values are: * `Verified`: The device is running a valid version of the Chrome OS. * `Dev`: The devices's developer hardware switch is enabled. When booted, the device has a command line shell. For an example of a developer switch, see the [Chromebook developer information](https://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices/samsung-series-5-chromebook#TOC-Developer-switch).", "type": "string" }, + "chromeOsType": { + "description": "Output only. Chrome OS type of the device.", + "enum": [ + "chromeOsTypeUnspecified", + "chromeOsFlex", + "chromeOs" + ], + "enumDescriptions": [ + "Chrome OS Type unspecified.", + "Chrome OS Type Chrome OS Flex.", + "Chrome OS Type Chrome OS." + ], + "readOnly": true, + "type": "string" + }, "cpuInfo": { "description": "Information regarding CPU specs in the device.", "items": { diff --git a/admin/directory/v1/admin-gen.go b/admin/directory/v1/admin-gen.go index 1507ac50c46..38b77ab0f90 100644 --- a/admin/directory/v1/admin-gen.go +++ b/admin/directory/v1/admin-gen.go @@ -1527,6 +1527,13 @@ type ChromeOsDevice struct { // Chromebook developer information // (https://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices/samsung-series-5-chromebook#TOC-Developer-switch). BootMode string `json:"bootMode,omitempty"` + // ChromeOsType: Output only. Chrome OS type of the device. + // + // Possible values: + // "chromeOsTypeUnspecified" - Chrome OS Type unspecified. + // "chromeOsFlex" - Chrome OS Type Chrome OS Flex. + // "chromeOs" - Chrome OS Type Chrome OS. + ChromeOsType string `json:"chromeOsType,omitempty"` // CpuInfo: Information regarding CPU specs in the device. CpuInfo []*ChromeOsDeviceCpuInfo `json:"cpuInfo,omitempty"` // CpuStatusReports: Reports of CPU utilization and temperature (Read-only) @@ -5953,7 +5960,7 @@ func (c *ChromeosdevicesListCall) IncludeChildOrgunits(includeChildOrgunits bool } // MaxResults sets the optional parameter "maxResults": Maximum number of -// results to return. +// results to return, value should not exceed 300. func (c *ChromeosdevicesListCall) MaxResults(maxResults int64) *ChromeosdevicesListCall { c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) return c @@ -6002,8 +6009,8 @@ func (c *ChromeosdevicesListCall) PageToken(pageToken string) *ChromeosdevicesLi return c } -// Projection sets the optional parameter "projection": Restrict information -// returned to a set of selected fields. +// Projection sets the optional parameter "projection": Determines whether the +// response contains the full list of properties or only a subset. // // Possible values: // @@ -6258,8 +6265,8 @@ func (r *ChromeosdevicesService) Patch(customerId string, deviceId string, chrom return c } -// Projection sets the optional parameter "projection": Restrict information -// returned to a set of selected fields. +// Projection sets the optional parameter "projection": Determines whether the +// response contains the full list of properties or only a subset. // // Possible values: // @@ -6384,8 +6391,8 @@ func (r *ChromeosdevicesService) Update(customerId string, deviceId string, chro return c } -// Projection sets the optional parameter "projection": Restrict information -// returned to a set of selected fields. +// Projection sets the optional parameter "projection": Determines whether the +// response contains the full list of properties or only a subset. // // Possible values: // diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index ae7c5a9b2d2..bbef59b9a78 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -409,7 +409,7 @@ "type": "boolean" }, "name": { - "description": "Optional. Name of the `CustomTargetType`. Format is `projects/{project}/locations/{location}/customTargetTypes/a-z{0,62}`.", + "description": "Optional. Name of the `CustomTargetType`. Format is `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`. The `customTargetType` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/customTargetTypes/[^/]+$", "required": true, @@ -685,7 +685,7 @@ "type": "boolean" }, "name": { - "description": "Optional. Name of the `DeliveryPipeline`. Format is `projects/{project}/locations/{location}/deliveryPipelines/a-z{0,62}`.", + "description": "Optional. Name of the `DeliveryPipeline`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`. The `deliveryPipeline` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", "required": true, @@ -1968,7 +1968,7 @@ "type": "boolean" }, "name": { - "description": "Optional. Name of the `Target`. Format is `projects/{project}/locations/{location}/targets/a-z{0,62}`.", + "description": "Optional. Name of the `Target`. Format is `projects/{project}/locations/{location}/targets/{target}`. The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/targets/[^/]+$", "required": true, @@ -2065,7 +2065,7 @@ } } }, - "revision": "20240428", + "revision": "20240505", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -2091,7 +2091,7 @@ "id": "AdvanceChildRolloutJobRun", "properties": { "rollout": { - "description": "Output only. Name of the `ChildRollout`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/a-z{0,62}`.", + "description": "Output only. Name of the `ChildRollout`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.", "readOnly": true, "type": "string" }, @@ -2158,7 +2158,7 @@ "readOnly": true }, "id": { - "description": "Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `a-z{0,62}`.", + "description": "Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.", "type": "string" }, "sourcePhases": { @@ -2886,7 +2886,7 @@ "id": "CreateChildRolloutJobRun", "properties": { "rollout": { - "description": "Output only. Name of the `ChildRollout`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/a-z{0,62}`.", + "description": "Output only. Name of the `ChildRollout`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.", "readOnly": true, "type": "string" }, @@ -3014,7 +3014,7 @@ "type": "object" }, "name": { - "description": "Optional. Name of the `CustomTargetType`. Format is `projects/{project}/locations/{location}/customTargetTypes/a-z{0,62}`.", + "description": "Optional. Name of the `CustomTargetType`. Format is `projects/{project}/locations/{location}/customTargetTypes/{customTargetType}`. The `customTargetType` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`", "type": "string" }, "uid": { @@ -3106,7 +3106,7 @@ "type": "object" }, "name": { - "description": "Optional. Name of the `DeliveryPipeline`. Format is `projects/{project}/locations/{location}/deliveryPipelines/a-z{0,62}`.", + "description": "Optional. Name of the `DeliveryPipeline`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}`. The `deliveryPipeline` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`", "type": "string" }, "serialPipeline": { @@ -4505,7 +4505,7 @@ "type": "string" }, "id": { - "description": "Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `a-z{0,62}`.", + "description": "Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.", "type": "string" }, "wait": { @@ -4586,7 +4586,7 @@ "type": "object" }, "name": { - "description": "Optional. Name of the `Release`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/a-z{0,62}`.", + "description": "Optional. Name of the `Release`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`. The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`", "type": "string" }, "renderEndTime": { @@ -4915,7 +4915,7 @@ "readOnly": true }, "id": { - "description": "Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `a-z{0,62}`.", + "description": "Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.", "type": "string" }, "jobs": { @@ -5243,7 +5243,7 @@ "type": "string" }, "controllerRollout": { - "description": "Output only. Name of the `ControllerRollout`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/a-z{0,62}`.", + "description": "Output only. Name of the `ControllerRollout`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`.", "readOnly": true, "type": "string" }, @@ -5329,7 +5329,7 @@ "readOnly": true }, "name": { - "description": "Optional. Name of the `Rollout`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/a-z{0,62}`.", + "description": "Optional. Name of the `Rollout`. Format is `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/{rollout}`. The `rollout` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`", "type": "string" }, "phases": { @@ -5930,7 +5930,7 @@ "description": "Optional. Information specifying a multiTarget." }, "name": { - "description": "Optional. Name of the `Target`. Format is `projects/{project}/locations/{location}/targets/a-z{0,62}`.", + "description": "Optional. Name of the `Target`. Format is `projects/{project}/locations/{location}/targets/{target}`. The `target` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`", "type": "string" }, "requireApproval": { diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index 9d08a041104..17a2dda32fa 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -302,7 +302,7 @@ type AdvanceChildRolloutJob struct { type AdvanceChildRolloutJobRun struct { // Rollout: Output only. Name of the `ChildRollout`. Format is // `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline} - // /releases/{release}/rollouts/a-z{0,62}`. + // /releases/{release}/rollouts/{rollout}`. Rollout string `json:"rollout,omitempty"` // RolloutPhaseId: Output only. the ID of the ChildRollout's Phase. RolloutPhaseId string `json:"rolloutPhaseId,omitempty"` @@ -389,7 +389,8 @@ type AdvanceRolloutRule struct { // Condition: Output only. Information around the state of the Automation rule. Condition *AutomationRuleCondition `json:"condition,omitempty"` // Id: Required. ID of the rule. This id must be unique in the `Automation` - // resource to which this rule belongs. The format is `a-z{0,62}`. + // resource to which this rule belongs. The format is + // `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. Id string `json:"id,omitempty"` // SourcePhases: Optional. Proceeds only after phase name matched any one in // the list. This value must consist of lower-case letters, numbers, and @@ -1306,7 +1307,7 @@ type CreateChildRolloutJob struct { type CreateChildRolloutJobRun struct { // Rollout: Output only. Name of the `ChildRollout`. Format is // `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline} - // /releases/{release}/rollouts/a-z{0,62}`. + // /releases/{release}/rollouts/{rollout}`. Rollout string `json:"rollout,omitempty"` // RolloutPhaseId: Output only. The ID of the childRollout Phase initiated by // this JobRun. @@ -1489,7 +1490,9 @@ type CustomTargetType struct { // bytes. Labels map[string]string `json:"labels,omitempty"` // Name: Optional. Name of the `CustomTargetType`. Format is - // `projects/{project}/locations/{location}/customTargetTypes/a-z{0,62}`. + // `projects/{project}/locations/{location}/customTargetTypes/{customTargetType} + // `. The `customTargetType` component must match + // `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` Name string `json:"name,omitempty"` // Uid: Output only. Unique identifier of the `CustomTargetType`. Uid string `json:"uid,omitempty"` @@ -1613,7 +1616,9 @@ type DeliveryPipeline struct { // bytes. Labels map[string]string `json:"labels,omitempty"` // Name: Optional. Name of the `DeliveryPipeline`. Format is - // `projects/{project}/locations/{location}/deliveryPipelines/a-z{0,62}`. + // `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline} + // `. The `deliveryPipeline` component must match + // `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` Name string `json:"name,omitempty"` // SerialPipeline: SerialPipeline defines a sequential set of stages for a // `DeliveryPipeline`. @@ -3268,7 +3273,8 @@ type PromoteReleaseRule struct { // pipeline. * "@next", the next target in the promotion sequence. DestinationTargetId string `json:"destinationTargetId,omitempty"` // Id: Required. ID of the rule. This id must be unique in the `Automation` - // resource to which this rule belongs. The format is `a-z{0,62}`. + // resource to which this rule belongs. The format is + // `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. Id string `json:"id,omitempty"` // Wait: Optional. How long the release need to be paused until being promoted // to the next target. @@ -3333,7 +3339,8 @@ type Release struct { Labels map[string]string `json:"labels,omitempty"` // Name: Optional. Name of the `Release`. Format is // `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline} - // /releases/a-z{0,62}`. + // /releases/{release}`. The `release` component must match + // `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` Name string `json:"name,omitempty"` // RenderEndTime: Output only. Time at which the render completed. RenderEndTime string `json:"renderEndTime,omitempty"` @@ -3662,7 +3669,8 @@ type RepairRolloutRule struct { // rule. Condition *AutomationRuleCondition `json:"condition,omitempty"` // Id: Required. ID of the rule. This id must be unique in the `Automation` - // resource to which this rule belongs. The format is `a-z{0,62}`. + // resource to which this rule belongs. The format is + // `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. Id string `json:"id,omitempty"` // Jobs: Optional. Jobs to repair. Proceeds only after job name matched any one // in the list, or for all jobs if unspecified or empty. The phase that @@ -4013,7 +4021,7 @@ type Rollout struct { ApproveTime string `json:"approveTime,omitempty"` // ControllerRollout: Output only. Name of the `ControllerRollout`. Format is // `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline} - // /releases/{release}/rollouts/a-z{0,62}`. + // /releases/{release}/rollouts/{rollout}`. ControllerRollout string `json:"controllerRollout,omitempty"` // CreateTime: Output only. Time at which the `Rollout` was created. CreateTime string `json:"createTime,omitempty"` @@ -4072,7 +4080,8 @@ type Rollout struct { Metadata *Metadata `json:"metadata,omitempty"` // Name: Optional. Name of the `Rollout`. Format is // `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline} - // /releases/{release}/rollouts/a-z{0,62}`. + // /releases/{release}/rollouts/{rollout}`. The `rollout` component must match + // `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` Name string `json:"name,omitempty"` // Phases: Output only. The phases that represent the workflows of this // `Rollout`. @@ -4708,7 +4717,8 @@ type Target struct { // MultiTarget: Optional. Information specifying a multiTarget. MultiTarget *MultiTarget `json:"multiTarget,omitempty"` // Name: Optional. Name of the `Target`. Format is - // `projects/{project}/locations/{location}/targets/a-z{0,62}`. + // `projects/{project}/locations/{location}/targets/{target}`. The `target` + // component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?` Name string `json:"name,omitempty"` // RequireApproval: Optional. Whether or not the `Target` requires approval. RequireApproval bool `json:"requireApproval,omitempty"` @@ -6132,7 +6142,9 @@ type ProjectsLocationsCustomTargetTypesPatchCall struct { // Patch: Updates a single CustomTargetType. // // - name: Optional. Name of the `CustomTargetType`. Format is -// `projects/{project}/locations/{location}/customTargetTypes/a-z{0,62}`. +// `projects/{project}/locations/{location}/customTargetTypes/{customTargetTyp +// e}`. The `customTargetType` component must match +// `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. func (r *ProjectsLocationsCustomTargetTypesService) Patch(name string, customtargettype *CustomTargetType) *ProjectsLocationsCustomTargetTypesPatchCall { c := &ProjectsLocationsCustomTargetTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7060,7 +7072,9 @@ type ProjectsLocationsDeliveryPipelinesPatchCall struct { // Patch: Updates the parameters of a single DeliveryPipeline. // // - name: Optional. Name of the `DeliveryPipeline`. Format is -// `projects/{project}/locations/{location}/deliveryPipelines/a-z{0,62}`. +// `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipelin +// e}`. The `deliveryPipeline` component must match +// `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. func (r *ProjectsLocationsDeliveryPipelinesService) Patch(name string, deliverypipeline *DeliveryPipeline) *ProjectsLocationsDeliveryPipelinesPatchCall { c := &ProjectsLocationsDeliveryPipelinesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -11541,7 +11555,8 @@ type ProjectsLocationsTargetsPatchCall struct { // Patch: Updates the parameters of a single Target. // // - name: Optional. Name of the `Target`. Format is -// `projects/{project}/locations/{location}/targets/a-z{0,62}`. +// `projects/{project}/locations/{location}/targets/{target}`. The `target` +// component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`. func (r *ProjectsLocationsTargetsService) Patch(name string, target *Target) *ProjectsLocationsTargetsPatchCall { c := &ProjectsLocationsTargetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 868abb5360b..2e9337afa4e 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20240409", + "revision": "20240422", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3505,6 +3505,16 @@ "$ref": "ResourceUsageExportConfig", "description": "Configuration for exporting resource usages. Resource usage export is disabled when this config unspecified." }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "secretManagerConfig": { "$ref": "SecretManagerConfig", "description": "Secret CSI driver configuration." @@ -3848,6 +3858,14 @@ "$ref": "ClusterNetworkPerformanceConfig", "description": "The desired network performance config." }, + "desiredNodeKubeletConfig": { + "$ref": "NodeKubeletConfig", + "description": "The desired node kubelet config for the cluster." + }, + "desiredNodePoolAutoConfigKubeletConfig": { + "$ref": "NodeKubeletConfig", + "description": "The desired node kubelet config for all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters." + }, "desiredNodePoolAutoConfigNetworkTags": { "$ref": "NetworkTags", "description": "The desired network tags that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters." @@ -5911,6 +5929,10 @@ "loggingConfig": { "$ref": "NodePoolLoggingConfig", "description": "Logging configuration for node pools." + }, + "nodeKubeletConfig": { + "$ref": "NodeKubeletConfig", + "description": "NodeKubeletConfig controls the defaults for new node-pools. Currently only `insecure_kubelet_readonly_port_enabled` can be set here." } }, "type": "object" @@ -6157,6 +6179,10 @@ "$ref": "NetworkTags", "description": "The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster creation. Each tag within the list must comply with RFC1035." }, + "nodeKubeletConfig": { + "$ref": "NodeKubeletConfig", + "description": "NodeKubeletConfig controls the defaults for autoprovisioned node-pools. Currently only `insecure_kubelet_readonly_port_enabled` can be set here." + }, "resourceManagerTags": { "$ref": "ResourceManagerTags", "description": "Resource manager tag keys and values to be attached to the nodes for managing Compute Engine firewalls using Network Firewall Policies." diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 2e1223808e5..8a187f11775 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -1388,6 +1388,10 @@ type Cluster struct { // ResourceUsageExportConfig: Configuration for exporting resource usages. // Resource usage export is disabled when this config unspecified. ResourceUsageExportConfig *ResourceUsageExportConfig `json:"resourceUsageExportConfig,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SecretManagerConfig: Secret CSI driver configuration. SecretManagerConfig *SecretManagerConfig `json:"secretManagerConfig,omitempty"` // SecurityPostureConfig: Enable/Disable Security Posture API features for the @@ -1707,6 +1711,12 @@ type ClusterUpdate struct { DesiredMonitoringService string `json:"desiredMonitoringService,omitempty"` // DesiredNetworkPerformanceConfig: The desired network performance config. DesiredNetworkPerformanceConfig *ClusterNetworkPerformanceConfig `json:"desiredNetworkPerformanceConfig,omitempty"` + // DesiredNodeKubeletConfig: The desired node kubelet config for the cluster. + DesiredNodeKubeletConfig *NodeKubeletConfig `json:"desiredNodeKubeletConfig,omitempty"` + // DesiredNodePoolAutoConfigKubeletConfig: The desired node kubelet config for + // all auto-provisioned node pools in autopilot clusters and node + // auto-provisioning enabled clusters. + DesiredNodePoolAutoConfigKubeletConfig *NodeKubeletConfig `json:"desiredNodePoolAutoConfigKubeletConfig,omitempty"` // DesiredNodePoolAutoConfigNetworkTags: The desired network tags that apply to // all auto-provisioned node pools in autopilot clusters and node // auto-provisioning enabled clusters. @@ -4486,6 +4496,10 @@ type NodeConfigDefaults struct { HostMaintenancePolicy *HostMaintenancePolicy `json:"hostMaintenancePolicy,omitempty"` // LoggingConfig: Logging configuration for node pools. LoggingConfig *NodePoolLoggingConfig `json:"loggingConfig,omitempty"` + // NodeKubeletConfig: NodeKubeletConfig controls the defaults for new + // node-pools. Currently only `insecure_kubelet_readonly_port_enabled` can be + // set here. + NodeKubeletConfig *NodeKubeletConfig `json:"nodeKubeletConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "ContainerdConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -4806,6 +4820,10 @@ type NodePoolAutoConfig struct { // by the client during cluster creation. Each tag within the list must comply // with RFC1035. NetworkTags *NetworkTags `json:"networkTags,omitempty"` + // NodeKubeletConfig: NodeKubeletConfig controls the defaults for + // autoprovisioned node-pools. Currently only + // `insecure_kubelet_readonly_port_enabled` can be set here. + NodeKubeletConfig *NodeKubeletConfig `json:"nodeKubeletConfig,omitempty"` // ResourceManagerTags: Resource manager tag keys and values to be attached to // the nodes for managing Compute Engine firewalls using Network Firewall // Policies. diff --git a/containeranalysis/v1/containeranalysis-api.json b/containeranalysis/v1/containeranalysis-api.json index 7603c7f3b3b..cd78b9662f2 100644 --- a/containeranalysis/v1/containeranalysis-api.json +++ b/containeranalysis/v1/containeranalysis-api.json @@ -1065,7 +1065,7 @@ } } }, - "revision": "20240301", + "revision": "20240503", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -2086,6 +2086,10 @@ "$ref": "NonCompliantFile" }, "type": "array" + }, + "version": { + "$ref": "ComplianceVersion", + "description": "The OS and config version the benchmark was run on." } }, "type": "object" @@ -2321,6 +2325,10 @@ "readOnly": true, "type": "string" }, + "gitConfig": { + "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig", + "description": "Optional. Configuration for git operations." + }, "id": { "description": "Output only. Unique identifier of the build.", "readOnly": true, @@ -2920,6 +2928,25 @@ }, "type": "object" }, + "ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig": { + "description": "This config defines the location of a source through Developer Connect.", + "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig", + "properties": { + "dir": { + "description": "Required. Directory, relative to the source root, in which to run the build.", + "type": "string" + }, + "gitRepositoryLink": { + "description": "Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.", + "type": "string" + }, + "revision": { + "description": "Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.", + "type": "string" + } + }, + "type": "object" + }, "ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes": { "description": "Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.", "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes", @@ -2934,6 +2961,28 @@ }, "type": "object" }, + "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig": { + "description": "GitConfig is a configuration for git operations.", + "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig", + "properties": { + "http": { + "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig", + "description": "Configuration for HTTP related git operations." + } + }, + "type": "object" + }, + "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig": { + "description": "HttpConfig is a configuration for HTTP related git operations.", + "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig", + "properties": { + "proxySecretVersionName": { + "description": "SecretVersion resource of the HTTP proxy URL. The proxy URL should be in format protocol://@]proxyhost[:port].", + "type": "string" + } + }, + "type": "object" + }, "ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource": { "description": "Location of the source in any accessible Git repository.", "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource", @@ -3062,7 +3111,7 @@ "type": "array" }, "buildStepOutputs": { - "description": "List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored.", + "description": "List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't be substituted.", "items": { "format": "byte", "type": "string" @@ -3168,6 +3217,10 @@ "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository", "description": "Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource." }, + "developerConnectConfig": { + "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig", + "description": "If provided, get the source from this Developer Connect config." + }, "gitSource": { "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource", "description": "If provided, get the source from this Git repository." diff --git a/containeranalysis/v1/containeranalysis-gen.go b/containeranalysis/v1/containeranalysis-gen.go index 48ff2d7af74..7b43c5ea01d 100644 --- a/containeranalysis/v1/containeranalysis-gen.go +++ b/containeranalysis/v1/containeranalysis-gen.go @@ -1378,6 +1378,8 @@ func (s *ComplianceNote) MarshalJSON() ([]byte, error) { type ComplianceOccurrence struct { NonComplianceReason string `json:"nonComplianceReason,omitempty"` NonCompliantFiles []*NonCompliantFile `json:"nonCompliantFiles,omitempty"` + // Version: The OS and config version the benchmark was run on. + Version *ComplianceVersion `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "NonComplianceReason") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1714,6 +1716,8 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1Build struct { // The difference between finish_time and start_time is the duration of the // build's execution. FinishTime string `json:"finishTime,omitempty"` + // GitConfig: Optional. Configuration for git operations. + GitConfig *ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig `json:"gitConfig,omitempty"` // Id: Output only. Unique identifier of the build. Id string `json:"id,omitempty"` // Images: A list of images to be pushed upon the successful completion of all @@ -2250,6 +2254,36 @@ func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository) Marshal return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig: This +// config defines the location of a source through Developer Connect. +type ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig struct { + // Dir: Required. Directory, relative to the source root, in which to run the + // build. + Dir string `json:"dir,omitempty"` + // GitRepositoryLink: Required. The Developer Connect Git repository link, + // formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`. + GitRepositoryLink string `json:"gitRepositoryLink,omitempty"` + // Revision: Required. The revision to fetch from the Git repository such as a + // branch, a tag, a commit SHA, or any Git ref. + Revision string `json:"revision,omitempty"` + // ForceSendFields is a list of field names (e.g. "Dir") 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. "Dir") 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. + NullFields []string `json:"-"` +} + +func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig) MarshalJSON() ([]byte, error) { + type NoMethod ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes: Container message for // hashes of byte content of files, used in SourceProvenance messages to verify // integrity of source input to the build. @@ -2274,6 +2308,53 @@ func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig: GitConfig is a +// configuration for git operations. +type ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig struct { + // Http: Configuration for HTTP related git operations. + Http *ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig `json:"http,omitempty"` + // ForceSendFields is a list of field names (e.g. "Http") 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. "Http") 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. + NullFields []string `json:"-"` +} + +func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig) MarshalJSON() ([]byte, error) { + type NoMethod ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig: HttpConfig +// is a configuration for HTTP related git operations. +type ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig struct { + // ProxySecretVersionName: SecretVersion resource of the HTTP proxy URL. The + // proxy URL should be in format protocol://@]proxyhost[:port]. + ProxySecretVersionName string `json:"proxySecretVersionName,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProxySecretVersionName") 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. "ProxySecretVersionName") 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. + NullFields []string `json:"-"` +} + +func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig) MarshalJSON() ([]byte, error) { + type NoMethod ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource: Location of the source // in any accessible Git repository. type ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource struct { @@ -2434,7 +2515,8 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1Results struct { // the order corresponding to build step indices. Cloud Builders // (https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this // output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data - // is stored. + // is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't + // be substituted. BuildStepOutputs []string `json:"buildStepOutputs,omitempty"` // Images: Container images that were built as a part of the build. Images []*ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage `json:"images,omitempty"` @@ -2561,6 +2643,9 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1Source struct { // ConnectedRepository: Optional. If provided, get the source from this 2nd-gen // Google Cloud Build repository resource. ConnectedRepository *ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository `json:"connectedRepository,omitempty"` + // DeveloperConnectConfig: If provided, get the source from this Developer + // Connect config. + DeveloperConnectConfig *ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig `json:"developerConnectConfig,omitempty"` // GitSource: If provided, get the source from this Git repository. GitSource *ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource `json:"gitSource,omitempty"` // RepoSource: If provided, get the source from this location in a Cloud Source diff --git a/containeranalysis/v1alpha1/containeranalysis-api.json b/containeranalysis/v1alpha1/containeranalysis-api.json index 22ad2b7134c..69e240af2f2 100644 --- a/containeranalysis/v1alpha1/containeranalysis-api.json +++ b/containeranalysis/v1alpha1/containeranalysis-api.json @@ -1233,7 +1233,7 @@ } } }, - "revision": "20240301", + "revision": "20240503", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AnalysisCompleted": { @@ -2295,6 +2295,10 @@ "readOnly": true, "type": "string" }, + "gitConfig": { + "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig", + "description": "Optional. Configuration for git operations." + }, "id": { "description": "Output only. Unique identifier of the build.", "readOnly": true, @@ -2894,6 +2898,25 @@ }, "type": "object" }, + "ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig": { + "description": "This config defines the location of a source through Developer Connect.", + "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig", + "properties": { + "dir": { + "description": "Required. Directory, relative to the source root, in which to run the build.", + "type": "string" + }, + "gitRepositoryLink": { + "description": "Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.", + "type": "string" + }, + "revision": { + "description": "Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.", + "type": "string" + } + }, + "type": "object" + }, "ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes": { "description": "Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.", "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes", @@ -2908,6 +2931,28 @@ }, "type": "object" }, + "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig": { + "description": "GitConfig is a configuration for git operations.", + "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig", + "properties": { + "http": { + "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig", + "description": "Configuration for HTTP related git operations." + } + }, + "type": "object" + }, + "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig": { + "description": "HttpConfig is a configuration for HTTP related git operations.", + "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig", + "properties": { + "proxySecretVersionName": { + "description": "SecretVersion resource of the HTTP proxy URL. The proxy URL should be in format protocol://@]proxyhost[:port].", + "type": "string" + } + }, + "type": "object" + }, "ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource": { "description": "Location of the source in any accessible Git repository.", "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource", @@ -3036,7 +3081,7 @@ "type": "array" }, "buildStepOutputs": { - "description": "List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored.", + "description": "List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't be substituted.", "items": { "format": "byte", "type": "string" @@ -3142,6 +3187,10 @@ "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository", "description": "Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource." }, + "developerConnectConfig": { + "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig", + "description": "If provided, get the source from this Developer Connect config." + }, "gitSource": { "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource", "description": "If provided, get the source from this Git repository." diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index 6fcd28527fa..035335a9447 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -1551,6 +1551,8 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1Build struct { // The difference between finish_time and start_time is the duration of the // build's execution. FinishTime string `json:"finishTime,omitempty"` + // GitConfig: Optional. Configuration for git operations. + GitConfig *ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig `json:"gitConfig,omitempty"` // Id: Output only. Unique identifier of the build. Id string `json:"id,omitempty"` // Images: A list of images to be pushed upon the successful completion of all @@ -2087,6 +2089,36 @@ func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository) Marshal return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig: This +// config defines the location of a source through Developer Connect. +type ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig struct { + // Dir: Required. Directory, relative to the source root, in which to run the + // build. + Dir string `json:"dir,omitempty"` + // GitRepositoryLink: Required. The Developer Connect Git repository link, + // formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`. + GitRepositoryLink string `json:"gitRepositoryLink,omitempty"` + // Revision: Required. The revision to fetch from the Git repository such as a + // branch, a tag, a commit SHA, or any Git ref. + Revision string `json:"revision,omitempty"` + // ForceSendFields is a list of field names (e.g. "Dir") 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. "Dir") 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. + NullFields []string `json:"-"` +} + +func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig) MarshalJSON() ([]byte, error) { + type NoMethod ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes: Container message for // hashes of byte content of files, used in SourceProvenance messages to verify // integrity of source input to the build. @@ -2111,6 +2143,53 @@ func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig: GitConfig is a +// configuration for git operations. +type ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig struct { + // Http: Configuration for HTTP related git operations. + Http *ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig `json:"http,omitempty"` + // ForceSendFields is a list of field names (e.g. "Http") 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. "Http") 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. + NullFields []string `json:"-"` +} + +func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig) MarshalJSON() ([]byte, error) { + type NoMethod ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig: HttpConfig +// is a configuration for HTTP related git operations. +type ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig struct { + // ProxySecretVersionName: SecretVersion resource of the HTTP proxy URL. The + // proxy URL should be in format protocol://@]proxyhost[:port]. + ProxySecretVersionName string `json:"proxySecretVersionName,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProxySecretVersionName") 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. "ProxySecretVersionName") 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. + NullFields []string `json:"-"` +} + +func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig) MarshalJSON() ([]byte, error) { + type NoMethod ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource: Location of the source // in any accessible Git repository. type ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource struct { @@ -2271,7 +2350,8 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1Results struct { // the order corresponding to build step indices. Cloud Builders // (https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this // output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data - // is stored. + // is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't + // be substituted. BuildStepOutputs []string `json:"buildStepOutputs,omitempty"` // Images: Container images that were built as a part of the build. Images []*ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage `json:"images,omitempty"` @@ -2398,6 +2478,9 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1Source struct { // ConnectedRepository: Optional. If provided, get the source from this 2nd-gen // Google Cloud Build repository resource. ConnectedRepository *ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository `json:"connectedRepository,omitempty"` + // DeveloperConnectConfig: If provided, get the source from this Developer + // Connect config. + DeveloperConnectConfig *ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig `json:"developerConnectConfig,omitempty"` // GitSource: If provided, get the source from this Git repository. GitSource *ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource `json:"gitSource,omitempty"` // RepoSource: If provided, get the source from this location in a Cloud Source diff --git a/containeranalysis/v1beta1/containeranalysis-api.json b/containeranalysis/v1beta1/containeranalysis-api.json index c224b964205..26c1618a411 100644 --- a/containeranalysis/v1beta1/containeranalysis-api.json +++ b/containeranalysis/v1beta1/containeranalysis-api.json @@ -1121,7 +1121,7 @@ } } }, - "revision": "20240301", + "revision": "20240503", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -2281,6 +2281,10 @@ "readOnly": true, "type": "string" }, + "gitConfig": { + "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig", + "description": "Optional. Configuration for git operations." + }, "id": { "description": "Output only. Unique identifier of the build.", "readOnly": true, @@ -2880,6 +2884,25 @@ }, "type": "object" }, + "ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig": { + "description": "This config defines the location of a source through Developer Connect.", + "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig", + "properties": { + "dir": { + "description": "Required. Directory, relative to the source root, in which to run the build.", + "type": "string" + }, + "gitRepositoryLink": { + "description": "Required. The Developer Connect Git repository link, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`.", + "type": "string" + }, + "revision": { + "description": "Required. The revision to fetch from the Git repository such as a branch, a tag, a commit SHA, or any Git ref.", + "type": "string" + } + }, + "type": "object" + }, "ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes": { "description": "Container message for hashes of byte content of files, used in SourceProvenance messages to verify integrity of source input to the build.", "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes", @@ -2894,6 +2917,28 @@ }, "type": "object" }, + "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig": { + "description": "GitConfig is a configuration for git operations.", + "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig", + "properties": { + "http": { + "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig", + "description": "Configuration for HTTP related git operations." + } + }, + "type": "object" + }, + "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig": { + "description": "HttpConfig is a configuration for HTTP related git operations.", + "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig", + "properties": { + "proxySecretVersionName": { + "description": "SecretVersion resource of the HTTP proxy URL. The proxy URL should be in format protocol://@]proxyhost[:port].", + "type": "string" + } + }, + "type": "object" + }, "ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource": { "description": "Location of the source in any accessible Git repository.", "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource", @@ -3022,7 +3067,7 @@ "type": "array" }, "buildStepOutputs": { - "description": "List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored.", + "description": "List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't be substituted.", "items": { "format": "byte", "type": "string" @@ -3128,6 +3173,10 @@ "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository", "description": "Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource." }, + "developerConnectConfig": { + "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig", + "description": "If provided, get the source from this Developer Connect config." + }, "gitSource": { "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource", "description": "If provided, get the source from this Git repository." diff --git a/containeranalysis/v1beta1/containeranalysis-gen.go b/containeranalysis/v1beta1/containeranalysis-gen.go index 01b9c5dec83..14adac47058 100644 --- a/containeranalysis/v1beta1/containeranalysis-gen.go +++ b/containeranalysis/v1beta1/containeranalysis-gen.go @@ -1619,6 +1619,8 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1Build struct { // The difference between finish_time and start_time is the duration of the // build's execution. FinishTime string `json:"finishTime,omitempty"` + // GitConfig: Optional. Configuration for git operations. + GitConfig *ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig `json:"gitConfig,omitempty"` // Id: Output only. Unique identifier of the build. Id string `json:"id,omitempty"` // Images: A list of images to be pushed upon the successful completion of all @@ -2155,6 +2157,36 @@ func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository) Marshal return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig: This +// config defines the location of a source through Developer Connect. +type ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig struct { + // Dir: Required. Directory, relative to the source root, in which to run the + // build. + Dir string `json:"dir,omitempty"` + // GitRepositoryLink: Required. The Developer Connect Git repository link, + // formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`. + GitRepositoryLink string `json:"gitRepositoryLink,omitempty"` + // Revision: Required. The revision to fetch from the Git repository such as a + // branch, a tag, a commit SHA, or any Git ref. + Revision string `json:"revision,omitempty"` + // ForceSendFields is a list of field names (e.g. "Dir") 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. "Dir") 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. + NullFields []string `json:"-"` +} + +func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig) MarshalJSON() ([]byte, error) { + type NoMethod ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes: Container message for // hashes of byte content of files, used in SourceProvenance messages to verify // integrity of source input to the build. @@ -2179,6 +2211,53 @@ func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig: GitConfig is a +// configuration for git operations. +type ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig struct { + // Http: Configuration for HTTP related git operations. + Http *ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig `json:"http,omitempty"` + // ForceSendFields is a list of field names (e.g. "Http") 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. "Http") 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. + NullFields []string `json:"-"` +} + +func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig) MarshalJSON() ([]byte, error) { + type NoMethod ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig: HttpConfig +// is a configuration for HTTP related git operations. +type ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig struct { + // ProxySecretVersionName: SecretVersion resource of the HTTP proxy URL. The + // proxy URL should be in format protocol://@]proxyhost[:port]. + ProxySecretVersionName string `json:"proxySecretVersionName,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProxySecretVersionName") 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. "ProxySecretVersionName") 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. + NullFields []string `json:"-"` +} + +func (s *ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig) MarshalJSON() ([]byte, error) { + type NoMethod ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource: Location of the source // in any accessible Git repository. type ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource struct { @@ -2339,7 +2418,8 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1Results struct { // the order corresponding to build step indices. Cloud Builders // (https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this // output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data - // is stored. + // is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't + // be substituted. BuildStepOutputs []string `json:"buildStepOutputs,omitempty"` // Images: Container images that were built as a part of the build. Images []*ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage `json:"images,omitempty"` @@ -2466,6 +2546,9 @@ type ContaineranalysisGoogleDevtoolsCloudbuildV1Source struct { // ConnectedRepository: Optional. If provided, get the source from this 2nd-gen // Google Cloud Build repository resource. ConnectedRepository *ContaineranalysisGoogleDevtoolsCloudbuildV1ConnectedRepository `json:"connectedRepository,omitempty"` + // DeveloperConnectConfig: If provided, get the source from this Developer + // Connect config. + DeveloperConnectConfig *ContaineranalysisGoogleDevtoolsCloudbuildV1DeveloperConnectConfig `json:"developerConnectConfig,omitempty"` // GitSource: If provided, get the source from this Git repository. GitSource *ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource `json:"gitSource,omitempty"` // RepoSource: If provided, get the source from this location in a Cloud Source diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index 92646aeb71e..c18635731f5 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8327,7 +8327,7 @@ } } }, - "revision": "20240422", + "revision": "20240507", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -8361,10 +8361,20 @@ "description": "If true, incoming audio is processed for DTMF (dual tone multi frequency) events. For example, if the caller presses a button on their telephone keypad and DTMF processing is enabled, Dialogflow will detect the event (e.g. a \"3\" was pressed) in the incoming audio and pass the event to the bot to drive business logic (e.g. when 3 is pressed, return the account balance).", "type": "boolean" }, + "endpointingTimeoutDuration": { + "description": "Endpoint timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "finishDigit": { "description": "The digit that terminates a DTMF digit sequence.", "type": "string" }, + "interdigitTimeoutDuration": { + "description": "Interdigit timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "maxDigits": { "description": "Max length of DTMF digits.", "format": "int32", @@ -10741,10 +10751,20 @@ "description": "If true, incoming audio is processed for DTMF (dual tone multi frequency) events. For example, if the caller presses a button on their telephone keypad and DTMF processing is enabled, Dialogflow will detect the event (e.g. a \"3\" was pressed) in the incoming audio and pass the event to the bot to drive business logic (e.g. when 3 is pressed, return the account balance).", "type": "boolean" }, + "endpointingTimeoutDuration": { + "description": "Endpoint timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "finishDigit": { "description": "The digit that terminates a DTMF digit sequence.", "type": "string" }, + "interdigitTimeoutDuration": { + "description": "Interdigit timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "maxDigits": { "description": "Max length of DTMF digits.", "format": "int32", diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index dda120f8028..1ba4b81db62 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -934,8 +934,14 @@ type GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings struct { // the bot to drive business logic (e.g. when 3 is pressed, return the account // balance). Enabled bool `json:"enabled,omitempty"` + // EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input + // to regex. + EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"` // FinishDigit: The digit that terminates a DTMF digit sequence. FinishDigit string `json:"finishDigit,omitempty"` + // InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf + // input to regex. + InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"` // MaxDigits: Max length of DTMF digits. MaxDigits int64 `json:"maxDigits,omitempty"` // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally @@ -4366,8 +4372,14 @@ type GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings struct { // the bot to drive business logic (e.g. when 3 is pressed, return the account // balance). Enabled bool `json:"enabled,omitempty"` + // EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input + // to regex. + EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"` // FinishDigit: The digit that terminates a DTMF digit sequence. FinishDigit string `json:"finishDigit,omitempty"` + // InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf + // input to regex. + InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"` // MaxDigits: Max length of DTMF digits. MaxDigits int64 `json:"maxDigits,omitempty"` // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index 78883091ff2..674408b2d7d 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -7695,7 +7695,7 @@ } } }, - "revision": "20240422", + "revision": "20240507", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -7729,10 +7729,20 @@ "description": "If true, incoming audio is processed for DTMF (dual tone multi frequency) events. For example, if the caller presses a button on their telephone keypad and DTMF processing is enabled, Dialogflow will detect the event (e.g. a \"3\" was pressed) in the incoming audio and pass the event to the bot to drive business logic (e.g. when 3 is pressed, return the account balance).", "type": "boolean" }, + "endpointingTimeoutDuration": { + "description": "Endpoint timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "finishDigit": { "description": "The digit that terminates a DTMF digit sequence.", "type": "string" }, + "interdigitTimeoutDuration": { + "description": "Interdigit timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "maxDigits": { "description": "Max length of DTMF digits.", "format": "int32", @@ -10109,10 +10119,20 @@ "description": "If true, incoming audio is processed for DTMF (dual tone multi frequency) events. For example, if the caller presses a button on their telephone keypad and DTMF processing is enabled, Dialogflow will detect the event (e.g. a \"3\" was pressed) in the incoming audio and pass the event to the bot to drive business logic (e.g. when 3 is pressed, return the account balance).", "type": "boolean" }, + "endpointingTimeoutDuration": { + "description": "Endpoint timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "finishDigit": { "description": "The digit that terminates a DTMF digit sequence.", "type": "string" }, + "interdigitTimeoutDuration": { + "description": "Interdigit timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "maxDigits": { "description": "Max length of DTMF digits.", "format": "int32", diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index d44bc9e81ce..67a27f26670 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -862,8 +862,14 @@ type GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings struct { // the bot to drive business logic (e.g. when 3 is pressed, return the account // balance). Enabled bool `json:"enabled,omitempty"` + // EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input + // to regex. + EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"` // FinishDigit: The digit that terminates a DTMF digit sequence. FinishDigit string `json:"finishDigit,omitempty"` + // InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf + // input to regex. + InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"` // MaxDigits: Max length of DTMF digits. MaxDigits int64 `json:"maxDigits,omitempty"` // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally @@ -4294,8 +4300,14 @@ type GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings struct { // the bot to drive business logic (e.g. when 3 is pressed, return the account // balance). Enabled bool `json:"enabled,omitempty"` + // EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input + // to regex. + EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"` // FinishDigit: The digit that terminates a DTMF digit sequence. FinishDigit string `json:"finishDigit,omitempty"` + // InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf + // input to regex. + InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"` // MaxDigits: Max length of DTMF digits. MaxDigits int64 `json:"maxDigits,omitempty"` // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index 069ea1fd5f7..25c37d8110e 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -4453,7 +4453,7 @@ } } }, - "revision": "20240430", + "revision": "20240507", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -4487,10 +4487,20 @@ "description": "If true, incoming audio is processed for DTMF (dual tone multi frequency) events. For example, if the caller presses a button on their telephone keypad and DTMF processing is enabled, Dialogflow will detect the event (e.g. a \"3\" was pressed) in the incoming audio and pass the event to the bot to drive business logic (e.g. when 3 is pressed, return the account balance).", "type": "boolean" }, + "endpointingTimeoutDuration": { + "description": "Endpoint timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "finishDigit": { "description": "The digit that terminates a DTMF digit sequence.", "type": "string" }, + "interdigitTimeoutDuration": { + "description": "Interdigit timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "maxDigits": { "description": "Max length of DTMF digits.", "format": "int32", @@ -7854,7 +7864,7 @@ "NO_MATCH", "NO_INPUT", "EVENT", - "LLM" + "PLAYBOOK" ], "enumDescriptions": [ "Not specified. Should never be used.", @@ -7864,7 +7874,7 @@ "No match was found for the query.", "Indicates an empty query.", "The query directly triggered an event.", - "The query was handled by an LLM." + "The query was handled by a `Playbook`." ], "type": "string" }, @@ -8956,6 +8966,10 @@ "gcsBucket": { "description": "Cloud Storage bucket to export audio record to. Setting this field would grant the Storage Object Creator role to the Dialogflow Service Agent. API caller that tries to modify this field should have the permission of storage.buckets.setIamPolicy.", "type": "string" + }, + "storeTtsAudio": { + "description": "Whether to store TTS audio. By default, TTS audio from the virtual agent is not exported.", + "type": "boolean" } }, "type": "object" @@ -10220,10 +10234,20 @@ "description": "If true, incoming audio is processed for DTMF (dual tone multi frequency) events. For example, if the caller presses a button on their telephone keypad and DTMF processing is enabled, Dialogflow will detect the event (e.g. a \"3\" was pressed) in the incoming audio and pass the event to the bot to drive business logic (e.g. when 3 is pressed, return the account balance).", "type": "boolean" }, + "endpointingTimeoutDuration": { + "description": "Endpoint timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "finishDigit": { "description": "The digit that terminates a DTMF digit sequence.", "type": "string" }, + "interdigitTimeoutDuration": { + "description": "Interdigit timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "maxDigits": { "description": "Max length of DTMF digits.", "format": "int32", diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index 32c645b6a47..7f78d1dd0a9 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -526,8 +526,14 @@ type GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings struct { // the bot to drive business logic (e.g. when 3 is pressed, return the account // balance). Enabled bool `json:"enabled,omitempty"` + // EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input + // to regex. + EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"` // FinishDigit: The digit that terminates a DTMF digit sequence. FinishDigit string `json:"finishDigit,omitempty"` + // InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf + // input to regex. + InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"` // MaxDigits: Max length of DTMF digits. MaxDigits int64 `json:"maxDigits,omitempty"` // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally @@ -5456,7 +5462,7 @@ type GoogleCloudDialogflowCxV3Match struct { // "NO_MATCH" - No match was found for the query. // "NO_INPUT" - Indicates an empty query. // "EVENT" - The query directly triggered an event. - // "LLM" - The query was handled by an LLM. + // "PLAYBOOK" - The query was handled by a `Playbook`. MatchType string `json:"matchType,omitempty"` // Parameters: The collection of parameters extracted from the query. Depending // on your protocol or client library language, this is a map, associative @@ -6999,6 +7005,9 @@ type GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings struct { // Agent. API caller that tries to modify this field should have the permission // of storage.buckets.setIamPolicy. GcsBucket string `json:"gcsBucket,omitempty"` + // StoreTtsAudio: Whether to store TTS audio. By default, TTS audio from the + // virtual agent is not exported. + StoreTtsAudio bool `json:"storeTtsAudio,omitempty"` // ForceSendFields is a list of field names (e.g. "AudioExportPattern") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -8767,8 +8776,14 @@ type GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings struct { // the bot to drive business logic (e.g. when 3 is pressed, return the account // balance). Enabled bool `json:"enabled,omitempty"` + // EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input + // to regex. + EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"` // FinishDigit: The digit that terminates a DTMF digit sequence. FinishDigit string `json:"finishDigit,omitempty"` + // InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf + // input to regex. + InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"` // MaxDigits: Max length of DTMF digits. MaxDigits int64 `json:"maxDigits,omitempty"` // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index 45cc5953dc4..ca3dbbaa58c 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -4551,7 +4551,7 @@ } } }, - "revision": "20240430", + "revision": "20240507", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -4585,10 +4585,20 @@ "description": "If true, incoming audio is processed for DTMF (dual tone multi frequency) events. For example, if the caller presses a button on their telephone keypad and DTMF processing is enabled, Dialogflow will detect the event (e.g. a \"3\" was pressed) in the incoming audio and pass the event to the bot to drive business logic (e.g. when 3 is pressed, return the account balance).", "type": "boolean" }, + "endpointingTimeoutDuration": { + "description": "Endpoint timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "finishDigit": { "description": "The digit that terminates a DTMF digit sequence.", "type": "string" }, + "interdigitTimeoutDuration": { + "description": "Interdigit timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "maxDigits": { "description": "Max length of DTMF digits.", "format": "int32", @@ -6965,10 +6975,20 @@ "description": "If true, incoming audio is processed for DTMF (dual tone multi frequency) events. For example, if the caller presses a button on their telephone keypad and DTMF processing is enabled, Dialogflow will detect the event (e.g. a \"3\" was pressed) in the incoming audio and pass the event to the bot to drive business logic (e.g. when 3 is pressed, return the account balance).", "type": "boolean" }, + "endpointingTimeoutDuration": { + "description": "Endpoint timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "finishDigit": { "description": "The digit that terminates a DTMF digit sequence.", "type": "string" }, + "interdigitTimeoutDuration": { + "description": "Interdigit timeout setting for matching dtmf input to regex.", + "format": "google-duration", + "type": "string" + }, "maxDigits": { "description": "Max length of DTMF digits.", "format": "int32", @@ -10616,7 +10636,7 @@ "NO_MATCH", "NO_INPUT", "EVENT", - "LLM" + "PLAYBOOK" ], "enumDescriptions": [ "Not specified. Should never be used.", @@ -10626,7 +10646,7 @@ "No match was found for the query.", "Indicates an empty query.", "The query directly triggered an event.", - "The query was handled by an LLM." + "The query was handled by a `Playbook`." ], "type": "string" }, @@ -11731,6 +11751,10 @@ "gcsBucket": { "description": "Cloud Storage bucket to export audio record to. Setting this field would grant the Storage Object Creator role to the Dialogflow Service Agent. API caller that tries to modify this field should have the permission of storage.buckets.setIamPolicy.", "type": "string" + }, + "storeTtsAudio": { + "description": "Whether to store TTS audio. By default, TTS audio from the virtual agent is not exported.", + "type": "boolean" } }, "type": "object" diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index b140313d6af..d1740f08a05 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -538,8 +538,14 @@ type GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings struct { // the bot to drive business logic (e.g. when 3 is pressed, return the account // balance). Enabled bool `json:"enabled,omitempty"` + // EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input + // to regex. + EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"` // FinishDigit: The digit that terminates a DTMF digit sequence. FinishDigit string `json:"finishDigit,omitempty"` + // InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf + // input to regex. + InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"` // MaxDigits: Max length of DTMF digits. MaxDigits int64 `json:"maxDigits,omitempty"` // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally @@ -3970,8 +3976,14 @@ type GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings struct { // the bot to drive business logic (e.g. when 3 is pressed, return the account // balance). Enabled bool `json:"enabled,omitempty"` + // EndpointingTimeoutDuration: Endpoint timeout setting for matching dtmf input + // to regex. + EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"` // FinishDigit: The digit that terminates a DTMF digit sequence. FinishDigit string `json:"finishDigit,omitempty"` + // InterdigitTimeoutDuration: Interdigit timeout setting for matching dtmf + // input to regex. + InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"` // MaxDigits: Max length of DTMF digits. MaxDigits int64 `json:"maxDigits,omitempty"` // ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally @@ -9235,7 +9247,7 @@ type GoogleCloudDialogflowCxV3beta1Match struct { // "NO_MATCH" - No match was found for the query. // "NO_INPUT" - Indicates an empty query. // "EVENT" - The query directly triggered an event. - // "LLM" - The query was handled by an LLM. + // "PLAYBOOK" - The query was handled by a `Playbook`. MatchType string `json:"matchType,omitempty"` // Parameters: The collection of parameters extracted from the query. Depending // on your protocol or client library language, this is a map, associative @@ -10784,6 +10796,9 @@ type GoogleCloudDialogflowCxV3beta1SecuritySettingsAudioExportSettings struct { // Agent. API caller that tries to modify this field should have the permission // of storage.buckets.setIamPolicy. GcsBucket string `json:"gcsBucket,omitempty"` + // StoreTtsAudio: Whether to store TTS audio. By default, TTS audio from the + // virtual agent is not exported. + StoreTtsAudio bool `json:"storeTtsAudio,omitempty"` // ForceSendFields is a list of field names (e.g. "AudioExportPattern") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/logging/v2/logging-api.json b/logging/v2/logging-api.json index c09c2c174c0..4ef28e6247f 100644 --- a/logging/v2/logging-api.json +++ b/logging/v2/logging-api.json @@ -8132,7 +8132,7 @@ } } }, - "revision": "20240426", + "revision": "20240503", "rootUrl": "https://logging.googleapis.com/", "schemas": { "AuditConfig": { @@ -9576,6 +9576,11 @@ "description": "Required. The client-assigned metric identifier. Examples: \"error_count\", \"nginx/requests\".Metric identifiers are limited to 100 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.This field is the [METRIC_ID] part of a metric resource name in the format \"projects/PROJECT_ID/metrics/METRIC_ID\". Example: If the resource name of a metric is \"projects/my-project/metrics/nginx%2Frequests\", this field's value is \"nginx/requests\".", "type": "string" }, + "resourceName": { + "description": "Output only. The resource name of the metric: \"projects/[PROJECT_ID]/metrics/[METRIC_ID]\" ", + "readOnly": true, + "type": "string" + }, "updateTime": { "description": "Output only. The last update timestamp of the metric.This field may not be present for older metrics.", "format": "google-datetime", diff --git a/logging/v2/logging-gen.go b/logging/v2/logging-gen.go index 5b49eda47f2..0acca196a04 100644 --- a/logging/v2/logging-gen.go +++ b/logging/v2/logging-gen.go @@ -3058,6 +3058,9 @@ type LogMetric struct { // name of a metric is "projects/my-project/metrics/nginx%2Frequests", this // field's value is "nginx/requests". Name string `json:"name,omitempty"` + // ResourceName: Output only. The resource name of the metric: + // "projects/[PROJECT_ID]/metrics/[METRIC_ID]" + ResourceName string `json:"resourceName,omitempty"` // UpdateTime: Output only. The last update timestamp of the metric.This field // may not be present for older metrics. UpdateTime string `json:"updateTime,omitempty"` diff --git a/networkmanagement/v1beta1/networkmanagement-api.json b/networkmanagement/v1beta1/networkmanagement-api.json index e445a9bc90e..a75a21b7c3a 100644 --- a/networkmanagement/v1beta1/networkmanagement-api.json +++ b/networkmanagement/v1beta1/networkmanagement-api.json @@ -585,180 +585,13 @@ } } } - }, - "vpcFlowLogsConfigs": { - "methods": { - "create": { - "description": "Creates a new VPC Flow Logs configuration. If a configuration with the exact same settings already exists, the creation fails.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs", - "httpMethod": "POST", - "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent resource of the VPC Flow Logs configuration to create: `projects/{project_id}/locations/global`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - }, - "vpcFlowLogsConfigId": { - "description": "Required. ID of the VpcFlowLogsConfig.", - "location": "query", - "type": "string" - } - }, - "path": "v1beta1/{+parent}/vpcFlowLogsConfigs", - "request": { - "$ref": "VpcFlowLogsConfig" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a specific VpcFlowLog configuration.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs/{vpcFlowLogsConfigsId}", - "httpMethod": "DELETE", - "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. VpcFlowLogsConfig name using the form: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets the details of a specific VPC Flow Log configuration.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs/{vpcFlowLogsConfigsId}", - "httpMethod": "GET", - "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. `VpcFlowLog` resource name using the form: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "response": { - "$ref": "VpcFlowLogsConfig" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists all VPC Flow Logs configurations in a given project.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs", - "httpMethod": "GET", - "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. Lists the `VpcFlowLogsConfig`s that match the filter expression. A filter expression filters the resources listed in the response. The expression must be of the form ` ` where operators: `\u003c`, `\u003e`, `\u003c=`, `\u003e=`, `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is roughly synonymous with equality). can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case. Examples: - Filter by name: name = \"projects/proj-1/locations/global/vpcFlowLogsConfigs/config-1 - Filter by target resource: - Configurations at the VPC network level target_resource.network:* - Configurations for a VPC network called `vpc-1` target_resource.network = vpc-1", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. Field to use to sort the list.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. Number of `VpcFlowLogsConfig`s to return.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. Page token from an earlier query, as returned in `next_page_token`.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent resource of the VpcFlowLogsConfig: `projects/{project_id}/locations/global`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+parent}/vpcFlowLogsConfigs", - "response": { - "$ref": "ListVpcFlowLogsConfigsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Updates an existing VpcFlowLogsConfig. If a configuration with the exact same settings already exists, the creation fails.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs/{vpcFlowLogsConfigsId}", - "httpMethod": "PATCH", - "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Identifier. Unique name of the configuration using the form: `projects/{project_id}/locations/global/vpcFlowLogs/{vpc_flow_log}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Required. Mask of fields to update. At least one path must be supplied in this field.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "request": { - "$ref": "VpcFlowLogsConfig" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } } } } } } }, - "revision": "20240424", + "revision": "20240501", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1941,31 +1774,6 @@ }, "type": "object" }, - "ListVpcFlowLogsConfigsResponse": { - "description": "Response for the `ListVpcFlowLogsConfigs` method.", - "id": "ListVpcFlowLogsConfigsResponse", - "properties": { - "nextPageToken": { - "description": "Page token to fetch the next set of configurations.", - "type": "string" - }, - "unreachable": { - "description": "Locations that could not be reached (when querying all locations with `-`).", - "items": { - "type": "string" - }, - "type": "array" - }, - "vpcFlowLogsConfigs": { - "description": "List of VPC Flow Log configurations.", - "items": { - "$ref": "VpcFlowLogsConfig" - }, - "type": "array" - } - }, - "type": "object" - }, "LoadBalancerBackend": { "description": "For display only. Metadata associated with a specific load balancer backend.", "id": "LoadBalancerBackend", @@ -3022,124 +2830,6 @@ }, "type": "object" }, - "VpcFlowLogsConfig": { - "description": "A configuration to generate VPC Flow Logs.", - "id": "VpcFlowLogsConfig", - "properties": { - "aggregationInterval": { - "description": "Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.", - "enum": [ - "AGGREGATION_INTERVAL_UNSPECIFIED", - "INTERVAL_5_SEC", - "INTERVAL_30_SEC", - "INTERVAL_1_MIN", - "INTERVAL_5_MIN", - "INTERVAL_10_MIN", - "INTERVAL_15_MIN" - ], - "enumDescriptions": [ - "If not specified, will default to INTERVAL_5_SEC.", - "Aggregate logs in 5s intervals.", - "Aggregate logs in 30s intervals.", - "Aggregate logs in 1m intervals.", - "Aggregate logs in 5m intervals.", - "Aggregate logs in 10m intervals.", - "Aggregate logs in 15m intervals." - ], - "type": "string" - }, - "createTime": { - "description": "Output only. The time the config was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "description": { - "description": "Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.", - "type": "string" - }, - "filterExpr": { - "description": "Export filter used to define which VPC flow logs should be logged.", - "type": "string" - }, - "flowSampling": { - "description": "Optional. The value of the field must be in [0, 1]. The sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default value is 1.0.", - "format": "float", - "type": "number" - }, - "interconnectAttachment": { - "description": "Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/locations/{region}/interconnectAttachments/{name}", - "type": "string" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. Resource labels to represent user-provided metadata.", - "type": "object" - }, - "metadata": { - "description": "Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.", - "enum": [ - "METADATA_UNSPECIFIED", - "INCLUDE_ALL_METADATA", - "EXCLUDE_ALL_METADATA", - "CUSTOM_METADATA" - ], - "enumDescriptions": [ - "If not specified, will default to INCLUDE_ALL_METADATA.", - "Include all metadata fields.", - "Exclude all metadata fields.", - "Include only custom fields (specified in metadata_fields)." - ], - "type": "string" - }, - "metadataFields": { - "description": "Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if \"metadata\" was set to CUSTOM_METADATA.", - "items": { - "type": "string" - }, - "type": "array" - }, - "name": { - "description": "Identifier. Unique name of the configuration using the form: `projects/{project_id}/locations/global/vpcFlowLogs/{vpc_flow_log}`", - "type": "string" - }, - "network": { - "description": "Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/networks/{name}", - "type": "string" - }, - "state": { - "description": "Optional. The state of the VPC Flow Log. Default value is ENABLED.", - "enum": [ - "STATE_UNSPECIFIED", - "ENABLED", - "DISABLED" - ], - "enumDescriptions": [ - "If not specified, will default to ENABLED.", - "When ENABLED, this configuration will generate logs.", - "When DISABLED, this configuration will not generate logs." - ], - "type": "string" - }, - "subnet": { - "description": "Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/locations/{region}/subnetworks/{name}", - "type": "string" - }, - "updateTime": { - "description": "Output only. The time the config was updated.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "vpnTunnel": { - "description": "Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/locations/{region}/vpnTunnels/{name}", - "type": "string" - } - }, - "type": "object" - }, "VpnGatewayInfo": { "description": "For display only. Metadata associated with a Compute Engine VPN gateway.", "id": "VpnGatewayInfo", diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index 0fe8fe016e2..acc55e0ae26 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -169,7 +169,6 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} rs.Global = NewProjectsLocationsGlobalService(s) - rs.VpcFlowLogsConfigs = NewProjectsLocationsVpcFlowLogsConfigsService(s) return rs } @@ -177,8 +176,6 @@ type ProjectsLocationsService struct { s *Service Global *ProjectsLocationsGlobalService - - VpcFlowLogsConfigs *ProjectsLocationsVpcFlowLogsConfigsService } func NewProjectsLocationsGlobalService(s *Service) *ProjectsLocationsGlobalService { @@ -214,15 +211,6 @@ type ProjectsLocationsGlobalOperationsService struct { s *Service } -func NewProjectsLocationsVpcFlowLogsConfigsService(s *Service) *ProjectsLocationsVpcFlowLogsConfigsService { - rs := &ProjectsLocationsVpcFlowLogsConfigsService{s: s} - return rs -} - -type ProjectsLocationsVpcFlowLogsConfigsService struct { - s *Service -} - // AbortInfo: Details of the final state "abort" and associated resource. type AbortInfo struct { // Cause: Causes that the analysis is aborted. @@ -1650,37 +1638,6 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// ListVpcFlowLogsConfigsResponse: Response for the `ListVpcFlowLogsConfigs` -// method. -type ListVpcFlowLogsConfigsResponse struct { - // NextPageToken: Page token to fetch the next set of configurations. - NextPageToken string `json:"nextPageToken,omitempty"` - // Unreachable: Locations that could not be reached (when querying all - // locations with `-`). - Unreachable []string `json:"unreachable,omitempty"` - // VpcFlowLogsConfigs: List of VPC Flow Log configurations. - VpcFlowLogsConfigs []*VpcFlowLogsConfig `json:"vpcFlowLogsConfigs,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. 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. "NextPageToken") 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. - NullFields []string `json:"-"` -} - -func (s *ListVpcFlowLogsConfigsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListVpcFlowLogsConfigsResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - // LoadBalancerBackend: For display only. Metadata associated with a specific // load balancer backend. type LoadBalancerBackend struct { @@ -2765,113 +2722,6 @@ func (s *VpcConnectorInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// VpcFlowLogsConfig: A configuration to generate VPC Flow Logs. -type VpcFlowLogsConfig struct { - // AggregationInterval: Optional. The aggregation interval for the logs. - // Default value is INTERVAL_5_SEC. - // - // Possible values: - // "AGGREGATION_INTERVAL_UNSPECIFIED" - If not specified, will default to - // INTERVAL_5_SEC. - // "INTERVAL_5_SEC" - Aggregate logs in 5s intervals. - // "INTERVAL_30_SEC" - Aggregate logs in 30s intervals. - // "INTERVAL_1_MIN" - Aggregate logs in 1m intervals. - // "INTERVAL_5_MIN" - Aggregate logs in 5m intervals. - // "INTERVAL_10_MIN" - Aggregate logs in 10m intervals. - // "INTERVAL_15_MIN" - Aggregate logs in 15m intervals. - AggregationInterval string `json:"aggregationInterval,omitempty"` - // CreateTime: Output only. The time the config was created. - CreateTime string `json:"createTime,omitempty"` - // Description: Optional. The user-supplied description of the VPC Flow Logs - // configuration. Maximum of 512 characters. - Description string `json:"description,omitempty"` - // FilterExpr: Export filter used to define which VPC flow logs should be - // logged. - FilterExpr string `json:"filterExpr,omitempty"` - // FlowSampling: Optional. The value of the field must be in [0, 1]. The - // sampling rate of VPC flow logs within the subnetwork where 1.0 means all - // collected logs are reported and 0.0 means no logs are reported. Default - // value is 1.0. - FlowSampling float64 `json:"flowSampling,omitempty"` - // InterconnectAttachment: Traffic will be logged from the Interconnect - // Attachment. Format: - // projects/{project_id}/locations/{region}/interconnectAttachments/{name} - InterconnectAttachment string `json:"interconnectAttachment,omitempty"` - // Labels: Optional. Resource labels to represent user-provided metadata. - Labels map[string]string `json:"labels,omitempty"` - // Metadata: Optional. Configures whether all, none or a subset of metadata - // fields should be added to the reported VPC flow logs. Default value is - // INCLUDE_ALL_METADATA. - // - // Possible values: - // "METADATA_UNSPECIFIED" - If not specified, will default to - // INCLUDE_ALL_METADATA. - // "INCLUDE_ALL_METADATA" - Include all metadata fields. - // "EXCLUDE_ALL_METADATA" - Exclude all metadata fields. - // "CUSTOM_METADATA" - Include only custom fields (specified in - // metadata_fields). - Metadata string `json:"metadata,omitempty"` - // MetadataFields: Optional. Custom metadata fields to include in the reported - // VPC flow logs. Can only be specified if "metadata" was set to - // CUSTOM_METADATA. - MetadataFields []string `json:"metadataFields,omitempty"` - // Name: Identifier. Unique name of the configuration using the form: - // `projects/{project_id}/locations/global/vpcFlowLogs/{vpc_flow_log}` - Name string `json:"name,omitempty"` - // Network: Traffic will be logged from VMs, VPN tunnels and Interconnect - // Attachments within the network. Format: - // projects/{project_id}/networks/{name} - Network string `json:"network,omitempty"` - // State: Optional. The state of the VPC Flow Log. Default value is ENABLED. - // - // Possible values: - // "STATE_UNSPECIFIED" - If not specified, will default to ENABLED. - // "ENABLED" - When ENABLED, this configuration will generate logs. - // "DISABLED" - When DISABLED, this configuration will not generate logs. - State string `json:"state,omitempty"` - // Subnet: Traffic will be logged from VMs within the subnetwork. Format: - // projects/{project_id}/locations/{region}/subnetworks/{name} - Subnet string `json:"subnet,omitempty"` - // UpdateTime: Output only. The time the config was updated. - UpdateTime string `json:"updateTime,omitempty"` - // VpnTunnel: Traffic will be logged from the VPN Tunnel. Format: - // projects/{project_id}/locations/{region}/vpnTunnels/{name} - VpnTunnel string `json:"vpnTunnel,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AggregationInterval") 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. "AggregationInterval") 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. - NullFields []string `json:"-"` -} - -func (s *VpcFlowLogsConfig) MarshalJSON() ([]byte, error) { - type NoMethod VpcFlowLogsConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - -func (s *VpcFlowLogsConfig) UnmarshalJSON(data []byte) error { - type NoMethod VpcFlowLogsConfig - var s1 struct { - FlowSampling gensupport.JSONFloat64 `json:"flowSampling"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.FlowSampling = float64(s1.FlowSampling) - return nil -} - // VpnGatewayInfo: For display only. Metadata associated with a Compute Engine // VPN gateway. type VpnGatewayInfo struct { @@ -4740,597 +4590,3 @@ func (c *ProjectsLocationsGlobalOperationsListCall) Pages(ctx context.Context, f c.PageToken(x.NextPageToken) } } - -type ProjectsLocationsVpcFlowLogsConfigsCreateCall struct { - s *Service - parent string - vpcflowlogsconfig *VpcFlowLogsConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a new VPC Flow Logs configuration. If a configuration with -// the exact same settings already exists, the creation fails. -// -// - parent: The parent resource of the VPC Flow Logs configuration to create: -// `projects/{project_id}/locations/global`. -func (r *ProjectsLocationsVpcFlowLogsConfigsService) Create(parent string, vpcflowlogsconfig *VpcFlowLogsConfig) *ProjectsLocationsVpcFlowLogsConfigsCreateCall { - c := &ProjectsLocationsVpcFlowLogsConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.vpcflowlogsconfig = vpcflowlogsconfig - return c -} - -// VpcFlowLogsConfigId sets the optional parameter "vpcFlowLogsConfigId": -// Required. ID of the VpcFlowLogsConfig. -func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) VpcFlowLogsConfigId(vpcFlowLogsConfigId string) *ProjectsLocationsVpcFlowLogsConfigsCreateCall { - c.urlParams_.Set("vpcFlowLogsConfigId", vpcFlowLogsConfigId) - 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 *ProjectsLocationsVpcFlowLogsConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsCreateCall { - 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 *ProjectsLocationsVpcFlowLogsConfigsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.vpcflowlogsconfig) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/vpcFlowLogsConfigs") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.create" call. -// Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsVpcFlowLogsConfigsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a specific VpcFlowLog configuration. -// -// - name: VpcFlowLogsConfig name using the form: -// `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_c -// onfig}`. -func (r *ProjectsLocationsVpcFlowLogsConfigsService) Delete(name string) *ProjectsLocationsVpcFlowLogsConfigsDeleteCall { - c := &ProjectsLocationsVpcFlowLogsConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsDeleteCall { - 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 *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.delete" call. -// Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} - -type ProjectsLocationsVpcFlowLogsConfigsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the details of a specific VPC Flow Log configuration. -// -// - name: `VpcFlowLog` resource name using the form: -// `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_c -// onfig}`. -func (r *ProjectsLocationsVpcFlowLogsConfigsService) Get(name string) *ProjectsLocationsVpcFlowLogsConfigsGetCall { - c := &ProjectsLocationsVpcFlowLogsConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an 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. -func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVpcFlowLogsConfigsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsGetCall { - 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 *ProjectsLocationsVpcFlowLogsConfigsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - 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, "v1beta1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *VpcFlowLogsConfig.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 *ProjectsLocationsVpcFlowLogsConfigsGetCall) Do(opts ...googleapi.CallOption) (*VpcFlowLogsConfig, 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 := &VpcFlowLogsConfig{ - 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 -} - -type ProjectsLocationsVpcFlowLogsConfigsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists all VPC Flow Logs configurations in a given project. -// -// - parent: The parent resource of the VpcFlowLogsConfig: -// `projects/{project_id}/locations/global`. -func (r *ProjectsLocationsVpcFlowLogsConfigsService) List(parent string) *ProjectsLocationsVpcFlowLogsConfigsListCall { - c := &ProjectsLocationsVpcFlowLogsConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Lists the `VpcFlowLogsConfig`s -// that match the filter expression. A filter expression filters the resources -// listed in the response. The expression must be of the form ` ` where -// operators: `<`, `>`, `<=`, `>=`, `!=`, `=`, `:` are supported (colon `:` -// represents a HAS operator which is roughly synonymous with equality). can -// refer to a proto or JSON field, or a synthetic field. Field names can be -// camelCase or snake_case. Examples: - Filter by name: name = -// "projects/proj-1/locations/global/vpcFlowLogsConfigs/config-1 - Filter by -// target resource: - Configurations at the VPC network level -// target_resource.network:* - Configurations for a VPC network called `vpc-1` -// target_resource.network = vpc-1 -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Filter(filter string) *ProjectsLocationsVpcFlowLogsConfigsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Field to use to sort the -// list. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) OrderBy(orderBy string) *ProjectsLocationsVpcFlowLogsConfigsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": Number of -// `VpcFlowLogsConfig`s to return. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsVpcFlowLogsConfigsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": Page token from an -// earlier query, as returned in `next_page_token`. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) PageToken(pageToken string) *ProjectsLocationsVpcFlowLogsConfigsListCall { - 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 -// details. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an 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. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVpcFlowLogsConfigsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsListCall { - 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 *ProjectsLocationsVpcFlowLogsConfigsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - 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, "v1beta1/{+parent}/vpcFlowLogsConfigs") - 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 "networkmanagement.projects.locations.vpcFlowLogsConfigs.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *ListVpcFlowLogsConfigsResponse.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 *ProjectsLocationsVpcFlowLogsConfigsListCall) Do(opts ...googleapi.CallOption) (*ListVpcFlowLogsConfigsResponse, 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 := &ListVpcFlowLogsConfigsResponse{ - 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 -} - -// 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 *ProjectsLocationsVpcFlowLogsConfigsListCall) Pages(ctx context.Context, f func(*ListVpcFlowLogsConfigsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - 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) - } -} - -type ProjectsLocationsVpcFlowLogsConfigsPatchCall struct { - s *Service - name string - vpcflowlogsconfig *VpcFlowLogsConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an existing VpcFlowLogsConfig. If a configuration with the -// exact same settings already exists, the creation fails. -// -// - name: Identifier. Unique name of the configuration using the form: -// `projects/{project_id}/locations/global/vpcFlowLogs/{vpc_flow_log}`. -func (r *ProjectsLocationsVpcFlowLogsConfigsService) Patch(name string, vpcflowlogsconfig *VpcFlowLogsConfig) *ProjectsLocationsVpcFlowLogsConfigsPatchCall { - c := &ProjectsLocationsVpcFlowLogsConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.vpcflowlogsconfig = vpcflowlogsconfig - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. Mask of -// fields to update. At least one path must be supplied in this field. -func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsVpcFlowLogsConfigsPatchCall { - 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 *ProjectsLocationsVpcFlowLogsConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsPatchCall { - 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 *ProjectsLocationsVpcFlowLogsConfigsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.vpcflowlogsconfig) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.patch" call. -// Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &Operation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil -} diff --git a/orgpolicy/v2/orgpolicy-api.json b/orgpolicy/v2/orgpolicy-api.json index fbf69b08a51..2e54892e558 100644 --- a/orgpolicy/v2/orgpolicy-api.json +++ b/orgpolicy/v2/orgpolicy-api.json @@ -930,7 +930,7 @@ } } }, - "revision": "20240422", + "revision": "20240506", "rootUrl": "https://orgpolicy.googleapis.com/", "schemas": { "GoogleCloudOrgpolicyV2AlternatePolicySpec": { @@ -1107,14 +1107,16 @@ "CREATE", "UPDATE", "DELETE", - "REMOVE_GRANT" + "REMOVE_GRANT", + "GOVERN_TAGS" ], "enumDescriptions": [ "Unspecified. Results in an error.", "Constraint applied when creating the resource.", "Constraint applied when updating the resource.", "Constraint applied when deleting the resource. Not supported yet.", - "Constraint applied when removing an IAM grant." + "Constraint applied when removing an IAM grant.", + "Constraint applied when enforcing forced tagging." ], "type": "string" }, diff --git a/orgpolicy/v2/orgpolicy-gen.go b/orgpolicy/v2/orgpolicy-gen.go index 258f480b209..dce8946f9f9 100644 --- a/orgpolicy/v2/orgpolicy-gen.go +++ b/orgpolicy/v2/orgpolicy-gen.go @@ -479,6 +479,7 @@ type GoogleCloudOrgpolicyV2CustomConstraint struct { // "DELETE" - Constraint applied when deleting the resource. Not supported // yet. // "REMOVE_GRANT" - Constraint applied when removing an IAM grant. + // "GOVERN_TAGS" - Constraint applied when enforcing forced tagging. MethodTypes []string `json:"methodTypes,omitempty"` // Name: Immutable. Name of the constraint. This is unique within the // organization. Format of the name should be * diff --git a/pagespeedonline/v5/pagespeedonline-api.json b/pagespeedonline/v5/pagespeedonline-api.json index 229a7217d25..ce2682aa7a0 100644 --- a/pagespeedonline/v5/pagespeedonline-api.json +++ b/pagespeedonline/v5/pagespeedonline-api.json @@ -131,12 +131,20 @@ "PWA", "SEO" ], + "enumDeprecated": [ + false, + false, + false, + false, + true, + false + ], "enumDescriptions": [ "Default UNDEFINED category.", "Accessibility (a11y), category pertaining to a website's capacity to be accessible to all users.", "Best Practices, category pertaining to a website's conformance to web best practice.", "Performance, category pertaining to a website's performance.", - "Progressive Web App (PWA), category pertaining to a website's ability to be run as a PWA.", + "Progressive Web App (PWA), category pertaining to a website's ability to be run as a PWA. This is deprecated in Lighthouse's 12.0 release.", "Search Engine Optimization (SEO), category pertaining to a website's ability to be indexed by search engines." ], "location": "query", @@ -193,7 +201,7 @@ } } }, - "revision": "20230705", + "revision": "20240509", "rootUrl": "https://pagespeedonline.googleapis.com/", "schemas": { "AuditRefs": { @@ -267,7 +275,8 @@ }, "pwa": { "$ref": "LighthouseCategoryV5", - "description": "The Progressive-Web-App (PWA) category, containing all pwa related audits." + "deprecated": true, + "description": "The Progressive-Web-App (PWA) category, containing all pwa related audits. This is deprecated in Lighthouse's 12.0 release." }, "seo": { "$ref": "LighthouseCategoryV5", diff --git a/pagespeedonline/v5/pagespeedonline-gen.go b/pagespeedonline/v5/pagespeedonline-gen.go index 40c900b1e25..a5b4d2384ea 100644 --- a/pagespeedonline/v5/pagespeedonline-gen.go +++ b/pagespeedonline/v5/pagespeedonline-gen.go @@ -261,7 +261,7 @@ type Categories struct { // audits. Performance *LighthouseCategoryV5 `json:"performance,omitempty"` // Pwa: The Progressive-Web-App (PWA) category, containing all pwa related - // audits. + // audits. This is deprecated in Lighthouse's 12.0 release. Pwa *LighthouseCategoryV5 `json:"pwa,omitempty"` // Seo: The Search-Engine-Optimization (SEO) category, containing all seo // related audits. @@ -1037,7 +1037,7 @@ func (c *PagespeedapiRunpagespeedCall) CaptchaToken(captchaToken string) *Pagesp // // "PWA" - Progressive Web App (PWA), category pertaining to a website's // -// ability to be run as a PWA. +// ability to be run as a PWA. This is deprecated in Lighthouse's 12.0 release. // // "SEO" - Search Engine Optimization (SEO), category pertaining to a //